# Waiting to gotoURL until u hit a certain frame

**URL:** <https://forum.kirupa.com/t/waiting-to-gotourl-until-u-hit-a-certain-frame/29337>\
**Category:** Uncategorized\
**Created:** [August 25, 2003, 9:03pm UTC](https://forum.kirupa.com/t/waiting-to-gotourl-until-u-hit-a-certain-frame/29337 "2003-08-25T21:03:32Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 26, 2003, 8:13pm UTC](https://forum.kirupa.com/t/waiting-to-gotourl-until-u-hit-a-certain-frame/29337/21 "2003-08-26T20:13:12Z")

</div>

Yea, I figured that part out… I just did that to demonstrate the problem better.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 26, 2003, 10:12pm UTC](https://forum.kirupa.com/t/waiting-to-gotourl-until-u-hit-a-certain-frame/29337/22 "2003-08-26T22:12:40Z")

</div>

Hi,

Did you know that in your function here…

onEnterFrame = function() {  
if (\_root.\_currentframe == “125” && checkIfClicked == 1) {  
trace(“hello?”);  
getURL(url, “\_self”);

```
}
if (_global.gradePV != "") {
	obj = _global.gradePV;
	this[obj].enabled = false;
	new Color(obj).setRGB(0x880000);
	for (i=0; i&lt;5; i++) {
		this[obj]._xscale = 150;
		this[obj]._yscale = 150;
	}
}

```

}

the url in the call to getURL is an undefined variable?

If you put a trace statement there that puts out url it says undefined. You need a value for a web page or whatever to open. When you rollover a letter you pass a url into a different function but it is never stored anywhere that the above function can access it.

Hope this helps,

Liz

[Previous page](https://forum.kirupa.com/t/waiting-to-gotourl-until-u-hit-a-certain-frame/29337.md?page=1)
