Hello Guys,

What's the problem with the following snipet code above?

It doesn't play the DefaultListEffect when component is a Tree. Is it
a Bug or I forgot
something?

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";>

        <mx:DefaultListEffect fadeInDuration="2000" fadeOutDuration="2000" 
id="glow"/>

        <mx:Tree id="tree1" labelField="@label" showRoot="true" width="160"
itemsChangeEffect="{glow}">
                <mx:XMLListCollection id="MailBox">
                        <mx:XMLList>
                                <folder label="Mail">
                                        <folder label="INBOX"/>
                                        <folder label="Personal Folder">
                                                <Pfolder label="Business" />
                                                <Pfolder label="Demo" />
                                                <Pfolder label="Personal" 
isBranch="true" />
                                                <Pfolder label="Saved Mail" />
                                        </folder>
                                        <folder label="Sent" />
                                        <folder label="Trash" />
                                </folder>
                        </mx:XMLList>
                </mx:XMLListCollection>
        </mx:Tree>
        
        <mx:Button label="add item"
click="{MailBox.addItemAt(tree1.selectedItem.copy(),0)}"/>
        
</mx:Application>

Regards
-- 
Marco Catunda

Reply via email to