4 Replies Latest reply on May 23, 2011 10:38 AM by saisri2k2

    [Flex 4] How to know when ButtonBar has created all of it's elements by the data provided?

    FM_Flame Level 1

      As you know, specifying dataProvider for the ButtonBar for example doesn't mean that all of those buttons are already there, since they first need to be created.


      So I would like to ask what techniques I could use to determine if all of those buttons are created?


      I am using callLater(function) right now after I set the dataProvider to the ButtonBar. Is this the best way to do that or I could listen for some event?


      I cannot listen for ButtonBar CREATION_COMPLETE since it's data is populated after it has been already created.


      I am open for suggestions Thanks!