myButton.onRelease = function()
{
var a = _root.clickTAG.toLowerCase();
if (a.indexOf("http://") == 0 || a.indexOf ("http://") == 0)
{ getURL(root.clickTAG, "_blank");
}
};

perchè il compilatore di errori di flash cs3 con as2 mi da errore su questo codice applicato ad un pulsante?

Mi dice infatti:
statement must appear within on handler
Dalla colonna "Source" è indicato il codice che da problema:
myButton.onRelease = function()