# 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:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![DigitalPimp](https://avatars.discourse-cdn.com/v4/letter/d/5f8ce5/32.png) [@DigitalPimp](https://forum.kirupa.com/u/DigitalPimp)\
**Post date:** [August 25, 2003, 9:03pm UTC](https://forum.kirupa.com/t/waiting-to-gotourl-until-u-hit-a-certain-frame/29337/1 "2003-08-25T21:03:32Z")

</div>

Aight, I have this script and I want to click on an MC and then it plays the movie and then when it gets to a certain frame it launches the url. Attached is my FLA.

---

<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 25, 2003, 10:15pm UTC](https://forum.kirupa.com/t/waiting-to-gotourl-until-u-hit-a-certain-frame/29337/2 "2003-08-25T22:15:18Z")

</div>

Hmm, I really don’t know. Have you tried using (\_currentframe) to check if the movie is at that frame and then using getURL? For example:

```auto
 
if (_root.movie._currentframe==20) {
getURL("http://www.nbc.com");
}

```

Where 20 is the frame number in the movie clip called “movie.”

Cheers!  
Kirupa :snug:

---

<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, 4:47am UTC](https://forum.kirupa.com/t/waiting-to-gotourl-until-u-hit-a-certain-frame/29337/3 "2003-08-26T04:47:11Z")

</div>

thanx Kirupa, I was having the same sort of problem, cos Im making my site lead from a page, to my intro, on to the main site (2 options, flash/non-flash) I can now make the movie lead on to my site smoothly.

take it easy \<|:^D

–jc–

---

<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, 4:49am UTC](https://forum.kirupa.com/t/waiting-to-gotourl-until-u-hit-a-certain-frame/29337/4 "2003-08-26T04:49:32Z")

</div>

Can’t you just put the getURL command in that certain frame? That’s what I do, then when flash hits that frame, it launches. Or did I misunderstand?

---

<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, 2:17pm UTC](https://forum.kirupa.com/t/waiting-to-gotourl-until-u-hit-a-certain-frame/29337/5 "2003-08-26T14:17:58Z")

</div>

Not for what I’m trying to do. I wrote a function and the code is on the MC. So it doesn’t exactly work like that…

Kirupa: I’ve tried that \_root.\_currentframe == 20 and it hasn’t worked but I’m going to keep trying. Thank you very much for your reply.

Anybody else have any ideas.

---

<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, 2:36pm UTC](https://forum.kirupa.com/t/waiting-to-gotourl-until-u-hit-a-certain-frame/29337/6 "2003-08-26T14:36:15Z")

</div>

Well, what I would suggest even though I haven’t even tried this sort of method yet is…

Have the first keyframe of the animation mc have “stop” and then “play” on the second keyframe. Then add the actionscript for telltarget “name of mc” to go to frame 2 and play or stop or whatever. Then add another keyframe in the animation mc a while down, oh say on frame 25. On there, add the geturl code for your site. I hope this works. I’m about to test it out.

Good luck my fellow pimp brother  
:p: aussy

---

<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, 2:41pm UTC](https://forum.kirupa.com/t/waiting-to-gotourl-until-u-hit-a-certain-frame/29337/7 "2003-08-26T14:41:23Z")

</div>

In about 1 minute I made this very sloppy looking version of whta I think you wanted. I wasn’t sure if you wanted teh animation visible before you pressed the button. If so, just add soem motion tween or add a blank keyframe in the beggining with stop, and remove the previous stop frame (which should now be frame 2). I hope this helps you out.

:p: aussy

---

<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, 2:42pm UTC](https://forum.kirupa.com/t/waiting-to-gotourl-until-u-hit-a-certain-frame/29337/8 "2003-08-26T14:42:03Z")

</div>

umm… I’m not using TellTarget because that was deprecated in V.5 and my code is a little more complicated then that.

[edit]Look @ my code. See the grade levels across the top. It is that code.[/edit]

---

<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, 2:45pm UTC](https://forum.kirupa.com/t/waiting-to-gotourl-until-u-hit-a-certain-frame/29337/9 "2003-08-26T14:45:00Z")

</div>

Ok, I didn’t read your message right lol :beam: . I’ll have a look at your fla and try to figure something out.

:p: aussy

---

<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, 2:50pm UTC](https://forum.kirupa.com/t/waiting-to-gotourl-until-u-hit-a-certain-frame/29337/10 "2003-08-26T14:50:54Z")

</div>

ARGH ! Your movie spawned 20 Explorer windows and shut down Flash !

---

<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, 2:59pm UTC](https://forum.kirupa.com/t/waiting-to-gotourl-until-u-hit-a-certain-frame/29337/11 "2003-08-26T14:59:06Z")

</div>

I have no idea what youre trying to do in that movie lol. There are to many frames and it makes my head hurt 😊 . I tried making this thing the way you wanted it in a new movie but it kept frustrating me. The On Release functions dont exactly work as well when applied to a movie clip instead of a button. I have an idea though. Here is a kind of outline of it.

Scene1  
\>MC 1 - Frame1=Stop Frame2=Play  
\>MC 2 - Button, In Frame1 of mc1, ON Release goto frame2 and play  
\>MC 3 - MC, In Frame 2 of mc1, This will be the animation mc. You can have it either have the animation within the movieclip(mc3 that is), or a motion tween in mc1 involving mc3. If you have teh animation within mc3, then make mc1 have a certain amount of frames until the animation is done, then use geturl.

I hope you knwo what I mean lol. Ill trey to mak eteh move now.

---

<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, 3:04pm UTC](https://forum.kirupa.com/t/waiting-to-gotourl-until-u-hit-a-certain-frame/29337/12 "2003-08-26T15:04:52Z")

</div>

OK Here is the zip file containing the fla. I hope this si kinda what you meant.

---

<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, 3:09pm UTC](https://forum.kirupa.com/t/waiting-to-gotourl-until-u-hit-a-certain-frame/29337/13 "2003-08-26T15:09:12Z")

</div>

> \*Originally posted by Voetsjoeba \*  
> \*\*ARGH ! Your movie spawned 20 Explorer windows and shut down Flash ! \*\*

That is the problem right now. The getURL ends up looping and crashes flash.

---

<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, 3:10pm UTC](https://forum.kirupa.com/t/waiting-to-gotourl-until-u-hit-a-certain-frame/29337/14 "2003-08-26T15:10:42Z")

</div>

> \*Originally posted by aussy \*  
> \*\*I have no idea what youre trying to do in that movie lol. There are to many frames and it makes my head hurt 😊 . I tried making this thing the way you wanted it in a new movie but it kept frustrating me. The On Release functions dont exactly work as well when applied to a movie clip instead of a button. I have an idea though. Here is a kind of outline of it.

Scene1  
\>MC 1 - Frame1=Stop Frame2=Play  
\>MC 2 - Button, In Frame1 of mc1, ON Release goto frame2 and play  
\>MC 3 - MC, In Frame 2 of mc1, This will be the animation mc. You can have it either have the animation within the movieclip(mc3 that is), or a motion tween in mc1 involving mc3. If you have teh animation within mc3, then make mc1 have a certain amount of frames until the animation is done, then use geturl.

I hope you knwo what I mean lol. Ill trey to mak eteh move now. \*\*

That is too complicated to remake it. It is a dynamic navigation for a educational web site that I administer.

BTW, I need this working for a presentation on the 3rd.

---

<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, 3:13pm UTC](https://forum.kirupa.com/t/waiting-to-gotourl-until-u-hit-a-certain-frame/29337/15 "2003-08-26T15:13:07Z")

</div>

> \*Originally posted by aussy \*  
> \*\*OK Here is the zip file containing the fla. I hope this si kinda what you meant. \*\*

That FLA works but it is a lot easier then what I am trying to do.

---

<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, 3:13pm UTC](https://forum.kirupa.com/t/waiting-to-gotourl-until-u-hit-a-certain-frame/29337/16 "2003-08-26T15:13:26Z")

</div>

Hmmm, even in the new movie? If so, then thats a problem lol. It didnt do that on my computer ☹ . Weird. Maybe this new one will help. I added one more action to it. Tell me if it does.

---

<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, 3:17pm UTC](https://forum.kirupa.com/t/waiting-to-gotourl-until-u-hit-a-certain-frame/29337/17 "2003-08-26T15:17:37Z")

</div>

Lol ok. I can’t help yah there. Good luck though my fellow pimpin brudda.

---

<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, 3:30pm UTC](https://forum.kirupa.com/t/waiting-to-gotourl-until-u-hit-a-certain-frame/29337/18 "2003-08-26T15:30:50Z")

</div>

argh…

_blows brains out_

![](http://www.80s.com/saveferris/images/cast/stein.jpg)  
anybody…anybody…?

---

<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, 7:12pm UTC](https://forum.kirupa.com/t/waiting-to-gotourl-until-u-hit-a-certain-frame/29337/19 "2003-08-26T19:12:53Z")

</div>

bump ? hump

---

<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:08pm UTC](https://forum.kirupa.com/t/waiting-to-gotourl-until-u-hit-a-certain-frame/29337/20 "2003-08-26T20:08:36Z")

</div>

Hi,

I got your code to stop opening multiple explorer windows by resetting checkIfClicked variable back to zero once inside the if statement.

This may not be what you’re looking for exactly but I hope it helps.

Liz

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