First time here? First time here? Newsletter Signup Newsletter
651326 Members and growing! | Flash Jobs
Search tutorials
Author: www.Nastycritter.com | Website: http://www.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

» Level Basic

Added: 2006-05-29
Rating: 6 Votes: 6
(10 being the highest)
» Author
Joe Turner, owner of Nastycritter.com, lives in England..
» Download
Download the files used in this tutorial.
» Forums
More help? Search our boards for quick answers!

Comments

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

  • You must have javascript enabled in order to post comments.

Leave a Comment
  • Your email address will not be published. All fields are required.
Featured Flash FLA
» Author: doc_chin7
» Description:

The flash's horizontal road drive was done in CS4 and was upgraded to CS6. The car responds to right/ left key and flash will auto-generate the movement of roads from left-right or right-left based on random number. Have fun driving in this virtual environment and avoid other cars... :) If you are creative, a road driving game can be created from it.

Featured Sound Loops
Image for equalize

Audio Player

» Author: BoxCat
» Title: CPU Talk
» Description: From the cyberpunk RPG, "Nameless: the Hackers" Completely Free to use! Keywords: edm hip hop rap electronic mysterious mission hacking chase exciting spy ios ambient chilling love happy sad angry suspense
Latest Font
» Author: Fábio FAFERS
» Description: I created this font for free use. Everyone can apply it in personal or business texts. Its free, but I want to be communicated in case of business use. Donations are accepted to keep the project of free fonts alive! Thank you all
Featured Sound Fx
Image for equalize

Audio Player

» Author: nathan
» Description:

A recorded sound of the Dimensional Fork Gate.