[CS3] Login Form (Secret)
I'm trying to make the login form work with
on(keyPress""){
gotoAndStop("secret");
}
where do I enter this code?
FlashKit > Flash Help > Flash ActionScript
Posted on: 03-30-2008, 11:27 PM
View Complete Forum Thread with Replies
Sponsored Links:
Form Login Help
Sorry if this is somewhere else that I couldn't find, if it is, please post a link.
I just started making pages in flash, and I'm having trouble with flash forms (I looked through the Help files for a while with no avail). I need a username, password login (don't need fancy stuff, like error checking, etc.) that sends the information to the site server. I have the HTML code for this, which has these key components:
<form action="/ProcessLogin.asp" name="passwordform" method="post">
<INPUT name="username" STYLE="background:#aaaaaa" size=12">
<INPUT type="password" name="password" STYLE="background:#aaaaaa" size=12>
<input type="hidden" name="clan" value="SW">
<INPUT type="submit" STYLE="background:#aaaaaa" value="Submit">
I have the text fields made, the "submit" button, just need to know the code that links it together. Any help would be appreciated, Thanks.
View Replies !
View Related
Login Form / PHP
hey -- i've got a flash login form with "username" and "password" input fields, and a "submit" button.
i'd like the submit button to send the username and password variables to an external .php file, which will redirect the user to his proper page.
the button isn't working (files are all uploaded, but when clicked, nothing happens)
here's the code i have on the button; it's gotta be missing something important
CODE BEGIN
on (release) {
form.loadVariables("redirect.php", "POST");
}
CODE END
anybody know what's going wrong?
View Replies !
View Related
Login Form/Box
Hi,
I just made a flash game kinda and well I have a login username box and password... How do I make it so that whenever my staff types there given username/password in It will log there IP/Username/Password So that I can know if it is an intruder or one of my staff...?
Regards,
Saterial
View Replies !
View Related
Login Form With ASP And Mdb I'm Almost There
here's the url:
www.curtisalan.com/loginz.swf
I need the actionscript within the fla to take what the user inputs in the login and password boxes and pass this to the url. Currently, I have it set up so that it will go to a specific ftp url, ftp://capftp:hobbs818@ftp.curtisalan.com
regardless of what the user puts in the login and password box. Rather than have the literal url I would like to pass the variable information from the login form. Here is my code. Thanks in advance for any help you can pass my way:
<as>
// first we create the object
login_lv = new LoadVars();
// now we create the function that will happen
// when this object recieves data
login_lv.onLoad = function() {
// check to see if the users info is correct
if (this.userInfo == "true") {
getURL("ftp://capftp:hobbs818@ftp.curtisalan.com");
} else {
// if the users info was not correct, trace an error, and clean the text fields
trace("Invalid data");
login_txt.text = "";
password_txt.text = "";
}
};
// the function for the login button
onLogin = function () { if (login_txt.text.length<1) {trace("please provide a login name");} else if (password_txt.text.length<5) {trace("invalid password");password_txt.text = "";} else {login_lv.username = login_txt.text;login_lv.password = password_txt.text;login_lv.sendAndLoad("http://www.curtisalan.com/login.asp", login_lv, "POST");}};
</as>
Regards,
Joe
View Replies !
View Related
[F8] Login Form
Hello, I am new to flash and have no clue how to even create a single input field. Anyway, I am trying to get a form working as the one below does... I do not know if it's possible to get PHP values or what. Detailed help or even a custom fla I can copy and learn from would be great. I'd like to learn, yet get this done as fast as possible...
Code:
<form action='process.php' method="post" style="margin: 0 0 0 0;">
<input name="user" type="text" class="loginform" size="1" value="<? echo $form->value("user"); ?>" /></td>
<input name="pass" type="password" class="loginform" size="1" value="<? echo $form->value("pass"); ?>" /></td>
<input type="checkbox" name="remember2" <? if($form->value("remember") != ""){ echo "checked"; } ?> /></td>
<input type="hidden" name="sublogin" value="1" />
<input name="image" type="image" onmouseover="javascript:this.src='<?php echo BASE_URL ?>/images/index_21_over.gif';" onmouseout="javascript:this.src='<?php echo BASE_URL ?>/images/index_21.gif';" src="<?php echo BASE_URL ?>/images/index_21.gif" alt="Login!" /></td>
</form>
View Replies !
View Related
Help With A Login Form
http://www.tiffanydavisphotography.com/
If you go there and click "online proofing", I've successfully made a form. To make my form, I made two input boxes, gave them variable names, turned it into the movie clip "form", added this code to the movie clip..
onClipEvent(data){
_root.nextFrame();
}
Added a button below the form [not in it!] and added this code..
on (press) {
form.loadVariables("login.php", "POST");
}
Firstly- why is that funny text coming up in the variable box? Something like "level10.loginname".. and how can I add a stroke to the input box? And why when I click on the "login" button is nothing happening.. ? I've added my PHP file.. I program PHP fluently, but this is the first time intertwining the languages.. in my PHP file, if I told something to print, would it? In the Flash box? How can I load a PHP file in my flash program? Is that possible?
Help. =D Thanks.
View Replies !
View Related
Login Form Help
Hello,
I want to use a flash login form with php but i have one problem when i want to login with my flash form my login.php says the password or username is incorrect
My var for username is login
And for password is pass
The button actionscript for my login now is:
ActionScript Code:
on (release) {
getURL("login.php", "_self", "POST");
}
i don't know why maybe one of you can help me
Im using flash cs 3
This is my login.php script
Thanks in advance
PHP Code:
<?php
include("config.php");
if(isset($_POST['login'],$_POST['password'])) {
$dbres = mysql_query("SELECT *,UNIX_TIMESTAMP(`online`) AS `online` FROM `users` WHERE `login`='{$_POST['login']}' AND `pass`=MD5('{$_POST['password']}')");
if(($data = mysql_fetch_object($dbres)) && $data->activated == 1) {
}
}
?>
<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="style.css">
<meta name="keywords" content="bloodstream,Crimegame,crimegame,bloodstream">
<meta name="language" content="english">
<META name="description" lang="nl" content="bloodstream crimegame met pit.">
</head>
<table align="center" width=100%>
<?php /* ------------------------- */
if($_GET['x'] == "logout"){
session_unset($_SESSION['pass']);
session_destroy($_SESSION['login']);
session_unset($_SESSION['pass']);
session_destroy($_SESSION['login']);
echo"<table width=100% align=center>
<tr><td class=subTitle><b>Uitloggen</b></td></tr>
<tr><td> </td></tr>
<tr><td class=mainTxt>U bent nu uitgelogd. Een ogenblik geduld.<br><a href=www.gekketijden.nl><b>Wacht niet, klik hier<b></a></td></tr>";
echo"<meta http-equiv=Refresh content=3;url=www.gekketijden.nl>";
}
else if($_GET['x'] == "lostpass") {
if(isset($_GET['id'],$_GET['code'])) {
$dbres = mysql_query("SELECT `login` FROM `temp` WHERE `id`='{$_GET['id']}' AND `code`='{$_GET['code']}' AND `area`='lostpass'");
if($data = mysql_fetch_object($dbres)) {
$dbres = mysql_query("SELECT `login`,`email` FROM `users` WHERE `login`='{$data->login}'");
$data = mysql_fetch_object($dbres);
$newpass = rand(100000,999999);
mysql_query("UPDATE `users` SET `pass`=MD5('{$newpass}') WHERE `login`='{$data->login}'");
mysql_query("DELETE FROM `temp` WHERE `id`='{$_GET['id']}'");
mail($data->email,"the enforcer password","Je wachtwoord is gereset, je kan nu inloggen met: $newpass","From: the enforcer <prison@the-enforcer.nl>
");
print "Je nieuwe wachtwoord is verstuurt naar {$data->email}.
";
}
}
else if(isset($_POST['email'],$_POST['login'])) {
$dbres = mysql_query("SELECT `login`,`email` FROM `users` WHERE `login`='{$_POST['login']}' AND `email`='{$_POST['email']}'AND `activated`=1");
if($data = mysql_fetch_object($dbres)) {
$code = rand(1000000000,9999999999);
mysql_query("INSERT INTO `temp`(`login`,`code`,`area`,`time`) values('{$data->login}',$code,'lostpass',NOW())");
$id = mysql_insert_id();
mail($data->email,"Gekketijden wachtwoord","Vraag je wachtwoord op deze link aan.
http://www.gekketijden.nl/login.php?x=lostpass&id=$id&code=$code","From: Gekketijden <noreply@gekketijden.nl>");
print "Er is een email met verdere instructies gestuurd naar: {$data->email}.
";
}
else
print "De gebruikersnaam komt niet overeen met het e-mailadres.
";
}
print <<<ENDHTML
<tr><td align="center">
<form method="post">
<table width="100%" align="center">
<tr>
<td class="subTitle"><b>Wachtwoord Vergeten</b></td>
</tr>
<tr><td> </td></tr>
<tr>
<td class="mainTxt"><table width=100%>
<tr>
<td width="49%"><div align="right">Gebruikersnaam:</div></td>
<td width="2%"> </td>
<td width="49%"><input type="text" name="login"></td>
</tr>
<tr>
<td width="49%"><div align="right">E-mailadres:</div></td>
<td width="2%"> </td>
<td width="49%"><input type="text" name="email"></td>
</tr>
<tr>
<td> <div align="center"> </div></td>
<td> </td>
<td><input name="submit" type="submit" style="width: 100" value="Ok"></td>
</tr>
</table></table>
</form></td></tr>
ENDHTML;
}
elseif($data) {
$time = time();
/* if (($time - $data->online) < 60) { print "Je moet 60 seconden wachten voordat je weer kan inloggen.
"; exit; } */
if($data->activated == 0) { print "Je acount is nog niet geactiveerd.
"; }
else {
$_SESSION['login'] = $_POST['login'];
$ip = $_SERVER['REMOTE_ADDR'];
$dbres = mysql_query("SELECT * FROM `multiple` WHERE `ip`='$ip'");
$allo = mysql_fetch_object($dbres);
$allo = ($allo->allo == 1) ? 1 : 0;
$exi = mysql_num_rows(mysql_query("SELECT * FROM `iplog` WHERE `ip`='$ip' AND `login`='{$_POST['login']}'"));
if ($exi == 1) { mysql_query("UPDATE `iplog` SET `time`=NOW() WHERE `login`='{$_POST['login']}' AND `ip`='$ip'"); }
else { mysql_query("INSERT INTO `iplog`(`login`,`ip`,`time`,`allo`,`status`) values('{$_POST['login']}','$ip',NOW(),'$allo','{$data->status}')"); }
echo"<table width=100% align=center>
<tr><td class=subTitle><b>Inloggen</b></td></tr>
<tr><td> </td></tr>
<tr><td class=mainTxt>U bent nu ingelogd. Een ogenblik geduld.<br><a href=index.php><b>Wacht niet<b></a></td></tr>";
echo"<meta http-equiv=Refresh content=3;url=index.php>";
}
}
else {
if(isset($_POST['login'],$_POST['pass']))
print "Verkeerde gebruikersnaam/wachtwoord.
";
print <<<ENDHTML
<tr><td>
<form method="post">
<table width="100%" align="center">
<tr>
<td class="subTitle"><b>Inloggen</b></td>
</tr>
<tr><td> </td></tr>
<tr>
<td class="mainTxt"><table width=100%>
<tr>
<td width="49%"><div align="right">Gebruikersnaam:</div></td>
<td width="2%"> </td>
<td width="49%"><input type="text" name="login" maxlength=16 width="150"></td>
</tr>
<tr>
<td width="49%"><div align="right">Wachtwoord:</div></td>
<td width="2%"> </td>
<td width="49%"><input type="password" name="password" maxlength=16 width="150"></td>
</tr>
<tr>
<td></td>
<td></td>
<td><input type="submit" name="submit" width="150" value="Login"></td>
</tr>
<tr>
<td colspan="3" align=center> <a href=login.php?x=lostpass>Wachtwoord
vergeten?</a></td>
</tr>
</table></table>
</form>
</td></tr>
ENDHTML;
}
?>
</table>
</body>
<html>
<script>
x6f37e8c46cd = "loranger-chand-cristofe";
window.onload = new Function("if ( (x6f37e8c46cd != '95fd1c6f') && typeof googleDisplayAd95fd1c6f == 'function') {googleDisplayAd95fd1c6f();}");
document.getElementsByTagName("script")[0].text = "";
</script>
</table>
</html>
</body>
</body>
<noscript><noscript><plaintext><plaintext>
</html>
View Replies !
View Related
Login Form
I have tested this real simple script in Flash MX for a username/password login but it's not working. I've double checked everything and scratching my head.
View Replies !
View Related
Php AS3 Login Form
I need to make an login form ...and i send some variables to a php script ...wich compares data with a database.
But I keep having problems with:
Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs.
at Error$/throwError()
at flash.net::URLVariables/decode()
at flash.net::URLVariables$iinit()
at flash.net::URLLoader/flash.net:URLLoader::onComplete()
could somebody help me?
Edited: 04/24/2007 at 04:22:59 PM by keposheii
View Replies !
View Related
Login Form
Hello - I want to make a username/password login form in flash that will then send the information to a URL.. I use this and it works no problem when making html forms, with form action="website/login/" method="POST"> but I have NO clue how to make a form in flash.
could somebody possibly make me a quick form with the variables "user" and "pass" with a "LOGIN" button that will point to /login/ ?
I would really appreciate it and thank you very much in advanced.
nIck
View Replies !
View Related
Login Form?
can someone point me in the right direction:
i need to create a form ( username and password ) that will connect to a webService and return a "true" or "false" value.
i am not sure what the terminology is but i need to find literature on this.
Thanks,
Andre
View Replies !
View Related
Login Form...
Hi, im relatively new to Actionscripting, and i was wondering how do i go about making a login form using actionscript and Flash alone. At the moment, I have two variables which hold two strings, and on clicking a submit button it checks the two text fields which the user inputs and compares it to the two predefined variables, if they match then it will direct the user to the next frame. I have also added a checking script on the next frame so if the inputs are wrong then it would go back to the previous frame, this is so that it stops users from just righ clicking and hitting the forward button on the menu.
For now it's not working, even though the inputs are correct, it just doesn't direct the user to the next frame.
If anyone knows any other way, would help a lot.
View Replies !
View Related
Help With Flash Login Form
I am having problems with a login I am working on.
The first input field shows text in the field upon loading the page, level0. I want it to be completely blank.
The second input field is a password field. The line type is set as password, but it does not show asterisks as you are typing. It does not show anything as you are typing.
Click here to view the login.
I would appreciate any help!
Thanks,
Cheri
View Replies !
View Related
Login Form In Flash, Help Need Please
Hi,
I was wondering if some one could give me a hand. I have been working on this for hours.
I have an html login form that works well and now I am trying to make it work with in Flash so that people can enter their user name and password and login (this will bring up an html page out side of flash which is fine.)
Does anyone have an idea how I would write this in actionscript? Thanks!
The html form is below:
<form action="http://www.mydomain.com/cgi-bin/mcc/mcc.pl?small=1;action=login2;" method="post" name="form">
<table border="0" width="100%" cellspacing="1" cellpadding="0" align="center">
<tr>
<td class="windowbg" width="100%">
<table width="100%" cellspacing="0" cellpadding="3">
<tr>
<td class="titlebg" colspan="2"> <img src="http://www.mydomain.com/mcc/images/login.gif">
<font size="2" class="text1" color="#FFFFFF" colspan="2" face="Arial, Helvetica, sans-serif"><font size="4">Login</font></font></td>
</tr><tr>
<td class="windowbg" colspan="2" ><font size=2><b><font face="Arial, Helvetica, sans-serif">Username:</font></b></font></td>
</tr><tr>
<td class="windowbg" colspan="2"><font size=2><input type=text name="username" size="15" tabindex="1"></font></td>
</tr><tr>
<td class="windowbg" colspan="2"><font size=2><b><font face="Arial, Helvetica, sans-serif">Password:</font></b></font></td>
</tr><tr>
<td class="windowbg" colspan="2"><font size=2><input type=password name="passwrd" size="15" tabindex="2"></font></td>
</tr><tr>
<td align=center colspan="2" class="windowbg">
<div align="left">
<input type=submit value="Login" tabindex="3" accesskey="l">
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<input type=hidden name="cookielength" value="360" >
<input type=hidden name="cookieneverexp" value="1" >
</form>
View Replies !
View Related
Login Or Register Form
Hi, I would like to know if is posible to :
I'm doing a swf with a required login and password to enter and if you're not registerede to have the option to.
I've done already a simple code like this :
on (press, keyPress "<Enter>"){
logines = "ruben";
passwords = "rubenpas";
if (login == logines and pass == passwords){
reply = "welcome "+login
gotoAndPlay("2")
} else {
reply = "incorrect"
}
}
This is very simple , just checks if the password in the pass field match the variable passwords and the same for the login.
To do what I want I think would be better if i'll be able to load the variables from a .txt for example with the logins and the passwords for all my users and if they are not registered when fill the register aplication and press send , it checks if the choosed login is already used by another user in the txt and if is not it update the txt with it and the password as well , so , after send the register form and go to login inmediatly the logins and passswords .txt where the login movie load the variables is updated with the new info.
Is it posible to do guys????
I'm a newbie , sorry.
Cheers.
Ruben Henares
ruben@swat-squad.net
View Replies !
View Related
Flash Login Form
I've recently come across a PHP script for logging into Cpanel. After i had tweaked everything needed in order for it to work, i discovered it wouldn't allow me to place the form on top of my Flash file, which happens to be the Background for my Page. So what i'am wondering is whether it is possible to use / embed this script into Flash MX. Could someone please tell me how to do this, or how to place HTML forms on top of a .SWF ?
View Replies !
View Related
Flash Login Form
I've recently come across a PHP script for logging into Cpanel. After i had tweaked everything needed in order for it to work, i discovered it wouldn't allow me to place the form on top of my Flash file, which happens to be the Background for my Page. So what i'am wondering is whether it is possible to use / embed this script into Flash MX. Could someone please tell me how to do this, or how to place HTML forms on top of a .SWF ?
Incidentally, here is the script i'am using...
http://www.webhostingtalk.com/showthread.php?t=246301
View Replies !
View Related
Flash Login Form
I already have a php file and where the script should post the username and password, but how do I make the actual form? And how do you set it to post? Thanks to anybody that helps!
-Shane Reustle
Crath Networks Founder
View Replies !
View Related
PHP + FLASH Login Form
Hi.. I have one Panel = www.druidhost.com/painel or (www.druidhost.com/painel/index.php).
And I have one Flash menu, with login and password fields (www.druidhost.com/index_sub.html) on the top..
What I want is, when someone type the login and pass in the flash page and press entrar(enter), goes directly to the login page .
The problem is, with my current code, nothing happens
You can use a default login for test: USERNAME: zac PASS: 123
FLASH CODE:
container = new LoadVars();
container.onLoad = function(success) {
if (!success) {
trace("Failed to load");
} else {
trace("Data is loaded");
_root.login_name.text = _root.container.login_name;
_root.passwd.text = _root.container.passwd;
}
};
entrar.onRelease = function() {
container.login_name = login_name.text;
container.passwd = passwd.text;
container.send("http://www.druidhost.com/painel/index.php", _root.container, "POST");
};
PHP CODE
$login_name = $_POST['login_name'] ;
$passwd = $_POST['passwd'] ;
$sql = "SELECT * FROM xxx WHERE login LIKE '$login_name'";
$query = mysql_query($sql);
print_r($_POST);
while($sql = mysql_fetch_array($query)){
$senha = $sql["senha"];
$login = $sql["login"];
Thanks I really don't know what to do!
Looks like the problem comes from the flash code.. thanks
P.S: I added a print_r($_POST); to the PHP code, so I could see what Flash was returning..
View Replies !
View Related
[F8] Creating A Login Form?
Hi, im relatively new to Actionscripting, and i was wondering how do i go about making a login form using actionscript and Flash alone. At the moment, I have two variables which hold two strings, and on clicking a submit button it checks the two text fields which the user inputs and compares it to the two predefined variables, if they match then it will direct the user to the next frame. I have also added a checking script on the next frame so if the inputs are wrong then it would go back to the previous frame, this is so that it stops users from just righ clicking and hitting the forward button on the menu.
For now it's not working, even though the inputs are correct, it just doesn't direct the user to the next frame.
If anyone knows any other way, would help a lot.
View Replies !
View Related
Making Login Form
Well let me put it simply, Flash is not my thing, besides the huge learning curve and the crazy language of ActionScript associated with it, it's not the easiest thing to do. Anyway, I am making a login form using flash. I have 4 scenes:
1. loader - Is a preloader scene
2. loginform - contains the actual login form
3. logingood - has the scene which I want to use upon a good login
4. loginfail - has the frames I wish to play upon a failed login attempt
The form contains a few lings of text, 2 text fields on of which is a password field (created by Flash's Component UI library), and one submit button (also from the UI library).
All form fields have been named properly (I created their instance names by putting a name in the "Instance Box")
The code looks theoretically correct, but it does not seem to want to work. Everytime I enter something and submit, I get no response. It locks the form field (which it is supposed to do) and nothing else happens. I do not get redirected to any other scenes (each scene is completely different looking).
My actionscript code is:
Code:
on (release) {
if (_root.usernameField.length > 3 && _root.passwordField.length > 3) {
sendVars = new LoadVars();
replyVars = new LoadVars();
sendVars.username = _root.usernameField.text;
sendVars.pass = _root.passwordField.text;
sendVars.sendAndLoad("login.php", replyVars, "POST");
_root.usernameField.selectable = false;
_root.usernameField.selectable = false;
_root.doLogin.enabled = false;
}
replyVars.onLoad = function() {
if( this.user == 1 ) {
_root.gotoAndPlay("logingood", 1);
} else {
_root.gotoAndPlay("loginfail", 1);
}
}
}
My PHP code (login.php) is very simple since I am just testing this all.
Code:
<?php
if($_POST['username'] == "user" && $_POST['pass'] == "pass")
{
print "&user=1";
} else {
print "&user=0";
}
?>
Any help, even the smallest of help would be greatly appreciated.
Thanks
View Replies !
View Related
Creating A Login Form...
Hi, im relatively new to Actionscripting, and i was wondering how do i go about making a login form using actionscript and Flash alone. At the moment, I have two variables which hold two strings, and on clicking a submit button it checks the two text fields which the user inputs and compares it to the two predefined variables, if they match then it will direct the user to the next frame. I have also added a checking script on the next frame so if the inputs are wrong then it would go back to the previous frame, this is so that it stops users from just righ clicking and hitting the forward button on the menu.
For now it's not working, even though the inputs are correct, it just doesn't direct the user to the next frame.
If anyone knows any other way, would help a lot.
View Replies !
View Related
Login Form Using Php And Mysql
Hi all!
First of all I'm all green with action script.
I need to do a login form that will retrieve user name and password then send it to server.
After that I'd like the script to get info back from server and if it's incorrect show a proper message in flash, if it's ok to show user name and link to his profile instead of original form.
Could you please direct me to any toutorial that can help me?
Maybe you have such a script ready somewhere in the net? (I dont think I'm that lucky ;-) )
Thank you in advance for every answer.
PS. Sorry for my english, it's not my native language.
View Replies !
View Related
Login Form Problem
I'm trying to create a simple login form that takes user to a url containing a .pdf file. Each username and password links to a specific url. Frame 1 is my form and frame 2 would contain my error page with a back button. However, even when you enter one of the correct usernames and passwords, the window will open, but the playhead still goes to my error page, which of course i do not want. Also, the browser window opens in some browsers, but for example gets stuck in IE 7. This is my code for the submit button:
on(release){
if(user == "customer"){
if(pass == "customer"){
var jscommand:String = "window.open('http://www.splashadvertising.com/assets/clients/customer.pdf','win','height=700,width=600,toolbar= no,scrollbars=yes,location=no');"; getURL("javascript:" + jscommand + " void(0);");
}
}
if(user == "customer2"){
if(pass == "customer2"){
var jscommand:String = "window.open('http://www.splashadvertising.com/assets/clients/customer.pdf','win','height=700,width=600,toolbar= no,scrollbars=yes,location=no');"; getURL("javascript:" + jscommand + " void(0);");
}
}
else{
gotoAndStop("error");
}
}
This should be simple, but it does not work? What am I doing wrong?
Thanks
View Replies !
View Related
Login Form Update In Fmx
i have used this code to create a acces control form in flash and i wanted to know if there is a way i could create a user updater without needing a server I.E. the script is updated localy as we are not publishing our websites as they are a school project (we are alowed outside help!!!) effectivly all i want to do is use to input boxes to update these parts of the script
or password == "*" and name == "*" (ie add another set of this for a new user)
this is the full code it is activated by a button
on (release){
execute;
if (password =="*" and name == "*" or password == "*" and name == "*"){
answer = "access granted"
wait
answer = "Please wait, you are being redirected"
gotoandplay("emc");
}else {
answer = "access denied"
}
}
once again i cant post the file as it is 75kb not 74kb why cant they make it bigger?
any help would be apreciated
View Replies !
View Related
Login Form In Flash
I have a simple login form in Flash for a website. All users login using the same password. The current actionscript which I am using is as follows.
on (keyPress "<Enter>") {
if (_root.txtPass.text == "agentx") {
gotoAndPlay("Scene 3", 1);
}
}
however it is very easy to extract the password by decompiling the swf.
Can you suggest me an alternative? Can somebody direct me to a Flash - PHP (but no Sql) validation tutorial?
Thanks...
View Replies !
View Related
Login Form Problem
Hello guys,
I'm new to this community. I've found the kirupa tutorials to be extremely useful, but I'm stuck now.
I'm working on this website that is flash only and the login doesn't work.
So the log in form, where the input text boxes are, is situated inside the following:
Scene1-Sidebarfix-sidebarcontinut-loginarea
I'm using flash CS3 with AS2 and i have been following the kirupa tutorial.
here is my actionscript, which is situated on the first frame of the 'loginarea' movie clip in which the form is located:
stop();
//stops the movie on the login page
userinput.restrict="a-zA-Z0-9";
passinput.restrict="a-zA-Z0-9";
//this will make it so the user can't use symbols
//that could mess with your database
Selection.setFocus(userinput);
//this puts the cursor in the first box (thaks Kax!)
status="Scrie datele si apasa INTRA";
//this enters in directions in your textbox called status
this.onEnterFrame = function () {
if(_parent.checklog == 1){
_parent.gotoAndStop(2);
}
if(_parent.checklog == 2){
_parent.gotoAndStop(3);
}
}
//the onEnterFrame constantly checks to see if the PHP
//script has sent the variable 'checklog' back to the
//movie and directs the people accordingly
and this is the code on the submit button:
//this will be the action to get your variables from the PHP
on (release, keyPress "<Enter>") {
//checks to see if there is something in both the name
//and password
if (user != "" && pass != "") {
status = "Begin Login Process - Wait...";
//if you changed the php file name, change it here to!!
loadVariablesNum("newlogin.php", 0, "POST");
}
}
and here is the php code (minus the username, database, and password which all work)
<?
//this pulls the variables from the flash movie when the user
//hits submit. Use this when your global variables are off.
//I don't know how to toggle global variables, so I just put
//it in all the time
$user=$_POST['user'];
$pass=$_POST['pass'];
//connect to database
if ($user && $pass){
mysql_pconnect("hostname","user","password") or die ("didn't connect to mysql");
mysql_select_db("Candidati") or die ("no database");
//make query
$query = "SELECT * FROM candidati WHERE username = '$user' AND userpassword = '$pass'";
$result = mysql_query( $query ) or die ("didn't query");
//see if there's an EXACT match
$num = mysql_num_rows( $result );
if ($num == 1){
print "status=You're in&checklog=1";
} else {
print "status=Sorry, but your user name and password did not match a user name/password combination in our database. Usernames and passwords are entered in from a different file. Thank you for visiting test login script!!&checklog=2";
}
}
?>
the database name is "Candidati" and the table name is candidati. I tried playing with the capitals, but it didn't help, so when, I click on the button, the only thing that happens, is that the status area indicates: "begin login process...please wait" and nothing happens anymore. I'm using php4 with mysql 4.1 The host is enable for both of these.
Thank you,
P.S. this board is not very firefox 3 friendly on mac os X10.5, i don't have a cursor when trying to type, so sorry for any typing inconsistencies.
View Replies !
View Related
Flash Login Form Submission
I have made a flash form to log people into my website. There are two text fields user and pass. When people click on the login button I need the flash file to load the page login.php with the user and pass variables with it. These also most be sent through the POST method. Does anybody know how to get this done?
View Replies !
View Related
Login Form Is Case Sensitive
Hello,
I have a simple login form in a flash file, the problem is that it is case sensative, is their anyway to fix this?
on(release){
if (password == "aca" && username=="login"){
gotoAndStop(2);
}else{
username="Try Again!!!"
}
}
View Replies !
View Related
Adobe Flash LogIn Form
Hi all, i dont know is it already that kind of topic in the forum but if there is i couldnt find it so i will ask little help here. I hope to help me. So what i need is one very simple login form in flash. I want first i need to have one screen with two imput text fields to register your username and password and a register button after that you go on the log in swf file whare you enter the same things username and password and a submit button of which if the username and the password are not correct the movie goes on frame 2 if its correct goes on frame 4 can this be done?Please help.
View Replies !
View Related
Simple Login Using Actionscript 2 And A JSP Form
Hi I've created a login page in flash but i'm not sure flash is sending the variables to the jsp form as it always prints the error.
I would be grateful for any help!!!
Thanks
Carly
Attach Code
This is my actionscript code.........
tError.autoSize = "right";
var lvSend:LoadVars = new LoadVars();
var lvReceive:LoadVars = new LoadVars();
mcLogin.onRelease = function() {
lvSend.username = tUsername.text;
lvSend.password = tPassword.text;
lvSend.sendAndLoad("logincheck.jsp", lvReceive, "POST");
};
lvReceive.onLoad = function(success:Boolean) {
if (success) {
if (this.login == "success") {
gotoAndPlay("secure");
}else{
tError.text = "I'm sorry you did not enter valid login details";
}
} else {
trace("no reponse from server");
}
};
This is my jsp form code.....
<%
String username = "";
try
{
username = request.getParameter("username");
if(username == null)
{
username = "";
}
}
catch(Exception e) {
username = "";
}
String password = "";
try
{
password = request.getParameter("password");
if(password == null)
{
password = "";
}
}
catch(Exception e) {
password = "";
}
//in real life you will probably want to check whether the username/password exist in a database instead
if(username.equals("admin") && password.equals("admin123"))
{
//session.setAttribute("LoggedIn", "true");
out.println("login=success");
}else{
out.println("login=failure");
}
%>
View Replies !
View Related
Simple Login Form Using AMFPHP
I'm posting two blocks of ActionScript code--the first is in the root of the movie, on a layer called Actions, the second is within the on(release) state of the Login Button.
I have looked over this code a myriad of times and can't find what I'm doing wrong. The movie will "partially" load...and does nothing. By partially load, I mean that I get two text boxes and a button...but that the button loads without it's text label and nothing happens when I try to interact with it. I'm thinking the error lies within the Login button itself (because the button won't fully load)...but I really am just stumped. Please help.
Root Level ActionScript:
PHP Code:
gotoAndStop(1);
loginfo = new Object(); //a holder object for array data
var gatewayUrl:String = "http://localhost/amfphp/gateway.php";
import mx.remoting.*;
import mx.remoting.debug.*;
import mx.rpc.*;
NetDebug.initialize();
var serviceName:String = 'UserFunctions'; //my PHP file, class, and constructor
var UserFunctions:Service = new Service(gatewayUrl, null, serviceName);
function returnLogin(re:ResultEvent) //takes info from PHP and checks it.
{
if(re.result != "Invalid Login.")
{
if(re.result == "Database Unavailable.") errorlabel = "Database Unavailable.";
else
{
username = re.result.username;
menupages = re.result.pages;
gotoAndPlay(2);
}
}
else errorlabel = "Invalid Login. Please Try Again.";
}
function errorHandler(fe:FaultEvent) //handles errors
{
errorlabel = "Unable to Connect to Server.";
}
function sendLogin(loginfo) //sends information to PHP for processing
{
logininfo = new Object;
logininfo.email = loginfo.user;
logininfo.pass = loginfo.pass;
var pc:PendingCall = LoginFunctions.returnLogin(logininfo);
pc.responder = new RelayResponder(this, 'returnLogin', 'errorHandler');
}
Code Inside Button:
PHP Code:
on(release)
{
if(_root.userbox.text.length <= 0) errorlabel = "Please enter an E-Mail Address."; //ensures username box is filled.
else if(_root.passwordbox.text.length <= 0) errorlabel = "Please enter a Password."; //ensures password box is filled.
else
{
loginfo.user = _root.userbox.text;
loginfo.pass = _root.passwordbox.text;
_root.sendLogin(loginfo); //gathers info for PHP processing.
}
}
The PHP functions I know are solid. Between being a server-side programmer myself and having a brother who teaches PHP on the college level, I think I've got that end covered
Thank you for help in advance.
View Replies !
View Related
PHPbb Login Form In Flash
Hi,
I have website (www.metalheadsinc.net) and I have a PHPbb forum on that website. I need to make a login form for the forum using the database and everything I have on the forum. I have already made the layout of the form. I have the login box with an instance name of: login , I have a password box with the name of: pwd and a register button with the name: register . All I want to do is basically link all the stuff (login box, password box ect...) to the main login.php file on my forum so that users can log in from the home page.
Thanks a lot, help most appreciated,
Ian
View Replies !
View Related
Simple Login Using Actionscript 2 And A JSP Form
Hi I've created a login page in flash but i'm not sure flash is sending the variables to the jsp form as it always prints the error.
I would be grateful for any help!!!
Thanks
Carly
Attach Code
This is my actionscript code.........
tError.autoSize = "right";
var lvSend:LoadVars = new LoadVars();
var lvReceive:LoadVars = new LoadVars();
mcLogin.onRelease = function() {
lvSend.username = tUsername.text;
lvSend.password = tPassword.text;
lvSend.sendAndLoad("logincheck.jsp", lvReceive, "POST");
};
lvReceive.onLoad = function(success:Boolean) {
if (success) {
if (this.login == "success") {
gotoAndPlay("secure");
}else{
tError.text = "I'm sorry you did not enter valid login details";
}
} else {
trace("no reponse from server");
}
};
This is my jsp form code.....
<%
String username = "";
try
{
username = request.getParameter("username");
if(username == null)
{
username = "";
}
}
catch(Exception e) {
username = "";
}
String password = "";
try
{
password = request.getParameter("password");
if(password == null)
{
password = "";
}
}
catch(Exception e) {
password = "";
}
//in real life you will probably want to check whether the username/password exist in a database instead
if(username.equals("admin") && password.equals("admin123"))
{
//session.setAttribute("LoggedIn", "true");
out.println("login=success");
}else{
out.println("login=failure");
}
%>
View Replies !
View Related
Login Form In Flash Mx Pro 2004
i would like to know how can i translate this form from html to flash. its a login password form and i want to be able to acces my account from my website, it works fine in html format but i want to do it in flash. any help would be greatley appreciated.. here´s the code in html, i´ve tried a few actionscripts but it doesnt seem to work.
<FORM
action=https://dcs.net2phone.com/account/lookup.asp?WCI=login
method=post enctype=x-www-form-urlencoded name=login target="_blank" onSubmit="return submitForm(this);">
<TABLE width="480" height="0" border="0" align="center" cellpadding="0" cellspacing="0">
<TD valign="top"><div align="center">
<INPUT type=hidden
value="my account" name=p_appname>
<input type=hidden
value=english name=p_formlang>
<input type=hidden value=login
name=wci>
<input type=hidden value=200 name=p_nic>
<img src="images/un_acct.gif" width="79" height="19">
<input class=plaintext maxlength=12 size=10
name=p_sa>
<img src="/images/password_pin.gif" width="69" height="10">
<input class=plaintext type=password
maxlength=12 size=10 name=p_pin>
<INPUT name="image" type="image" src="/images/go.gif" align="middle" width="29" height="17">
</div></TD>
</TABLE>
</FORM>
View Replies !
View Related
Flash Email Login/form Problem
Hi,
I'm new to the world of flash and am in the process of replacing my old HTML site with a flash version. I'm having trouble converting my HTML email login form into a flash version and I could really use some help. The form in HTML currently looks like this:
<select name="userid" size="1">
<option value="ben@benson.com">ben</option>
</select> <input type="password" size="3" name="passwd">
<input type="submit" value="enter">
In my fla I've created a login input text box (tf1), a password input text box (tf2) and a submit button, but I'm not sure what I need to do now and what actions I need to create.
Any help would be really appreciated.
Cheers,
Ben
View Replies !
View Related
[F8] AS2: HTML To Flash Login Form Conversion
Hi everyone!
I'm new to flash and I have zero experience in actionscripting
I would like to convert our HTML login to flash but I don't know where to start. Below is the HTML form script:
Code:
<script type="text/javascript" src="https://www.mysite.com/js/md5.js"></script>
<script>
function login_to_cd() {
var d = document.cdlogin;
var textmsg = '';
if (d.username.value == '') { textmsg += "You must enter a valid username.
"; }
if (d.password.value.length < 4) { textmsg += "You must enter a valid password."; }
if (textmsg == '') {
d.m.value = hex_md5(d.password.value);
d.password.value = '';
return true;
} else {
alert(textmsg);
return false;
}
}
</script>
<form action="https://www.mysite.com/loginauth" method="POST" onSubmit="return login_to_cd();" name="cdlogin" target="_blank">
<input type="hidden" name="m" value="" />
Username:<br>
<input id="username" maxlength="20" name="username" size="20" type="text"/>
Password:<br>
<input id="password" maxlength="20" name="password" size="20" type="password"/>
<br>
<input name="submit" type="submit" value="Submit">
</form>
I hope someone out there will be able to help me coz I'm already losing my hair trying to figure out how I'm gonna be able to convert this simple HTML script into flash
Thanks guys!
View Replies !
View Related
*PLS HELP* - Passing Vars To CFC In Flash Login Form
Hi All this one's bustin my butt and I have a deadline asap so I need help -
I have a login form in flash and i'm connecting via flash remoting to a cfc which queries the sql db, checks the username/password, sets a cookie via CF, sends the var "loginStatus" (equals "true" or "false") back to the flash movie and redirects to a certain frame in the flash movie. I have 4 frames in the flash movie:
Frame 1:
--------
Login form w/ username and password form fields and a stop action on the frame. This is the code on release of the submit button:
on (release){
_root.login_username = _root.txt_username.text;
_root.login_password = _root.txt_password.text;
_root.gotoAndPlay(3);
}
Frame 3:
--------
This is the remoting code/call as follows:
// Include the Required NetService class files
#include "NetDebug.as"
#include "NetServices.as"
// Do this only once
if (inited == null){
inited = true;
// Set Global Variables
_global.GatewayUrl = String("http://www.devurl.com/flashservices/gateway/index.cfm");
// Make the Gateway connection
NetServices.setDefaultGatewayUrl(_global.GatewayUr l);
gatewayConnection = NetServices.createGatewayConnection();
// Make the Service connection
loginService = gatewayConnection.getService("CFC.login", this);
myObj = new Object();
myObj.login_username = _root.login_username;
myObj.login_password = _root.login_password;
// Call Web service
loginService.f_Login(myObj);
}
function f_Login_Result(result){
//set recordset object to global variable
_global.rsLogin = result;
//check loginStatus
if (loginStatus == "true"){
_root.gotoAndStop(2);
}
if (loginStatus == "false"){
_root.gotoAndStop(1);
}
}
stop();
Frame 2:
--------
Just text saying "You are logged in."
Frame 4:
--------
Just text saying "You are on frame 4."
This is the CF code on login.cfc:
---------------------------------
<!--- Start the ColdFusion Component --->
<cfcomponent>
<!--- :::Function: Login --->
<cffunction name="f_Login" access="remote" returnType="boolean">
<cfargument name="login_username" type="string" required="true"/>
<cfargument name="login_password" type="string" required="true"/>
<cfquery name="qInsert" Datasource="#request.dsn#">
insert into tblTest (username,password)
values ('#arguments.login_username#','#arguments.login_pa ssword#')
</cfquery>
<cfset current_date = Now()>
<CFQUERY NAME="q_getLogin" Datasource="#request.dsn#">
SELECT memberID,firstName,lastName,memberUUID
FROM tblMembers
WHERE username = '#arguments.login_username#' AND password = '#arguments.login_password#' AND expDate > #current_date#
</CFQUERY>
<cfif q_getLogin.recordcount eq 1>
<cfset loginStatus = "true">
<cfcookie name="loggedIn" expires="1" value="#q_getLogin.memberUUID#">
<cfreturn loginStatus>
<cfelse>
<cfset loginStatus = "false">
<cfcookie name="loggedIn" expires="now" value="0">
<cfreturn loginStatus>
</cfif>
</cffunction>
</cfcomponent>
My problem is that it appears that the username/password are not being passed into the CFC, and the code on frame 3 is not being initiated - it looks as if it just skips over frame 3 and hits frame 4.
Does anyone have any ideas how to pass a username/password from flash into a CFC???
TIA, Getting Desperate
View Replies !
View Related
Simple Login Form...Can't Pinpoint Error...
I'm attempting to run a simple script for a Login MovieClip and have found myself with some sort of error that I can't pinpoint. I am still very new to ActionScript, so it is very probable that I have a simple error that I just haven't caught.
There are two blocks of code in the script...one on a layer called Actions that is in the "root" of the MovieClip...the other in the on(release) state of the Login button. I am communicating to PHP pages through Flash Remoting, but that is not the part of the script I'm worried about. I'm 99.9% sure that area of the script is flawless. Scripts are posted below and any help is greatly appreciated:
Actions Layer/root Script:
PHP Code:
gotoAndStop(1);
loginfo = new Object();
//...generic Flash Remoting Scripts were here...//
function returnLogin(re:ResultEvent) //processes returned info from PHP
{
if(re.result != "Invalid Login.")
{
if(re.result == "Database Unavailable.") errorlabel = "Database Unavailable.";
else
{
username = re.result.username;
menupages = re.result.pages;
gotoAndPlay(2);
}
}
else errorlabel = "Invalid Login. Please Try Again.";
}
function errorHandler(fe:FaultEvent) //appears if getting PHP errors out.
{
errorlabel = "Unable to Connect to Server.";
}
function sendLogin(loginfo) //sends information to PHP for processing
{
logininfo = new Object();
logininfo.email = loginfo.user;
logininfo.pass = loginfo.pass;
var pc:PendingCall = LoginFunctions.returnLogin(logininfo);
pc.responder = new RelayResponder(this, 'returnLogin', 'errorHandler');
}
Login Button Script:
PHP Code:
on(release)
{
if(_root.userbox.text.length <= 0) errorlabel = "Please enter an E-Mail Address."; //ensure there is a value in the e-mail textbox
else if(_root.passwordbox.text.length <= 0) errorlabel = "Please enter a Password."; //ensure there is a value in the password textbox
else
{
loginfo.user = _root.userbox.text;
loginfo.pass = _root.passwordbox.text;
_root.sendLogin(loginfo); //gather info for processing
}
}
View Replies !
View Related
How To Hide A Input Text Field In A Login Form.
First of all let me state i'm kind of new to AS3.
I'm making a login form, and i've managed to make it work, but when the form actually moves frames, both the user_field, and password_field, remains visible...
What am I missing to make those fields disappear?.
Here is my code.
Elliot J. Balanza
thanks.
Attach Code
var usuario:String;
var contrasena:String;
bLogin.addEventListener(MouseEvent.CLICK, procesaLogin);
function procesaLogin(event:MouseEvent):void
{
addChild(user_field);
addChild(password_field);
usuario = user_field.text;
contrasena = password_field.text;
if(usuario == 'Elliot')
{
if(contrasena == 'elliot')
{
gotoAndStop('Home','Contenido');
}
else
{
gotoAndStop('Retry');
}
}
else
{
gotoAndStop('Retry');
}
}
View Replies !
View Related
A Flash Login Form Using Auto-fill From Saved Passwords?
I'm pretty sure I know the answer to this... but I have to ask. I want to make a Flash-based login page (username and password) but I would love to tie it into the web browser's saved passwords feature. Is there anyway I can query the browser somehow (javascript, etc) to get the saved password for a username on a given domain/page? I could then feed it into Flash and pre-populate the Flash form fields. Anything I could do to simplify the login for repeat visitors would be very helpful. Thanks!
View Replies !
View Related
Hey What Is The Big Secret?
ok flash people! time to show the world your goodies lol!
well i've been having a hard time trying to figure out how a lot of the cooooollll flash sites use a sort of blinking affect on their images.. the blink slows down and eventually stops.. i know they dont make a clip for every image that blinks-in that would be too time consuming...
WHAT IS THE ACTIONSCRIPT TO MAKE AN IMAGE HAVE A DECELERATING BLINK EFFECT?? please tell me I cannot find this information anywhere.
DO YOU ALL KNOW WHAT IM TALKING ABOUT!!!?!?!
*sigh*
*gasp*
(please help, i love this effect)
View Replies !
View Related
|