[flexcoders] Re: Polymorphism....?

2008-02-20 Thread Ryan Frishberg
Another good option would be to say ICloseable extends IUIComponent b/c IUIComponent is a Flex interface defined for you that has most of what you want. -Ryan --- In flexcoders@yahoogroups.com, b_alen [EMAIL PROTECTED] wrote: I wouldn't suggest you uptype to an IClosable interface. By doing

[flexcoders] Re: Menu direction: layout submenus to the left instead of right ?

2008-02-19 Thread Ryan Frishberg
There's a bug on this. Unfortunately, this didn't make it for Flex 3. Voting on bugs is always helpful to let us know what's useful btw. https://bugs.adobe.com/jira/browse/SDK-12409 The bug also includes some ideas on how to implement a workaround to get it to work. -Ryan --- In

[flexcoders] Re: Extending Tree component

2008-02-19 Thread Ryan Frishberg
Per your original question with the drop lines, there's a method called showDropFeedback() you can override. In the Flex Tree implementation, most of the work is done in a private function, updateDropData, so check that out for what you want to do. I'm not too familiar with the dragComplete

[flexcoders] Re: Tree Branch???

2008-02-19 Thread Ryan Frishberg
Check out dataDescriptor. You should be able to google (or search these forums) for it and get something on how to use this feature. If not, post back. -Ryan --- In flexcoders@yahoogroups.com, xmwang1982 [EMAIL PROTECTED] wrote: Thanks Raf, However, what I need is something called

[flexcoders] Re: Tree Branch???

2008-02-19 Thread Ryan Frishberg
be always displayed as a branch. However, the default of flex tree is, if the node doesn't have sub nodes, display it as leaf. So the question comes up, how to set isBranch property base on node names? Thanks a lot. --- In flexcoders@yahoogroups.com, Ryan Frishberg rfrishbe@ wrote

[flexcoders] Re: using const versus var

2007-12-16 Thread Ryan Frishberg
From what I was told, there's no runtime benefit; you just get an extra compile-time check for you. However, you could run a simple test to see. In the future, there may be some performance benefit to it as optimizations are made to Tamarin. -Ryan --- In flexcoders@yahoogroups.com, rueter007

[flexcoders] Re: addChild(bitmap) problems

2007-12-16 Thread Ryan Frishberg
Containers are really containers of UIComponents (Flex stuff only). You could add to rawChildren, but I think what Jason did is a better idea. He created a UIComponent, and then just added the non-Flex component to that. -Ryan --- In flexcoders@yahoogroups.com, Daniel Thompson [EMAIL

RE: [flexcoders] 1067: Implicit coercion of a value of type String to an unrelated type mx.core:Container.

2007-10-15 Thread Ryan Frishberg
It's because selectedChild takes a Container, not a String. Just change the type in your method declaration to: public function switchStack(stack_id:Container,title:String):void { When you call it, you are passing in a Container, so it should be fine. -Ryan