Will anyone please help me create a LOGIN FUNCTION ON MY FLASH QUIZ. So that the user's name is displayed within the game. THIS IS OFFLINE by the way. Also the user is a able to create a username and password.
assign the login textfield's text to a variable. that variable will exist even after you remove your textfield and can be shared throughout your app.
you could also use the sharedobject so the user only needs to login once. thereafter their login would be retrieved from the sharedobject.
attached to the first keyframe that contains login_user, use:
var so:SharedObject = SharedObject.getLocal("login");
// skip the login. user has already stored their user name
// if you have your user click a button to login after enter their name in login_use, use the following in that button's onRelease code:
// whenever you want to use the login name from the scope of the sharedobject so, use:
// if you're outside that scope, you can always use:
Like in most flash games where they key in their name and their data is saved in some sort of database. Because i want my application to have a function that when a user finishes a quiz, when he closes the flash and opens it again, the Subjects that he already took will have a mark indicating that he already finished it.
Europe, Middle East and Africa