Integrate php and flash

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
TonsOfFun
Forum Commoner
Posts: 54
Joined: Wed Jun 02, 2010 7:37 pm

Integrate php and flash

Post by TonsOfFun »

I'm wanting to use flash to display pictures on a website. I have a pre-made flash file that takes external images from a directory and puts them into flash.

The code in flash is:

Code: Select all

var hardcodedXML:String="<photos><image title='Test 1'>image1.jpg</image><image title='Test 2'>image2.jpg</image><image title='Test 3'>image3.jpg</image><image title='Test 4'>image4.jpg</image></photos>";
I want the string to be generated dynamically with php/mysql.

I am new to flash and have no idea where to start with this.

Any tips or tutorials would be greatly appreciated.
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Re: Integrate php and flash

Post by superdezign »

The easiest way to communicate with Flash using PHP is to use PHP to generate XML, then load that XML using Flash.
TonsOfFun
Forum Commoner
Posts: 54
Joined: Wed Jun 02, 2010 7:37 pm

Re: Integrate php and flash

Post by TonsOfFun »

superdezign wrote:The easiest way to communicate with Flash using PHP is to use PHP to generate XML, then load that XML using Flash.
Alright, I'll look into that. Thanks for the help.
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Re: Integrate php and flash

Post by superdezign »

No problem.
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: Integrate php and flash

Post by Benjamin »

Do not double post please.
Post Reply