Frame 1
var parts = 60;
_quality = "low";
Stage.showMenu = false;
fscommand ("allowscale", false);
Mouse.hide();
_root.attachMovie("cat", "cat", 0);
var startAngle = 0;
getPoint = function (startX, startY, angle, way) {
var _local2 = startX + (Math.cos((angle * Math.PI) / 180) * way);
var _local1 = startY + (Math.sin((angle * Math.PI) / 180) * way);
return(new Array(_local2, _local1));
};
drawLines = function (parts, centerx, centery, startAngle, color) {
var _local6 = (360 / parts) / 2;
var _local1 = 0;
while (_local1 < (parts * 2)) {
var _local5 = startAngle + (_local6 * _local1);
var _local2 = getPoint(centerx, centery, _local5, 3000);
if ((_local1 % 2) == 0) {
moveTo(centerx, centery);
beginFill(color);
lineTo(_local2[0], _local2[1]);
} else {
lineTo(_local2[0], _local2[1]);
lineTo(centerx, centery);
}
_local1++;
}
};
MovieClip.prototype.easyMove = function (targetX, targetY, speed) {
var _local2 = "_$enterFrame&_";
this.createEmptyMovieClip(_local2, -100);
this[_local2].notDiff = 1;
this[_local2].targetX = targetX;
this[_local2].targetY = targetY;
this[_local2].speed = ((speed < 1) ? 1 : (speed));
this[_local2].onEnterFrame = function () {
this._parent._x = this._parent._x + ((this.targetX - this._parent._x) / this.speed);
this._parent._y = this._parent._y + ((this.targetY - this._parent._y) / this.speed);
if ((Math.round(this._parent._x - this.targetX) < this.notDiff) && (Math.round(this._parent._y - this.targetY) < this.notDiff)) {
delete this.onEnterFrame;
}
};
};
onEnterFrame = function () {
clear();
startAngle++;
drawLines(parts, _xmouse, _ymouse, startAngle, 0);
cat.easyMove(_xmouse - (cat._width / 2), _ymouse - (cat._height / 2), 2.5);
updateAfterEvent();
};
onMouseDown = function () {
Mouse.hide();
};