In order to know what you're doing incorrectly you'll need to post some
code.  Binding to ArrayCollection.length normally works fine.


<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; layout="vertical">
        <mx:Script>
                <![CDATA[
                        import mx.collections.ArrayCollection;
                        
                        [Bindable]
                        private var a:ArrayCollection = new
ArrayCollection();
                ]]>
        </mx:Script>    
        <mx:Label text="{a.length + ' items'}" />
        <mx:Button label="Add" click="a.addItem(null)" />
        <mx:Button label="Remove" click="if (a.length) a.removeItemAt(0)" />
</mx:Application>


HTH,

Sam


-------------------------------------------
We're Hiring! Seeking a passionate developer to join our team building Flex
based products. Position is in the Washington D.C. metro area. If interested
contact [EMAIL PROTECTED]
 
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of gary_mangum
Sent: Friday, September 21, 2007 4:33 PM
To: [email protected]
Subject: [flexcoders] "length" binding not triggered for
ArrayCollection.removeItemAt()

I have a TileList bound to an ArrayCollection and a Label bound to the
"length" property of the ArrayCollection.

When I call removeItemAt() on the ArrayCollection, my TileList updates
correctly, but my Label does not ever get triggered.

What I am doing incorrectly?

Thanks,

Gary

Reply via email to