次のコードがあります。
stop();
stage.addEventListener(MouseEvent.RIGHT_CLICK, function(e:Event){});
login_btn.buttonMode = true; // show hand cursor
//adding event listener
login_btn.addEventListener(MouseEvent.CLICK, loginUser);
function loginUser(e:MouseEvent):void{
//if username & password are correct allow entry
if(IDTxt.text == "wixlab"){
gotoAndStop(2);
}
if(IDTxt.text == "hello"){
gotoAndStop(2);
}
if(IDTxt.text == "hello"){
gotoAndStop(2);
}else {
//otherwise show an error message
var alert:TextFormat = new TextFormat();
alert.color = 0xff0000; //red font
messageTxt.text = "Incorrect ID, Please try again.";
messageTxt.setTextFormat(alert);
}
}
フレーム 2 には stop(); があります。
彼らがログインできるようにしようとしています。クリップ全体が消えて、その背後にあるものをクリックできるようになります。Wix を使用してこの SWF を追加し、ビデオを非表示にしています。ただし、ログインしている場合は、swf がその上にあるため、ビデオをクリックすることはできません。
助けてください