Internet Commerce

Partners & Affiliates














Developer Channel

internet.com


Featured Flash FLA
Gallery Downloads 11373 Flash Movies | 1 New Flash Movies Added
What's New | Top 100

Featured FLA

» Author: adamiusz
» Title: Animated pageflip book
» Description: Animated page flip book basic pageflip.hu script
» More by adamiusz


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

Featured Site

» Posted in the Flash Kit Links section
» Title: Creadirectory Link Indexing Solution
» Description: Creadirectory is a very powerful and highly customizable directory building solution. It allows you to build a fully branded, search engine friendly link indexing system similar to that of Yahoo! and Dmoz, but only at a fraction of their cost. Its features include: Adsense inclusion, Dynamic inclusion of Alexa images, Paypal integration, dynamic (.asp) or static (.html) URLs, Dynamic google sitemap generation, Unlimited number of categories and sub-categories, Unlimited number of listings, Customizable header and footer, Customizable colors, IP filtering system, Email configuration, Reciprocal link option.


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

» CSS 3.0 animation features
» Making Chart & Flowchart of Annual Report Easily
» How to Export Many SWF to FLA at One Time on Mac?
» Building Software Training Assessment Easily
» Making Flash Photo Album for World Cup 2010
» How to make summer holiday travel photo gallery in flash
» Creating A Flash News Ticker Easily
» Embed flash video in website/blog
» How to convert video to flash for website or blog on mac?
» Unknown Tag: Title10
Random Tutorial | Add Site

Lead Web Developer
WATERFORD RESEARCH INSTITUTE
US-UT-Salt Lake City

Justtechjobs.com Post A Job | Post A Resume


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: 2569
» 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