Create animated eyes that blink, wink and following the mouse pointer using Flash...
Create a realistic particle based firework display using Flash. This technique was once us..
Creating Panoramic images from your photos is easier than you think, when you know how. So..
An extension to the Iris Porthole effect that incorporates 3D animation, to create a reall..
A collection of futurstic textures used in the Future city project...
Learn how to use the Photoshop lasso tool to great effect allowin..
A very cool tutorial on one of Photoshop CS3's fancy new tools, t..
If your learning Flash this is a must know, as it will help you t..
This is a very good tutorial for beginners who want to learn how ..
This speed painting video is a great way to see how you would go ..
This tutorial will teach you how to create realistic particle based firework display using Adobe Flash.
The first stage is to setup the flash movie and create the basic shape of the firework particle itself, this is made up of 3 basic shapes, a star, circle and elongated triangle. So go head and create a new movie in flash a width 500 x height 500 pixels then a background colour of black and Frame rate of 20.
First create a basic diamond shape using the line tool (you may want to set the line colour to white so that is it visible on the background) then fill this shape in with white using the "fill tool" shown above.
Next group this shape using the (CTRL + G), this will stop it interfering with other shapes. Next copy (CTRL + C) and paste (CTRL + V) another copy of this shape, then rotate this 90 degrees. Finally select both shapes by holding down the SHIFT key then group them as one (CTRL + G).
Next create a circle shape using the circle tool, then load up the Window -> Colour Mixer panel, set the type to radial and both of the colours to white. Finally select the right hand colour slider and set its Alpha to 0% (this will create a fade from the 100% slider to 0%, in order words white to transparent)
The final shape is created using a combination of these two previous techniques, simple create the shape with the line tool, fill it, then use the Colour Mixer to create a gradient 100% to 0% fade. The final step is to then use the Gradient Transform tool shown above to flip the gradient effect 90 degrees so that's its fades downwards.
Now left click on each of the shapes and press the (CTRL + G) keys to create each shape as a group (this is a good way of stopped you from accidentally distorting the shapes) Now position all of the shapes in the arrangement shown above, select all, now group them all together using CTRL + G. Finally right click on the new group "Create Symbol" and give it the name "particle".
This next step may seem strange but now you will need to click the "Scene 1" link at the top left of the timeline window this will take you back to the main timeline. Once here right click on your new "particle" movie clip and once again select "Create Symbol" this time give it the name "bang" this then sets the "particle" movie within a new movie titled "bang".
You should now be (or make sure that your are) in the movie clip editor for "bang", now left click on the "particle" movieclip and give it a global instance name in the Windows -> Properties panel shown above. Then right click on the first frame in the timeline and select "Actions" now enter the following action script code:
Translating this script into something you can understand goes like this n=8; n<50 basically means that it will generate a minimum of 8 and a maximum of 50 particles per bang. The rest of the script basically generates random directions, alpha amounts and sizes for the particles, if you look closely you can probably see this.
Close the "Actions" panel and double click on the "particle" movie clip so that you are editing its time line. Now resize the grouped shapes to about 20% of its original size (this will make it easier to animate)
Now we need to give this particle some motion, so you need to right click on frame 15 in the timeline. Now choose the "Insert Key Frame" option, next drag over all of the frames in the layer, right click and select "Create Motion Tween".
Once again click on frame 15 (left click this time) once you are on this frame click on the particle shape and move it about 100 pixels upwards (see above)
Next repeat the same step but this time create a new key frame at frame 30, now move the particle upwards about 50 pixels.
Once moved select the resize tool, then grab the top of the particle and adjustthe height to about 50% of its original size (see above).
Once again repeat this step this time insert a keyframe on frame 40, move the particle about 15 pixels upwards. To finish the effect set the alpha for this last frame to 0% in the Windows -> Properties panel.
You will also need to right click on the last frame select "Actions" and insert the following actionscript:
Before we test the final effect you will need to adjust some of your flash movies settings. First load up the File -> Publish Settings menu, select the "Flash" tab and set the version to "Flash Player 6" (this setting has to be applied as for some unknown reason the firework effect script will not function in any other versions) Now click "OK"
Next load up the Modify -> Document menu and set the frame rate to 24 fps (this will ensure a nice smooth firework animation)
Now save all your hard work, and test your movie with the Control -> Test Movie menu.
You should end up with something simular to the above. If not go back over the steps.
Send to a friend