1 Reply Latest reply on Jan 6, 2007 2:49 AM by jagguy99

    play video

    jagguy99 Level 1
      I want to create a swf file to embed on a webpage. I want the swf to play a video at runtime (passed as a parameter). Can this be done ?


      I tried this without success in a FLV object

      var vid:NetConnection = new NetConnection();
      vid.connect(null);
      var vidstr:NetStream= NetStream(vid);
      vidstr.play("fire.flv");
      vFLV.attachVideo(vidstr);

      var dur:Number =0;

      vidstr.onMetaData = function(oMData:Object ):Void {
      dur=oMData.duration;
      };
        • 1. Re: play video
          jagguy99 Level 1
          I can play a video as I loaded a component instead of new vid from library.

          How do you set controls/size of video/pass the video name as a parameter?
          I am looking but if anyone knows of good tutorial .