PDA

View Full Version : Wheel motion


marel
05-22-2005, 04:07 AM
hey, people! I think this one is easy! I have an animation of a truck which is stopped. It starts to move on frame 330. So I was sinchronizing the wheels putting 330 static frames in the "wheels" movieclips which are inside the "truck" movieclip. It works fine the first time, but when it loops it de-sinchronizes and the wheels start moving before the truck moves.
So, as I have been studying a bit of AS lately :o I thought it would be a better way to do it.

What Iīve been doing is
_root.truck.wheel.play();
but it doesnīt work...
Any suggestions?
Thanks a lot!

senocular
05-22-2005, 04:23 AM
If you want, dont animate the wheels at all and just use actionscript to animate their rotation.

An old example, but it shows the process by which you can rotate a wheel based on movement:
http://senocular.com/flash/source.php?id=0.86

marel
05-22-2005, 06:27 PM
Well... I think I understand get the script right, cuase it didnīt work on the truck movie. But it worked on another project Iīm working on :p Thanks! But anyway... I really wanted to know just how to play a movieclip INSIDE a movie clip from the main timeline in a specific frame... Do you know?
Thanks a lot!