Functions and sub-functions

I think i’m a little confused about functions.

I have one function that puts text in a text field and makes a button goto a url onRelease.

The code is like this:

 item.onRelease = function() {
	myButton.onRelease = function() {
getURL("http://google.com", "_blank");
}
	talk = this.txt;
}

the only problem is that the button doesn’t work onRelease. i think that it is because there are too many functions there, but at the same time, i think it’s just me…

any advice?

thx in advance.