Oh, I feel stupid;

I guess it took a nights sleep and this odd sugar caffine combination to realize I can't see.

HA,

I had this line(which by the way, don't program like this, you will waste time just like I did)

var ms:MouseSizer = event.currentTarget.rawChildren.getChildByName("__mouseSizer__");

The mistake;

event.currentTarget.setChildIndex(mouseSizer , event.currentTarget.numChildren - 1);

I think it's obvious what is wrong here. I am not using the rawChildren list. THis is a perfect example of chaining things in a prototype project(quick and dirty) where it comes back and bites you hard.

This is the goods;

            var rawChildren:IChildList = IChildList(event.currentTarget.rawChildren);
            var mouseSizer:MouseSizer = rawChildren.getChildByName("__mouseSizer__") as MouseSizer;
            rawChildren.setChildIndex(mouseSizer, rawChildren.numChildren - 1);

Peace, Mike

On 5/18/06, Michael Schmalle <[EMAIL PROTECTED]> wrote:
Hi Adobe, it's me again...

Question;

I have a mouse sizer that embeds it's self in a Window at runtime. I use a static method MouseSizer.addInto(window) to intialize the window with resizing capabilities.

Now, I totally understand Container's partition, it's an awsome implementation for the problem that was faced. How do I get my mouse sizer to be placed in the end partition, not the beginning?

I have created an extended framework from Container and all my components subclass WorkSpace that is a subclass of Container. So my Window is of that chain. I adjust the viewMetrics(which ironically, never got an snswer on my post a few days ago, borderMetrics is still not acting logical!).

When I add the mouse sizer, it is above my bars, but below the content of the Container.(this makes sense, it's getting added at the beginning partition)

If I find the answer looking through the source I will post. If you could help out that would be great!

Peace, Mike

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