. |
.
- , - ... .
.
.
.
, , .
, .
, - . )))
, Macromedia Flash 8.
, , .
.
, .
. .
, , , , .
.
()Movie lip.
.
//
import flash.geom.ColorTransform;
//
//Mouse.hide();
// -
follower._visible = false;
/*
*/
this.onMouseMove = function() {
var d:Number = this.getNextHighestDepth();
var mc:MovieClip = follower.duplicateMovieClip('z'+d, d, {_x:_xmouse, _y:_ymouse, life:100, cacheAsBitmap:true, tr:new ColorTransform(1, 1, 1, 1, 255, 0, 0, 0)});
mc.onEnterFrame = function() {
moving(this);
};
};
/*
*/
function moving(mc:MovieClip) {
mc.life -= 2;
mc._xscale = mc._yscale=(400-mc.life*3);
mc._rotation += 6;
mc.transform.colorTransform = mc.tr;
mc.tr.redOffset -= 4;
mc.tr.greenOffset += 5;
mc.tr.blueOffset += 8;
mc.tr.alphaOffset -= 4;
if (!mc.life) {
delete mc.onEnterFrame;
mc.removeMovieClip();
}
}
: | / |