[Flashcoders] how a loaded swf access variables from an host

2006-04-18 Thread elr
Hi, 1- my main fla is driven by a singleton class nammed 'Main.as' so content of frame 1 is : var main= Main.getInstance(); main.init(this); 2 - this main instance do a loadMovie() to load an external movie called 'child.swf' ( this one is also driven by a class nammed 'child.as' ) I

Re: [Flashcoders] how a loaded swf access variables from an host

2006-04-18 Thread elr
I finally found a way... :) I defined an object 'myObj' directly in Main.fla (...not in its class) then, my 'child.swf' get access to this object using _root.myObj.vars. That maybe not the best way but it works. Eric At 2006-04-18 11:10, you wrote: Hi, 1- my main fla is driven by a