Welcome, Guest. Please login or register.
Did you miss your activation email?
02/08/12, 14:20
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  General
| |-+  Flash 8 (Moderators: Jorge Solis, ..:: Mazhar Hasan ::.., Andresss)
| | |-+  motion guide with actionscript?
0 Members and 3 Guests are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: motion guide with actionscript?  (Read 3162 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: 14593


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.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!