
19.03.2004, 18:24
|
|
Регистрация: Mar 2001
Адрес: во сне
Сообщений: 2,701
|
no wonder, that u get whole load of the mess if u put one clip intop another. Just think about it for a second!
_root is flying after the mouse, yea? - no! _root's x and y are canging due to the mouse's x and y. Now, here is a simple example:
_root.onEnterFrame=function(){
_root._x+=1
_root.n._x+=1
}
what is the speed of the _root.n per second?
it's 2. -why? -Well, lets see:
_root is moving from the begining of the coordinats of the scene on the x axis with the speed of 1 unit (pixel) per frame, right?
_root.n is moving from the begining of the coordinats of the _root on the x axis with the speed of 1 unit (pixel) per frame, see?
step 1
--------
_root. moves to the right by one unit carrying _root.n inside itself, so _root.n moves to the rioght by one as well as the _root itself
step 2
--------
_root.n moves to the right by one utit (inside the _root), so it is one more unit yea?
so 1 unit in step one, and 1 unit in step two, what do we get when we add 1 and 1 together?
1+1=2!!!
i hope i does makes some sence to u.
__________________
I'm only happy when it rains.
Waka Laka
|