Ah nice :) Thanks guys :) 2 more quick Q's on the same subject: 1. Is it possible to apply a unique material (colormaterial) on each of the vertices? or even at a push an interactive moviematerial? 2. Is it possible to apply unique interactivity for mouse event on each vertice? or would this have to be applied to the sphere as a whole?
Darcey 2009/2/28 Peter Kapelyan <[email protected]> > Something like: > > myPrimitive.vertices[int(mouseX/20)].x=mouseX; > > will change your vertices int he primitive > > -Pete > > On Fri, Feb 27, 2009 at 7:17 PM, Darcey Lloyd <[email protected]>wrote: > >> Hi Fabrice, >> >> Cheers for the info, but I guess I poorly worded what I need, apologies. >> >> Take this image for example (something quickly googled): >> >> http://www.yellowpipe.com/yis/tutorials/ps7/img/ps_3D_sphere/ps_3D_sphere05.jpg >> >> Each white or blue square (plane) making up the sphere, I would like to >> manipulate each individual one. >> >> Is this possible via the sphere class or would I need to construct a >> sphere out of planes? >> >> >> Darceu >> >> >> >> 2009/2/27 Fabrice <[email protected]> >> >> >>> Hi Darcey, >>> just store the instances as you wish into a class var array, object >>> etc... >>> you can then access them when you want to. >>> >>> var plane:Plane = new Plane(); >>> myarray.push(plane); >>> >>> on enterframe >>> myArray[i].rotationY = 90; >>> >>> or >>> >>> loop >>> oPlanes["p"+i] = plane; >>> >>> on enterframe >>> oPlanes.p0.rotationY = 90; >>> oPlanes.p1.rotationY = 90; >>> >>> or loop >>> Planes["p"+i] = rotationY = 90; >>> >>> Fabrice >>> >>> >>> On Feb 28, 2009, at 12:29 AM, Darcey wrote: >>> >>> >>>> Hi, >>>> >>>> Is there a way of accessing each individual plane/segment plate >>>> (unsure on name) of the sphere class (or any primitives), I would like >>>> to be able to manipulate the location of each plane/segment. Would >>>> this be possible on the cube class also? >>>> >>>> I am using the latest trunk. >>>> >>>> Thanks >>>> >>>> Darcey >>>> >>> >>> >> > > > -- > ___________________ > > Actionscript 3.0 Flash 3D Graphics Engine > > HTTP://AWAY3D.COM >
