I need help to make a pop up

Hi… this is my first thread… im new, very new in flash… and i have no problems to make reality the tutorials… and this tutorials help me a lot to make a site.
But, i wanted to know if its possible to modify the [color=black]Adding Thumbnails[/color] tutorial to make a pop up window when the user do a click in the selected image on the empty movie clip. I could open a pop up window using:

[font=Arial]on (release){

and modifying the html code with javascript:

function cuadro() {
window.open(‘http://yourpage.com/myimage.jpg’, ‘’,‘toolbar=yes,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=ofyourimageinpxs,height=ofyourimageinpxs,left=0,top=0’); }

But i can’t do the same in flash and with the xml archive anexing the java to the adding thumbnails action script code, to take the pictures from that archive. :frowning: If exist a posibility, someone could help me please!?