Re: [Flashcoders] swfObject, flashVars, loaded swf

2010-05-24 Thread Karim Beyrouti
how you pass the flash vars to flash depends on the version of SWFObject you 
are using - however - from flash - you can access the variable like so (as3):

stage.loaderInfo.parameters.myflashparam

However - you might need to make sure the swf has been 'AddedToStage'

- k
On 24 May 2010, at 18:22, Mendelsohn, Michael wrote:

 Hi list...
 
 I'm having difficulty getting flashvars to work in a swfObject on a web page. 
  I have a swf that loads another swf.  I am trying to send some flashvars to 
 the loaded swf but I can't seem to get that wired up.
 
 How does a loaded swf access flash vars on the root of the swf that loaded it?
 
 Thanks,
 - Michael M.
 
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] swfObject, flashVars, loaded swf

2010-05-24 Thread Mendelsohn, Michael
Yes, Karim, thanks, that was my problem.  I wasn't accessing it from Flash 
correctly.

Regards,
- MM



how you pass the flash vars to flash depends on the version of SWFObject you 
are using - however - from flash - you can access the variable like so (as3):

stage.loaderInfo.parameters.myflashparam

However - you might need to make sure the swf has been 'AddedToStage'


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders