   import flash.events.ProgressEvent;
   import flash.events.StatusEvent;
   import flash.events.SampleDataEvent;
+  import flash.events.MouseEvent;
   import flash.external.ExternalInterface;
   import flash.media.Video;
   import flash.net.NetStream;

      ns = new NetStream(nc);
      ns.bufferTime = 1;
      ns.client = new Object();
      ns.client.onMetaData = function(item:Object):void {
        vid.width  = Math.min(item.width,  stage.stageWidth);
        vid.height = Math.min(item.height, stage.stageHeight);

        vid.x = 0;
        vid.y = 0;
        if (item.width < stage.stageWidth || item.height < stage.stageHeight) {
          vid.x = (stage.stageWidth - item.width) / 2;
          vid.y = (stage.stageHeight - item.height) / 2;
        }
      };

      ns.play(null);
      vid.attachNetStream(ns);
      addChild(vid);
    }

    public function play(iurl:String = null):void

  import com.axis.http.url;

  [SWF(frameRate="60")]
  [SWF(backgroundColor="#000000")]

  public class Player extends Sprite {
    private var vid:Video;
    private var audioTransmit:AxisTransmit = new AxisTransmit();
    private var meta:Object = {};
    private static var ns:NetStream;

    public function Player() {
