
Page 1 of 1
Vin
This user is yet to take control of their account and provide a biography. If you are the author of this article, please contact us via support AT actionscript DOT org.
View all articles by VinDifficulty Level: Beginner
Requirements: Flash MX + PHP This tutorial makes use of the PHPObject code which can be found at: http://ghostwire.com/resources/phpobject/
Please download the PHPObject and try out the sample to better understand what's going on here.
This is just a basic tutorial on how to display data in a mySQL database in flash quickly and easily. You can develop this code further to create dynamic Flash movies that feed off a mySQL database. In this example I'm using an eCard project I'm working on. The code will connect to my database to get the card information (the to, from, and message) and display this data in the flash movie. Also note that you should have dynamic text fields named as each of the variables your want to display in your flash movie
|
So what we're doing is setting up the Gateway to the PHP file first. Then we set up the code in Flash to get the array PHP will return to us and to put each part of the array into seperate input text boxes on in the flash movie. The invoke method starts the process. It calls the php file "cards.php" as specified in the PHPObject function. Now we have to write the PHP to get the database info and return it to flash.
The PHP Code (cards.php):
|
Spread The Word
Related Articles
6 Responses to "Integrating Flash and mySQL" 
|
said this on 09 Jun 2007 12:32:04 PM CST
is this connection between php n flash with mysql? can you tell me how if I want connect flash with mysql. Only both , flash and mysql.If you know about connection, can you help me send to my email..thx u
|
|
said this on 13 Jun 2007 6:53:13 AM CST
i would like to know more about on this article any one can help me . in Flash where to write this scrip means onLoad or in movie
|
|
said this on 18 Sep 2007 11:35:06 PM CST
Hello...
I 'am beginner programmer with flash and php... me want question, how connection flash with php + actionScript + databases mysql...? Thank's you very much |
|
said this on 07 Sep 2008 6:58:22 PM CST
contact me!
845 282 1609 im trying to do the same thing! you or me..one of us will discover how |
|
said this on 10 Oct 2007 4:31:57 AM CST
can you tell me what version of flash and mysql are used here? thanks. please do send me and email asap.
|
|
said this on 14 Nov 2008 1:56:37 AM CST
please continue to write this informations,
thanks alot |


Author/Admin)