Hi
I have created a DisplayObject3D and filled this with Cubes (_allCubes), now I want to add mouse behaviour to it.
PHP Code:
public function cubeCreation($i:int/*$arr:Array*/):void
{
_viewport.containerSprite.sortMode = ViewportLayerSortMode.INDEX_SORT;
if(!_allCubes)
{
_allCubes = new DisplayObject3D();
for(var i:int = 0; i < $i; i++)
{
var cube:Cube = cubeFactory();
cube.name = "cube"+i.toString();
cube.x = i * CUBE_WIDTH;
_allCubes.addChild(cube);
_allCubes.visible = false;
}
_scene.addChild(_allCubes);
}
}
Both normal eventlisteners and interactivescene3deventlisteners don't work
What am I doing wrong?