0 Replies Latest reply on Jan 14, 2010 6:18 AM by George Donn

    Array Data into a Datagrid

    George Donn

      My main question is how to only get the title and time gather it into my datagrid - I have a class file that gathers cue point data into an array but I only need the data from the title, time and not type of cue point to store into my custom component which is a data-grid - I attached the fxp file if I sparked anyone's interest.


      Here some snipplets of my code that is in my class file and mxml file bellow


      private function metaDataHandler(infoObject:Object):void{
                  for(var i in infoObject.cuePoints) {
                      var myCuePoints:Array = [];
                      myCuePoints = infoObject.cuePoints[i];
                      for(var y in myCuePoints) {
                          myData[y] = myCuePoints[y];

      public function getCuePointData():void{

      /* my data  to pass to data grid */




                  import classes.VideoMetaData;
                  /* will read from param from URL for title */
                  public var myVideoTitle:String = "Test";
                  public var myVideoURL:String = "http://www.helpexamples.com/flash/video/cuepoints.flv";
                  public var myVideoInstance:VideoMetaData = new VideoMetaData(myVideoURL);
          <s:Panel title="Navigation - {myVideoTitle}" width="100%" height="100%" baseColor="#5173AB" color="#FFFFFF" cornerRadius="0">
              <mx:DataGrid editable="false" width="100%" height="100%" baseColor="#CACACA" color="#000000" borderVisible="false">
                      <mx:DataGridColumn headerText="Title" dataField="col1" />
                      <mx:DataGridColumn headerText="Time" dataField="col2"/>