0 Replies Latest reply on Oct 4, 2010 3:29 PM by jcahill23

    Help please with populating a List


      Hi. I'm trying to populate a list in actionscript...code is below. can't figure out why i can't see the list when i compile my program.

      any suggestions would be great...thank you.


      import flash.display.Sprite;


      import mx.collections.ArrayCollection;

      import spark.components.List;


      public class TrialList extends Sprite



      public function TrialList()


      var listAC:ArrayCollection = new ArrayCollection([{label:"golf"}]);

      var listTrials:List = new List();

      listTrials.dataProvider = listAC;