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 04-26-2012, 04:14 PM   PM User | #1
dougcollins02
New Coder

 
Join Date: Dec 2011
Posts: 85
Thanks: 15
Thanked 5 Times in 5 Posts
dougcollins02 is on a distinguished road
else gotoAndStop issue

Hey Everyone,

I'm working on a mock system for training purposes at my job, and the first part of the training system is to setup a mock password protection system. I don't really care that someone could decompile the Flash document and find my user info, so I'm not going to any great lengths to keep it safe.

I have a Flash AS3 document where when someone signs in, if they use the correct username it will take them to a frame labeled "select_service" and if they use an incorrect username it will take them to a frame labeled "access_denied." So far, I've been able to get the correct user info to get the movie to "select_service" but incorrect user info will not advance to "access_denied."

I'm driving myself nuts trying to see what I did wrong here. Can anyone see where I might have made a mistake? Here's my AS (kept, of course, on a top level AS layer):

Code:
stop ();

submit_btn.addEventListener (MouseEvent.CLICK, passcheck);

function passcheck (event:MouseEvent):void{
	if(company_input.text == "company" && user_input.text == "user" && pass_input.text == "$wisher1"){
		gotoAndStop ("select_service");
	}
	else {
		gotoAndStop ("access_denied");
	}
}
__________________
What you've just said is one of the most insanely idiotic things I have ever heard. At no point in your rambling, incoherent response were you even close to anything that could be considered a rational thought. Everyone in this room is now dumber for having listened to it. I award you no points, and may God have mercy on your soul.

Last edited by dougcollins02; 04-26-2012 at 08:48 PM..
dougcollins02 is offline   Reply With Quote
Old 04-26-2012, 08:48 PM   PM User | #2
dougcollins02
New Coder

 
Join Date: Dec 2011
Posts: 85
Thanks: 15
Thanked 5 Times in 5 Posts
dougcollins02 is on a distinguished road
No worries, guys. Found the problem. Had a bad frame label. Thanks.
__________________
What you've just said is one of the most insanely idiotic things I have ever heard. At no point in your rambling, incoherent response were you even close to anything that could be considered a rational thought. Everyone in this room is now dumber for having listened to it. I award you no points, and may God have mercy on your soul.
dougcollins02 is offline   Reply With Quote
Reply

Bookmarks

Tags
flash, gotoandstop, if else

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 03:37 AM.


Advertisement
Log in to turn off these ads.