Go Back   CodingForums.com > :: Client side development > Flash & ActionScript

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-05-2009, 01:45 AM   PM User | #1
sleeves
New to the CF scene

 
Join Date: Mar 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
sleeves is an unknown quantity at this point
Question 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."
}
}
sleeves is offline   Reply With Quote
Old 03-05-2009, 08:33 AM   PM User | #2
gnomeontherun
Senior Coder

 
gnomeontherun's Avatar
 
Join Date: Sep 2007
Location: Houston
Posts: 2,846
Thanks: 10
Thanked 238 Times in 229 Posts
gnomeontherun will become famous soon enoughgnomeontherun will become famous soon enough
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).
__________________
jeremy - gnomeontherun
Educated questions often get educated answers, and simple questions often get simple answers.
gnomeontherun is offline   Reply With Quote
Reply

Bookmarks

Tags
actionscript, as3, browser, compatibility, windows

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:59 AM.


Advertisement
Log in to turn off these ads.