Solved

actionscript animating motion path

Posted on 2007-03-24
7
822 Views
Last Modified: 2008-02-01
is there a way where i can use actionscript to attach a movieclip to a line drawn with the pen tool on the stage and have it move along the line?

i am having some ideas of working on some animations which has a set of movieclips that will move in a irregular motions and i thought if i could have them attached to a line which i had drawn(or rather defined) on the stage, then things could be easier?

i am not really sure if this is even possible but if not, what are some other ways i could do this?

thanks. :)
0
Comment
Question by:rogerfreak
  • 3
  • 2
7 Comments
 
LVL 23

Expert Comment

by:Zeffer
ID: 18787498
you can tween motion along a path like your line.
Open Flash Help..click..Using Flash/Creating Motion/Tweening Motion along a path

Tells you how to do it along with illustrations and an example.

Z
0
 

Author Comment

by:rogerfreak
ID: 18787520
i mean using actionscript and not manually on the stage.
0
 
LVL 23

Expert Comment

by:Zeffer
ID: 18787617
but you said >>a line drawn with the pen tool on the stage and have it move along the line?<<
why do that and then want to use actionscript?..when there is an established method to do this.

I think this has come from the 'Let's ask a difficult question because we can' .. Handbook

Z

0
 

Author Comment

by:rogerfreak
ID: 18787811
this is because there are a lot of many different movie clips i need to load from the library to attach to the path. and these movie clips are loaded randomly to attach to the line to move.
0
 
LVL 23

Accepted Solution

by:
Zeffer earned 125 total points
ID: 18788916
you could do it with the tween class if you wanted to plot each point that the clip will travel to..but you would not be 'attaching' to the line..but following the same co-ordinates.
what the class can do and how to use it is described well here..
http://www.kirupa.com/developer/actionscript/tween.htm

Z
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now