Help changing an image by query line

Hey all, i am sure this is something easy, but here is what i am trying to do…

In the URL, i am trying to put
http://…/flash.swf?bgcolor=ffffff&headpic=http://…/somepic.jpg

When the flash loads, i want the default headpic picture to change to whatever i put in the query line as headpic. i just can’t figure it out :frowning: i already have the image set as a movie, and named it as headpic. There are other images that i do not want to change that are on top of the image i am trying to change.

If anyone has an idea on how to do this, please help! I am trying my best to learn this on my own, but i guess i need a little boost.

Thanks!
Tim