Getting filenames from mySQL to flash

I’ve managed to get text from an mySQL-database to a textfield in flash. No problem there.

But I’m trying to show an image in flash, with the filename as the value in the mySQL-cell.

Anyone have a script that does this? Or can point me in the right direction of getting the value of the mySQL-cell into a variable (instead of a text field)? Then I can just loadmovie with it.