Solved

Button and Scene navigation problem

Posted on 2002-05-06
10
194 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
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
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

816 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

10 Experts available now in Live!

Get 1:1 Help Now