0 Replies Latest reply on May 29, 2006 10:17 PM by shermski

    best method for flv playback in flash 8

    shermski
      group,

      i am currently trying to get to grips with flv playback with flash 8. i have come across a number of methods for flv playback within flash 8 and am curious to know the difference between methods and ultimately if there is such a difference discover which is best. I have had a few issues with some methods and was wondering if it was because that method sucks.

      In particular i am looking for the best method for allowing custom skinning of the player with the ability to have a player somewhere on stage without it being stapled to the darn flv file.

      METHOD1:
      var nc:NetConnection = new NetConnection();
      nc.connect(null);

      var ns:NetStream = new NetStream(nc);

      theVideo.attachVideo(ns);

      ns.play("testmovie.flv");

      METHOD2:
      import mx.video.*;
      this.attachMovie("FLVPlayback", "my_FLVPlybk", 10, {_width:360,_height:240,x:0, y:0});
      my_FLVPlybk.skin = "SteelExternalAll.swf"
      my_FLVPlybk.contentPath = "testmovie.flv";
      my_FLVPlybk.autoSize=true;
      my_FLVPlybk.autoPlay=false;

      what are the differences??

      any help would be much appreciated. Thanks for your time and expertises,

      Flash fan.