Current location: Hot Scripts Forums » General Web Coding » Flash & ActionScript » Intergrating - Flash, PHP, mySQL.


Intergrating - Flash, PHP, mySQL.

Reply
  #1 (permalink)  
Old 07-31-06, 07:12 PM
CJLeah CJLeah is offline
New Member
 
Join Date: Jul 2006
Location: Manchester, Uk
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Intergrating - Flash, PHP, mySQL.

Hello, i've come to this forum to see wether there is a chance anyone whom reads this may be able to help me. Well here's my problem. I've noticed Flash can be used with php and mysql but, can I create somthing such as a login area where it will then open up into a authencated area of the site in flash. For an example of what I mean, is www.habbohotel.co.uk. I have an idea how this site was created, and wish to learn and do so the same. I belive it was made using Macromedia Flash or Director. If anyone can tell me the basic's of what I need to know to create a site such as this please do. Also explain what they used to create this if you know.

Thank you,
Chris Leah
Reply With Quote
  #2 (permalink)  
Old 08-01-06, 05:52 AM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
since habbohotel is quit professionally made, i think they will be using a socket to comunicate with flash.
another possibility is to use sendAndLoad Vars. these are functions of flash that read the data that is written on a certain webpage.

to make a login in flash, you just have to create a mysql table and a login script. in flash you have to create a frame where you put in 2 inputfields and a button: 1 for the username, and 1 for the password. in the script area of the frame, you place something like this:
Code:
mybutton.onClick = function(){
dt = new LoadVars();
dt.username = username_textfield.text;
dt.password = password_textfield.text;
dt.sendAndLoad("http://www.yourwebsite.com/login.php", dt);
dt.onLoad = function(){
  if(this.login == "true"){
    //do login stuff
  else if(this.login == "no_input"){
    trace("you didn't specify any username and/or password");
  else if(this.login == "invalid_info"){
    trace("the inserted username and/or password were incorrect");
  }
};
};
take a look at this post as well:
http://www.programmingtalk.com/showthread.php?t=28770

Hope this helps a little,
UnrealEd
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Reply With Quote
  #3 (permalink)  
Old 08-01-06, 06:53 AM
CJLeah CJLeah is offline
New Member
 
Join Date: Jul 2006
Location: Manchester, Uk
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Thank you...

Aha thanks. I'm hoping to create a pixel animated walk around virtual mafia theme RPG. hehe.

Thanks again dude,
Chris
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP and MySQL ? rob2132 Hot Scripts Forum Questions, Suggestions and Feedback 4 08-29-08 02:22 AM
Anyone know how to incorporate PHP and MySQL in Flash? sondogg PHP 4 12-25-07 10:24 PM
Php Mysql Bug??? tranquilraven PHP 4 03-01-06 03:06 AM
PHP multi-dimensional array sorting issue aqw PHP 2 06-24-05 11:09 PM
WORKSHOP {Flash <-> PHP <-> MYSQL} zarko PHP 0 11-17-03 07:48 AM


All times are GMT -5. The time now is 06:23 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.