Frame 1
function createParticle() {
particleDepth++;
var _local1 = capture_mc.attachMovie("star", "star_mc" + particleDepth, particleDepth);
_local1._x = capture_mc._xmouse;
_local1._y = capture_mc._ymouse;
_local1._xscale = (_local1._yscale = 25 + (75 * Math.random()));
var _local2 = (Math.PI*2) * Math.random();
_local1._rotation = (_local2 * 180) / Math.PI;
_local1.vx = particleSpeedInit * Math.cos(_local2);
_local1.vy = particleSpeedInit * Math.sin(_local2);
_local1.onEnterFrame = starParticle;
}
function starParticle() {
this._x = this._x + ((this.vx = this.vx * particleSpeedDec));
this._y = this._y + ((this.vy = this.vy * particleSpeedDec));
this._xscale = (this._yscale = this._yscale * particleScaleDec);
if (this._xscale < 10) {
this.removeMovieClip();
}
}
Stage.scaleMode = "noScale";
var scalefactor = 0.95;
var angle = 0.1;
var particleSpeedInit = 10;
var particleSpeedDec = 0.9;
var particleScaleDec = 0.9;
var particleDepth = 0;
this.createEmptyMovieClip("vortex_mc", 1);
this.createEmptyMovieClip("capture_mc", 2);
var vortex_bmp = (new flash.display.BitmapData(300, 300, true, 0));
var capture_bmp = (new flash.display.BitmapData(300, 300, true, 0));
vortex_mc.attachBitmap(vortex_bmp, 1);
var transmatrix = (new flash.geom.Matrix());
var transcolor = (new flash.geom.ColorTransform());
transmatrix.scale(scalefactor, scalefactor);
transmatrix.translate(((-vortex_bmp.width) * scalefactor) / 2, ((-vortex_bmp.height) * scalefactor) / 2);
transmatrix.rotate(angle);
transmatrix.translate(vortex_bmp.width / 2, vortex_bmp.height / 2);
onEnterFrame = function () {
createParticle();
capture_bmp.draw(_root);
var _local2 = new flash.filters.BlurFilter(2, 2, 1);
capture_bmp.applyFilter(capture_bmp, capture_bmp.rectangle, new flash.geom.Point(0, 0), _local2);
vortex_bmp.draw(capture_bmp, transmatrix, transcolor, "normal", vortex_bmp.rectangle, true);
};