PHPBuilder - Using PHP and MySQL with Flash Page 6



RSS Twitter
Articles Databases

Using PHP and MySQL with Flash - Page 6

by: Jeffrey F. Hill
|
December 14, 2001

Actionscript used in Flash for Login

on (release) {
    gotoAndPlay(2);
    Status = "Beginning Login Process.. Please Hold";
    loadVariablesNum ("Login.php?Name="+Name, "0");
}
This is the actionscript on the Login Button. Initially the movie stops at the first frame of the root of the movie. After you hit the Login button it goes to frame 2 and continues to loop until it finds that there is a value for CheckLog. The Check part looks like the following.

if (CheckLog ne "") {
    gotoAndPlay (4);
}
else {
    gotoAndPlay(2);
}

That's it. After a user has successfully logged in we can load the variables for the first time. At first they won't have any values. So they come to rest at the default location.


« Previous Page
1
|
2
|
3
|
4
|
5
|
6
|
7
|
8
|
9
Next Page »

Comment and Contribute

Your comment has been submitted and is pending approval.

Author:
Jeffrey F. Hill

Comment:



Comment:

(Maximum characters: 1200). You have characters left.