diasf
02-21-2003, 02:35 PM
Hi everyone
I'm a complete Newbie (big N) to action script. I'm sure this one is easy to answer...
I managed to create a movie with action script... but in fact I can't understand how it worked...
All the actions were created in one movie, and with it a small plane flies over the screen. Something like:
....
plane._x=1
plane._y=1
if plane._x<200 {
plane._x+=1
plane._y+=1
}
...
This is not my real case, it's just to illustrate my question.
And the question is: How do the plane fly? This is just an if statement, but in fact the plane flies until is reached the point 200.200. How does action script (or flash... whatever...) knows this simple script is to be repeated until _x reaches 200?
I know... this is really simple... but I'd like if anyone could explain me.
Thanks.
:confused:
I'm a complete Newbie (big N) to action script. I'm sure this one is easy to answer...
I managed to create a movie with action script... but in fact I can't understand how it worked...
All the actions were created in one movie, and with it a small plane flies over the screen. Something like:
....
plane._x=1
plane._y=1
if plane._x<200 {
plane._x+=1
plane._y+=1
}
...
This is not my real case, it's just to illustrate my question.
And the question is: How do the plane fly? This is just an if statement, but in fact the plane flies until is reached the point 200.200. How does action script (or flash... whatever...) knows this simple script is to be repeated until _x reaches 200?
I know... this is really simple... but I'd like if anyone could explain me.
Thanks.
:confused: