2 Replies Latest reply on Sep 30, 2009 1:00 AM by paul.williams

    Repeater not repeating (UNpeater)

    drillnaut

      Hello Everyone ,

        I have an accordion whose contents are supposed to be provided by a repeater , which is repeating over an ArrayCollection.  The collection is identified as Bindable in my AS3 and is changed from the outside (mate injection).  However when these changes occur to the collection they are reflected in the accordion.  I have debugged and verified that the collection length is greater than 0.  But the accordion simply does not care and sits empty laughing at me.  Here is the criminal code.  Flex elites , please prosecute to the fullest extent of the law !

       

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Canvas label="Users Files" xmlns:mx="http://www.adobe.com/2006/mxml" width="400"
                 height="300" xmlns:views="com.dallas.mate.components.*">
          <mx:Script>
              <![CDATA[
                  import com.dallas.mate.models.UserModel;
                  import com.asfusion.mate.actions.AbstractAction;
                  import mx.events.CollectionEvent;
                  import mx.collections.ArrayCollection;
                 
                  [Bindable]
                  public var accordionItemCollection:ArrayCollection;
                 
              ]]>
          </mx:Script>
          <mx:VBox width="100%" height="100%">
              <mx:Accordion id="accordion" width="100%" height="100%">
                  <mx:Repeater id="repeat" dataProvider="{accordionItemCollection}"/>
              </mx:Accordion>

          </mx:VBox>
      </mx:Canvas>