From: Jim on
I'm at the end of my rope as a newbie.

I've got two buttons on the stage. btn_MyDevelopment is an instance
of the btnRed button object. btn_MyTranscript is an instance of the
btnBlue button object.

When clicked I want each one to open a URL in the same window. I've
embedded the SWF file into an HTML file, but when I click on the
buttons, nothing happens. I've tried the two different syntaxes
below. Both throw an error the "Statement must appear within on
handler."

btn_MyDevelopment.onRelease = function(){
getURL("http://www.yahoo.com","_self");
};

var listenerObject:Object = new Object();
listenerObject.onRelease = function(){
getURL("http://www.yahoo.com","_self");
};