?
Solved

actionscript animating motion path

Posted on 2007-03-24
7
Medium Priority
?
853 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 500 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.
Suggested Courses

777 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