Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








How/login Area Via Flash Mx ?


hello, hope y'all doing good. I am looking for help. I'm planing to make a button in flash which loads a ext. movie in a level. this movie have fields where u put ur name and email in then when u submit IT will take you to another movie (loaded in next level) ... what i'm trying to do is ...

Before somebody can view my resume, they have to leave name, email and so on ...


?? any ideas




FlashKit > Flash Help > Flash General Help
Posted on: 11-11-2003, 01:12 PM


View Complete Forum Thread with Replies

Sponsored Links:

Login Area. Pls Help
What I'm trying to do is set up a section in a site where people can register/login and recieve a password (perhaps via an email). This new password needs to be stored on the server so that it can be accessed next time the user enters the site. Does this involove creating a database and calling data from there using something like php? if so, can anyone help, my knowledge of php is pretty limited!

Thanks

View Replies !    View Related
Member Area Login
Hi, I am a noob trying to use some flash action script for a simple member area login. Security isn't a major concern and it is ok for all members to share a common username and password. I have tried to adapt a tutorial script but it doesn't work. I am finding that the login works no matter what you type in each input text field and the dynamic text (var=mess) doesn't show in the dynamic text field. What am I getting wrong?


on (rollOver) {
gotoAndPlay("s1");
}
on (releaseOutside, rollOut) {
gotoAndPlay("s2");
}
on (release, keyPress "<Enter>") {
mess="Members login below";
if (text1=="customer") {
mess="Try again!";
if (text2=="shitcreek") {
mess="Try again";
if (text1=="customer" & text2=="shitcreek") {
}
}
}
getURL("http://www.mywebsite/members.htm", "_self");
}

Thanks for any help
Mike

View Replies !    View Related
Help Needed - Login Area Pulling Usernames From External Source
Hi Folks,

would anyone have a killer tutorial on login areas, i need it for a client site? I would also like it to call in the usernames and passord from an array from and external source is this possible?

Thanks in advance

View Replies !    View Related
Login Form With Login/password Validation From Text File
Can anyone point me to a good example.

I just need username/password authenticated through a .txt file with that info saved in there.

Thanks,
fitchic77

View Replies !    View Related
Login->page Refresh->login Again?
Hi!

I'm making a chat project for my site... I've got a little(maybe BIG)problem now..

problem: When the user enter the chatroom, it requare to put nick name(of course), after when the user logged in, the chatroom understand as that nicked USER is online, if he/she REFRESH the page... flash movie start from begining :'( , that means that user is known as logged in, but he/she is in login stage again...

that seems to be a problem... pls give me a hand(any advices or ideas or Action Script to fix the problem)... pls...


thanx in advance

-GM

View Replies !    View Related
Load External Swf Into A Specific Area And Confine Interactivity To That Area... ?
Hello again,

I have a problem I've been trying to solve below.


I have a file that loads external swf files onto the screen, but I need these swfs to load into a specific 1024x644 area in the main movie.

