I am using an ActionScript 2.0 for my project. I have a movie clip that is moving along the x-axis. My problem is, I don't know how i can limit the movie clip on the given boundary because it moves continuously.
Here's my code:
onClipEvent (enterFrame) {
speed = 1;
this._x -= speed;
}
Remark : you should write your code directly on the timeline: