0 Replies Latest reply on Sep 19, 2007 10:29 AM by mmesarina

    Video component failing to load FLV

    mmesarina
      Hi,

      I literally copied the example in the Flex documentation books below into my Flex mxml file and only changed the URL location of the flv file, which in my case is a local file, and when i run the application the video doesn't get loaded at all and I don't get any debugging information.
      Has someone run into this problem too?

      Here is the code:

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute">
      <mx:Script>
      <![CDATA[
      import flash.display.Sprite;
      import flash.net.*;
      import flash.media.Video;

      var videoUrl:String = " http://localhost//rope.flv";

      public function VideoTest()
      {
      var connection:NetConnection = new NetConnection();
      connection.connect(null);

      var stream:NetStream = new NetStream(connection);

      var myVideo:Video = new Video(360, 240);
      myVideo.attachNetStream(stream);
      stream.play(videoUrl);

      addChild(myVideo);
      }

      ]]>
      </mx:Script>
      </mx:Application>