code:
mc = createEmptyMovieClip("flame", 1);
mc._x = Stage.width/2;
mc._y = Stage.height/2;
mc.lx = -40;
mc.rx = 40;
mc.tx = 0;
mc.ly = mc.ry = -30;
mc.ty = -120;
mc.onEnterFrame = function() {
with (this) {
lx += (lx<-50) ? 5 : (lx>-30) ? -5 : Math.random()*2-1;
rx += (rx>50) ? -5 : (rx<30) ? 5 : Math.random()*2-1;
tx += (tx>10) ? -5 : (tx<-10) ? 5 : Math.random()*2-1;
ly += (ly<-40) ? 5 : (ly>-20) ? -5 : Math.random()*2-1;
ry += (ry<-40) ? 5 : (ry>-20) ? -5 : Math.random()*2-1;
ty += (ty<-130) ? 5 : (ty>-110) ? -5 : Math.random()*2-1;
clear();
lineStyle(1, 0, 0);
beginGradientFill("radial", [0x000033, 0xFFFF99, 0xFFFFCC], [40, 90, 80], [0, 130, 255], {matrixType:"box", x:-40, y:-120, w:80, h:270, r:0});
moveTo(0, 0);
curveTo(lx, ly, tx, ty);
curveTo(rx, ry, 0, 0);
}
}