|
|
|
Close Button - fs command on Flash projector file (.exe)
Step 2: On the new layer, select 'Insert | New Symbol' , name it 'close' and dot 'button' in the Symbol Properties box.
Step 3: Create your button. Change the color of the text on mouseover state if desired and remember to put a solid box over the hit state frame to make your button solid. This is not really necessary with a solid button, but it's a good habit to get into if you occasionally make buttons out of text only. The hit state won't show on your button either way. Step 4: Now go back to scene 1, select the button layer and drag your close button out of the library onto the stage where you want it.
Step 5: Left click on the button on the stage area to select it, then right click on it and select 'Actions' from the menu. Now you can use the 'On Mouse Event' in the 'Object Actions' box which will put the code: on (release) { into your button. Then select FScommand and choose the "quit" command for the standalone player. Save your file and publish it as an .exe to test it out.
The best use of the close button is on a projector file such as a presentation on cd-rom in full screen mode.
|
|
|||
|
Flash
Beginning Flash Intermediate Flash
Info |
|||||
|
Web
Templates |
Photo Galleries |
Resources |
Articles |
Tutorials |
Desktop Wallpaper copyright © 1998-2008 webworksite.com |
|||||