I am using javascript inside flash like this:

getURL("javascript:alert("Message");","_self");

thats to make an alert. you have to have flash in a html file to make these work.

anyway i am trying window.close because there should be a close button!

I tried this:

getURL("javascript:window.close();","_self");

And epic fail. It didn't work. WHY?