Solved

actionscript animating motion path

Posted on 2007-03-24
7
808 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
Comment Utility
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
Comment Utility
i mean using actionscript and not manually on the stage.
0
 
LVL 23

Expert Comment

by:Zeffer
Comment Utility
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
Comment Utility
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
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
HTML 5 or Flash 7 475
Crash with shockwave flash 8 227
free photo watermark software 5 65
Adobe Indesign CS6 4 74
I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
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…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
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.

772 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

13 Experts available now in Live!

Get 1:1 Help Now