Using XML/PHP to insert images into Flash

I’ve several tutorials and what not, but all deal with text (people, names, etc.) I was wondering if it’s possible to create a script that let’s someone with no experience upload an image to a database and the script can replace the current photo in the same coordinates.