Advanced login

Ok…I have created a login script by using the tutorial on http://www.kirupa.com/developer/actionscript/authentication.htm and it works perfectly, it connects, lgs in, error checks and everything. But now i have done this i want it to be able to do more…

  1. Is it possible using that login script for it to connect to a chat room aswell as loging in?

  2. Once logged in, will i be able to make it display users details from the MYsql database?

Is it possible to do any of theese using the same script on thatl ink above and how would i go about doing this?

Thanks
Jason

hi,

couldn’t you just get php to return all the values and use dynamic text boxes to display it

anyway, i need some help

you see i did that same tutorial, and it works and everything, trouble is it doesn’t go and play the confirm of fail bit of the movie, it just displays the return text in the dynamic text box. if you want an example go to http://members.lycos.co.uk/netmobile if you wanna know what i’m talking about. the username and password are both test.

i think its the actionscript cause it seems to work it just doesnt do what its supposed to do with the response from php. i think theres something wrong with this bit of script:

this.onEnterFrame = function () {
if(_root.checklog == 1){
_root.gotoAndPlay(61);
}
if(_root.checklog == 2){
_root.gotoAndStop(71);
}
//the onEnterFrame constantly checks to see if the PHP
//script has sent the variable ‘checklog’ back to the
//movie and directs the people accordingly

help taken with many thanks,
andy

Yes, i noticed that, it doesnt go to the keyframe if the password is incorrect like it says it should, instead it puts incorrect password in the display text box…i didnt really think that mattered, it didnt clutter up my timeline that way, and looked alot better…but i dont know why it does it :frowning: