Anyone tried my code? Should it work or is there something I am missing?
 
Thanks
 
Stefan


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Stefan Richter
Sent: 07 April 2006 12:39
To: [email protected]
Subject: RE: [flexcoders] Drag from Tree, drop to List?

I'm missing something, I am sure...
Shouldn't this simple drag and drop from tree to list work?
 
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" layout="absolute" creationComplete="initApp()">
      
    <mx:Script>
        <![CDATA[

         private function initApp():void {
             firstList.dataProvider = treeDP;
         }               
               
        ]]>
    </mx:Script> 
      
      
 <mx:XML id="treeDP">
            <node label="Mail">
                <node label="Inbox"/>
                <node label="Personal Folder">
                    <node label="Demo"/>
                    <node label="Personal"/>
                    <node label="Saved Mail"/>
                    <node label="bar"/>
                </node>
                <node label="Calendar"/>
                <node label="Sent"/>
                <node label="Trash"/>
            </node>
    </mx:XML>
            
      
    <mx:Tree id="firstList" height="200" width="200"
        showRoot="false"
        labelField="@label"
        dragEnabled="true" dropEnabled="true" dragMoveEnabled="true"
        allowMultipleSelection="true"
        creationComplete="initApp();"/>
 
<mx:List id="playlist" width="200" height="200" dragEnabled="true" dropEnabled="true" x="36" y="217">
                         
</mx:List>
 
</mx:Application>
 
 
 
Any help appreciated.
 
Stefan
 
 
 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Stefan Richter
Sent: 06 April 2006 16:59
To: [email protected]
Subject: RE: [flexcoders] Drag from Tree, drop to List?

sorry, Flex 2.
 
I just noticed a bunch of events associated with drag and drop - I guess I need to utilize those?
 
Stefan
 
 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Johannes Nel
Sent: 06 April 2006 16:56
To: [email protected]
Subject: Re: [flexcoders] Drag from Tree, drop to List?

what version of flex?

On 4/6/06, Stefan Richter <[EMAIL PROTECTED]> wrote:
Should a drag and drop from a tree to a list be possible or is there anything 'special' about such an operation?
 
Stefan
 


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






--
j:pn
http://www.lennel.org


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to