Try playing with the horizontalCenter and verticalCenter settings too. I've
had some luck with that and scaling.
---nimer

-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gordon Smith
Sent: Wednesday, October 04, 2006 7:15 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Changing registration point for <mx:Resize> effect

No, there is no concept of registration point. You'll have to play a Move
effect in parallel with the resize effect, or write your own effect that
does both.

- Gordon


-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Andriy Panas
Sent: Wednesday, October 04, 2006 4:00 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Changing registration point for <mx:Resize> effect


Hello flexcoders,

    Is it possible to control the coordinates registration point when
  <mx:Resize> component is applied?

    By default, Flex components define the registration point on the upper
left corner (0,0).

    When <mx:Resize> effect is applied to any Flex 2 container, say
<mx:VBox>, the component right and bottom border lines change its position,
while left and top border lines remain at the old positions.

    I'd like to set registration point to the center of the Flex 2 container
(width/2, height/2) while applying <mx:Resize> effect to allow changing the
position of all 4 container border lines (top, bottom, left, right).

ps
    In Flex 1.5 days Animation Package
(http://www.alex-uhlmann.de/flash/animationpackage/)
by Alex Uhlmann came to the rescue in the similar situation when needed
emulate custom setting of the registation point for MovieClip, but Animation
Package is still in AS 2.0, and nothing similar had been released yet for AS
3.0 that I am aware of.

--
Best regards,
 Andriy                          mailto:[EMAIL PROTECTED]
-----
Нелимитированный трафик в хостинг-пакетах! http://mirohost.net/
    


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






 




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






 





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

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

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



Reply via email to