You could try to create a wrapper Container/DisplayObjectContainer for the DisplayObject, and x and y of DisplayObject to the negative of the registration point, and then scale the container.  That should work if I have my spacial relations correct in my head.  However, if you start to use flex containers you will probably start to have problems because the much of the DisplayObject is in negative space.  You can overcome that by overriding the x, y, width, and hieght of the container, but now we're back to overriding properties again.  I wouldn't call this solution easy (and I haven't tested it to see if it works), but it's another idea.

On 8/11/06, Jeff Tapper <[EMAIL PROTECTED]> wrote:
Ick, thats no fun at all!

At 05:05 PM 8/11/2006, you wrote:

>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
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/




__._,_.___

--
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