#native_company# #native_desc#
#native_cta#

Using PHP and MySQL with Flash Page 6

By Jeffrey F. Hill
on 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.

1
|
2
|
3
|
4
|
5
|
6
|
7
|
8
|
9