ActionScript 3.0 :: Make A Username And Password Box?
Oct 10, 2009
I am just learning AS. I am trying to make a username and password box that will return a welcome message if the two text fields are entered correctly and a "Sorry Charlie" message if they are not.
I am using an If-Else statement. If I have the Else part commented out, I am able to enter text into the two text fields and get a welcome message. With the else statement though, I am not able to finish entering text in the second text field before the "Sorry Charlie" message appears.
I'm attempting to make a Username and Password input box, with a set username and password that will take you to the next frame, but whenever I test it it just stays in the same frame.
The code I'm using is on(release, keyPress "<Enter>"){ if (password eq "###") { if (username eq "###") { gotoAndPlay(2) ;
[Code]...
but with the ### being what I actually have the username and password set to. As I said before, when I try this, nothing happens. I have the values for both the username and password boxes set to username and password respectively, but I still cannot get it to work. What am I doing wrong?
i have a problem while username and password validation.i retrieved data (username and password)from an xml doc using http service but the problem is that i have to verify the username and password entered by he user with the username and password of the xml doc...
I'm using Flash CS4 Professional, and I'm using AS2 because I think it's a lot less complicated than AS3.I've found a few things on the internet that but I'm wondering if someone could just clear this up for me straight away.I have an input text field with instance name "username", and another named "pass". I then have a login button which has the action play();Once username and password have been filled out and the button is pressed, it plays until frame 3. Frame 3 only has the stop(); action in it for now. Here's what I need the rest of the actions to be:I want it to check the username and password against a text file. The text file reads:username=tylerngataki&pass=12345I then want an if/else operation like:
I installed FMS into a linux server with its own flash media encoder uthentication add-in. I restarted the fms service. The fms is working fine, i can stream and also visualize the stream on a client. When I connect to fms with fme i'm not asked for username and password. How do I set up users in fms so that the access to it should be restricted?
I've been trying to load some JSON from a URL with a username/password at the beginning.So the URL resembles: http:/[url]....I've been using the DataLoader class from greensock and it returns a Error #2032: Stream Error if the authentication is up but loads fine when it is disabled.I'm trying to add a 'Authorization' URLRequestHeader to get round this issue? Is this the best way forward?
Edit: I'm trying to use headers in a similar way to this post: Flex 3 - how to support HTTP Authentication URLRequest? but I'm not having much success. The base64 encoder I'm using is from here: http:[url]....
2nd Edit: latest code
_loader = new DataLoader(ENDPOINT, { onComplete:handleComplete, onError:handleError, onFail:handleFail } ); _loader.request.method = URLRequestMethod.POST; _loader.request.data = new URLVariables("required=RandomData");[code].....
I know how to create a Username and password in flash. I want to know now is how to create a scene where users can register their own name and make their own password.
I'm making a simple login application. I want to send a username/password while connecting to FCS, and have the SSAS of main.asc connect to a PHP document that will lookup the username/pass and make the necessary checks for the information in a mySQL database.
I'm trying to use the LoadVars() object, maybe you can't do this with SSAS? Or maybe i need to include some other actionscript file (I know when you use components you have to specify load("components.asc"); at the top of the main.asc file --- i'm hoping it's something that easy )
This is my first FCS app, I've done a lot of research but this one's sort of stumping me. I keep getting an error that looks like this:
/opt/macromedia/fcs/applications/my_app/main.asc: line 9: ReferenceError: LoadVars is not defined
My problem is rather simple. I have a site built totally in flash that I need a couple other people to be able to log into, but I don't want them to know the password. Does anyone know if there a way that I can load the flash site in an iframe, and then use some javascript to fill the flash username and password with the correct text so that they can just click the login button without knowing the username and password?
I'm trying to post a username and password to a server side script.The client provided an HTML form that demonstrates that the sever side functionality is working, but I keep getting the following:
I kind of understand how to create a basic username and password 'menu' in flash.[code]But I would like to create a menu where a user can create a new username with then will be added to an exteral file ( data base I guess).From there on anything the user does is remembered on that name. And if that user exits the program and loads it again the user's stats are loaded.
I don't know if this is the right place to ask this or not, but I thought I remembered a way to pass a username and password to FMS via Flash Media Live Encoder? I simply need to pass two values, equivalent to this in AS3[url]...
i am have big problems, im designing a login screen and it will require more than one user to be able to access differnt parts of the flash file. at the moment i am using IF statements.
[Code]...
there is no problem with this method but if a user wants to change there username how to change the script. the other thing is the flash file is being converted to a standalone .exe file so it's basically like a program. to get to the point I need to know if there is any way for the Actionscript to be able to read a .txt document so that when the username and password is changed in the .txt document flash will read it so when they enter the new username and password it will still allow them to access the files.
I want to make a file that that has a register button where the user can put in their name, username and password. Then I want the user to be able to be logged in with the username and password they put in.
So i have a register and a log in form with shared objects but iahve a problem. I have two input text fields named: textfield textfield2 The One is for username and the other one is for password. So when you tpye some text in it for saving it as SO i use this code: P.S The button is an MC
[Code]....
so untill this point it works fine but then when you go to log in i want when you press the log in button the text that you wrote for username and password to be checked trough the created shared objects this means mySO and mySO1 and if there is a match the movie to proceed to a designated frame if there is not to go again to a designated frame whare it will be the ACCESS DENIDE text.
Is there a way to automate authentication via adding the username/password in the profile XML of flash media encoder live (3.2)? I'm not referring to the command line parameters, but placing a tag in the xml file that contains the username/password for both the primary and backup server.
I have an FLV file that I want to be able to make a text box that acts as a password field.When the user enters the correct password, I want it to route the internet explorer page to a different website.
just playing around with stuff and i was wondering if i were to make a small internal site... how i'd go about making it so when you enter your password that it came up with those black dots instead of the letters?
I have created a projector/swf for a friend. He wanted it password-protected, which I did, but he wants to be able to change it - without using Flash (which he doesn't have). I thought about writing to an XML file, but that would be way too easy to crack, wouldn't it?Is there any way to write to the .exe file's shell?
I am trying to make a password to access a certain level. heres the code ive come up with.
[Code]...
where the input text box var is "input" but for some reason, its not working. the "else" command is working perfectly, but when i try and use the password "35" to get to frame 35 it treats it treats it as "else" as if its not recognizing the password.
I have planned to create an educational application / movie in Flash 8 (contains exercises and final tests etc.). I want to protect my application with username and password. The script inside movie should generate the password for given key say in my case username it will output the hex key which can be your password and no need to store it. cause you put same logic in your app which will generate the same hex key for same key i.e. is your username
Im new at actionscript, and I am making a very project. Basicly, I have some thing were there is a page you can get to by beating other parts of the 'game'. I want to add some sort of a password or save feature to people can type in the password of something at the opening screen and jump to that page.
trying to get the name of the user in Flash (not FLEX) without the PHP. Currently I have the session, the uid. But from here could not move forward towards getting the name.
var fbook:Facebook; var api_key:String="xxxx"; var secret_key:String="xxxxx";
I need to display a Username in a Flash Banner in my website. The Site is PHP and the header is made in Flash. My requirement is that, when a user Logs in, his name should be displayed in the Top of the site (in the Flash banner here) like "Welcome User". Is it possible ? I have the PHP file which displays username. All I need is that to merge it to the flash banner (through actionscript, isnt it ?)