Passing a variable into a function

why is my variable not being passed into my function?

dealerLocate.urlButton.linkButton.onRelease=function(webAddress){
	web=webAddress
	trace("this is web "+web);
	fullUrl="http://"+web;
	trace("full url="+fullUrl);
	getURL(fullUrl, "_blank");
}

the webAddress variable is from the exact same timeline making it one level up from this function. it traces out correctly too so I know the variable is there… just not getting passed!

now i’ve got a bunch of goofy trace stuff in there but you get the idea… help!