0 Replies Latest reply on Jun 4, 2006 1:30 PM by Stonyx

    2 datagrids and 1 Popup with Videodisplay

    Stonyx
      hi everyone i've been for weeks trying to figure out how to do this, i hope somebody can help me

      i have 2 datagrids,

      first one is bind to an xml

      <mx:DataGrid
      id="datagrid"
      dataProvider="{datos}"
      x="2" y="71" width="150" height="507"
      editable="false">
      <mx:columns>
      <mx:Array>
      <mx:DataGridColumn headerText="Lista" columnName="dato"/>
      </mx:Array>
      </mx:columns>
      </mx:DataGrid>

      2nd datagrid is bind to the first one
      <mx:datagrid x="600" y="468" width="157" height="40" dataProvider="{datagrid.selectedItem.video}"
      id="vLista">
      </mx:datagrid>
      This one shows if there is a video on the xml

      This is part of the xml
      **datos.xml**
      <datos>
      <nombre dato="A orillas de una laguna.">
      <desc>Libro de Edmundo Batres Ledón siajhdsifsdfirfd</desc>
      <imagen>A orillas de una laguna.jpg</imagen>
      <video>VIDEO/aOrillas.flv</video>
      </nombre>
      </datos>

      and i have another MXML file whish is video.mxml

      what i want to do is that if there is a video on datagrid 2 click on it and see the .flv on the video.mxml file


      thanks