As you know, every flasher should create a flash site, a game and an experiment in 3D :) Now our hands have reached 3D. I liked the slogan: “No 3D demos in flash, give apps”, therefore, guided by what you like in this series of articles (lessons, tutorials - call it what you want) “Away3d Universe” you will pass a dear (I hope :)) way to create three-dimensional flash game.
In order to use the examples here, you need Flex Builder 3 with SDK version 3.2 or higher. Of course, Away3d can also be used with Flash CS3 / 4, but Flex Builder 3 seems to me much more convenient for the developer.
Having defined the toolkit, go to setting up the environment for projects with Away3d.
The first thing we need to do is squeeze the Away3d library for Flash Player 10 from svn -
http://away3d.googlecode.com/svn/trunk/fp10/Away3D/ - to the folder 3d3dFP10. Those who are too lazy to take from svn can download
the archive here . A small digression, I will use and compile under Flash Player 10, because the rendering gain increases by a third when rendering (in the 10th player, bitmap rasterization occurs at the player level, not the program code).
After that we open Flex Builder 3 and create a new Flex Library project “Away3dFP10”:


After the addition, we saw that the builder issued a whole list of build errors, due to the fact that the project is built by default under the 9th Flash Player. We will change the compilation mode under the 10th Flash Player. So the first thing to do is to go to the properties of the library project and open the Flex Library Build Path category:

where you need to remove playerglobar.swc, and then add another playerglobar.swc, which is located in c: \ Program Files \ Adobe \ Flex Builder 3 \ sdks \ 3.4.0 \ frameworks \ libs \ player \ 10 \ playerglobal.swc:

The Link Type parameter of the newly added playerglobal.swc needs to be changed to External:

Then you need to add the compilation parameter -target-player = 10.0.0.0:

This completes the installation of Away3d. In the next part, we will create the first project with a three-dimensional scene.