I've used the following code in order to achieve a menu function
Code:
MovieclipOne.addEventListener(MouseEvent.CLICK, initiateInstal);
function initiateInstal(evtObj:MouseEvent){
trace ("The "+evtObj.target.name+" button was clicked!")
gotoAndStop(evtObj.target.name);
}
For example, on the main timeline it looks like:
[MainPage][MovieclipOne][MovieclipTwo]
With the button's instance called "MoviceclipOne". But when I've clicked it, instead of getting the feedback of
Quote:
|
The MoviceclipOne button was clicked!
|
it gave me
Quote:
|
The instance57 button was clicked!
|
For the life of me I can't figure out if there are any other ways to change the instance for that button.
FYI, MoviceclipOne button is the instance of MoviceclipOne_bt.