nikel
nikel

Reputation: 653

AS3 - Moving a line through guide

I'm trying to animate a nodal with flash for teaching purposes. This is what I want to animate:

nodal

My questions:

  1. How can I move the line through a guide?
  2. Can guides hold z positions, so I could make the rope's top and bottom parts more real?
  3. Can a vector image (rope) move through a guide path?
  4. Which way is this possible, strokes or brushes?
  5. Does as3 scripting support "decorated brush" effects?
  6. Is there a simpler way to do this such as sandy or awake3d or beziercurves?

Upvotes: 0

Views: 588

Answers (1)

okayGraphics
okayGraphics

Reputation: 375

  1. If you're using the IDE like CS4 or CS5 there are some menu options to do this. I only use a text editor and Flex SDK to compile. While I know what you're talking about, I can't really answer this one since I don't have the program. There's plenty of tutorials on the subject, however.
  2. I believe the path-following tools in CS* only follow (x,y) coordinates. No Z values in the menus, but you can code them yourself. Again, I don't have the program, but from the tutorials I read it looks like no.
  3. I suppose it could. Instead of a line drawing like you have here, you could simply use an image of one rope segment (as in a picture of rope whose length is equal to one twist of the rope), then apply transformations to get the correct 3D perspective.
  4. Basic flash programs only draw fills. You can, however, run a shader program (called pixel bender) within flash which will draw strokes for you.
  5. Not on it's own, no. But there is nothing stopping you from programming your own decorated brush class.
  6. Bezier curves are probably the way to go.

Upvotes: 1

Related Questions