0 Replies Latest reply on Nov 20, 2010 12:52 AM by swshouse1

    video playback problems flash builder 4

    swshouse1

      When I execute the program via web broswer the video diplay box remains black no sound or video. Code is as follows:

       

      <?xml version="1.0" encoding="utf-8"?>
      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                     xmlns:s="library://ns.adobe.com/flex/spark"
                     xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" xmlns:mp3service="services.mp3service.*">
          <fx:Script>
              <![CDATA[
                  import mx.controls.Alert;
                  import mx.events.FlexEvent;
                 
                  protected function dataGrid_creationCompleteHandler(event:FlexEvent):void
                  {
                      getmp3sResult.token = mp3service.getmp3s();
                  }
                 
              ]]>
          </fx:Script>
          <fx:Declarations>
              <s:CallResponder id="getmp3sResult"/>
              <mp3service:Mp3service id="mp3service" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
              <!-- Place non-visual elements (e.g., services, value objects) here -->
          </fx:Declarations>
          <mx:DataGrid x="10" y="251" id="dataGrid" creationComplete="dataGrid_creationCompleteHandler(event)" dataProvider="{getmp3sResult.lastResult}" width="1002">
              <mx:columns>
                  <mx:DataGridColumn headerText="title" dataField="title"/>
                  <mx:DataGridColumn headerText="album" dataField="album"/>
                  <mx:DataGridColumn headerText="artist" dataField="artist"/>
                  <mx:DataGridColumn headerText="track" dataField="track"/>
                  <mx:DataGridColumn headerText="file_type" dataField="file_type"/>
                  <mx:DataGridColumn headerText="playtime_seconds" dataField="playtime_seconds"/>
                  <mx:DataGridColumn headerText="year" dataField="year"/>
              </mx:columns>
          </mx:DataGrid>
          <s:VideoPlayer x="11" y="18" id="vid" source="file:/E:/temp/xampp/htdocs/test.flv"/>

       


      </s:Application>