var count:Number=0;
var obj_nc:NetConnection=new NetConnection();
_root.obj_nc.connect(null);
var obj_ns:NetStream=new NetStream(obj_nc);
_root.video.attachVideo(obj_ns);
obj_ns.setBufferTime(3);

_root.btn1.onPress = mov1;
_root.btn2.onPress = mov2;
_root.btn3.onPress = mov3;
_root.stp.onPress = terminate;

function mov1() {
if (count<1){_root.photo.gotoAndPlay("2");}
_root.obj_ns.play("punto1.flv");
count++;
}

function mov2() {
if (count<1){_root.photo.gotoAndPlay("2");}
_root.obj_ns.play("punto2.flv");
count++;
}

function mov3() {
if (count<1){_root.photo.gotoAndPlay("2");}
_root.obj_ns.play("puntoteam.flv");
count++;
}

function terminate() {
_root.obj_ns.play("");
_root.photo.gotoAndPlay("20");
count=0;
}