5 Replies Latest reply on Jun 3, 2007 7:25 AM by kglad

    Override Play Methode

    bolo972-GhWGNa
      Hello

      I have a class who extends NetStream, i would like override play function.

      public class VideoSync extends NetStream {
      //PROPERTIES
      private var _nc:NetConnection;

      //CONSTRUCTOR
      public function VideoSync()
      {
      _nc = new NetConnection();
      _nc.connect(null);
      super(_nc);
      init();
      }

      public override function play(... arguments):void {
      trace(arguments)
      super.play(arguments);
      }
      }

      When i try to play my video

      var ns:VideoSync = new VideoSync();
      ns.play("video.flv");

      var vid:Video = new Video();
      vid.attachNetStream(ns);
      addChild(vid)

      the video didn't play

      Please help me :(

      thanks