Race Bannon
12-18-2007, 05:54 PM
Hopefully this will be an easy question. Im trying to use a button (that is in lower level movie clip) to gotoAndStop() a movie clip in another lower movie clip. think my problem is in the path to the other clip (but I used the “insert target mode’ to get the relative path)
This is what I have on the button
stop();
function clickButton(evt:Event):void {
trace("the " + evt.target.name + " button was clicked");
gotoAndPlay(2);
this.shore_cable.gotoAndPlay(1);
}
Connect_Shore.addEventListener(MouseEvent.MOUSE_DO WN,clickButton);}
I also have a “Trace(this name);” on the movie clip “shore_cable” that I want to control
The below shows that the button was clicked and that the shore_cable is a correct movie clip.
I do not get a compiler error but the animation does not work and I get this the output note:
shore_cable
the Connect_Shore button was clicked
TypeError: Error #1010: A term is undefined and has no properties.
at controlpanel_test_fla::Shore_button_3/clickButton()
any ideas? anyone? thank you in advance for your consideration
p.s. i did a search and found a lot of information on the #1010 but i could not figure out my problem :(
This is what I have on the button
stop();
function clickButton(evt:Event):void {
trace("the " + evt.target.name + " button was clicked");
gotoAndPlay(2);
this.shore_cable.gotoAndPlay(1);
}
Connect_Shore.addEventListener(MouseEvent.MOUSE_DO WN,clickButton);}
I also have a “Trace(this name);” on the movie clip “shore_cable” that I want to control
The below shows that the button was clicked and that the shore_cable is a correct movie clip.
I do not get a compiler error but the animation does not work and I get this the output note:
shore_cable
the Connect_Shore button was clicked
TypeError: Error #1010: A term is undefined and has no properties.
at controlpanel_test_fla::Shore_button_3/clickButton()
any ideas? anyone? thank you in advance for your consideration
p.s. i did a search and found a lot of information on the #1010 but i could not figure out my problem :(