View Full Version : floating button
shadowrelm
04-19-2007, 11:07 PM
I want to creat some buttons that move onto the screen from every angle and come to rest in there proper place. I don't know if i can do this in flash alone or if i need to use action script. I have also thought of doing a fade in of the buttons from 0 alpha to 100. anyone know of any tuts that explain how to do this. ( I know they may be on this site but to be honest I just found this site and have to leave to meet a friend soon and don't have time to look so please forgive the noob.)
matbury
04-23-2007, 01:59 AM
You can do this easily without ActionScript:
Create a new movieclip (Ctrl F8 or Apple F8) give it a name an press enter.
You'll have to have all your buttons on seperate layers for this to work.
Set up a keyframe (i.e. on frame 1) with all your buttons in place (remember, each button must be on its own layer).
Insert new keyframes next to them (i.e. on frame 2). It should automatcally contain all the same elements as the first keyframe.
Go back to your first keyframe (frame 1) and move your buttons to where you want them to start their movement. Frame 2 will eventually be your last frame, frame 1 is your starting point.
Select all your first keyframes (frame 1) and in the properties inspector select Tween > Motion.
Insert more frames (about 10 or 20 frames should do to begin with) between your first and second keyframes (just pressing F5 will do this).
Press Enter to play the timeline and watch your buttons move towards their final position.
Remember to put a stop(); on frame 1 of the timeline. Otherwise, your movieclip will just play round and round, non-stop!
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.