Hi coders I have this function and I'm trying to control an
instance inside an external swf called botonX
so far this is what I've been doing.
really need help, I'd appreciate
this is my code
function contactUs():void{
var contactMe:MovieClip = new MovieClip();
var contactLoader:Loader = new Loader();
contactLoader.load(new URLRequest("contactUs.swf"));
contactMe.addChild(contactLoader);
addChild(contactMe);
var myWindow:MovieClip = contactMe.contactLoader.botonX as MovieClip;
myWindow.addEventListener(MouseEvent.CLICK, closeClick);
trace("contact");
}//contact Us Function
this is the error message
TypeError: Error #1010: A term is undefined and has no properties.
at main1_fla::MainTimeline/contactUs()
at main1_fla::MainTimeline/onClick()
Regards,
Gustavo
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders