Internet Commerce

Partners & Affiliates

Developer Channel


Featured Flash FLA
Gallery Downloads 11401 Flash Movies | 5 New Flash Movies Added
What's New | Top 100

Featured FLA

»  Author: Nick Kouvaris
»  Title: Znax
»  Description: Znax is a board game. Click 4 tiles of the same color and form squares as big as you can. You will erase all the tiles inside the square and collect points. Get maximum score if you make a square with game edges.
»  More by: Nick Kouvaris


Random FLAs | Add Flash Movie
Featured Flash Site
Gallery Downloads 4941 Flash Sites | 1 New Flash Links
What's New | Top 100 Flash Site

Featured Site

»  Author Agence WOP Digital Agency
»  Title: Electricdrum
»  Description: French WOP Agency, 3D websites, Flash (Papervision, Away 3D), event or institutional projects. The agency operates on all digital projects: consulting, design, graphic design, development, online communication. The WOP agency follows you on the implementation of original, creative and optimized digital projects.


Random Links | Add your own Flash Related Links
Flash Tutorials 1481 Tutorials 7 New Tutorials Added!
What's New | Top100

» How To Make A Simple Animation Using Christmas Clips
» Simple Step by step flash game tutorial Spot the diffrence
» How To Make A Moving Text Slide
» Create Flash Banner With Text Float Effect
» How To Make Zoo Photos Slideshow
» How To Make A Dolphin Photos Slideshow
» How To Make A Fathers Day Slideshow
» How To Make A Transparent Background of Your Flash File
» Create Flash Banner With Text Disco Light Effect Today we will introduce you a Text Disco Light eff
» Unknown Tag: Title10
Random Tutorial | Add Site


Tutorials Home What's New Top Rated Submit myTutes Random!

Search Tutorials


Tutorials Tutorials » Dynamic_Content

Categories Simple Interactive Button
Author: Joe Turner | Website: http://www.nastycritter.com |

 
Page 1
1

Making a Cool rollover Button in Flash as seen at Nastycritter.com

Welcome to the first ever Nastycritter Tutorial, we thought we would start off with something simple, so here goes...

What you will be making:

(works better on a page rather than its own small box)

How to do it:

Ok, first start off by creating a text box and inside it put the text you want for your button. With this selected hit F8 and convert it to a movieclip symbol. Now double click on your movieclip.

Name Layer 1 'Text' and make two more layers called 'shape' and 'actions'. Make sure the 'shape' layer is below the 'Text' layer and then with the 'shape' layer selected draw a box around the text. Change the fill and the borders of the box to white in the properties panel.

Now click on frame '1' of the 'shape' layer and in the properties panel change the tween to 'shape'. Now click on frame '20' and using the scale tool hold the small box at the right of the shape and drag it right until it is as far as u want it, and change the color to blue.

Ok, now select frame '1' and in the properties box change ease to '100'.

Now select all the frames in the 'shape' layer and right click; now select 'Copy frames'. Now select frame '21' and right click; now select 'Paste frames'.

Select frames 21 to 40 in the 'shape' layer and right click; select 'reverse frames'. That is the shape bit done. Now for the text.

Now click on frame '1' of the 'text' layer and in the properties panel change the tween to 'motion'. Now click on frame '20' and move the text to the edge of as far right as u want it (inside the colored box still).

Now select frame '1' and in the properties box change ease to '100'.

Now select all the frames in the 'text' layer and right click; now select 'Copy frames'. Now select frame '21' and right click; now select 'Paste frames'.

Select frames 21 to 40 in the 'text' layer and right click; select 'reverse frames'. That is the texy bit done. Now for the actions.

In frame '1' of the 'actions' layer press F9 to open up the actions panel and type 'stop();'

now go to frame '20' of the 'actions' layer and enter 'stop();' into that aswell. We are nearly done.

Go to the main timeline (outside the movieclip) by double clicking in a blank space. on frame '1' put this code:

on(rollOver){
if(_currentframe == 1)
gotoAndPlay(2)
}
on(rollOut){
if(_currentframe<20){
gotoAndPlay((20-_currentframe)+20)
} else { gotoAndPlay(_currentframe)
}
}

and you are done! test your movie to see if it worked and enjoy... This tutorial was made by www.nastycritter.com

1

» Level Basic

Added: : 2006-05-29
Rating: 4.83 Votes: 6
Hits: 2573
» Author
Joe Turner, Owner of Nastycritter.com, from England...
» Download
Download the files used in this tutorial.
Download (0 kb)
Get conversion and unzipping tools for PC and Mac here!

» Forums
More help? Search our boards for quick answers!

Please rate this tutorial, 10 is the top rating, you can also click the comments link to read/write a review.
10 9 8 7 6 5 4 3 2 1
Read or Post Comments