Fermarli tutti:
codice:select = null; flag = false; MovieClip.prototype.path = this; MovieClip.prototype.init3D = function(angle) { this.sopra = false; this.y = 100; this.speed = 2; this.radius = 100; this.xcenter = 80; this.ycenter = 80; this.zcenter = 100; this.fl = 150; this.angle = angle; }; MovieClip.prototype.rotate = function() { if(!this.path.flag){ this.z = Math.sin(this.angle * Math.PI / 180) * this.radius + this.zcenter; this.scale = this.fl / (this.fl + this.z); this.x = Math.cos(this.angle * Math.PI / 180) * this.radius; this._x = this.x * this.scale + this.xcenter; this._y = this.y * this.scale + this.ycenter; this._xscale = this._yscale = this.scale * 100; this.angle += this.speed; if (this.angle > 359)this.angle -= 360; } }; MovieClip.prototype.hitControl = function() { if(this.hitTest(_root._xmouse, _root._ymouse, true)){ this.path.select = this; this.path.flag = true; } else { if(this.path.select == this){ this.path.select = null; this.path.flag = false; } } };

Rispondi quotando