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 |
| » Author |
| Joe Turner, owner of Nastycritter.com, lives in England.. |
| » Download |
| Download the files used in this tutorial. |
| Download (0 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


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