I am embedding a standalone flash(activex) module in my program to
show some flash resources.The flash show successfully,but when I try
to pass it some arguments,I got stuck,I am trying following to pass
flashvars to flash but no success:
self.flash.FlashVars="verify=36132562_1062_36132562_1260777876_abbdc24892063719b71b3bd37270a58c"
or
self.flash._set_FlashVars
("verify=36132562_1062_36132562_1260777876_abbdc24892063719b71b3bd37270a58c")
after I set the FlashVars,I try print self.flash.FlashVars,the output
is ok,but the swf just didn't get the correct argument,following is
the swf source to accept the argument:
this.verify = loaderInfo.parameters["verify"];
I am using flash 10 on win xp,and that flash runs ok on the browser
with following embed statement
I am embedding a standalone flash(activex) module in my program to
show some flash resources.The flash show successfully,but when I try
to pass it some arguments,I got stuck,I am trying following to pass
flashvars to flash but no success:
self.flash.FlashVars="verify=36132562_1062_36132562_1260777876_abbdc24892063719b71b3bd37270a58c"
or
self.flash._set_FlashVars
("verify=36132562_1062_36132562_1260777876_abbdc24892063719b71b3bd37270a58c")
after I set the FlashVars,I try print self.flash.FlashVars,the output
is ok,but the swf just didn't get the correct argument,
Python is case-sensitive so you would need to use the lower-case name to be able to set the value using the property. However that should be the same as calling _set_FlashVars so if that is also not working then I
am stuck too. I don't know enough about how Flash works internally to be of any more help.
following is
the swf source to accept the argument:
this.verify = loaderInfo.parameters["verify"];
When is this code executed? When the flash object is loaded or sometime later? I'm wondering if it is a chicken/egg problem. If it's trying to use the value before the time that the python code that sets it is called, then using the right property name wont help much.