I have been tring to have a button in a nested movie clip move the timeline along using a class script attached to the nested movie. I can get the buttons to work on the main timeline with another similar class script, but when I have a button within a nested movie and attach similar code to the movie, it doesn't seem to want to work. This is the class code attached to the nested clip.... I guess can an active listener be called if the button isn't yet being visible yet, and should this be done on the Main class script page for the main timeline? Any help would be great!! Thanks
package {
import flash.display.MovieClip;
import flash.events.MouseEvent;
public class Animation extends MovieClip {
public function Animation() {
gotoAndStop(1);
negBackground_btn.addEventListener(MouseEvent.MOUSE_UP, buttonPressedNegBackground);
}
private function buttonPressedNegBackground(e:MouseEvent):void {
negBackground_btn.visible = false;
gotoAndStop("negChar");
}
}
}
North America
Europe, Middle East and Africa
Asia Pacific