Save images in new location

Hello All! i have flash project, when i press button: save to server, i can save images in folder specified in the php script, but i need when i press button, change or created new folder and save images, possible? any idea?
Thanks