I need the external swfs to maintain their interactivity while the mouse is over their area, but not when the mouse is over other parts of the screen (I need other buttons to still be accessible outside the area of the loaded swf.

As it is now, the mouse properties of the loaded swf take over the entire movie and render the buttons useless.

Below is some code I'm using. Can anyone provide examples of code that positions an external swf into a specific area and contains its interactivity?

I'm still very new to AS, so it's difficult for me to understand how to do things without specific code examples to look at. Also, if my code is inefficient or sloppy, please let me know.

Thanks.


var loader:Loader = new Loader();

function buttonPush1(event:MouseEvent):void {
var url:URLRequest = new URLRequest("mousetrail_644.swf");
loader.load(url);
this.addChild(loader);
}

Btn1.addEventListener(MouseEvent.CLICK, buttonPush1);

function buttonPush2(event:MouseEvent):void {
var url:URLRequest = new URLRequest("magnify2.swf");
loader.load(url);
this.addChild(loader);
}

Btn2.addEventListener(MouseEvent.CLICK, buttonPush2);

function buttonPush3(event:MouseEvent):void {
var url:URLRequest = new URLRequest("mapcursor_644_2.swf");
loader.load(url);
this.addChild(loader);
}

Btn3.addEventListener(MouseEvent.CLICK, buttonPush3);

function accessDenied(event:MouseEvent):void {
gotoAndPlay("scanner_denied");
}

Btn4.addEventListener(MouseEvent.CLICK, accessDenied);

View Replies !    View Related
Menu Area's To Stay Expanded When You Rollout The Red Area ?
I am stuck here.

I want the different menu area's to stay expanded when you rollout the red area (see attached file: red line).

I think I need to use a flag variable, but I am stuck.

Any advice, suggestions??

View Replies !    View Related
Flash Login Help
Does anybody know of a tutorial that will enable me to create a username and password login swf that connects to a MySql database using PHP? Then once the user inputs the correct username and password the timeline moves to the next frame or loads another swf file.

Thanks

Paul

View Replies !    View Related
Login Flash Php Or Cgi?
hi,

i have a page i want protected, so that only registered users can see it.

How can i set up such a system where you can register, have a password sent to you , and then proceed to login?

I need to be sent or explained how this can be done without a db,
as i am really clueless at creating them.

Unless someone knows a simple way.

Thanx for any help in advance

View Replies !    View Related
Need Some Help With Login For Flash
alright well i have this idea and i want to know if i can make a flash logon and use it to login into a forum(not flash forums)a nd if so can u tell me how to do it. this is the html code for the forum login:
form action="http://www.loadclan.com/forums/index.php" method="post" name='LOGIN' onSubmit='return ValidateForm()'
input type='hidden' name='act' value='Login'
input type='hidden' name='CODE' value='01'
input type='hidden' name='s' value='11b0ceb585bd56b69e6f5ec9d333ff56'
input type='hidden' name='referer' value=""
input type='text' size='20' maxlength='64' name='UserName' class='forminput'
input type='password' size='20' name='PassWord' class='forminput'
input type="submit" name='submit' value="Log me in" class='forminput' thanks

View Replies !    View Related
Login In Flash
Hey everyone! Right now, I'm working on interacting between Flash and PHP. For some reason, this following AS won't interact:

code: stop();
_global.php_file = "inc/login_flash.php";
myVars = new LoadVars();
myVars.user = _root.user;
myVars.pass = _root.pass;
myVars.action = "login";
myVars.sendAndLoad(php_file, myVars, 'POST');
myVars.onLoad = function() {
if (this.usernum>0){
_root.logg = "Logged in as "+_root.user;
_root.ireturn._visible = false;
} else {
_root.logg = "Incorrect user/pass";
_root.ireturn._visible = true;
}
}

That AS interacts with this PHP:


PHP Code:



<?php
@include("config.php");

function login($userName, $passWord)
{
    $userName = trim($userName);
    $passWord = md5(trim($passWord));
    $query = "SELECT * FROM users WHERE username='$userName' AND password='$passWord' LIMIT 1";
    $res = mysql_query($query);
    return mysql_num_rows($res);
}


if (isset($action))
{
  switch($action)
  {
    case "login":
         $num = login($user, $pass);
         echo "&usernum=".$num."";
         break;
  }
}


?>




I've tested the scripts in all possible ways that I know, and everythingsseems to be fine, but it's not working. Any suggestions? Thanks a lot!

View Replies !    View Related
<Need Login In Flash --Please>
Hi, I want to make a login table in flash. But i don't know the HTML or PHP or JAVA Code for that. Please if you have it reply me. I really neeeeed it. Please Please Please
Quote:




Those who can see Invisible; Can do Impossible.

View Replies !    View Related
Login In Flash
I downloaded and recreated the flash member login form the way I like it and saved in .fla .swf .php .text, they all are together and I saved it and uploaded to server. Now when you hit "our store" -http://www.tsigold.com I want it to go to this .swf file first, you log in and then when you are logged in and hit close it will take you back to shopping. Do I use on
on (release) {
getURL("members.swf");
}
to get to the file. I really need some help on this. I can upload .fla file but I do not see a upload button?

View Replies !    View Related
Flash Login Help...
Help...I need to know create a login fuction using flash which like the flashchat. When 2 users login using the same username and password.The first user will be kick out from the system.I using MySQL as my database.

View Replies !    View Related
Login With Flash + IIS + ASP
Any one found any solution yet?



I have a IIS server which runs HTTP services.
I have created a SWF files from the fla.
I have also published a HTML file from the fla.
Now, i have put everything together somehow it just doesnt work.

Btw, i am using Flash 8 Pro with IIS win 2000. Thanks

View Replies !    View Related
Flash.php Login
greeting all i'm having some problems with my login...

i've changed the source from http://www.kirupa.com/developer/acti...entication.htm
to fit my needs and i seem to be having some problems.

my form looks like this http://www.lightningmedia.com/form_test.php
(stupid i know but it's what the client wants.) no username just a password...

i'm still new at this and my scripting isn't the strongest...
i'm trying to work it out...

my PHP Code:
<?php
include("../lib/mysql2.0.php");
$db = new MySQL;
## QUERY DATABASE TO SEE IF EMAIL ALREADY EXISTS
$db->query("SELECT * FROM tech_info WHERE email = '$Name' AND double_optin=1");
if($db->num_rows()) {
$db->next_record();
echo "1";
} else {
echo "2";
}
?>
my email /password is in the database as n8@creativenet.net this is what i'm trying to log in with..

my actionscript


Code:on the time line....
stop();
status="Enter your information and submit";
this.onEnterFrame = function () {
if(_root.checklog == 1){
_root.gotoAndStop(2);
}
if(_root.checklog == 2){
_root.gotoAndStop(3);
}
}

Code:on the button ( i know this is old skool )
on (release, keyPress "<Enter>") {
if (Name != "") {

status = "Begin Login Process - Wait...";
loadVariablesNum("include/techinfo_login.php", 0, "POST");
}
}text field instance nameassinput
var:Name

i just can't seem to get it to work....

any help would be great, thanks

View Replies !    View Related
Flash Login
Hi.

Im trying to find a tutorial on how to create a login module for my website where users can login to there own personal profile. Sort of how you do it here on Adobe's website and any other website for that matter.

If Flash is not the best choice to do this with can someone point me in the right direction?

Thanks.

View Replies !    View Related
Login Using Flash MX
I have been reading your tutorial (Login Using Flash MX) and I have a doubt, well, they are several. I would like to know how to make the data base, and where I can put the user and the password, because my English is not very good and I don't really understand everything you explain.

Could you be so kind to send me the data base?
Thank you

email: estecan@gmail.com

View Replies !    View Related
Flash Login ASP And A .mdb
OK So this is how it works; I have a login and currently all the usernames, password, and 3rd value (path) are stored in the actionscript, and using an "if/ else" the login is either rejected or passed to another dynamically created asp page. The dynamic asp page takes the third value (path) and uses it to determine the path of the dynamically created directory.

What I need to do is recreate this but using a Microsoft Access database (.mdb) to store the username, password, and path values. In thereory this is what I think I need in order for it to work. The flash login page --> passes the username and password values to an asp page that checks against the database ---> then returning the path value to either the flash file or to the dynaically created asp page.

Files:

Flash.swf
login.asp
directory.asp
login.mdb

ANY HELP would be greatly appreciated. I'm stumped.

View Replies !    View Related
Flash / Php Login
Hi

I'm attempting Freddy Thunders Flash / PHP login tutorial (http://www.kirupa.com/developer/acti...entication.htm) and I'm having problems getting the Flash part to work.

The MySQL database is connnecting and working fine - with the usercheck sucecssfully uploading names / passwords to the database.

The Flash login .swf is being loaded into level 50 on my site. As I understand that any reference to _root on a .swf loaded into a level will always reference the root on the 'mother' movie (level0), I've sought to fix any problems with the path by preceding _root references with _level50 -- see below.

But this isn't working.

Any other ideas on what may be the issue??

Thanx

Dirk



stop();
userinput.restrict="a-zA-Z0-9";
Selection.setFocus(userinput);
passinput.restrict="a-zA-Z0-9";
status="Enter your information and submit";
this.onEnterFrame = function () {
if(_level50_root.checklog == 1){
_level50_root.gotoAndStop(2);
}
if(_level50_root.checklog == 2){
_level50_root.gotoAndStop(3);
}
}

View Replies !    View Related
Pls Help Fix My Flash/PHP Login
Evening all,

Following from Freddythunders tutorial, I'm trying to make a login in flash. I'm having trouble getting it to work but can't where I'm going wrong! I presume it's a typo or some similarly stupid mistake I'm making but have gone back over the tutorial and code I don't know how many times!

The flash stuff is at http://www.artefactproject.com/kirupa_2.html, the PHP file is then http://www.artefactproject.com/pdalogin.com
When I try to log in with the username timmy pass timmy (which works on a seperate site links to the same db, same table), I get redirected to the 3rd frame in the movie, Your name and password don't match...

(Also I realise that the back button isnt great as it is only the box outline - but will prettify when I get the functionality sorted!)

If someone would be so kind as to look over the code below and point in the right general direction I would be eternally grateful! I'm fairly new to flash/php but really need this to work asap! The login is essential but need not be secure or anything like that!


Thank you in advance!
Edelmh

AS frame 1 of movie:

Code:
stop();
userinput.restrict="a-zA-Z0-9";
passinput.restrict="a-zA-Z0-9";


Selection.setFocus(userinput);


status="Please enter your information and submit";

//this enters in directions in your textbox called status
this.onEnterFrame = function () {
if(_root.checklog == 1){
_root.gotoAndStop(2);
}
if(_root.checklog == 2){
_root.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
AS on submit button:

Code:
//this will be the action to get your variables from the PHP
on (release, keyPress "") {
//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("pdalogin.php", 0, "POST");
}
}
PHP code:

Code:
<?
//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['u'];
$pass=$_POST['p'];

//connect to database
if ($user && $pass){
mysql_pconnect("host","username","password") or die ("didn't connect to mysql");
mysql_select_db("artefac_database") or die ("no database");
//make query
$query = "SELECT * FROM users WHERE username = '$u' AND password = '$p'";
$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";
}
}

?>

View Replies !    View Related
Flash LogIn
Hey guys, I'm real new to the Kirupa Forums but the only reason I'm posting is because I need some help with a flash login. I wan't it so you can register on computer1 and play on computer2. I think it has to be on a server. I've seen one of the tutorials but it didn't work. If someone could add me on msn or aim just PM me. I would be real happy.

View Replies !    View Related
Flash Login
I have a flash login and sign up flash app, but i have some problems with it.. is there any site that you can host flash files for ppl to download?

View Replies !    View Related
Flash Login Help...
Help...I need to know create a login fuction using flash which like the flashchat. When 2 users login using the same username and password.The first user will be kick out from the system.I using MySQL as my database.

View Replies !    View Related
Flash PHP Login Help...
i am trying to make a PHPBB login in flash i cant seem to get the loadvars thing right.. could someone help me out... i want one dynamic box to display status and information and one input box to type in the user and pass... No enter button though just a on (keyPress "") for the input box so when u press enter it verifies the user and pass..

could someone make me an example or some code, i need it to work with this login script.

heres the login php file
------------------------------------------------------------------------------------
/ **************************************************
*************************
* login.php
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id: login.php,v 1.47.2.12 2003/05/06 20:18:42 acydburn Exp $
*
*
**************************************************
*************************/

/ **************************************************
*************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
**************************************************
*************************/

//
// Allow people to reach login page if
// board is shut down
//
define("IN_LOGIN", true);

define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);

//
// Set page ID for session management
//
$userdata = session_pagestart($user_ip, PAGE_LOGIN);
init_userprefs($userdata);
//
// End session management
//

// session id check
if (!empty($HTTP_POST_VARS['sid']) || !empty($HTTP_GET_VARS['sid']))
{
$sid = (!empty($HTTP_POST_VARS['sid'])) ? $HTTP_POST_VARS['sid'] : $HTTP_GET_VARS['sid'];
}
else
{
$sid = '';
}

if( isset($HTTP_POST_VARS['login']) || isset($HTTP_GET_VARS['login']) || isset($HTTP_POST_VARS['logout']) || isset($HTTP_GET_VARS['logout']) )
{
if( ( isset($HTTP_POST_VARS['login']) || isset($HTTP_GET_VARS['login']) ) && !$userdata['session_logged_in'] )
{
$username = isset($HTTP_POST_VARS['username']) ? trim(htmlspecialchars($HTTP_POST_VARS['username'])
) : '';
$username = substr(str_replace("'", "'", $username), 0, 25);
$password = isset($HTTP_POST_VARS['password']) ? $HTTP_POST_VARS['password'] : '';

$sql = "SELECT user_id, username, user_password, user_active, user_level
FROM " . USERS_TABLE . "
WHERE username = '" . str_replace("'", "''", $username) . "'";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Error in obtaining userdata', '', __LINE__, __FILE__, $sql);
}

if( $row = $db->sql_fetchrow($result) )
{
if( $row['user_level'] != ADMIN && $board_config['board_disable'] )
{
redirect(append_sid("index.$phpEx", true));
}
else
{
if( md5($password) == $row['user_password'] && $row['user_active'] )
{
$autologin = ( isset($HTTP_POST_VARS['autologin']) ) ? TRUE : 0;

$session_id = session_begin($row['user_id'], $user_ip, PAGE_INDEX, FALSE, $autologin);

if( $session_id )
{
$url = ( !empty($HTTP_POST_VARS['redirect']) ) ? $HTTP_POST_VARS['redirect'] : "index.$phpEx";
redirect(append_sid($url, true));
}
else
{
message_die(CRITICAL_ERROR, "Couldn't start session : login", "", __LINE__, __FILE__);
}
}
else
{
$redirect = ( !empty($HTTP_POST_VARS['redirect']) ) ? $HTTP_POST_VARS['redirect'] : '';
$redirect = str_replace('?', '&', $redirect);

$template->assign_vars(array(
'META' => "")
);

$message = $lang['Error_login'] . '

' . sprintf($lang['Click_return_login'], "", '') . '

' . sprintf($lang['Click_return_index'], '
message_die(GENERAL_MESSAGE, $message);
}
}
}
else
{
$redirect = ( !empty($HTTP_POST_VARS['redirect']) ) ? $HTTP_POST_VARS['redirect'] : "";
$redirect = str_replace("?", "&", $redirect);

$template->assign_vars(array(
'META' => "")
);

$message = $lang['Error_login'] . '

' . sprintf($lang['Click_return_login'], "", '') . '

' . sprintf($lang['Click_return_index'], '
message_die(GENERAL_MESSAGE, $message);
}
}
else if( ( isset($HTTP_GET_VARS['logout']) || isset($HTTP_POST_VARS['logout']) ) && $userdata['session_logged_in'] )
{
if( $userdata['session_logged_in'] )
{
session_end($userdata['session_id'], $userdata['user_id']);
}

if (!empty($HTTP_POST_VARS['redirect']) || !empty($HTTP_GET_VARS['redirect']))
{
$url = (!empty($HTTP_POST_VARS['redirect'])) ? $HTTP_POST_VARS['redirect'] : $HTTP_GET_VARS['redirect'];
redirect(append_sid($url, true));
}
else
{
redirect(append_sid("index.$phpEx", true));
}
}
else
{
$url = ( !empty($HTTP_POST_VARS['redirect']) ) ? $HTTP_POST_VARS['redirect'] : "index.$phpEx";
redirect(append_sid($url, true));
}
}
else
{
//
// Do a full login page dohickey if
// user not already logged in
//
if( !$userdata['session_logged_in'] )
{
$page_title = $lang['Login'];
include($phpbb_root_path . 'includes/page_header.'.$phpEx);

$template->set_filenames(array(
'body' => 'login_body.tpl')
);

if( isset($HTTP_POST_VARS['redirect']) || isset($HTTP_GET_VARS['redirect']) )
{
$forward_to = $HTTP_SERVER_VARS['QUERY_STRING'];

if( preg_match("/^redirect=([a-z0-9.#/?&=+-_]+)/si", $forward_to, $forward_matches) )
{
$forward_to = ( !empty($forward_matches[3]) ) ? $forward_matches[3] : $forward_matches[1];
$forward_match = explode('&', $forward_to);

if(count($forward_match) > 1)
{
$forward_page = '';

for($i = 1; $i < count($forward_match); $i++)
{
if( !ereg("sid=", $forward_match[$i]) )
{
if( $forward_page != '' )
{
$forward_page .= '&';
}
$forward_page .= $forward_match[$i];
}
}
$forward_page = $forward_match[0] . '?' . $forward_page;
}
else
{
$forward_page = $forward_match[0];
}
}
}
else
{
$forward_page = '';
}

$username = ( $userdata['user_id'] != ANONYMOUS ) ? $userdata['username'] : '';

$s_hidden_fields = '';

make_jumpbox('viewforum.'.$phpEx, $forum_id);
$template->assign_vars(array(
'USERNAME' => $username,

'L_ENTER_PASSWORD' => $lang['Enter_password'],
'L_SEND_PASSWORD' => $lang['Forgotten_password'],

'U_SEND_PASSWORD' => append_sid("profile.$phpEx?mode=sendpassword"),

'S_HIDDEN_FIELDS' => $s_hidden_fields)
);

$template->pparse('body');

include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
}
else
{
redirect(append_sid("index.$phpEx", true));
}

}

