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

Setting dynamic text with TextField3D

Inside the Away3D primitives package, among numerous primitives, there is also one called TextField3D. It is quite different from the rest mainly because its form is 2D, which can be manipulated in a three dimensional world. In the following example you will learn how to set up a dynamic text with TextField3D and how to add to its shape a third dimension.

Getting ready

  1. The first thing we need to do is to embed fonts inside our application as TextField3D uses embedded fonts only. We will prepare an swf resource file with our font embedded into it. Open Adobe Flash; type some dynamic text right on the stage so that when compiling swf, it would contain the font data.
  2. Now, inside the text properties panel, make ...

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