[CS3] Pulling a dynamic image from html

I’m attempting to make a swf that has a header set by a JavaScript popup that is an image. How would I dynamically load an image from a FlashVar into a movieclip? I’ll post the solution if I figure it out.

Thanks.