This is version that throws the error when used with spark 4.5sdk
https://github.com/away3d/away3d-core-fp10
I tried the second, took some time to download, it didn’t work either.
So I created new project with only mx components.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:mx="library://ns.adobe.com/flex/mx" layout="absolute" minWidth="955" minHeight="600" applicationComplete="application1_applicationCompleteHandler(event)">
<fx:Script>
<![CDATA[
import away3d.containers.View3D;
import mx.events.FlexEvent;
private var _scene:View3D;
protected function application1_applicationCompleteHandler(event:FlexEvent):void
{
_scene = new View3D();
scene.addChild(_scene);
addEventListener(Event.ENTER_FRAME, eventEnterFrame);
}
protected function eventEnterFrame(event:Event):void
{
_scene.render();
}
]]>
</fx:Script>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<mx:UIComponent id="scene" width="100%" height="100%" />
</mx:Application>
Error:
ReferenceError: Error #1065: Variable _init is not defined.
Line:
/src/away3d/core/utils/Init.as:114