At 12/31/12 05:05 AM, Imasock wrote:
I am nearly at the peak of finishing an animation.. i just have no clue how to make a replay button.
but get the error message "Scene 1, Layer 'Action Script', Frame 505, Line 2 1120:Access of undefined property replay.
The error message is basically saying that flash doesn't know what "replay" is? So what is replay? It should be the name of your button. Make sure the button is on the stage when the eventlistener is created and that it's instance name is 'replay'.
If you did all that and you're still getting the error message, it may be that when you jump back to frame one, the button is now gone but the eventlistener is still looking for it. Make sure to remove all you event listeners when they are no longer needed.