I try this but got these compiler errors
package {
import flash.display.SimpleButton;
import flash.events.MouseEvent;
public class clickbutton extends SimpleButton {
public function clickbutton() {
this.addEventListener(MouseEvent.CLICK, clickF);
}
private function clickF(e:MouseEvent):void{
var nc:NetConnection=new NetConnection();
nc.connect(null);
var ns:NetStream=new NetStream(nc);
var video:Video=new Video();
addChild(video);
video.attachNetStream(ns);
ns.play("video_test.flv");
}
}
}