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

Creating 3D objects from 2D vector data

SWF movies can serve not only for material in Away3D, but also for creating 3D mesh objects. In this recipe, you will learn how to convert Flash native vector data into Away3D objects.

Getting ready

  1. Open Adobe Flash and draw a circle in the middle of the stage.
  2. Wrap it with MovieClip. The last thing we need to do before we are done is to set a linkage name so that Away3D can find the graphic symbol it needs to parse. Right-click on the MovieClip and select the Export for ActionScript checkbox.
  3. Publish the movie.
  4. Now set up a basic Away3D scene using the AwayTemplate class. Make sure you put the compiled SWF into your project's assets folder. Alternatively, you can use AnimatedSWF.swf which you can find inside ...

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