[flexcoders] pass vars to AVM1Movie

2007-01-17 Thread Bjorn Schultheiss
Hey, I'm loading AVM1 swfs into my flex app via SWFLoader. I want to be able to pass in a unique connection id from flex to flash to use for my localconnection. Any solutions? Bjorn

Re: [flexcoders] pass vars to AVM1Movie

2007-01-17 Thread JesterXL
JavaScript out the values via ExternalInterface, and have JavaScript send in the value to the AVM1Movie (assuming Flash 8 which also supports ExternalInterface). On Jan 17, 2007, at 7:35 PM, Bjorn Schultheiss wrote: Hey, I'm loading AVM1 swfs into my flex app via SWFLoader. I want to be

Re: [flexcoders] pass vars to AVM1Movie

2007-01-17 Thread Bjorn Schultheiss
Jxl, Is there any other way without round tripping through the browser? I have multiple swfs loaded in my flex app simultaneously, can i pass the param to a specific swf via externalInterface? Regards, Bjorn On 18/01/2007, at 4:08 PM, JesterXL wrote: JavaScript out the values via

Re: [flexcoders] pass vars to AVM1Movie

2007-01-17 Thread JesterXL
1. code your SWF's in Flash 9 using AS3; these problems disappear. 2. If it's a number, simply have your SWF register for a Stage.onResize, and have Flex set the width of the SWF. The width can be the number. Naturally, this is a SWFInt (just made that up) so it can only be between -2880