[Papervision3D] Flex with PV3D. How to make a Plane in a canvas to accept the events?
j2me_soul
j2me_soul at 163.com
Wed May 6 06:45:16 PDT 2009
Hi all,
I put some planes in the viewport in a canvas.
But the planes can't accept any mouse-click event from canvas.
I set the viewport.interative = true, material of each plane = true, but it dosen't work.
What should I do now ?
/*
* In the ReflectionWall class, for each Plane setting a function
* p = new Plane(ma,_imageWidth, _imageHeight, _seg, _seg);
* p.addEventListener(InteractiveScene3DEvent.OBJECT_CLICK, planeClickEvent);
*/
private var ref:ReflectionWall;
private function init():void{
ref = new ReflectionWall("images/Belle.png",100, 100, 54, can.width, can.height);
can.rawChildren.addChild(ref);
ref.camera.zoom = 50;
addEventListener(Event.ENTER_FRAME, ref.render);
}
<mx:Canvas id="can" width="1000" height="750" />
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20090506/90015d82/attachment.html>
More information about the Papervision3D
mailing list