0 Replies Latest reply on Mar 10, 2007 8:49 PM by r08

    Remove after Drag Drop

    r08
      I have some XML that is rendered into a custom component of type List - the list has an item renderer of type Vbox, i begin a drag and drop onto a canvas but i want to remove all data associated from the list... i would normally know how to do this however in this case i think its a little different...

      Can anyone offer some advice on how to finish this drop operation?

      cheers
      Rob.

      example code::::
      -----------------------------------

      MAIN:

      <mx:VBox x="10" y="118" height="100%" width="200">
      <v:ArtworkModules id="awModuleView" artModules="{arrCAWModules}"/>
      </mx:VBox>

      ArtworkModules.mxml
      -----------
      <mx:List xmlns:mx=" http://www.adobe.com/2006/mxml"
      width="200"
      height="100%"
      dataProvider="{artModules}"
      itemRenderer="views.leftHandColumn.TextAndPic" >

      <mx:Script>
      <![CDATA[
      import mx.collections.ArrayCollection;

      [Bindable]
      public var artModules:ArrayCollection;
      ]]>
      </mx:Script>

      </mx:List>

      TextAndPic.mxml
      -------
      <mx:Label text="{data.label}" width="100%"/>
      <mx:Image id="awImage" source="{'../art/'+data.iconImage}"
      width="100%"
      height="100%"
      mouseDown="dragIt(awImage,event,'MyFormat')"/>