RESOLVED: Type was not found or a compile time constant: Context3D

Software: Away3D 4.x

coffeetime, Newbie
Posted: 22 September 2011 05:57 PM   Total Posts: 3

I am attempting to get Away3D to compile in Flash Builder 4.5. Here is what I have done.

1. Fetched latest Away3D from git (https://github.com/away3d/away3d-core-fp11).

2. Created a new Flex project and copied src/away3d and src/com from step 1 into that project’s source directory.

3. Added a single tag to my Main.mxml: <containers:View3D width=“300” height=“300”>

4. Uninstalled Flash and reinstalled the 32-bit content debuggers for Flash 11.

5. Copied the playerglobal.swc for Flash 11 into \flex_sdk_4.5.1.21328\frameworks\libs\player\11.0.

6. Set my project to use 11.0.0.

And after all this I still get 25 errors such as “Type was not found or was not a compile-time constant: Context3D”. All the errors stem from the following invalid imports:

import flash.display.Stage3D;
import flash.display3D.Context3D;
import flash.display3D.Program3D;
import flash.display3D.VertexBuffer3D;
import flash.display3D.textures.TextureBase;

Any help shining a light on what I’m doing wrong is very appreciated. I have tried the -swf-version=13 compiler argument and it didn’t help the situation.

   

coffeetime, Newbie
Posted: 22 September 2011 06:01 PM   Total Posts: 3   [ # 1 ]

And….. nevermind!

It seems as though when I downloaded playerglobal.swc I ended up copying the 10.0 one into the 11.0 directory rather than the downloaded one.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X