you can't access another swf's timeline till its loaded.  Look at what your
writing, you have to account for the time it will take for the movieclip to
load in

greg

On Tue, Aug 25, 2009 at 4:24 PM, Gustavo Duenas <
gdue...@leftandrightsolutions.com> wrote:

>  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
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to