|
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???
|
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
|
|
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?
|
|
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
|
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
|
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.
|