swf:MovieClip;
var loader:Loader=new Loader();
var loader2:Loader=new Loader();
miTexto1.addEventListener(KeyboardEvent.KEY_DOWN,handler);
miTexto2.text="";
function handler(event:KeyboardEvent){
removeChild(loader);
removeChild(loader2);
if (event.charCode==13)
Videos();
}
}
function Videos(){
if (miTexto1.text=="ABC123"){
miTexto2.text="";
var newSWFRequest:URLRequest= new URLRequest("video1.swf");
loader.load(newSWFRequest);
addChild(loader);
miTexto1.text="";
}else{
if (miTexto1.text=="A8542U"){
miTexto2.text="";
var newSWFRequest2:URLRequest= new URLRequest("video2.swf");
loader2.load(newSWFRequest2);
addChild(loader2);
miTexto1.text="";
}else{
miTexto2.text="EL VIDEO NO ESTA DISPONIBLE"
miTexto1.text="";
}
}
}