Hello everybody. Here is my problem. In attached file I have square that moves through the entire page. I used an example of the square that was posted on this website as tutorial. I was woundering if anybody knew if I am able to stop this square at certian places with actionscripting. For example x=397 and y=123. Thank you very much for the help.
you can use easing for example:
select ur movieclip open the actions panel and paste this code
onClipEvent (load) {
speed = 5;
targetx = 397;
targety = 123;
}
onClipEvent (enterFrame) {
this._x += (targetx-this._x)/speed;
this._y += (targety-this._y)/speed;
}
hope that helps
any other questions just ask
and welcome to the forums!