-
Macs and Variables?
I'm trying to create a map that uses variables imported from the html code ( <param name=movie value="movie.swf?variable=value"> )
This works perfectly on PCs, but it doesn't work on Macs. Why is this? Is there any way of getting around this or any other way of doing this?
Thanks
-
The only method to pass variable/value pairs into flash that reliably works on all platforms and browsers is to add an url request string to the end of the swf file location in your object and embed tags.
So if you'd change it like this:
PHP Code:
<param name="movie" value="myswf.swf?variable1=value1&variable2=value2" >
<embed src="myswf.swf?variable1=value1&variable2=value2" >
-
With Flash plugin 6 or higher you should use:
PHP Code:
in object:
param name="movie" value="mymovie.swf"
param name="FlashVars" value="var1=value1&var2=value2">
in embed:
src="mymovie.swf" FlashVars="var1=value1&var2=value2"
(There are some bugged player versions where the method suggested by SJT doesn't work offline)