# Bizzare Controling timeline issue

**URL:** <https://forum.kirupa.com/t/bizzare-controling-timeline-issue/42184>\
**Category:** flash\
**Created:** [February 6, 2004, 4:34am UTC](https://forum.kirupa.com/t/bizzare-controling-timeline-issue/42184 "2004-02-06T04:34:21Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rob\_Hed](https://avatars.discourse-cdn.com/v4/letter/r/8e7dd6/32.png) [@Rob\_Hed](https://forum.kirupa.com/u/Rob_Hed)\
**Post date:** [February 6, 2004, 4:34am UTC](https://forum.kirupa.com/t/bizzare-controling-timeline-issue/42184/1 "2004-02-06T04:34:21Z")

</div>

I have this weird problem with controling the timeline.  
I have a mc that plays and when it reaches the end of the timeline, this mc tells the root timeline to jump to frame 65. But it won’t work.

my code looks like this: \_root.gotoAndStop(65);

The weird thing is that it was working fine until i added another scene. If a drag this scene to the buttom of the stack, everything works again. I use the test movie instead of the test scene which usually does the trick but not this time.

It is annoying to spend this much time on something that was working. I don’t see the logic.

any ideas out there?

---

<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:** [February 6, 2004, 4:37am UTC](https://forum.kirupa.com/t/bizzare-controling-timeline-issue/42184/2 "2004-02-06T04:37:53Z")

</div>

sometimes it does not work when i write gotoAndStop("Scene ?? ", frame ???) maybe u should just write the total frame or what, thats what i think…

---

<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:** [February 6, 2004, 4:44am UTC](https://forum.kirupa.com/t/bizzare-controling-timeline-issue/42184/3 "2004-02-06T04:44:00Z")

</div>

good thought, i tried that too but it didn’t work.

---

<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:** [February 6, 2004, 4:44am UTC](https://forum.kirupa.com/t/bizzare-controling-timeline-issue/42184/4 "2004-02-06T04:44:41Z")

</div>

post ur fla then and let me take a looK?

---

<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:** [February 6, 2004, 4:46am UTC](https://forum.kirupa.com/t/bizzare-controling-timeline-issue/42184/5 "2004-02-06T04:46:09Z")

</div>

i would but its really big.

---

<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:** [February 6, 2004, 4:49am UTC](https://forum.kirupa.com/t/bizzare-controling-timeline-issue/42184/6 "2004-02-06T04:49:11Z")

</div>

(1)try working everything on one scene if possible?  
(2)Check the number of total frames again

---

<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:** [February 6, 2004, 4:56am UTC](https://forum.kirupa.com/t/bizzare-controling-timeline-issue/42184/7 "2004-02-06T04:56:20Z")

</div>

i may have to do the single frame thing although it will be a pain. It seems like it is a glitch with flash or something.

thanks

---

<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:** [February 6, 2004, 8:35am UTC](https://forum.kirupa.com/t/bizzare-controling-timeline-issue/42184/8 "2004-02-06T08:35:52Z")

</div>

Give your frame a framelabel  
[AS] \_root.gotoAndStop(“yourframelabel”);[/AS]

scotty(-:

---

<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:** [February 6, 2004, 10:11am UTC](https://forum.kirupa.com/t/bizzare-controling-timeline-issue/42184/9 "2004-02-06T10:11:08Z")

</div>

hi,

u must consider various things when you are adressing the time line.

I think u must explain more clearly in the forum, so that everybody can trace the problem.

Let me try to solve your problem to the extent whatever I have understood.

when you say \_root.gotoAndStop(65), it must work. Try to trace whether the timeline is reaching the end of the movie clip and your action is being called. According to me your timeline is not reaching the end of timeline and calling that script.

Secondly, if you are loading the movie into another movie, then \_root changes and the timeline will be considered as \_parent. It is better to address the timeline in levels.

If you can upload your files, then anyone can help you.

Prathap

---

<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:** [February 6, 2004, 11:27am UTC](https://forum.kirupa.com/t/bizzare-controling-timeline-issue/42184/10 "2004-02-06T11:27:58Z")

</div>

> \*Originally posted by Rob Hed \*  
> \*\*my code looks like this: \_root.gotoAndStop(65);

The weird thing is that it was working fine until i added another scene. If a drag this scene to the buttom of the stack, everything works again.\*\*

Since all scenes are one timeline, if you put a scene before the one you have, your frame(65) is no longer #65, but all the frames of the scene you’ve put before it plus 65.  
So if you use scenes it’s better to use framelabels.  
Even better is to avoid scenes.

scotty(-:

---

<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:** [February 6, 2004, 2:55pm UTC](https://forum.kirupa.com/t/bizzare-controling-timeline-issue/42184/11 "2004-02-06T14:55:23Z")

</div>

thanks to all for the good advice. Scotty, the label thing worked! Your reasoning for it not going to that frame number makes sense. I should have thought of trying that. Thanks.

---

<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:** [February 6, 2004, 3:52pm UTC](https://forum.kirupa.com/t/bizzare-controling-timeline-issue/42184/12 "2004-02-06T15:52:43Z")

</div>

no problem:thumb:
