Hi all,
I am a bit stumped…
I have a movieclip “mc1” with a button inside of it “button1”
I am loading a .swf into a movieclip “mc2” in the movie, I want button1 to tell my loaded .swf’s mc to go to and stop at frame label “home”
heres what i have come up with thanks to tutes:
var loadMc2:Loader = new Loader();
loadMc2.load(new URLRequest("mainContent.swf"));
loadMc2.contentLoaderInfo.addEventListener(Event.COMPLETE, mc2Loaded);
function mc2Loaded(e:Event):void
{
trace("mc2 Loaded")
}
mc2.addChild(loadMc2);
and heres the button:
mc1.button1.addEventListener(MouseEvent.CLICK, button1Clicked);
function button1Clicked(evtObj:MouseEvent){
this.mc2.loadMc2.gotoAndStop("home");
}
but i get the following error:
TypeError: Error #1010: A term is undefined and has no properties.
at index_fla::MainTimeline/button1Clicked()
am i seriously missing the point… it feels so… ;(
cheers