9 Replies Latest reply on Jul 8, 2009 10:08 PM by Avirag

    How to play swf file in flex builder3?

    Avirag

      Hi!!!!!! I have made a video player in Flex project ......In source of video display I have added the path of my swf file which is as follows:

      <mx:VideoDisplay id="player" source="C:\Documents and Settings\sachin\Desktop\absolute-values.swf"
      maintainAspectRatio="true"
      width="450" height="300" autoPlay="false"
      playheadUpdate="videoDisplay_playheadUpdate(event)  ;"/>


      But when I am clicking on Play button ,I am getting following error:


      Error: 1000: Unable to make connection to server or to find FLV on server.
      at mx.controls.videoClasses::VideoPlayer/play()[C:\autobuild\3.2.0\frameworks\projects\frame work\s rc\mx\controls\videoClasses\VideoPlayer.as:1327]
      at mx.controls::VideoDisplay/play()[C:\autobuild\3.2.0\frameworks\projects\framework\s  rc\mx\controls\VideoDisplay.as:1464]
      at basicvideoplayer/___basicvideoplayer_Button1_click()[C:\Documents and Settings\sachin\video player\src\basicvideoplayer.mxml:44]



      Can anyone help me in removing this error?Kindly give me a  code  to Play,Pause and stop my swf file.