Search tutorials
Download and open the FLA. file. Now follow these steps:
(Please Note: The following only works with a Flash Windows Projector [.exe]/Macintosh Projector [.hqx]. To make your movie into a Windows/Macintosh Projector, go to File>Publish Settings. Frome there you can select Windows and/or Macintosh Projector).
-
Right click the first frame in the timeline, and select "Actions" from the pop-box. Type in the following in the space provided:
stop()
- Select the "Quit" button on the stage, and go to Windows->Actions.
-
Type the following ActionScript into the space provided:
on (release) { fscommand("quit", "true"); } - Now close the actions panel, and select the "Quit Frame" button.
- Type in:
on (release) { gotoAndPlay(2); } - Now select the last frame in the timeline and once again go to the actions panel, and type in:
fscommand("quit", "true");
Explained:
Your movie should now quit upon pressing the "Quit" button. And it should go to the quit animation on the next few frames which ends in a quit action (to make your movie quit). The "stop()" action you put into the first frame kept the movie from going onto the quit animation when your movie started.
| » Level Basic |
|
Added: 2004-07-22 Rating: 7 Votes: 14 |
| » Author |
| Have been using Macromedia Flash for a little over a year now. Started with Flash 5, but now using Flash MX. |
| » Download |
| Download the files used in this tutorial. |
| Download (6 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


Comments
There are no comments yet. Be the first to comment!