Okay - I had to dig in a little more, I have a blog post about this (whats the best way to approach)?
http://www.ericd.net/2007/09/as3-accessing-loaded-swf-stuff.html On 9/11/07, eric e. dolecki <[EMAIL PROTECTED]> wrote: > > I am loading a SWF into a movieclip and want to access variables, etc. > from my main class. I have this in my main document class: > > private function loadViewElements():void > { > var module1Loader:Loader = new Loader(); > module1Loader.contentLoaderInfo.addEventListener( > Event.COMPLETE, completeEvent ); > module1Loader.contentLoaderInfo.addEventListener( > IOErrorEvent.IO_ERROR, ioError ); > > // Create and load the Views > NUMBERPAD = new MovieClip(); > NUMBERPAD.name = "numberPad"; > addChild( NUMBERPAD ); > NUMBERPAD.addChild( module1Loader ); > var moduleURL:URLRequest = new URLRequest( "views/view.swf" ); > module1Loader.load( moduleURL ); > } > > private function completeEvent( event:Event ):void > { > trace( event.target + " loaded" ); > trace( NUMBERPAD.getChildAt(0) ); > var who = getChildByName( "numberPad" ); > trace( who.name ); > trace( who.iam ); > } > > Inside the loaded SWF I have a simple variable: > > var iam:String = "view"; > > I am trying to find a decent way to navigate things in the loaded SWF. I > must be overlooking something? > > - eric > > _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com

