This is very strange. Doesn`t work for the plane but if I add the code for the table (roundedCube) for example, works.
Lucas On Tue, Mar 3, 2009 at 7:59 AM, Fabrice <[email protected]> wrote: > you need add MouseEvent3D... > try > card.addOnMouseDown(onPlaneMouseDown); > > rest should work... > > > Fabrice > > > On Mar 3, 2009, at 11:44 AM, Lucas Guilherme wrote: > > Hello, > > > Here is my code: > > http://www.assembleia.org.br/CardBar.zip > > Take a look o line 260: I`m adding the click event for the Plane > but didn`t work. And the same code on the Awaw 2.2 version works. > > BR, > Lucas > > On Sat, Feb 21, 2009 at 10:16 AM, Rob Bateman <[email protected]>wrote: > >> >> hey Lucas >> >> Sorry to hear your're still having trouble with plane. The best thing >> to do at this point is to create a compilable class that illustrates >> your problem, and send it over so that we can debug. At the moment, we >> seem to be having trouble repilcating your problem, and without bring >> able to replicate, it's difficult to offer help! >> >> Cheers >> >> Rob >> >> On 2/20/09, Lucas Guilherme <[email protected]> wrote: >> > Hello all, >> > >> > Thanks but I found the problem. I don't know where is the problem but >> when I >> > return to the 2.2 version works and in the 2.3 version doesn't work >> > the plane mouse click event. >> > >> > Anyone know why? >> > >> > BR, >> > Líbiny >> > >> > On Fri, Feb 20, 2009 at 5:07 PM, Peter Kapelyan <[email protected]> >> wrote: >> > >> >> About what Fabrice said, if something is blocking the way, you can use >> >> this >> >> to take off interactivity to make sure >> >> >> >> my_non_interactive_object.mouseEnabled=false; >> >> >> >> -Pete >> >> >> >> On Fri, Feb 20, 2009 at 1:51 PM, Fabrice <[email protected]> wrote: >> >> >> >>> you have something preventing the mouse detection somewhere. do you >> have >> >>> something above the scene, other listenners running? is the map alpha >> 0? >> >>> >> >>> desable first all the others and try. When it works, then set the >> others >> >>> back one by one, and you'll know witch one is conflicting. >> >>> or add a trace in you mouse down listenners... >> >>> >> >>> Fabrice >> >>> >> >>> >> >>> On Feb 20, 2009, at 7:22 PM, Lucas Guilherme wrote: >> >>> >> >>> Didn't work. >> >>> >> >>> But if I change my plane to a RoundedCube works. >> >>> >> >>> Anyone can help me? >> >>> >> >>> BR, >> >>> Líbiny >> >>> >> >>> On Fri, Feb 20, 2009 at 1:41 PM, giuseppe mastrangelo < >> >>> [email protected]> wrote: >> >>> >> >>>> Hello, >> >>>> >> >>>> Here a piece of code that works (I used the last version of Away3D >> >>>> released few days ago) >> >>>> >> >>>> { >> >>>> ... >> >>>> _plane3d.addOnMouseDown(onPlaneMouseDown); // note: _plane3D is an >> >>>> instance of Plane >> >>>> ... >> >>>> } >> >>>> >> >>>> >> >>>> private function onPlaneMouseDown(event:MouseEvent3D):void >> >>>> { >> >>>> // your code here! >> >>>> } >> >>>> >> >>>> >> >>>> Giuseppe >> >>>> >> >>>> >> >>>> >> >>>> >> >>>> On Fri, Feb 20, 2009 at 1:01 AM, Lucas Guilherme >> >>>> <[email protected]>wrote: >> >>>> >> >>>>> No didn't work. >> >>>>> >> >>>>> This is my code >> >>>>> >> >>>>> //MY PLANE >> >>>>> var cardPausA = new Plane( {width:72, height:96, segmentsH:1, >> >>>>> segmentsW:1 } ); >> >>>>> cardPausA.material = new BitmapMaterial(Cast.bitmap(pausA)); >> >>>>> cardPausA.scale(50); >> >>>>> cardPausA.x = -4000; >> >>>>> cardPausA.z = 11000; >> >>>>> cardPausA.y = -9600; >> >>>>> cardPausA.rotationY = 150; >> >>>>> >> >>>>> //MOUSE LISTENER >> >>>>> cardPausA.addOnMouseDown(oncardPausAMouseDown); >> >>>>> function oncardPausAMouseDown(event:MouseEvent3D):void { >> >>>>> // set the clicked mesh a new material >> >>>>> trace("clicou"); >> >>>>> } >> >>>>> >> >>>>> //THIS MOUSE IS TO ROTATE THE CAMERA - Maybe these events below is >> >>>>> causing problems for my plane? >> >>>>> stage.addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown); >> >>>>> stage.addEventListener(MouseEvent.MOUSE_UP, onMouseUp); >> >>>>> >> >>>>> My project is here: >> >>>>> http://www.encontrocristao.com.br/away3d/CardBar.html >> >>>>> Please take a look. I want when click in the middle card, they will >> >>>>> distribute for the "invisible" players but >> >>>>> didn't work, so I created the button Distribute. >> >>>>> >> >>>>> Any idea with this mouse events? >> >>>>> >> >>>>> BR, >> >>>>> Líbiny >> >>>>> >> >>>>> >> >>>>> On Thu, Feb 19, 2009 at 9:46 PM, Rob Bateman >> >>>>> <[email protected]>wrote: >> >>>>> >> >>>>>> MouseEvent should be MouseEvent3D >> >>>>>> >> >>>>>> let us know if that works! >> >>>>>> >> >>>>>> Rob >> >>>>>> >> >>>>>> >> >>>>>> On Thu, Feb 19, 2009 at 11:12 PM, Lucas Guilherme >> >>>>>> <[email protected]>wrote: >> >>>>>> >> >>>>>>> Hello, >> >>>>>>> >> >>>>>>> I'm using this code to get clicked event in a plane >> >>>>>>> >> >>>>>>> myPlane.addOnMouseDown(planeMouseDown); >> >>>>>>> >> >>>>>>> function planeMouseDown(event:MouseEvent):void { >> >>>>>>> trace("clicked"); >> >>>>>>> } >> >>>>>>> >> >>>>>>> and didn't work. >> >>>>>>> When I put the same code for a RoundedCube for example, works. >> >>>>>>> >> >>>>>>> Any idea? >> >>>>>>> >> >>>>>>> BR, >> >>>>>>> Líbiny >> >>>>>>> >> >>>>>> >> >>>>>> >> >>>>>> >> >>>>>> -- >> >>>>>> Rob Bateman >> >>>>>> Flash Development & Consultancy >> >>>>>> >> >>>>>> [email protected] >> >>>>>> www.infiniteturtles.co.uk >> >>>>>> www.away3d.com >> >>>>>> >> >>>>> >> >>>>> >> >>>> >> >>> >> >>> >> >> >> >> >> >> -- >> >> ___________________ >> >> >> >> Actionscript 3.0 Flash 3D Graphics Engine >> >> >> >> HTTP://AWAY3D.COM >> >> >> > >> >> >> -- >> Rob Bateman >> Flash Development & Consultancy >> >> [email protected] >> www.infiniteturtles.co.uk >> www.away3d.com >> > > >
