Showing posts with label FLASH. Show all posts
Showing posts with label FLASH. Show all posts

Wednesday, 13 June 2012

Create an Animated Car Banner using Flash CS5


In this tutorial, you will learn how to create an animated banner using Flash CS5. You will learn how to create a car moving on a road with its tires spinning. You can also download the free .fla file of the banner animation.


Here we will create a banner of size 728x300. To start with the tutorial download the tutorial.zip file that will provide you with the necessary files to be used in the tutorial.
1.       Open a new flash file. Choose Window > Properties from the main menubar thePROPERTIES panel is displayed as shown in figure below
1.JPG
Choose the Edit button under the PROPERTIES area in the panel, the Document Settingswindow is displayed. Set the dimensions as 728(WIDTH) and 300(HEIGHT) and choose the OKbutton to make the changes.
2.       Rename the existing layer as buildings and choose File > Import > Import to Libraryfrom the main menubar and import the files downloaded at the starting of the tutorial.
3.       Choose Window > Library from the main menubar; the LIBRARY panel is displayed. Pull the building images to the stage area and align it as shown in Figure below.

2.JPG

4.       Select the image and choose Modify > Convert to Symbol from the main menubar and name this movieclip as building_animation.
5.       Double-click on the movieclip and select the building image and create a moviclip again and name it as building. Rename the layer as anim_building.
6.       Select frame 460 and add a keyframe. Select the building movieclip and open thePROPERTIES panel and se the X value to -1450. Publish the file to see the animation. If at any point of time you find a jerk in the animation please adjust the position and frames of the building movieclip accordingly.
7.       Go to the main stage area and create a new layer named road. Choose the Rectangle Tool from the Tools panel and create a box at the bottom of the building area and align it as shown in Figure below. Make sure that the color of the road is set to #171717.

3.JPG

8.       Next, create a new layer named road strip and create a grey and white rectangular pattern using the Rectangle Tool from the Tools panel, as shown in Figure below. Make sure that the length of the road strip pattern is almost equal to that of the buildings.
4.JPG
9.       Select the road strip and choose the Free Transform Tool from the Tools panel and distort the road strip as shown in Figure below. Make sure  that the color of the grey part in the strip pattern is similar to that used in road.
5.JPG
10.   Choose Modify > Convert to Symbol from the main menubar and name it as road strip. Select the movieclip and choose Modify > Convert to Symbol again and name it as road strip animation. Place this animation in the center of the road as shown in Figure below.
6.JPG
11.   Animate the road strip as you did for the building movieclip. But make sure that the speed of the road strip is double as compared with the moving speed of the buildings. Publish the flash file to see the transition in the animation.
12.   Next, move back to the main stage area and create a new layer and name it as logo. Drag the logo.jpeg file from the LIBRARY panel and place it in the scene by first scaling it down as shown in Figure below.
7.JPG

13.   Create a new layer in the main stage area and rename it as footpath. Create the footpath using the Rectangle Tool as shown in Figure below. Make sure to match the length of the footpath series with the road strip.
8.JPG

14.   Align the foothpath as shown in Figure below.
9.JPG
15.   Animate the foothpath similar to the road strip with the same speed. Publish the flash file to see the effect.
16.   Next, in the main stage area create a new layer and rename it as car. Choose Modify > Convert to Symbol and rename it as car. Double click on the car movieclip and create a new layer and rename it as tyre_front.  Zoom in the to the front tyre area in the screen and create a pattern using the Rectangle Tool as shown in Figure below.
10.JPG

17.   Make this pattern as a movieclip and renmae it as tyre_mask. Double click on this movieclip and rename the existing layer as bg and selec the cross pattern again and choose Modify > Convert to Symbol from the main menubar and rename it as spokes. Choose Window > Properties from the main menubar and add blur filter to it.
18.   Next, create a new layer over it and rename it as mask. Create an oval shape exactly the shape of the rim of the car as shown in Figure below.
11.JPG

19.   Activate the bg layer and create keyframes at frames 3 and 6. Rotate the spokes movieclip at frame 3 by around 180 degrees and add motion tween between the keyframes.
20.   Next, activate the mask layer and chose frame 6 and press F5 to extend the frames. Now, right click on the mask layer and choose Mask from the drop-down list, spokes will be visible only in the rim area as shown in Figure below.
12.JPG

21.   Similarly, add the same effect to the rear wheel. Move back to the main stage area and double click on the car_animation movieclip and create a keyframe on frame number 40. Move the car movieclip a bit in the top right position. Next, add another keyframe at frame number 75 and place the car in the bottom right position. Add one more keyframe at frame 115 and place the movieclip in the top left position. Add the last keyframe on frame 190 and place the moviclip at the same position as it was on frame1. Add motion tween between the all the keyframes.
22.   Position the car on the main stage area as shown in Figure below.
13.JPG
23.   Publish the flash file to see the banner animation.
24.   You can also use this banner animation for creating an banner advertisement for mercedes benz. To do so, create one more layer in the stage area and rename it as text and add it in the scene and make it fly in the stage area and then stop as shown in Figure below.
14.JPG
25.   Publish the flash file to get the animation as shown below.
15.JPG

