all groups > coldfusion flash integration > june 2006 >
You're in the

coldfusion flash integration

group:

Reading session variables via Param tag


Reading session variables via Param tag Skotopia
6/15/2006 7:43:25 PM
coldfusion flash integration: Hello all,

I've heard that you can attach session variables to the object/embed tag
that displays your .swf in a coldfusion file. Can you show me the code to do
this in coldfusion if say MYflash.sfw is the name of the embeded flash movie;
the two session variables I want to pass in are #Session.test1# and
#Session.Session2# and I want the values to be called Sample1 and Sample2 in
flash, respectively. I know you can do this via components, but I wish to do
it this way.
Thank you very much in advance.

---Skotopia

Re: Reading session variables via Param tag Skotopia
6/15/2006 9:36:56 PM
I tried the following:

<embed src="my.swf" width="550" height="400"
autostart="true">
<PARAM NAME=Sample VALUE=#session.userName#>
</embed>

and created a dynamic text box in the flash movie displaying the variable
Sample; but nothing showed up. Any help would be much appreciated. Thanks.
Re: Reading session variables via Param tag Skotopia
6/15/2006 10:31:26 PM
I got it to work; but using less than i read you needed. All i had was this:

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

No Param tag or anything. Can anyone tell me if there is any problem with
this; like it won't work on all types of browsers or whatever?

Thanks.
AddThis Social Bookmark Button