
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
16 Responses to "Integrating Flash and mySQL" 
|
said this on 09 Jun 2007 12:32:04 PM CDT
is this connection betwee
|
|
said this on 13 Jun 2007 6:53:13 AM CDT
i would like to know more
|
|
said this on 18 Sep 2007 11:35:06 PM CDT
Hello...
I 'am begin me want ques Thank's you very m |
|
said this on 07 Sep 2008 6:58:22 PM CDT
contact me!
845 282 16 im trying to do the |
|
said this on 10 Oct 2007 4:31:57 AM CDT
can you tell me what vers
|
|
said this on 14 Nov 2008 1:56:37 AM CDT
please continue to write
|
|
said this on 03 Mar 2009 7:37:50 AM CDT
in connect flash+php+mysq
|
|
said this on 19 Mar 2009 5:55:46 PM CDT
I see you store db userna
|
|
said this on 21 Apr 2009 12:27:23 PM CDT
The username and password
|
|
said this on 13 Oct 2009 11:39:35 PM CDT
is der any way to connect
|
|
said this on 23 Dec 2009 4:01:28 PM CDT
Maybe you should have mad
@Keyu @Rexell, it' @sumanth, no idea. |
|
said this on 18 Apr 2010 12:24:15 AM CDT
Hello...
I 'am begin me want ques Thank's you very m can you send me to e |
|
said this on 20 Jul 2010 5:09:43 AM CDT
Using phpObject, and " SE
|
|
said this on 20 Jul 2010 5:19:52 AM CDT
using phpobject and flash
|


Author/Admin)