Tree controls only implement MOVE operations by default and not COPY.
I'll doublecheck the docs. Thanks for posting the error.
-Michael
Flex Framework
--- In [email protected], "Xavi Beumala" <[EMAIL PROTECTED]> wrote:
>
> I think there's an error on the Tree component documentation. I read
on it
> that dragMoveEnabled default value is 'false' but I think it's
default value
> it's true:
>
> <code>
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical"
> creationComplete="init()">
> <mx:Script>
> <![CDATA[
> import mx.core.UIComponent;
> import mx.managers.DragManager;
> import mx.events.DragEvent;
>
> public function init():void {
> componentsDigest.send();
>
destiny.addEventListener(DragEvent.DRAG_ENTER,dragEnter);
> }
>
> public function dragEnter(evt:Event):void {
> DragManager.acceptDragDrop(evt.target as UIComponent);
> }
>
> ]]>
> </mx:Script>
> <mx:HTTPService resultFormat="e4x" concurrency="last"
> id="componentsDigest" url=""> >
> <mx:HBox>
> <mx:Tree dataProvider="{componentsDigest.lastResult}"
> labelField="@label" width="300" height="400" dragEnabled="true" />
> <mx:Panel title="destino" id="destiny" width="400"
height="400"/>
> </mx:HBox>
> </mx:Application>
> </code>
>
> If you run this code and drag some of the leaves of the Tree to the
panel,
> the leaves will be removed from the tree. To solve it just set
> dragMoveEnabled="false" and will work.
>
> Best
> X.
>
--
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
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

