you can try using the centerPivot() method to adjust the pivot point of the object without adjusting it's position?
head.centerPivot(); or if that's not good enough, you can adjust the pivot point and position manually: movePivot(0, yOffset, 0); moveTo(0, yOffset, 0); hth! Rob On Tue, Jun 9, 2009 at 8:37 AM, Julien Barbay <[email protected]>wrote: > > Put it into a container just as if you were dealing with 2D movieclip : > > //create the head and a container > head = new MovieClip > container = new MovieClip > > //place the head at the good position > head.y = yOffset; > > //add the container to the scene so it's still 0,0 > addChild(container) > > //add the head to the container at the new place > container.addChild(head) > > // the head will be rotated from its parent pivot point > container.rotation = 45; > > > > Cheers > > Le 9 juin 09 à 07:52, kakakarlus a écrit : > > > >> greetings, >> >> i want to get the center of the head piece... heres an image link: >> >> http://img520.imageshack.us/img520/6664/89816478.jpg >> >> its pivot point is at 0,0,0 and its .center property is at 0,0,0 >> too... >> >> if i get the maxX its at 1900+ and its minX is at -1900 (add both and >> divide by two equals 0) >> >> is there anyway i can get the object's height from the hair to the >> neck? >> >> -kakarlus >> > > -- Rob Bateman Flash Development & Consultancy [email protected] www.infiniteturtles.co.uk www.away3d.com
