I was responding to the original question of

> Can you open and close items at the same time with both of them tweening?

If you know how to do that I'd love to see it. :) Maybe I am misunderstanding this conversation...

Peace, Mike

On 9/18/06, bhaq1972 <[EMAIL PROTECTED]> wrote:

this can be done.



> at first I was thinking of keeping a register of what was opened so I
> knew what to close.

you dont have to. mx:tree has a property called openItems ..this has a
reference to all the opened items. all you have to do is check whether
anything is opened during a Tree.itemOpen event
eg
<mx:Tree id="tree1" itemOpen="treeOpened(event)">

public function treeOpened(event:TreeEvent):void
{
if(tree1.openItems.length > 1)
{
tree1.expandItem(tree1.openItems[0], false);
}

something like this

--- In [email protected], "barry.beattie" <[EMAIL PROTECTED]>

wrote:
>
> no takers, Mick?
>
> this was one thing I wanted to look into before being sidetracked
with
> some datagrids.
> at first I was thinking of keeping a register of what was opened so I
> knew what to close.
> then I was thinking of closing all before opening the selected one.
> these are just some rough thoughts in absence of anything better.
>
> it *must* be possible: the panels do it.
>
> cheers
> barry.b
>




--
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
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to