Flash Animation help? 1120 - access of undefined property...?

Ezza

New member
Adobe Flash CS3.

Working on an major project assignment for school. I need to work out how to get this navigation to work. I'm trying to go back to a previous frame, where the sound and animation plays.

This is the scripting I have:

stop();

Repeat_btn.addEventListener(MouseEvent.MOUSE_UP, repeat);


function repeat(event:MouseEvent):void {
gotoAndPlay(20);
}

There is no scripting errors. Although for some reason, the error comes up:

1120: Access of undefined property repeat_btn.

I gave the actually button the instance name repeat_btn. Have checked - no spelling mistakes.

Any ideas why this isn't working?

Thanks in advanced!
 
Back
Top