0 Replies Latest reply on May 3, 2011 6:01 PM by Johnking08

    Use <mx:VideoDisplay> in <mx:itemRenderer > inside a <mx:List>


      I'm using Flex 3.5 to create a dynamic list of VideoDisplay. The data is in an ArrayCollection: videoTileAC. But when I

      compile the code below, I got an error: "Access of undefined property data"


      <mx:List id="videoTileList" width="100%" height="100%" wordWrap="true" variableRowHeight="true"
              allowMultipleSelection="false" dataProvider="{this.videoTileAC}" >
              <mx:itemRenderer >
                     <mx:Component >
                                  <mx:VideoDisplay  source="{data.url}"  width="100"  height="84"  />       



      If I replace the VideoPlayer with Image, everything is fine. Can we use VideoDisplay in itemRenderer?