Sunday, April 4, 2010

another basic question - button doesn't...

This is probably related to my last question. I have a button (Restart_btn) that I want to send the user back to the beginning of my movie when clicked. I typed the following in the Actions panel for the first keyframe in the section of the timeline that contains the button, but nothing happens when I click the button.

Restart_btn.addEventListener(MouseEvent.CLICK,restart);
function restart(event:MouseEvent):void {
gotoAndPlay(1);
}

What am I missing?

Thanks

Mark

another basic question - button doesn't...

does the timeline that contains that code have more than 1 frame??is that timeline on a frame other than 1 when the button is clicked?

another basic question - button doesn't...

The timeline has many frames, but is should stop at the frame with the code.

what timeline contains that code?

No comments:

Post a Comment