Flash 8 Fire Effect
Fire effect is created using a particle fire effect in Macromedia flash. Multiple instances of this particle are then attached onto the stage, the main white working area in the middle. The particle is an animation that plays over and over again, and it disappears as it rises.
-
The Flame Particle
-
This is created using the Oval tool and made into a movie clip. The shape is circular.
The Flame Color
-
This is a radial color fill that forms a circular color pattern extending from the center out to the borders to depict a real flame color. Yellow occupies the middle and dark red on the edges which fade seamlessly.
-
Animation
-
The circle is converted into a movie clip symbol and moved up on the timeline (the area located above the stage with many small bars) and made to fade out as it moves up.
ActionScript
-
The movie clip is linked from the Library, located on the right of the stage, using the “Identifier” property and attached on stage using the ActionScript lines of code below:<br /><br />This.createEmptyMovieClip (“holder_mc”, this.getNextHighestDepth())<br />GO<br /><br />For (i=0; i<100;i++){<br /> var t:MovieClip = holder_mc.attachMovie (“fire”,”fire” +i, holder_mc.getNextHighestDepth())<br />GO<br /> t._y = 350<br />GO<br /> t._x = Math.random() *60 + (Sage.width/2-30)<br />GO<br /> t._xscale = t.yscale = Math.random()*80+20<br />GO<br /> t.gotoAndPlay (Math.ceil (Math.random()*16))<br />GO<br />}
Randomizing Effect
-
This is done by adding more instances of the particle, randomizing the particle rotations or making a gray background to look like smoke.
-
References
Resources
- Photo Credit Photos.com/Photos.com/Getty Images