There are other ways to get stuff in there.... If you are looking for coding examples or something: you could try
doing something like...
in your Flash program declare a variable foo... which could be a text or whatever... then when a button is pushed or just loaded.. . you need to setup the action for the button or variable... you could set it up as post in the little action box... then you would put the name of the script in as the action you wanted it to do... then in the script just do this
// Standard PHP script
....Connect to Database....
...Get stuff out
// Then we echo it back to flash program like
echo rawurlencode($databaseinfo);
For pictures I am told you would need a special program, but dont quote me on that...
Hopefully I you get the jist of what I am saying... but for examples look at this tutorial:
http://www.thickbook.com/extra/php_flashyquote.phtml
Hope that helps