Link to home
Start Free TrialLog in
Avatar of cyberspy
cyberspy

asked on

Button and Scene navigation problem

Hi guys,

I have a weird problem. I was developing a movie which as 20 scenes. After a while I decided to add another scene for another section of the movie and a button so that a user can jump from any scene to this specific scene (scene 21). And it won't work. I used the same code as for all the other button to get to other scenes and they work fine except for this one. I tryied rebuilding the button and altering the code but it still won't work. Since I have the button in a movie clip I use this code:

on (release) {
_root.gotoAndPlay("Scene 21", 1);
}

Please help, I really appreciate it.
Avatar of rootdir
rootdir

use this code

on(release)
{
    _flash.gotoAndPlay("Scene 21", 1);
}

Cheers
RootDir
Avatar of cyberspy

ASKER

It didn't work.  This stuff is really weird.  I tried many different things, I tried to look for errors or something.  You see, I created this scene later after all movie was basically complete and all buttons were connected to other scenes.  Now this button won't work with this scene, and no other button would.  Although, when I have this button outside of the movie clip, it works.  When it's inside any movie clip - it doesn't work.  I don't get it? Can you see the problem? Thanks.
Thanks....I got it! After spending two days figuring this out, I put frame label instead of number and it worked!!
that's weird I think...
do you mind if I delete it?
It's upto you. You got the answer that's imp.
it always helps to use the following format when trying to link/play a MC or Scene:


on (release) {
_root.MOVIECLIPNAME.gotoAndPlay("Scene 21", "framelabel");
}

or

on (release) {
gotoAndPlay("Scene 21", "framelabel");
}

use frame labels when ever possible, and I would also recommend that you name your scenes something specific.... that will help you or others know what the scene contains and makes it easier to maintain...

c

chill0123,
Thanks for your answer, but if you read before i have already figured that out.  I'm deleting this question so please don't post any more comments. it's not necessary.
just giving you my "expert" advice...  

glad you figured it out yourself

c

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

PAQ/Refund

Please leave any comments here within the next four days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

OBCT
EE Cleanup Volunteer
ASKER CERTIFIED SOLUTION
Avatar of Computer101
Computer101
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial