# Passing a variable into a function

**URL:** <https://forum.kirupa.com/t/passing-a-variable-into-a-function/162009>\
**Category:** Uncategorized\
**Created:** [September 8, 2005, 9:18pm UTC](https://forum.kirupa.com/t/passing-a-variable-into-a-function/162009 "2005-09-08T21:18:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![natronp](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@natronp](https://forum.kirupa.com/u/natronp)\
**Post date:** [September 8, 2005, 9:18pm UTC](https://forum.kirupa.com/t/passing-a-variable-into-a-function/162009/1 "2005-09-08T21:18:46Z")

</div>

why is my variable not being passed into my function?

```auto
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!
