Nieuw lid |
|
Hallo,
ik heb het volgende probleem ik heb de login tutorial (using flash mx, php, and mysqL) gedaan van de site www.kirupa.com hij doet het als ik de press.swf oproep in de browser via www.dbron.nl/press.swf (name: test pass: test) , maar hij doet het niet als ik hem oproep via www.dbron.nl dan naar het menu news dan naar press.
De hele site bestaat uit lose movie clips, ik heb een index.swf waar ik twee movie's inlaad loadMovieNum("kaart.swf", 0);
loadMovieNum("menu.swf", 50);
de andere movie's die worden elke keer ingeladen op level 0 als je via het menu een pagina kiest.
ik ben er nu al twee dagen mee bezig maar kom er niet uit
mischien dat iemand er even naar kan kijken
alvast bedankt Dennis
actionscript:
Citaat: 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="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
verzend button
Citaat: //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");
}
}
Citaat: Opmerking door Haytjes:
Wil je de volgende keer code tussen [quote][/ quote]-tags zetten
|