|
|
Search Tutorials
Animated ButtonSelect the first frame of the cube movie clip and copy it to the clipboard (CTRL+C). Return to the main timeline and insert a button symbol (CTRL+F8). Paste (CTRL+V) the first frame of the cube clip into the 'up' frame of the button and use the align tool (CTRL+K) to centre it. Select the 'over' frame and press F6 to add a keyframe, press delete and then drag the cube movie clip from the library and align it to the centre. If you have made a reverse rotation cube movie clip then you can insert it into the down frame, otherwise just press F6 again - and once again for the hit frame. The hit area needs to be defined by a solid shape - so select the square drawing tool and draw a square over the cube in the hit area frame. Return to the main timeline and drag a copy of the button from the library onto the stage and add an onRelease action to it.
|
||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||
|