Solved

actionscript animating motion path

Posted on 2007-03-24
7
836 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SWFObject in temporary internet files - constant file transfer from web server 3 401
Updating Flash Player with GPO 3 357
Open Source MP4 Flash Player 2 189
Flash ActionScript 6 57
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
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 use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

829 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