...

View Full Version : Windows Compatibility?



sleeves
03-05-2009, 01:45 AM
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."
}
}

gnomeontherun
03-05-2009, 08:33 AM
This sounds like a browser issue, not actionscript. Make sure that you have updated your flash player on the PC and send a link (or pm me if its private and you'd like me to test it).



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum