Just to wrap this thread up with an answer;

What I discovered was happening is this;

My 'Container' does not use scrollbars, so in the Container.viewMetrics I didn't notice one simple line, or really read through it. It happened to be that if all the checks IE scrollbars, scrollpolicy equals true, just return the REFERENCE of borderMetrics.

So this solves my whole hummiliating journey through the doors of Container. ;-)

I learned a lesson, slapped wrist whatever!

Peace, Mike

On 5/19/06, Michael Schmalle <[EMAIL PROTECTED]> wrote:
Thanks Gordon, Manish

I know about references but, this taught me a new angle of it.

BTW, I have now got things balanced out, last night I basically discovered what Gordon was talking about. It's funny, you think you know sometihing and life teaches you a new perspective of what you thaught you knew.

Thanks, Mike


On 5/19/06, Manish Jethani < [EMAIL PROTECTED]> wrote:
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






--
What goes up, does come down.



--
What goes up, does come down.

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