Groups | Blog | Home
all groups > coldfusion flash integration > june 2006 >

coldfusion flash integration : Passing multiple session values from cold fusion into a flash movie


Skotopia
6/16/2006 10:46:35 PM
Hello all,

I know that to pass multiple variables into a flash movie you could
use the embed tag like this(with the & between each variable):

<embed
......
flashvars="variable1=value1&variable2=value2"
......
[quoted text, click to view]


Now to pass a single session variable from coldfusion in i did the following;
which worked:

<embed

src="ASdb.swf" FlashVars="UserName=<cfoutput>#session.userName#</cfoutput>"
width="550" height="400" autostart="true">

</embed>


Note that i had to use the cfoutput tags to get the value stored in the
variables. Now; i tried to do the same thing for two session variables and
the second one does not get read in. Here was my code:


<embed src="ASdb.swf"
FlashVars="UserName=<cfoutput>#session.userName#</cfoutput>&testTypeID=<cfoutput
[quoted text, click to view]

</embed>


Can someone please tell me what I am doing wrong? Thank you very much in
advance.


Skotopia
6/16/2006 10:49:19 PM
Hold on there was a little error: My final code that did not work was the
following:


<embed src="ASdb.swf"
FlashVars="UserName=<cfoutput>#session.userName#</cfoutput>&testTypeID=<cfoutput
[quoted text, click to view]

</embed>
AddThis Social Bookmark Button