FORUMS: list search recent posts

how to combine multiple movie clip

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
balaji kaliyaperumal
how to combine multiple movie clip
on Feb 12, 2013 at 4:44:35 am

Layer 1: Movie clip name CD

below coding object rotate by mouse

CD.getMouseRotation = function(){
var x = this._parent._xmouse-this._x;
var y = this._parent._ymouse-this._y;
return Math.atan2(y,x)*180/Math.PI;
};
CD.positionToMouse = function(){
this._lastrotation = this._rotation;
this._rotation = this.getMouseRotation() - this._clickrotation;
};
CD.spin = function(){
this._rotation += this.spinSpeed;
this.spinSpeed *= .9;
};
CD.onPress = function(){
this._clickrotation = this.getMouseRotation() - this._rotation;
this.onEnterFrame = this.positionToMouse;
};
CD.onRelease = CD.onReleaseOutside = function(){
this.spinSpeed = this._rotation - this._lastrotation;
if (this.spinSpeed > 180) this.spinSpeed -= 360;
else if (this.spinSpeed < -180) this.spinSpeed += 360;
this.onEnterFrame = this.spin;
};


Layer 2 : object rotate dynamic

object name AE

onEnterFrame = function(){
AE._rotation+=2;
}


how to combine multiple movie clip


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]