Can't get movie clip to communicate with its parent...
Hi everyone,
So, I am making a Flash website, and we'll say that the movie is called ninja.swf.
Within ninja.swf, there are six scenes, and in the later 5 scenes, there is an movie clip (consule2)with has a halfdozen buttons (of which one is home_btn) that serve as the navigation across the site. So, in the consule2, I set up an Actions layer, and for Home_btn, have created this piece of code:
//Home Button
function gotodsHome(event:MouseEvent):void{
MovieClip(root).gotoAndPlay("FullLoaded","01_Landing_Page");
}
Home_btn.addEventListener(MouseEvent.CLICK, gotodsHome);
...with "FullLoaded" being a labeled frame within "01_Landing_Page" (the first scene of ninja.swf).
But, when I test the movie, and click on the link, it gives me the following error:
ArgumentError: Error #2108: Scene 01_Landing_Page was not found.
at flash.display::MovieClip/gotoAndPlay()
at ninja_02_Paris_fla::consule2_6/gotodsHome()
...Note that "02_Paris" is the second scene, where I'm testing from.
Any suggestions on what I'm doing wrong here?
Thanks!