[Papervision3D] I cannot get any mouse interactivity
aYo ~
ayo at binitie.com
Wed Apr 28 07:36:58 PDT 2010
Hi all,
This is supposed to be embarrassingly simple so I really have no idea why it
does not work. I have created 5 planes and have set them to listen to the
Interactive3DEvent. To my surprise none of them responds to the events at
all. Any pointers will be much appreciated
var bmm:BitmapMaterial=new BitmapMaterial(getNavData()[i]['bitmapData'],
true)
bmm.precise = true;
bmm.doubleSided=true;
bmm.smooth = true;
bmm.interactive = true;
_bitmapmaterialDic['bmm' + i]=bmm;
var p:Plane=new Plane(bmm, 200, 200, 20, 20);
_planesDic['p' + i]=p;
p.z=100
p.y=50
p.x= - 500 + (250 * i);
p.buttonMode = true
p.useHandCursor = true
p.addEventListener( InteractiveScene3DEvent.OBJECT_OVER,
interactiveobject3dHandler);
p.addEventListener( InteractiveScene3DEvent.OBJECT_PRESS,
interactiveobject3dHandler);
p.addEventListener( InteractiveScene3DEvent.OBJECT_OUT,
interactiveobject3dHandler);
Logger.info('Events added')
_basicview.scene.addChild(p)
i++;;
}
_basicview.startRendering();
~a~
www.designstreet.net
www.ayobinitie.com
http://mrbinitie.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20100428/f7252b1a/attachment.html>
More information about the Papervision3D
mailing list