The face is accessible (on top of my head, its late) from event.drawpri.faceVo.face
you should find all the info you need in there
more in doc at FaceVo

Fabrice

On Nov 28, 2009, at 12:48 AM, Lars Schwarz wrote:

sorry, but it seems a need a little more help...

        roundedcube = new RoundedCube({width:200, height:200, depth:200,
radius:5, faces:{left:phongMat1, right:phongMat2, bottom:phongMat3,
top:phongMat4, front:phongMat5, back:phongMat6}});
        roundedcube.addOnMouseDown(onCubeMouseDown);

        function onCubeMouseDown(event:MouseEvent3D):void {
                var object:Object3D = event.object;
                trace(object);
        }

even object returns NULL... also there is no faveVO object the debugger says...

thanks: lars

On Fri, Nov 27, 2009 at 8:54 PM, Fabrice3D <[email protected]> wrote:
a regular MouseEvent3D event returns you along with other objects, a favevo
object... facevo.face.

Look at doc for details.

Fabrice


On Nov 27, 2009, at 6:07 PM, Lars Schwarz wrote:

4th post today, guess away3d is missing some tutorials or i haven't
found them yet :)

how do get the clicked face on a rounded cube? the cube is using a
PhongMovieMaterial on each
Fade and added a MouseEvent3D listener to the cube itself (not to the
material, or the faces because
this doesn't seem to work in away3d?).

the event is firing, but how do i reference to clicked face (left,
right, top, bottom....) and get it's name?

4th thanks today: lars





--
Lars Schwarz
Heiligengeist Höfe 2
26121 Oldenburg
T +49(0)441 36110338
M +49(0)151 1727 8127
W www.bitrocker.com
TWTTR: www.twitter.com/bitrocker

Reply via email to