3 Replies Latest reply on Mar 4, 2010 9:30 AM by ayule666

    unable to bind to property 'label' on class 'Object' (class is not an IEventDispatcher)

    FinFlex

      My code works but in the debug mode I'll get this warning? What's the deal with this? I wanna get rid of it. Every time it debugs over bindableStatuses.addItem(status) new warning appears.

       

      private function addSelectionToStatusArray():void

      {
              for(var numb:Number = 0; numb < this.statusesClassifications.length; numb++)

              {
                  var status:Object = new Object();
                  status.label = statusesClassifications[numb].desc;

       

                  if(statusesClassifications[numb].desc != "Closed")

                  {
                      status.selected = true;   
                  }
                  else

                  {
                      status.selected = false;
                  }
                 
                  bindableStatuses.addItem(status);       
              }
             
              this.issueStatus = bindableStatuses.source;

      }