ad un bottone associ l'azione:

on(release) {
getURL("javascript:top.close()");
}

ciao