[RESOLVED] Please help with Flashvars + Cookie problem
Hi, I am trying to get a value from a cookie and pass it to my SWF but I cant seem to get it :-/
The cookie's data is very simple. No special characters or symbols, just numbers. The numbers correlate to an image that is clicked on so that when someone clicks on a given thumbnail a flash based gallery will load to that picture first.
I just need some help figuring out how to pass the value in the cookie, unfortunately it's not as easy as the tutorials make it seem.
Below is some of the codes I have tried.
Could someone please point out the mistake?
This works but it is hardcoded so that wont work :confused:
Code:
<param name="FlashVars" value="myvar1=3">
this doesn't work
Code:
<param name="FlashVars" value="myvar1="+<script>document.write(GetCookie('KKITEST'));</script>+"">
and this also doesn't work.
Code:
<PARAM NAME=FlashVars VALUE="myvar1=' + getCookie('KKITEST')+'">
How can this be fixed?
~KK