I am fairly new to Flash, and has been trying to solve this over past few hours.
What I want to do is to pass parameters from the browser to flash. I searched and seems like the best way is FlashVars.
However, I have tried different codes and can't get Flash to detect the parameters.
I decided to follow the example here and just copy and paste the whole thing (just changing the "main.swf" to my swf name):
The flash loads, but it only shows "param:" without anything else.
I gathered that it probably is a more foundamental problem. (e.g. the way I am debugging, or some settings, etc.) Any clues?
(I am using CS4 trial version AS3.)
if you're using the standard flash embedding, you need to list your flashvars in 3 locations in your html file. are you doing that?
oh, which 3 locations are there?
I only know 2, one in <param name="FlashVars" value="one=1&two=2" /> and the other in embed. Where is the 3rd one?
oh...ha...haha...found the answer...it's in AC_FL_RunContent...
http://twelvestone.com/forum_thread/view/37553 <--apparently I'm not the only one with this problem...^^"""
Anyway, thanks a lot for the direction!
and yes, this is a common problem. it's actually easier to use flashvars with the swfobject embed method.