Candle & Flame Animation
Set up a random frame for the flame at the beginning Change the value of frames per second (FPS) for the flame by using actionscript. There is variable fps which controls this. Its initial value is 30, which means 30 fps. A value closer to zero means a slower movement Control oscillation for the flame movement by changing the variable range. Increasing the value for the range variable, will make the flame to look as the wind is moving it. For example: 20 would be a calm wind, while 40 would be strong wind and 60 would be an abrupt wind