I have some XML that is rendered into a custom component (creates 
object and pushed into array -> arraycollection) 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
(array)... 

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')"/>


Reply via email to