?>
-----------------------------------------------------------------------------------
sorry for the long post.......

View Replies !    View Related
Flash Login Box
Hi,

Does anyone out there know how to make a flash login box?

View Replies !    View Related
Flash Login?
I'm rebuilding this page, changing it from html to flash, but i'm caught on two things, the flash form, which i think i just found a good tut on, and the login.

Now the login, i've found waaay too many tuts, and none of them are anywhere near consistant with one another.

So I'm wondering if anyone knows how to make one.
I have to be able to update and add user names and pws... I can't figure it out.

Any help or tuts would be much appreciated!

Sin

View Replies !    View Related
Flash/PHP Login
I am working on a Flash login which checks a mySQL db to see if the password entered is correct. I have created the php and the actionscript but not sure, what exactly is wrong. Could some one help me with this please.

I would like the flash part to show an error if the password was incorrect or to take the user to a different scene in the movie if the password is correct.


PHP Code:



<?php
define ('DB_USER', 'local');
define ('DB_PASSWORD', 'pass');
define ('DB_HOST', 'localhost');
define ('DB_NAME', 'local');

$dbc = @mysql_connect (DB_HOST, DB_USER, DB_PASSWORD) OR die ('Could not connect to MySQL: ' .mysql_error() );
@mysql_select_db (DB_NAME) OR die ('Could not select the database: ' .mysql_error() );

