how to make flash show a data in my database?

Place for questions and answers for all newcomers and new coders. This is a free for all forum, no question is too stupid and to noob.
Post Reply
coLz
Posts: 1
Joined: Thu Oct 24, 2013 10:09 am

how to make flash show a data in my database?

Post by coLz »

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 =)
User avatar
MikuzA
Posts: 394
Joined: Thu Aug 08, 2013 8:57 am

Re: how to make flash show a data in my database?

Post by MikuzA »

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.
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
User avatar
Jackolantern
Posts: 10891
Joined: Wed Jul 01, 2009 11:00 pm

Re: how to make flash show a data in my database?

Post by Jackolantern »

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
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: how to make flash show a data in my database?

Post by hallsofvallhalla »

It would be just like ajax

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);
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.
Post Reply

Return to “Beginner Help and Support”