context3D

Software: Away3D 4.x

Alok, Newbie
Posted: 21 July 2011 12:15 PM   Total Posts: 3

Hi Everyone,
I am really embarrassed getting the following error since long time

“1046: Type was not found or was not a compile-time constant: Context3D.

I want to learn this away3D quickly and to do some sample apps, but I am stuck at this point, Can anybody help me out???

   

Avatar
theMightyAtom, Sr. Member
Posted: 21 July 2011 01:25 PM   Total Posts: 669   [ # 1 ]

You get that message if you try to compile to Flash 10.
Are you using Flash CS5 or CS5.5? Make sure you’re targeting the right player and that your environment is set up correctly.

   

Alok, Newbie
Posted: 21 July 2011 01:49 PM   Total Posts: 3   [ # 2 ]

Thanks Peter for your reply, I am using CS5.5 but after installing flash player 11 I am not able to set it in publish setting. I can only see till flash player 10.3 in the lists

   

Avatar
theMightyAtom, Sr. Member
Posted: 21 July 2011 03:04 PM   Total Posts: 669   [ # 3 ]

Hi Alok, I’ve tried to write a brief guide to how to set things up.
Check it out and let me know how you get on smile
http://videometry.blogspot.com/2011/07/setting-up-cs5-and-cs55-to-target-flash.html

For using Away3D you also need an additional library, “OSMF” which you can dowload for free here:
http://sourceforge.net/projects/osmf.adobe/files/
(the 1.5 Release version is fine)

The latest Away3D framework uses a single class from this library, so you can’t successfully compile without it. Some of the sample files for Away3D 4.0 use EMBED tags, which require that you have Flex SDK installed. (that can also be downloaded for free)

The best of luck!

   

Alok, Newbie
Posted: 21 July 2011 05:44 PM   Total Posts: 3   [ # 4 ]

Thanks Peter for your early response.
I have followed your instructions and now I can set up flash player 11.
But I came across this error

Access of possibly undefined property viewPort through a reference with static type flash.display:Stage3D.

I have downloaded OSMF also. Can you guide me how to configure it?

   

John Brookes, Moderator
Posted: 21 July 2011 07:50 PM   Total Posts: 732   [ # 5 ]

Alok make sure your using
https://github.com/away3d/away3d-core-fp11

Peter, what osmf for?
I don’t use it and have no problems compiling.

   

Avatar
theMightyAtom, Sr. Member
Posted: 22 July 2011 06:31 AM   Total Posts: 669   [ # 6 ]

Alok, if you download the latest GitHub branch of Away3D, you won’t need OSMF

John, until yesterday Stage3DProxy.as included this import:

import org.osmf.events.BufferEvent;

I can see it’s just been removed. I’m guessing this class is available in Flash Builder, and it was only when compiling from FLash IDE you got an error if you didn’t have OSMF in your global class paths. Glad it’s gone smile

   

Alok, Newbie
Posted: 26 July 2011 10:59 AM   Total Posts: 3   [ # 7 ]

Hey Peter m totally confused, can you please suggest in simple way how do I proceed to make it work

   

Avatar
theMightyAtom, Sr. Member
Posted: 26 July 2011 12:06 PM   Total Posts: 669   [ # 8 ]

Hi Alok,
1. go to github and download the very latest Away4.0 for Flash 11
away3d / away3d-core-fp11
Note that this is *NOT* the broomstick branch.

That’s it. You no longer need any other libraries to compile Away3D in Flash CS5 IDE.

Any “viewPort” error means you’re using an older version of Away3D.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X