1 Reply Latest reply on Dec 15, 2008 6:35 AM by Newsgroup_User

    Keeping user informed on GroupingCollection.refresh status

    NickUK007
      Hi,

      I am trying to update the contents of a Label control during the refresh of a GroupingCollection.

      This isn't working however, as the label text does not change until the GC has completed the refresh.

      Can someone suggest what I am doing wrong?

      Cheers,

      Nick
        • 1. Re: Keeping user informed on GroupingCollection.refresh status
          Level 7

          "NickUK007" <webforumsuser@macromedia.com> wrote in message
          news:gi59gi$4vn$1@forums.macromedia.com...
          > Hi,
          >
          > I am trying to update the contents of a Label control during the refresh
          > of a
          > GroupingCollection.
          >
          > This isn't working however, as the label text does not change until the GC
          > has
          > completed the refresh.
          >
          > Can someone suggest what I am doing wrong?
          >
          > Cheers,
          >
          > Nick
          >
          >
          > ServicesGC.addEventListener(CollectionEvent.COLLECTION_CHANGE,on_collection_chan
          > ge);
          >
          > private function on_collection_change(e:CollectionEvent):void
          > {
          > //if(e.kind == CollectionEventKind.REFRESH)
          > {
          > ProgressLabel.text = "Please wait...";
          > }
          > }

          The collection change event is dispatched when the collection _has_ changed,
          not at the start of the collection change, AFAIK.