I am trying to get a movie to move along the x axis by clicking on a button…that is the easy part, what I couldn’t figure out is how to make it so the movie appears to “slide” “glide” whatever…into the next position
thanks!
This might help you
http://www.kirupa.com/developer/mx/ASmovement.htm
or maybe this:
http://www.kirupa.com/developer/flash5/slidingmenu.htm
MovieClip.prototype.slideX = function(tX){
this.onEnterFrame = function(){
this._x > tX-1 && this._x < tX+1 ? delete this.onEnterFrame : this._x = tX-(tX-this._x)/1.2;
}
}
// Usage:
yourmovieclip.easeX(250);