Motion Guide in Flash


What is Motion Guide?

Motion Guide is nothing but moving your symbol in a predefined path such as curves or circles. Learn how to move Flash objects in circular, zig zag or curved paths using Flash motion guide. Download .fla is included at the end of the tutorial. 


This tutorial will explain on how to create motion guide in Flash MX 2004.
Please note: 
1. You need to have Flash Player 7.0 installed to view the Flash animation. 
2. Flash MX 2004 must be installed in your system to download the .fla file.

Steps to follow :

  1. Create a graphic symbol or drag a pre-existing graphic symbol from library onto the stage. Name the layer as "graphic"
  2. Right click on the "graphic" label and select "Add Motion Guide" from the pop-up window.
  3. A new layer will appear on top of the "graphic" layer with the label "Guide:graphic" along with the guide icon.
  4. Draw the path for your symbol in this new layer using pencil or line tool.
    For example: I drew a circle for my car.
  5. Select frame 50 of guide layer and press "F5" to insert frames.
  6. Now go to "Frame 1" of "graphic" layer and drag your symbol to one end of your path. While dragging, you will see a bubble on the symbol. That bubble should go right below the path. Something like the one shown below.
  7. Now go to "Frame 50" of "graphic" layer and press F6 to insert a new keyframe.
  8. Now drag your symbol to other end of your path. Again, the bubble should go right below the path.
  9. Select any frame between 1 to 50 of your "graphic" layer. Right click and select "motion tween" from the pop-up menu.
That's it, you are through. Press Ctrl+Enter to view your work.

Bouncing Effect in Flash


Demonstration
This tutorial will teach you how to create a bouncing effect animation using Motion Tween and Shape Tween in Flash MX 2004. The .fla download file is included at the end of the tutorial.
Please note:
1. You need to have Flash Player 7.0installed to view the Flash animation.
2. Flash MX 2004 or higher must be installed in your system to download the .fla file.

In the demonstration, the bouncing heart animation is created using motion tween and the shadow effect using shape tween.

TO CREATE MOTION TWEEN
Steps to Follow :
Create a Symbol
  • First draw an object for Motion Tween.
    Like in the above demonstration I used heart.
  • Select the object you have drawn and press F8 to convert this object to a Symbol.
  • In the Symbol window which appears now. Name this object heart_mc, choose Movie clip behavior and bottom center square for registration. Press OK.
Create a Motion Tween
  • Double click on the Layer and type "Heart".
  • Select Frame 30 and press F6 to insert a keyframe.
  • Select Frame 15 and press F6 to add another keyframe.
  • With the playhead still on Frame 15, hold the Shift key to move the heart_mc in a straight line, and drag the heart_mc up.
  • Select any frame between Frames 2 and 14 and select Motion from the tween pop-up menu in the Property inspector.
  • Select any frame between Frames 16 and 29 and select Motion from the tween pop-up menu in the Property inspector.
  • Press Ctrl+S to save your changes.
Create a Shape Tween
  • Insert a new Layer and call it "Shadow".
  • Select the first frame in the Shadow Layer, draw borderless shadow relevant to your Symbol.
  • If your Color Mixture Window is not open, press Shift+F9 to open it.
  • Select Eyedropper tool from your Tool box. Click it on your shadow. Now go to Color Mixture Window and type 25% for Alpha value.
  • Select Frame 30 and press F6 to insert a keyframe, then select Frame 15 and press F6 to insert a keyframe.
  • With the playhead on Frame 15, select the Free Transform tool. Slightly reduce the size of the Shadow.
  • With Frame 15 still selected, select the Eyedropper tool in the toolbar, and then click on your shadow object. Now go to Color Mixture Window and change Alpha value to 10%.
  • Select any frame between Frames 2 and 14 on the Shadow layer. In the Property inspector, select Shape from the Tween pop-up menu.
  • Select any frame between Frames 16 and 29 on the Shadow layer. In the Property inspector, select Shape from the Tween pop-up menu.
Now its time for Final touch up
  • Select Frame 1 of the Heart layer. Press F6 to add a keyframe. A new keyframe is added, and the playhead moves to Frame 2.
  • Go back to frame 1, select the Free Transform tool from your toolbox.
  • Select the transformation center point (the small circle near the center of the movie clip) and drag it to the bottom of the heart. On the Stage, drag the upper middle transform handle down to slightly compress the heart shape.
  • Right-click Frame 1 of the heart layer and select Copy Frames from the context menu. Go to 29th frame and press F8 to insert a new keyframe. Right-click 29th frame and choose Paste Frame from the context menu.
  • Click on the Stage, away from any objects. Type "28" in the Frame Rate text box of your Property inspector window.
  • On the heart layer, select any frame between Frames 2 and 14. Then in the Property inspector, in the Ease text box, type 100. Similarly select any frame between Frames 16 and 29 in the same layer, then go back to Property inspector window and type -100 in the Ease text box. Do the same thing to the Shadow layer.
Press Ctrl+Enter to view your animation.