Welcome, Guest. Please login or register.
Did you miss your activation email?
05/23/12, 00:50
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  General
| |-+  General Conversation (Moderators: Flash-db, vesa kortelainen, Ronald Wernecke, Mohsin Sumar, Jorge Solis, Mattias Robo)
| | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic:  (Read 1306 times)
sdfa
Server what's that
*
Posts: 9



View Profile Email
« on: 04/06/02, 18:47 »

Hello, mabey some of you can see some flaws in my logic here that i must keep missing and its driving me nuts. What i was doing was working great but now it doesnt work at all for some reason. here is what happens The movie starts, reaches a frame which stops the movie. the user then enters their username and password which is sent to the php script when a button is pushed with the following actionscript

on (release) {
   if (loginuser ne "") {
      gotoAndPlay (426);
      loadVariablesNum ("logg.php?loginuser="+loginuser+"&loginpass="+loginpass+"&R="+random(999), 0);
   } else {
   Status = "Enter your username";
   }
}

logg.php looks like this...

<?php

require 'servars.php';

mysql_connect($DBhost,$DBuser,$DBpass);
mysql_select_db("$DBName");

$query = "SELECT * FROM $table WHERE username = '$loginuser'";
$result = mysql_query($query);
$numR = mysql_num_rows($result);
   
   if ($numR == 1) {
   print "Status=successlogin&CheckLog=1";

   }
   else {
   print "Status=failed login";
   }

?>

When the flash movie hits frame 427 it starts a loop back to frame 426 so that the movie is constantly switching between 426 and 427, if CheckLog=1 on eighter of these frames the loop stops by moving to a later frame like in jeffs example.

frame 426

if (CheckLog ne "") {
   gotoAndPlay (450);
} else {
   gotoAndPlay (427);
}

frame 427

if (CheckLog ne "") {
   gotoAndPlay (450);
} else {
   gotoAndPlay (426);
}

Any help gratly appricated, thanks!

Logged
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
anything