|
|
Search Tutorials
Setting Up the Color Changing Box Movie
Firstly, open a new Flash file. Then create a movie clip instance and name it "ChangingBox". In the first frame of the clip ChangingBox create a simple square using the box drawing tool. Choose any color you desire. It does not have to be perfectly square but should be close. The top left corner of the box should be placed at (0,0) x and y point, otherwise known as "origin". In the fourth, seventh, tenth, and thirteenth frame insert a Keyframe. Return to the first frame and make a shape tween. Do the same in the fourth, seventh and tenth frame. Also change the color of the box in the fourth, seventh, and tenth frame by using the paint bucket. In the thirteenth frame, which should be the same as Frame 1, add the action... Goto and Play (1) When the Flash movie is complete, it is these 13 frames running again and again which lends the boxes their altering color effect. Now add a Keyframe in Frame 14, label it "commence", and create a Motion Tween. In the Flash example, the box flips horizontally twice before completely disappearing, in your movie you may prefer to have it just simply disappear. For now, we shall use the example. Place a keyframe in frame 16 and 18. In frame 16, have the box flip horizontally (click on frame 16, Modify, Transform, Flip Horizontal). Go to frame 18, click on the box and set its alpha to zero, which will allow it to fade out. In frame 19 insert a Clear Keyframe (you may have to remove the tween in this frame) and add two actions to the frame. The first will be "Remove Movie Clip ("")" and the second is "Stop". In order to create the mouseover button, copy Frame 1. Then create a new symbol, make it a button and name it BoxButton. In the first frame of the BoxButton instance paste the frame you just copied and remove the shape tween. Then return to the Changing Box Movie.
|
||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||
|