Skip to main content
Inspiring
August 25, 2007
Question

Replay Button for Flash Movie

  • August 25, 2007
  • 1 reply
  • 360 views
Hi

I have placed a flash movie on my webpage. I want to include a play button on my site so that movie only plays when it is clicked. Can someone guide me how I can do that

Thanks
This topic has been closed for replies.

1 reply

August 25, 2007
First, create your play button. Click on it, and open up the Properties Panel (Shift + F3). Type in: play_btn for the <Instance Name>.

Then, create a new Layer in your Flash file, called Actions. Click on the first frame of the Actions layer, and open up the Actions panel (F9).
Type in:

stop();
play_btn.onRelease = function(){
play();
}