Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

actionscript animating motion path

Posted on 2007-03-24
7
Medium Priority
?
857 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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 found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
Suggested Courses

609 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