1.First step is to make gradient source movie clip that make fire color and shape :
Use createCustomGradientMovieClip(..) function from MovieEx class to create custom gradient Movie Clip and pass drawFunc parameter which is a pointer to function which make a movie clip egg shape.
//create gradient movie that form the fire color
mcEx.createCustomGradientMovieClip(mcFire,"fireGradientSource",drawFunc,9,colors,alphas,ratios,
"pad","LinearRGB",0,new Point(0,0),null,width,height,90);
2.Second step need to create flame granularity texture.
Create perlinNoiseBitmap by using perlinNoise(...) function. Code that makes flame granularity in FireClass:
//creation of perlin noise bitmap for flame granularity
classObject.perlinNoiseBitmap.perlinNoise(classObject.sampleSize/2,classObject.sampleSize,3,
classObject.rnd,false,true,1,true,classObject.noiseOffsets);

5 most recent
Flash streaming servers
Tree menu
Flash Spell Checker
Flash Remoting Library
MX 2004 Chart/Poll
Articles