Solved

Button and Scene navigation problem

Posted on 2002-05-06
10
192 Views
Last Modified: 2010-04-03
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.
0
Comment
Question by:cyberspy
  • 4
  • 2
  • 2
  • +2
10 Comments
 
LVL 6

Expert Comment

by:rootdir
Comment Utility
use this code

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

Cheers
RootDir
0
 
LVL 1

Author Comment

by:cyberspy
Comment Utility
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.
0
 
LVL 1

Author Comment

by:cyberspy
Comment Utility
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...
0
 
LVL 1

Author Comment

by:cyberspy
Comment Utility
do you mind if I delete it?
0
 
LVL 6

Expert Comment

by:rootdir
Comment Utility
It's upto you. You got the answer that's imp.
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 1

Expert Comment

by:chill0123
Comment Utility
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

0
 
LVL 1

Author Comment

by:cyberspy
Comment Utility
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.
0
 
LVL 1

Expert Comment

by:chill0123
Comment Utility
just giving you my "expert" advice...  

glad you figured it out yourself

c

0
 
LVL 9

Expert Comment

by:OBCT
Comment Utility
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
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
Comment Utility
PAQed, with points refunded (50)

Computer101
E-E Admin
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now