Question
Passing multiple session values from cold fusion into a flash movie
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"
......
></embed>
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>#session.testTypeID#</cfoutput>" width="550" height="400" autostart="true">
</embed>
Can someone please tell me what I am doing wrong? Thank you very much in advance.
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"
......
></embed>
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>#session.testTypeID#</cfoutput>" width="550" height="400" autostart="true">
</embed>
Can someone please tell me what I am doing wrong? Thank you very much in advance.