how to make flash show a data in my database?
how to make flash show a data in my database?
how to make flash show a data in my database? like printing the name of that user showing it in flash after he logs in. code please. thanks =)
Re: how to make flash show a data in my database?
Hello,
You mean Flash, as in .swf?
Have never done that before but I would guess you could call a php-page with actionscript and just display it.
You mean Flash, as in .swf?
Have never done that before but I would guess you could call a php-page with actionscript and just display it.
Why so serious?
Business Intelligence, Data Engineering, Data Mining
PHP, HTML, JavaScript, Bash/KornShell, Python, C#, PL/SQL
MySQL, DB2, Oracle, Snowflake
Pentaho, DataStage, Matillion, Unity3D, Blender
Business Intelligence, Data Engineering, Data Mining
PHP, HTML, JavaScript, Bash/KornShell, Python, C#, PL/SQL
MySQL, DB2, Oracle, Snowflake
Pentaho, DataStage, Matillion, Unity3D, Blender
- Jackolantern
- Posts: 10891
- Joined: Wed Jul 01, 2009 11:00 pm
Re: how to make flash show a data in my database?
Yes, it would require something on the back-end to retrieve the data to display it. PHP, Java, node or any other back-end platform could do it. I am only vaguely familiar with doing this, so unfortunately I can't help you on the code.
The indelible lord of tl;dr
- hallsofvallhalla
- Site Admin
- Posts: 12026
- Joined: Wed Apr 22, 2009 11:29 pm
Re: how to make flash show a data in my database?
It would be just like ajax
inside whatever.php you would run the mysql code to get the data you want then echo it out at the end.
You would then use that flash variable to do whatever.
Code: Select all
var loader:URLLoader=new URLLoader();
var myrequest:URLRequest=new URLRequest("http://localhost/whatever.php");
loader.addEventListener(Event.COMPLETE, onLoaded);
loader.load(myrequest);You would then use that flash variable to do whatever.