If you have access to Flash remoting, you can do it.
Alternatively, you could use something like AmfPHP. AmfPHP is still relatively new and constantly changing. However, if you're willing to spend some time figuring out the sparse documentation, it is worth it (and free/open source).
A last option, which would be the easiest to implement, and probably best for your situation, would be to create a script that pulls data from your database and outputs the data something like this:
&photo1=source1.jpg
&caption1=http://www.site1.com/
&photo2=source2.jpg
&caption2=http://www.site2.com/
You can then use loadVariables or, even better, LoadVars.sendAndLoad. Using LoadVars.sendAndLoad you'll be able to post your parameters (i.e. picturesPerPage=6) and read the results from your script.
Does that help?













Hiya again, I am starting to use flash and finding it very interesting. I basically have a photo album in flash, it is done by an array in actionscript in flash. But I would like it to come down from the database? is this possible?
Thanks