Hi list,
I am loading an swf that contains two MovieClips into an AS3 Project, B1 and
B2.
in the fist (and only) frame of the swf loaded I added:
B1.Pid = 1;
B2.Pid = 2;
Now I would like to access that property from the class wich loads that SWF
here is the code I used:
public function getMap(link:String):void {
var ldr:Loader = new Loader();
var urlReq:URLRequest = new URLRequest("Maps/" + link);
ldr.load(urlReq);
Map_Container.addChild(ldr);
ldr.contentLoaderInfo.addEventListener(Event.COMPLETE,
getProject);
}
public function getProject(e:Event):void {
trace("Movie Loaded"); // works
trace(ldr.B1.Pid); //undefined.
}
How can I access it? In AS2 I used to write the name of the container like:
container.MC.property;
But how in AS3?
Thanks.
--
Omar M. Fouad - Digital Emotions
http://www.omarfouad.net
This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders