O'Reilly logo

Away3D 3.6 Cookbook by Michael Ivanov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Interactive animation of text along a path

You can create more fun with TextField3D by attaching it to a path. Away3D has got a special modifier class named PathAlignModifier that attaches a TextField3D text to a user specified path, transforming its shape accordingly to the path curve. Let's see how it works!

Getting ready

  1. Follow the same steps as described in the Getting ready section of the previous recipe.
  2. Create a new class that extends AwayTemplate and give it a name Text3DAnimDemo.as.

How to do it...

In the following example, we will create interactive animation of the text along a predefined path:

Text3DAnimDemo.as

package { public class Text3DAnimDemo extends AwayTemplate { [Embed("assets/fontsEmbed.swf", mimeType="application/octet-stream")] ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required