Flash Tutorials
& Resources
Dreamweaver
Tutorials
Fireworks &
Illustrator Tutorials
Photoshop
Tutorials
Web Design
Tutorials & Resources
CSS
Tutorials
CorelDraw
Tutorials
You are here : : Home > Free Resources > Flash Tutorials & Resources > Adding Animation and Button Interactivity   

Flash Tutorials

Basics

Animation & Effects

Actionscript

Creating a Website

Miscellaneous

Flash Articles

Free Flash Resources

Other Flash Resources

Adding Animation and Button Interactivity

This is a tutorial on how to add animation through movieclips and button interactivity.

This is part of a 6 part tutorial series on how to create a Flash website using Flash CS5. The tutorial covers the following :

  1. Creating a web template using Photoshop

  2. Importing a Photoshop file in Flash CS5

  3. Adding sounds and animation to buttons

  4. Adding Animation and Button interactivity

  5. Adding a Preloader

  6. Publishing the Flash content

Start with downloading the flash file where you imported the website layout created in the photoshop  and later imported in flash in the previous tutorial (click here to download the photoshop file).

  1. Open the flash file that you downloaded from the above given link and create a new movie clip by pressing CTRL+F8, enter the symbol name as ravishing rings in the Create New Symbol dialog box and choose OK.

  2. Choose Window> Properties from the main menubra and set the stage background colour to dark grey so that the text that will be entered in the white color is visible.

  3. Also, choose Window > Library from the main menubar and use the assets in the Library to arrange the images, as shown in Figure.


    Make sure that all the four images are placed on separate layers and name it as 1 to 4 starting from the left most figure.  (For creating a new layer and naming them, refer to the previous tutorial).

  4. Arrange the layers as shown in Figure below.



  5. Make moviclips of the all the images, as discussed earlier and name them as 1,2,3,4 as per there layer name. In the layer1, select frame number 16 in the timeline and press F6 to create a keyframe there.

  6. Next, move to layer 2 and add keyframe at frame 10. Select the keyframe at frame 10 and use the left arrow button to move the respective movieclip below movieclip 1.

  7. Lock the layer1 and select the movieclip 2 at frame10 and choose Window>Properties from the main menubar. From the Color Effect drop-down select Alpha and set its value to 0 at frame 10. Next, at the bottom right of the properties panel choose the Add Filter button and choose Blur from the flyout and set the values, as in Figure.



  8. Move, your cursor at frame5 in the timeline of layer2 and right click on the frame and choose Create Classic Tween, a straight line with one arrow at the right most frame is created indicating that the tweening has been added to that layer. Scrub the play head to view the motion of the movieclip.

    Incase you are not getting the tweening effect, refer to the following figure and repeat steps 6 to 8 again.



  9. Repeat the same steps for all other layers. For layer 3 the end frame should be 13 in the timeline and for layer4 it should be frame number 15.

  10. Move back to layer 1 and unlock it and add a keyframe at frame 19 in the timeline and add the glow filter to it with the X&Y value to 15 and quality to high. Next, add motion tweening in between the frames 15 to 19.

  11. Again, add a keyframe at frame 23 and change the glow filter value to 10 in the PROPERTIES panel and add motion tweening there also.

    After adding tweening to all the four layers , the timeline should look as in Figure below.



  12. Choose frame23 and choose Window>Code Snippets from the main menubar to display the code snippets panel and expand the Timeline Navigation rollout, as shown in Figure.



  13. Double-click on the Click to Go to Frame and Play option in the Code Snippets panel, a message box asking you to add a default instance name to the movieclip will appear, as shown in Figure. Choose OK to add the script on frame23.



    A new layer with the name Actions is added to the timeline with a keyframe at frame 23. The keyframe has an a symbol indicating that it has an actionscript 3.0 code over it.

  14. Select the keyframe with actionscript and press F9 to see the code, the actions panel is displayed. At the bottom of the code, replace 5 with 17, refer Figure.


    The script indicates that whenever the playhead will come at frame 23 it will be reverted back to frame 17 and it will go in a loop making the glow animate.

  15. Next create a new layer at the bottom of the timeline and name it as textbox. Create a rectangular box on that frame with a linear gradient of black(right) to red(left). Make it a movieclip and name the movieclip as textbox. Add a blur filter to it. The movieclip will look as in figure.


  16. In the textbox layer choose frame23 and press F5 to create frames. Next, make sure that you have a keyframe at frame1 (alpha=0), frame12(alpha=0), frame16 (alpha=100). Add motion tween between frame 12 and 16.

  17. Create a new layer above the textbox layer and name it as text. Create a text area over the textbox and the desired text. Next, create a movieclip of this text area with name as text. Repeat the same steps as in point 16 for this layer also.

    Scrub the playhead in the timeline or press ENTER to view the transitions. Before proceeding further make sure that the timeline looks as in figure below



  18. Now move back to scene1 by choosing the Scene1 icon at the top left of the stage area.

  19. Choose View> Rulers from the main menubar to display the rulers in the stage area. Move your cursor to the horizontal ruler, press and drag to create cyan colored guideline.  Adjust it to the top of the image.

  20. Similarly, drag a vertical guideline to the leftmost border of the first image. Repeat the steps to create a guide box enclosing all the four images, refer Figure.



    The guides will help us place the movieclip we created in the tutorial at the right place which will help in smoother transition of the tweening we created.

  21. Choose the RAVISHING RINGS text at the bottom of the first image and press F8 and name it as rrings and convert it into a button. Select the rrings button and choose Click to go to frame and stop from the Timeline navigation area of the Code Snippets panel.

  22. Create one more layer in the timeline and rename it as home. Add the HOME text in the stage area at this frame and place it at the top menu before the COLLECTIONS text. Select the text and make it a button symbol as discussed earlier. Also, add the click to go to frame and stop functionality to this button using the code snippets and modify the script such that it stops at frame1. Choose frame5 in the home layer and choose F5.

  23. Next, choose frame1 of the home layer and press F9 and write the following script code in the actions panel
    stop();
    This code will help stopping the playhead to run to the next frame unless guided to do so at runtime.

  24. Next, move the cursor at frame5 and choose F6 for all the active frames in the timeline. Select the 4 images in the stage area and delete them. Next, choose the frame 5 of ravishing rings layer and open the library panel by pressing CTRL + L.

  25. Drag the ravishing rings movieclip on the stage area and align it in between the guides.

  26. Press CNTRL + ENTER to view the functioning of two buttons: RAVISHING RINGS and the HOME button. Click on the RAVISHING RINGS button to redirect to its related frame refer Figure.



  27. Repeat the same steps to add transition for the remaining three images. Make sure everytime you do the create a transition all the main images should come at the same position as is there in this case.

Proceed to Step 5 >> Adding a Preloader


Now building a website is as easy as 1-2-3!

Please Like, Tweet, Share or Comment on this page if you found this tutorial/resource useful!

No portion of these materials may be reproduced in any manner whatsoever, without the express written consent of Entheos. Any unauthorized use, sharing, reproduction or distribution of these materials by any means, electronic, mechanical, or otherwise is strictly prohibited.


Looking for high-quality Flash Website Design? Choose from over 6000 templates!

Gorgeous Page Roll Image Transition Effect in Flash

Creating Page Curl Transition

Creating a Rotating 3D Planet in Flash

Creating Realistic 3D Planet

Best Flash Photo Gallery Website Templates

Best Flash Photo Gallery Website Templates

Burning Image Effect in Flash

maskmn_image055

Realistic Rippling Water Animation in Flash

r_water

Awesome 3D Flash Website Templates

Awesome 3D Flash Website Templates

 

Featured Template
Template # 58167
Type: Landing Page Template
Price: $14

Flash Photo Galleries