You can communicate with your surrounding environment via as3's ExternalInterface class. Read more on it here.
Sorry I don't have time to verify the exact code but will look something like this.
So just before the end of you <head></head> tag you'd have
Then somewhere in your as3 you'd have
document.body.style.background="background-image: url(' + myImg + ') no-repeat";