Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error 1046 #1

Open
flashbladez opened this issue Jul 24, 2014 · 1 comment
Open

Error 1046 #1

flashbladez opened this issue Jul 24, 2014 · 1 comment

Comments

@flashbladez
Copy link

I have just downloaded away3d via tortoisesvn and get this error when I try to run the test program I have for falsh pro cs6

C:\phpdev\www\public\away3d_src\Away3D\src\away3d\core\managers\Stage3DManager.as,
Line 29 1046: Type was not found or was not a compile-time constant: Stage3DManagerSingletonEnforcer.

[email protected]

any advice how to sort this appreciated thanks

@flashbladez
Copy link
Author

//Below is the test flash program

import away3d.cameras.Camera3D;
import away3d.containers.Scene3D;
import away3d.containers.View3D;
import away3d.core.math.Number3D;
import away3d.core.render.Renderer;
import away3d.primitives.WireCube;
//scene is the root container of all 3d objects
var scene:Scene3D;
//view is a Sprite container used for storing camera, scene, session,
//renderer and clip references, and resolving mouse events
var view:View3D;
//Camera is ... well, a camera :-)
var camera:Camera3D;
var cube:WireCube;
initAway();
init();
/*** FUNCTION DEFINITIONS ****/
//initialize this movie

function init():void {
//create a WireCube object
cube = new WireCube();
//add the cube to the scene
scene.addChild(cube);
addEventListener(Event.ENTER_FRAME, onEnterFrame);

}

//initialize away3d core objects

function initAway():void {
var centerPoint:Number3D = new Number3D(0,0,0);
scene = new Scene3D();
camera = new Camera3D();
camera.x = 100;
camera.y = 200;
camera.z = -1000;
camera.lookAt(centerPoint);
view = new View3D();
view.x = view.y = 200;
view.scene = scene;
view.camera = camera;
view.renderer = Renderer.BASIC;
//add the view to the DisplayList
addChild(view);
}

//handle enterFrame event

function onEnterFrame(e:Event):void {
//render away3d view
view.render();
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant