Page 1 of 1

Integrate php and flash

Posted: Wed Aug 04, 2010 8:18 pm
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.

Re: Integrate php and flash

Posted: Wed Aug 04, 2010 8:21 pm
by superdezign
The easiest way to communicate with Flash using PHP is to use PHP to generate XML, then load that XML using Flash.

Re: Integrate php and flash

Posted: Wed Aug 04, 2010 8:25 pm
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.

Re: Integrate php and flash

Posted: Wed Aug 04, 2010 8:28 pm
by superdezign
No problem.

Re: Integrate php and flash

Posted: Wed Aug 04, 2010 9:41 pm
by Benjamin
Do not double post please.