Open image in chromeless window

Hi, I need to know the code for making an image open in a chromeless window from a button in Flash, the window also has to be the same size as the image, if someone could please tell me this code id be very grateful as I need it by today, thanx bye!