Hello,
I am trying to get Away3D to work with Flash Builder 4.0 (build 272416) using Flex SDK 4.5.1 and currently, when I launch a Desktop project (Air), the launch fails immediately. Here is some background:
Using the Away3D source from here:
http://away3d.googlecode.com/svn/trunk/broomstick/Away3D
Installed
Flex SDK 4.5.1
Replaced the playerglobal.swc in frameworks/libs/player/10.2 with the updated version from here:
Installed both the 32bit and 64bit versions of the Flash Player 11 installs for both Active-x for IE Only and for all other browsers.
Installed the 32bit versions of the Flash Player 11 debugger
Configured my Flex Project’s compiler to use
-swf-version=13
Configured the Flex project so that it would reference the Away3D Flex Library Project I wrapped my Away3D source in.
Using the following ActionScript within a <fx:Script > script block within my main app’s MXML:
The code below results in no errors but will not run due to a configuration error within my environment
import away3d.containers.View3D;
import away3d.primitives.Cube;
import flash.display.Sprite;
import flash.events.Event;
import mx.events.FlexEvent;
// Private Variables
private var _view:View3D;
protected function windowedapplication1_creationCompleteHandler(event:FlexEvent):void
{
_view = new View3D();
_view.x = 275;
_view.y = 200;
this.addChild(_view);
this.addEventListener(Event.ENTER_FRAME, onEnterFrame);
var cube:Cube = new Cube();
_view.scene.addChild(cube);
}
private function onEnterFrame(event:Event):void
{
_view.render();
}
I have done all the steps above and when I try to run my project, the project immediately fails with the following message:
Process terminated without establishing connection to debugger. error while loading initial content
If I change the SDK to 4.0 (AIR2) & remove the swf-version declarative, then I am left with 70 some errors with many classes/references not being found.
Now, not being able to get Away3D working with Flex SDK 4.5.1, I decided to try to get Away3DLite to work by first, making sure I was using Flex SDK 4.0 and creating a Flex Library Project for Away3DLite source. It WORKED!
So Away3DLite worked, Away3D does not. The problem is, the book I’m learning 3D in Flash in requires Away3D :(
I appreciate any support or suggestions you might have and thanks for your time.
- Rick