Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Dec 2011
    Posts
    85
    Thanks
    15
    Thanked 5 Times in 5 Posts

    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");
    	}
    }
    Last edited by dougcollins02; 04-26-2012 at 09:48 PM.
    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.

  • #2
    New Coder
    Join Date
    Dec 2011
    Posts
    85
    Thanks
    15
    Thanked 5 Times in 5 Posts
    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.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •