Solved

Button and Scene navigation problem

Posted on 2002-05-06
10
199 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
  • 2
  • +2
10 Comments
 
LVL 6

Expert Comment

by:rootdir
ID: 6992925
use this code

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

Cheers
RootDir
0
 
LVL 1

Author Comment

by:cyberspy
ID: 6992975
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
ID: 6993024
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:cyberspy
ID: 6993025
do you mind if I delete it?
0
 
LVL 6

Expert Comment

by:rootdir
ID: 6994072
It's upto you. You got the answer that's imp.
0
 
LVL 1

Expert Comment

by:chill0123
ID: 6994830
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
ID: 6995046
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
ID: 6995110
just giving you my "expert" advice...  

glad you figured it out yourself

c

0
 
LVL 9

Expert Comment

by:OBCT
ID: 10319899
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
ID: 10361984
PAQed, with points refunded (50)

Computer101
E-E Admin
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.

687 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