usually setting an alpha of 0.01 is invible to eye, yet interraction remains...
Fabrice On Nov 29, 2010, at 12:43 PM, Andrea Silvestri wrote: > I want a plane to be completely transparent without removing the possibility > to interact with it (don't worry, the visual about where this plane is, is > given by other elements) > > Il 29/11/2010 12:39, Darcey Lloyd ha scritto: >> >> 1. If I want a material with parts semi transparent and parts with no >> transparency I use png materials. >> >> 2. plane.addOnMouseDown will still work when with owncanvas alphad out >> materials. >> >> EG: http://www.allforthecode.co.uk/splash/choice/ >> >> 3. If you want only parts of the material to be interactive use >> moviematerial and handle the event Listeners for the mouse the usual way >> through the movieclip which is used for your moviematerial. >> >> D >> >> >> >> >> >> >> On 29 November 2010 11:27, Miroku <[email protected]> wrote: >> Anyone? >> >> On 24 Nov, 18:55, Miroku <[email protected]> wrote: >> > Hi everyone, >> > I wanted to make some parts (visually based on the texture) of a cube >> > to be interactive. >> > When I have to do such thing in 2D with Flash I usually make a >> > MovieClip of the shape I want, add it on the stage with an instance, >> > put it's alpha to 0 and then add all the eventListeners I want. >> > >> > Now I wanted to do the same thing with Away3D. I tried with >> > primitives.Plane (shape which fits perfectly to my needs). >> > But I immediatly encountered a problem: I don't manage to make it >> > transparent. >> > >> > Here is my code:http://pastebin.com/2RAwhVXn >> > >> > If I add a >> > ownCanvas = true; >> > >> > I get this horrific result:http://dl.dropbox.com/u/4064417/board.JPG >> > >> > without it I get simply this:http://dl.dropbox.com/u/4064417/board2.jpg >> > >> > Anyone knows why this happens and how to fix it? >> > Another question, will I be able to add mouse interaction once I >> > manage to make the plane totally transparent? >>