$pass = $_POST["pass"];

$query = "SELECT * from Login WHERE Pass='$pass'"; 
$result = @mysql_query ($query);

if($result)
   {
      return "error=" . mysql_error();
   } else {
      return "user=ok";
   }
?>





ActionScript Code:
login.onPress = function() {
    send_lv.pass = pass.text;
    send_lv.sendAndLoad("php file url", result_lv, "POST");
    send_lv.onLoad = function() {
        if (!this.error) {
            trace("not registered");
        } else {
            trace("registered");
        }
    }
};

View Replies !    View Related
Flash Login
Hi, I've been trying for a few days to create a login page for my clients flash site, but so far to no avail.

I found a handful of tutorials, they generally involve comparing an inputted variable to the password and then forwarding to a page if it's correct. Which is fine, but when navigating around and going back, the page stays logged in, when I want it to log back out everytime the page is changed.

I'm fairly sure I'm barking up the wrong tree by using such a simple method. :(

I'm hoping someone can direct me to a tutorial for a login where I can have multiple users and it'll reset the login page everytime they come back to it.

Thanks for any help

View Replies !    View Related
Login Using Php And Flash
hi

at the minute i have a login page and it uses html page and php to check database and then logins in.

I want to use flash instead of the html page. But cant get to work. can any one help thanks

heres the php



<?php
require_once '../include/config.php';

if (!$submit and !check_session()) {
//require_once '../include/user_function.php';
echo do_template('header.html');
$_var['main_content'] = do_template('testlogin.html');
echo do_template('main.html');
}
if (!$submit and check_session()) {
require_once '../include/user_function.php';
//echo do_template('header.html');
$_var['main_content'] = "You have been logged in..";
echo do_template('main.html');
}
if ($submit && login($user_name, $password)) {

require_once '../include/user_function.php';
//echo do_template('header.html');
$_var['main_content'] = "You have been logged in..";
echo do_template('main.html');
}
elseif ($error) {
//require_once '../include/user_function.php';
echo do_template('header.html');
$_var['user_name'] = $user_name;
$_var['main_content'] = $error . do_template('login.html');
echo do_template('main.html');
}
echo do_template('footer.html');
?>

Tell me how to submit the information to the php.

please help

gerard

View Replies !    View Related
Flash Site Login
I was wondering how to use asp to make a login screen to a certain part of my flash movie. I would like to have 30+ different users and would like to have them each have their own loginID and password. basically, I guess, I need to know how to do asp in flash.

Thanks for any help.



FryGuy

View Replies !    View Related
Password Login For Flash 5?
I'm trying to get a password movie clip to work with two scenes. Basically the MC is on scene 1 and when they enter the correct password, it would take them to scene 2 and then the designated scene. Any ideas on how to accomplish this? The code below is what I thought would do it, but doesn't seem to work...why?

on (release) {
if (login == "password") {
gotoAndStop ("Scene 2", 1);
}
}

many thanks in advance!
shaggy

View Replies !    View Related
Password -login Help For Flash
Mac8myPC-Mac8myPC-4789

that is the program i got off of this site. i want to use it to make parts of my site password protected.. i figured out how to add the usernames and passwords but i dont know how to add the fowarding url after they successfully login.i will send the file and the url that i want it to go to... if some one can help...please thanks....

View Replies !    View Related
Flash Login Page With ASP
Hello,

does anyone knows or have an example of a flash login page which uses asp and an access database to store de usernames and passwords?

Thanks,
Miguel

View Replies !    View Related
Flash Login Using Access And ASP
Hi all,

I've encountered the following problem:

I'm using flash as a login portal, connected to an MS Access 2000 database containing the Loginnames and the Passwords... To connect the flashmovie to the database I use an ASP-file as a bridge... It works great, at least - the first login & password are sent into the flashmovie .. I can tell the flashmovie to go to the next record in the database and than the second row is sent into the flashmovie.. however, I use a checkup-code to check if the login & pass equall... However, I can only check ONE row at a time... So I can not check the whole database at once..... If I can't accomplish this - the whole idea of a loginportal is gone....

Does anybody know how I should change or enhance the ASP code or the actionscript code ?? It's probably just a little thing but I can't figure it out. Thank all of you in advance !!! (see codes below



ASP FILE (GETDETAILS.ASP):
==========================



Set DataConn = Server.CreateObject("ADODB.Connection")
DataConn.Open "Driver=Microsoft Access Driver (*.mdb);DBQ=" & Server.MapPath("AddressBook.mdb")

Set cmdTemp = Server.CreateObject("ADODB.Command")
Set rstContacts = Server.CreateObject("ADODB.Recordset")

cmdTemp.CommandText = "Select * From Contacts"
cmdTemp.CommandType = 1
Set cmdTemp.ActiveConnection = DataConn

rstContacts.Open cmdTemp, , 1, 3

rstContacts.Move CLng(Request("Record"))

Response.write "Login=" & Server.URLEncode(rstContacts("Login")) & "&"
Response.write "Pass=" & Server.URLEncode(rstContacts("Pass")) & "&"
Response.write "TotalRecords=" & rstContacts.RecordCount

rstContacts.Close
DataConn.Close







ACTIONSCRIPT_ MOVIECLIP (WHEREIN THE ART & CODES FOR LOGIN ARE):
==================================================
==============


onClipEvent(data)
{
strLogin = Login;
strPass = Pass;
}

onClipEvent(load)
{
loadVariables ("getdetails.asp?Record=?", this);
}


ACTIONSCRIPT_ "LOGIN"-BUTTON CODE:
==================================


on(release){
if (login_field == Login && pass_field == Pass){
gotoAndStop(5);
}
else{
gotoAndStop(10);
}
}

=================================

INFO:
Inputfieldnames are "login_field" and "pass_field"

Fieldnames in MS database are "Login" and "Pass"


THANKS TO ALL !!!!
ROEL

View Replies !    View Related
Flash Login Using Access And ASP
Hi all,

I've encountered the following problem:

I'm using flash as a login portal, connected to an MS Access 2000 database containing the Loginnames and the Passwords... To connect the flashmovie to the database I use an ASP-file as a bridge... It works great, at least - the first login & password are sent into the flashmovie .. I can tell the flashmovie to go to the next record in the database and than the second row is sent into the flashmovie.. however, I use a checkup-code to check if the login & pass equall... However, I can only check ONE row at a time... So I can not check the whole database at once..... If I can't accomplish this - the whole idea of a loginportal is gone....

Does anybody know how I should change or enhance the ASP code or the actionscript code ?? It's probably just a little thing but I can't figure it out. Thank all of you in advance !!! (see codes below



ASP FILE (GETDETAILS.ASP):
==========================



Set DataConn = Server.CreateObject("ADODB.Connection")
DataConn.Open "Driver=Microsoft Access Driver (*.mdb);DBQ=" & Server.MapPath("AddressBook.mdb")

Set cmdTemp = Server.CreateObject("ADODB.Command")
Set rstContacts = Server.CreateObject("ADODB.Recordset")

cmdTemp.CommandText = "Select * From Contacts"
cmdTemp.CommandType = 1
Set cmdTemp.ActiveConnection = DataConn

rstContacts.Open cmdTemp, , 1, 3

rstContacts.Move CLng(Request("Record"))

Response.write "Login=" & Server.URLEncode(rstContacts("Login")) & "&"
Response.write "Pass=" & Server.URLEncode(rstContacts("Pass")) & "&"
Response.write "TotalRecords=" & rstContacts.RecordCount

rstContacts.Close
DataConn.Close







ACTIONSCRIPT_ MOVIECLIP (WHEREIN THE ART & CODES FOR LOGIN ARE):
==================================================
==============


onClipEvent(data)
{
strLogin = Login;
strPass = Pass;
}

onClipEvent(load)
{
loadVariables ("getdetails.asp?Record=?", this);
}


ACTIONSCRIPT_ "LOGIN"-BUTTON CODE:
==================================


on(release){
if (login_field == Login && pass_field == Pass){
gotoAndStop(5);
}
else{
gotoAndStop(10);
}
}

=================================

INFO:
Inputfieldnames are "login_field" and "pass_field"

Fieldnames in MS database are "Login" and "Pass"


THANKS TO ALL !!!!
ROEL

View Replies !    View Related
Flash Login With ASP Backend Without DB
Hi,

From what I understand, using Flash Actionscript to do a password protected movie is not really that secured as all variables in Flash are store as txt, pls correct me if I'm wrong.

How difficut it is to do it with ASP and is this the correct way:

1.Flash Frame 01
-Login with User name and Password
-User clicks sent button
-getURL sents name & password to check.asp

2.Check.asp
-ASP script that checks sent pasword/user with Text File
-eg password.txt

3.ASP sents something back to Flash
-If user/passward = correct, go to Frame 03
-If user/passward = incorrect, go to frame 01


Many Thanks for any feedback and help :-)

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
Asp Login From Flash Page
Hello,
i have a form in my flash website, it sends 2 varibales to an asp page (username, passwd) , then it is supposed to send back a true or false to flash, ..

So it isnt working, this is my flash button code
(email staus is a text field that displays my false results)


Code:
on (release) {
loadVariablesNum("loginClients.asp", "0", "POST");
EmailStatus = "Sending... one Moment ..";
Login2 = Login;
if (Login2 == true) {
getURL("good.asp", "_blank");
} else {
EmailStatus = "Bad username or password";
}
}
this is my ASP code, i should mention that this code works without flash, if i use just asp pages


Code:
validpwd = true

username = Request.Form("username")
passwd = Request.Form("passwd")

Set dbConn = Server.CreateObject("ADODB.Connection")
dbConn.open CS
Set myRS = dbConn.Execute( "Select * from tblUsers where username = '" & UCASE(username) & "'")

If not myRS.EOF then

If ucase(myRS("password")) = ucase(passwd) Then

validpwd = true

Else
validpwd = false
End If

Else
validpwd = false
end if


If validpwd Then

Session("DSMstatus2") = "logged"
'Session("userID") = username
Session("UserID") = myRS.fields("clientID").value

Login = true
response.write Login

End If

View Replies !    View Related
Login Form In Flash
how can we creat a user login form with database connectivity in flash.pl help
regards
suresh

View Replies !    View Related
Login To Webmail From Flash Mx
Hi,

I'm trying to make a form to login to my webmail through my flash enhanced website.

I need to POST two fields, "EmailAddress" and "Password" to
"http://www.doteasy.com/EmailSignIn/EmailSignIn.cfm" and launch a new html window logged into my email. I can't get the variables to post and open the window together.

I've confsued myself to the point of no return and now i don't even think what I have makes any sense:

on (release) {
var EmailAddress = EmailAddress.text;
var Password = Password.text;
getURL("http://www.doteasy.com/EmailSignIn/EmailSignIn.cfm", "_blank", "POST");
}


Please help me out if you can! Thx!

View Replies !    View Related
Flash Login Trouble.
Ok, I made a chat program for a friend using Smart Fox Server Lite, but it doesnt use permanent users. I want to be able to connect to a database and load a user and password list off that, and then check to see if the user/pass combination is right. I can post the code I amde for the chat login if you would like:

code: import it.gotoandplay.smartfoxserver.*


stop()
Stage.showMenu = false


//----------------------------------------------------------
// Setup global variables
//----------------------------------------------------------
var stageW:Number = 700
var stageH:Number = 490

// hide semi-transparent panel
// used when a dialog box is shown
disabler._visible = false

// isBusy is true when the application
// is requiring input through a dialog box
// When true all other controls are temporarily disabled
_global.isBusy = false



//----------------------------------------------------------
// Setup global variables
//----------------------------------------------------------
showLogin(false)
status_txt.text = "Connecting..."



//----------------------------------------------------------
// Server configuration
//
// ip = IP address of the server, if the server is running
// locally use 127.0.0.1
// port= default value is 9339
// zone = the Server "zone" name for this application
//----------------------------------------------------------
var ip:String = "127.0.0.1"
var port:Number = 9339
var zone:String = "jeffsChat2"

var smartfox:SmartFoxClient = new SmartFoxClient()
smartfox.debug = true
smartfox.onConnection = handleConnection

smartfox.connect(ip, port)



//----------------------------------------------------------
// Handle connection response from server
//----------------------------------------------------------
function handleConnection(success:Boolean)
{
if (success)
{
status_txt.text = "Connected, please login:"
showLogin(true)
butt_login.onRelease = sendLogin
}
else
{
status_txt.text = "Can't connect!"
}
}



//----------------------------------------------------------
// Send login params to the server
// server.login(zone, nickName, password)
//----------------------------------------------------------
function sendLogin()
{
if (!_global.isBusy)
smartfox.login(zone, login_txt.text, null)
}



//----------------------------------------------------------
// Handle login response from server
//----------------------------------------------------------
smartfox.onLogin = function(resObj:Object)
{
if (resObj.success)
{
// Login Successfull
_global.myName = resObj.name
gotoAndStop("chat")
}
else
{
// Login Failed
_gloabl.isBusy = true

// Show an error window
var win = showWindow("errorWindow")
win.errorMsg.text = resObj.error
}
}



//----------------------------------------------------------
// Handle unexpected server disconnection
//----------------------------------------------------------
smartfox.onConnectionLost = function()
{
gotoAndStop("connect")
}



//----------------------------------------------------------
// Show / Hides the login input field and submit button
//----------------------------------------------------------
function showLogin(bool:Boolean)
{
butt_login._visible = bool
login_txt._visible = bool
loginBox._visible = bool

if (bool)
Selection.setFocus("login_txt")
}



//----------------------------------------------------------
// Shows a popup window and disables all other controls
//----------------------------------------------------------
function showWindow(linkageName:String):MovieClip
{
_global.isBusy = true

roomList_lb.setEnabled(false)
userList_lb.setEnabled(false)

disabler._visible = true

var win:MovieClip = _root.attachMovie(linkageName, linkageName, 9999)

win._x = (stageW / 2) - (win._width / 2)
win._y = (stageH / 2) - (win._height / 2)

return win
}



//----------------------------------------------------------
// Hides a popup window and re-enable the controls
//----------------------------------------------------------
function hideWindow(wName:String)
{
this[wName].removeMovieClip()
disabler._visible = false
_global.isBusy = false

roomList_lb.setEnabled(true)
userList_lb.setEnabled(true)
}


Thanks.

View Replies !    View Related
Flash Login To Forum.
hey guys.. heres what i am trying to do... I want to take this code...


<form action="http://www.activeboard.com/forum.spark?forumID=50849" method=post>


Name <input style="vertical-align: middle" value="" type=text name=forumUserName>

Password <input style="vertical-align: middle" type=password name=forumPassword>

<input style="vertical-align: middle" type=submit value="Login" onSubmit="this.form.action.value='login'">


</form>


and some how make a login from flash.. Is this possible? Please help me out if you can. thanks alot in advance.


Matt

View Replies !    View Related
Secure Login In Flash
Hi, am trying to get a secure login from flash with asp and database. used the loadvariable function and it connects to database too -
loadVariables ("http://website.com/login.asp?userid="+userid+"&password="+password, "", "POST");
apparently, whatever typed into the username and password fields, appears in the temporary internet files as -
login.asp?userid=john&password=kimble
how do i prevent this from appearing?

also, sometimes when logging in, it fails probably due to weak connection. How do set the duration of accessing database long enough to get a positive response?

and oh! am using flash version 5
please help. thank you

View Replies !    View Related
Login Box Question In Flash
How can you add a login box on a flash site, like the one on here:http://www.converse.com/converseone/default.asp?bhcp=1

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
Flash Login System
Is it possible to make a login system with flash where you can log into ready-made accounts (like a forum datebase)?

If so, are there any tutorials for setting this up?

Thanks,
-Forsaken231

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved