1061:call to a possibly undefined method addEventListener through a reference with static type class
i have used the code snippets to move from keyframe 1 to 2 with this code it is a button.
/* Stop at This Frame
The Flash timeline will stop/pause at the frame where you insert this code.
Can also be used to stop/pause the timeline of movieclips.
*/
stop();
/* Click to Go to Frame and Stop
Clicking on the specified symbol instance moves the playhead to the specified frame in the timeline and stops the movie.
Can be used on the main timeline or on movie clip timelines.
Instructions:
1. Replace the number 5 in the code below with the frame number you would like the playhead to move to when the symbol instance is clicked.
*/
Playbtn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_6);
function fl_ClickToGoToAndStopAtFrame_6(event:MouseEvent):void
{
| gotoAndStop(2); |
}
but i get this error, can anyone help?
the error i get if i change the name in the code to the class name instead
1120:Access of undefined property Playbutton
(the instance name is Playbtn)
Thanks for your concern!
