Welcome, Guest. Please login or register.
Did you miss your activation email?
09/02/10, 19:35
Home Help Search Login Register
News:
Loading and saving data to different external resources (txt files, databases) using AS3

+  Flash-db
|-+  General
| |-+  Flash 8 (Moderators: Jorge Solis, ..:: Mazhar Hasan ::.., Andresss)
| | |-+  motion guide with actionscript?
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: motion guide with actionscript?  (Read 2310 times)
skitzer
Jr. Programmer
**
Posts: 84


View Profile
« on: 11/15/06, 14:35 »

Is there a way to write a scripted animation like creating a motion guide in actionscript?  I want a ball to move along a set path that never changes.  The path is the same, but certain objects move along it depending on user choices so I can't do the animation at design time.
Logged
Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14429


View Profile
« Reply #1 on: 11/15/06, 15:20 »

If the path can be described in mathematical ways, usually regular forms (in example waves using sine) AS could be an option, if the path is irregular, then could be much more difficult (or almost impossible)

Jorge
Logged

skitzer
Jr. Programmer
**
Posts: 84


View Profile
« Reply #2 on: 11/17/06, 13:01 »

The path is an oval or a set size.  I've been using this prototype to do it, but it is in actionscript 1 code: http://proto.layer51.com/d.aspx?f=952

I posted on here asking for an alternative to this prototype, but in AS2.
Logged
endevered
Server what's that
*
Posts: 5


View Profile Email
« Reply #3 on: 11/17/06, 14:18 »

you could write the necessary coords. to an array and then cycle through them using setInterval.

-
Logged
skitzer
Jr. Programmer
**
Posts: 84


View Profile
« Reply #4 on: 11/17/06, 14:54 »

Yeah, I did that now.  I thought it'd be harder than it was.  Thanks folks  Smiley
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!