Carl, Yes, this pointed me in the right direction. This is an example of what I was trying to accomplish.
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" width="500" height="620" borderStyle="solid" creationComplete="initApp();"> <mx:Script> <![CDATA[ import mx.controls.Alert; import mx.events.DragEvent; import mx.controls.List; import mx.managers.DragManager; import mx.core.DragSource; private function initApp():void { var dp:Array = ([ {label:"First", data:"1"}, {label:"Second", data:"2"}, {label:"Third", data:"3"}, {label:"Fourth", data:"4"}, ]); listOne.dataProvider = dp; listTwo.dataProvider = []; listThree.dataProvider = []; } public function slotAvailable(slot:List):void{ if (slot.dataProvider.length > 0) { slot.dropEnabled=false; } } private function freeSlot(slotName:List):void { slotName.dropEnabled=true; } ]]> </mx:Script> <mx:VBox width="100%" height="100%" x="0" y="0"> <mx:HBox width="100%" height="159"> <mx:List id="listOne" dragEnabled="true" dropEnabled="true"></mx:List> <mx:List id="listTwo" dragEnabled="true" dragMoveEnabled="true" dragComplete="freeSlot(listTwo)" dropEnabled="true" dragEnter="slotAvailable(listTwo)"></mx:List> </mx:HBox> <mx:HBox width="100%" height="161"> <mx:List id="listThree" dragEnabled="true" dragMoveEnabled="true" dragComplete="freeSlot(listThree)" dropEnabled="true" dragEnter="slotAvailable(listThree)"></mx:List> <mx:Text text="{listThree.dataProvider.length}" width="120"/> </mx:HBox> </mx:VBox> </mx:Application> --- In flexcoders@yahoogroups.com, "Karl Johnson" <[EMAIL PROTECTED]> wrote: > > <mx:List id="thisList" dropEnabled="{thisList.dataProvider.length < 1}" /> > > That help? > > Karl > > Cynergy > > ________________________________ > > From: flexcoders@yahoogroups.com on behalf of jmfillman > Sent: Wed 2/21/2007 11:09 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: Count of items in a list > > > > This has got to be possible. Please, someone help!! > > --- In flexcoders@yahoogroups.com <mailto:flexcoders% 40yahoogroups.com> , "jmfillman" <jmfillman@> wrote: > > > > I'm having difficulty in determining if a list has any items already > in > > the list. For example, if a list already has 1 item, I want to set > it's > > dropEnabled property to false, either when the item is added to the > > list or when the user attempts to drop a 2nd item. Also, if that item > > is removed from the list, I want to set dropEnabled to true. > > >