Оживил пламя свечей:

Код:
function createfitil(svecha){
svecha.createEmptyMovieClip("fitil", ++depth);
with (svecha.fitil) {
a = 8;
lineStyle();
colors = [0xffdab5, 0xffc58a, 0xffb56a, 0x908fb4, 0xafcdfe];
alphas = [100, 100, 50, 30, 100];
ratios = [0, 75, 165, 200, 250];
matrix = {a:2.0*a, b:0, c:0, d:0, e:4*a, f:0, g:0, h:-2*a, i:0};
beginGradientFill("radial", colors, alphas, ratios, matrix);
moveTo(0, 0);
curveTo(-a/2, 0, -a/2, -a);
curveTo(-a/4, -3*a, 0, -3*a);
curveTo(a/4, -3*a, a/2, -a);
curveTo(a/2, 0, 0, -0);
endFill();
_x = 5;
}
svecha.fitil.dScale = 15*Math.random();
svecha.fitil.dRotation = 2*Math.random() - 2*Math.random();
svecha.fitil.onEnterFrame = plamfitil;
}
function plamfitil(){
if(this._yscale>130 || this._yscale<100) {
this.dScale = -this.dScale;
this.dRotation = -this.dRotation;
}
this._yscale += this.dScale;
this._rotation += this.dRotation;
}