Is there a way a change the name of the Loader content property. I'd like to
call addChild() on the content instead of the Loader itself. Like this :
loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.INIT, loaderInit);
var request:URLRequest = new URLRequest(pageSource);
loader.load(request);
private function loaderInit(event:Event):void{
event.target.removeEventListener(Event.INIT, loaderInit);
var page:Page = event.target.content;
page.name = "test";
}
That code throws this error but I cant understand why.
Error: Error #2078: The name property of a Timeline-placed object cannot be
modified.
at flash.display::DisplayObject/set name()
at com.blitzagency.fabric::Main/::loaderInit()
_______________________________________________
[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