Flash tutorials
Home 3D (2) Actionscripting (66) Animation (100) Audio (4) Drawing (7) Full flash sites (4) Getting Started (15) Navigation (25) Special Effects (54) Text Effects (38)

Blue Flash Button

14.12.2006, 17:37    Total views: 37600
Page:  1  2  3

Step 20

Go back on the main scene (Scene1), dobule click on layer 1 to rename its name in FlashButton.

Step 21

Then, insert a new layer and name it Invisible Button.



Step 22

Create the Invisible Button over the button. See the picture below.



Step 23

Select the "Invisible Button", open the Action Script Panel (F9), and paste this script:

on (rollOver) {
_root.mouse_over_FlashButton = true;
}

on (rollOut) {
_root.mouse_over_FlashButton = fstartlse;
}

on (release){
getURL("http://www.flashvault.net/", "blank");

}

Step 24

Insert a new layer and name it Action. Click on frame 1, and in Action Script Panel (F9), paste this script:

_root.FlashButton.onEnterFrame = function() {
if (mouse_over_FlashButton) {
_root.FlashButton.nextFrame();
} else {
_root.FlashButton.prevFrame();
}
};

We're done!

Download source file (.fla)

Previous:  Button Effect
Have questions about this tutorial?
Visit our friendly Community Forums!
Digg it! Add this tutorial to del.icio.us! Furl it! Add this tutorial to reddit! Spurl it! Add this tutorial to technorati!

Top tutorials

1. Advanced full flash site - Part 1
Total views: 225451

2. Water effect
Total views: 169462

3. Photo slide show
Total views: 157318

4. High-tech city animation
Total views: 154655

5. Special Picture Effect
Total views: 148642

Related links