There is no concept of a registration point for a DisplayObject (or for a UIComponent). You'll have to implement what you want to do by changing the DisplayObject's x and y properties at the same time as you change scaleX and scaleY, in order to keep a particular "registration point" at a fixed location.

 

- Gordon

 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Tapper
Sent: Friday, August 11, 2006 5:52 AM
To: [email protected]
Subject: [flexcoders] Adjusting registration point?

 

Does anyone know if there is a built in mechanism in AS3 to adjust a
DispalyObject's registration point? I've written an AS2 class to do this
with previous versions, but before i port that over to as3, I'm curious if
anyone has found an easier way. What I'm looking to do is control where an
image grows or shrinks from as its x and y scale are adjusted.

any thoughts?

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to