On 5/19/06, Gordon Smith <[EMAIL PROTECTED]> wrote:

>     var v:EdgeMetrics = super.viewMetrics;

> your local variable v now contains a reference to the SAME EdgeMetrics instance that the Container is using; v and some var in the Container instance are "sharing" the same object. When you then assign

>     v.left =  ...

> you are modifying the shared EdgeMetrics instance.
<...>

By the way, I'd like to point one caveat I've run into a few times.
Properties like 'filters' (DisplayObject) and 'scrollRect'
(DisplayObject) return a *copy* of the object. Simply modifying the
value does't work: it needs to be assigned back. Properties like
'viewMetrics', on the other hand, return a direct reference.


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