Windows Compatibility?
I created a "password protected" .swf using AS3, slapped it on an html page that runs perfectly with browsers on MAC (firefox, safari). But when i try to access the page on a PC (IE, Firefox), the .swf seems to stop after entering the password, leaving a blank page... However, when i refresh the page, the file runs properly. Anyone know how to get it to run properly without having to refresh the page?
Here's the AS i used ---
note - "party" is the password, "hidden" is the frame label that should play when entering the password, but does so only when the page is refreshed...
stop();
enter_btn.addEventListener(MouseEvent.CLICK, enterclick);
failed_txt.background = false;
failed_txt.border = false;
var mypass:String;
function enterclick(event:MouseEvent){
mypass = pass_txt.text;
if(mypass == "party"){
gotoAndStop("hidden");
} else {
failed_txt.text = "Please enter a valid password."
}
}
|