Bizzare Controling timeline issue

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?

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…

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

post ur fla then and let me take a looK?

i would but its really big.

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

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

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

scotty(-:

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

*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(-:

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.

no problem:thumb: