I have created my own buttons and imported them to the stage. I then tried to code them so that they linked to another page, however i get the same code message '1120 access of undefined property' for each of the coded buttons.
The code is as follows:
stop();
Index_btn.addEventListener(MouseEvent.CLICK, Click);
T_btn.addEventListener(MouseEvent.CLICK, Click1);
C_btn.addEventListener(MouseEvent.CLICK, Click2);
B_btn.addEventListener(MouseEvent.CLICK, Click3);
H_btn.addEventListener(MouseEvent.CLICK, Click4);
I_btn.addEventListener(MouseEvent.CLICK, Click5);
function Click( event:MouseEvent):void {
gotoAndStop("31");
}
function Click1( event:MouseEvent):void {
gotoAndStop("32");
}
function Click2( event:MouseEvent):void {
gotoAndStop("33");
}
function Click3( event:MouseEvent):void {
gotoAndStop("34");
}
function Click4( event:MouseEvent):void {
gotoAndStop("35");
}
function Click5( event:MouseEvent):void {
gotoAndStop("36");
}