liors
July 10th, 2003, 02:36 PM
Hi guys,
I have a movie right now that has a preloader that then moves to the next frame where I want a line to scroll down the screen until a certain point and then stop and center itself (as well as stretch across the screen).
I am running into a few problems though, and the line keeps scrolling down the screen. This is the code I'm trying to use:
onClipEvent (enterFrame) {
speed = 2;
if(this._y != 395) {
this._y += speed;
}
this._x = 700 /2;
this._width = 700;
}
Which is a modification of the movement tutorial on this site. What I'm getting now is just the line growing to be the screen width and centered, but it just keeps of scrolling down. How can I make this work and stop at the y coordinate 395?
Thank you very much,
Lior
I have a movie right now that has a preloader that then moves to the next frame where I want a line to scroll down the screen until a certain point and then stop and center itself (as well as stretch across the screen).
I am running into a few problems though, and the line keeps scrolling down the screen. This is the code I'm trying to use:
onClipEvent (enterFrame) {
speed = 2;
if(this._y != 395) {
this._y += speed;
}
this._x = 700 /2;
this._width = 700;
}
Which is a modification of the movement tutorial on this site. What I'm getting now is just the line growing to be the screen width and centered, but it just keeps of scrolling down. How can I make this work and stop at the y coordinate 395?
Thank you very much,
Lior