[Papervision3D] event on face cube
lijko
lijko at lijko.org
Tue Sep 11 01:56:36 PDT 2007
Hello,
i've already post a topic about cube's face interactivity. So, nobody
answers ;-)
i post my code, and really, i don't see where's the problem
//le clip
_mc = new Sprite();
_mc.name = "_mc";
_mc.graphics.beginFill( 0x663366, 50);
_mc.graphics.drawRect(0, 0, 200, 200);
_mc.graphics.endFill();
//le cube
_materialFront = new InteractiveMovieMaterial(_mc);
_materialFront.name = "materialFront";
_ml = new MaterialsList();
_ml.addMaterial(_materialFront, 'front');
_ml.addMaterial(new InteractiveColorMaterial(0x00ff00, 100), 'left');
_ml.addMaterial(new InteractiveColorMaterial(0x0066ff, 100), 'right');
_ml.addMaterial(new InteractiveColorMaterial(0xff00ff, 100), 'bottom');
_ml.addMaterial(new InteractiveColorMaterial(0x00ffff, 100), 'back');
_ml.addMaterial(new InteractiveColorMaterial(0xffff00, 100), 'top');
_cube3D = new Cube(_ml, CUBE_SIZE, CUBE_SIZE, CUBE_SIZE, 10, 10, 10);
_cube3D.materials.getMaterialByName("front").addEventListener(MouseEvent.MOUSE_OVER,
handleMainOver);
_scene.addChild(_cube3D);
thanks a lot if somebody could say what is wrong......
--
View this message in context: http://www.nabble.com/event-on-face-cube-tf4421177.html#a12610639
Sent from the Papervision3D mailing list archive at Nabble.com.
More information about the Papervision3D
mailing list