Linking Scenes with buttons?

  • wscheeks
  • Born
  • Born
  • No Avatar
  • Joined: Aug 16, 2004
  • Posts: 2
  • Status: Offline

Post August 19th, 2004, 6:57 am

I need some help. :(
I'm trying to link my scenes with buttons, this is the script I have put on the key frame I want the button to start the next scene.
Code: [ Select ]
goScene_btn.onRelease=function (){
  gotoAndStop("Scene 2", 1);
};
  1. goScene_btn.onRelease=function (){
  2.   gotoAndStop("Scene 2", 1);
  3. };



I'm extremely new to all this....please fo give the ignants of me.

thanks
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post August 19th, 2004, 6:57 am

  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Joined: Dec 29, 2003
  • Posts: 5169
  • Loc: SC-USA
  • Status: Offline

Post August 19th, 2004, 7:06 am

Using scenes is discouraged. They have a number of problems in newer versions of Flash, just like the problem you are encountering.
- dM
  • DSanchez
  • Born
  • Born
  • User avatar
  • Joined: Aug 19, 2004
  • Posts: 2
  • Loc: Wi
  • Status: Offline

Post August 19th, 2004, 10:12 am

The code looks right, check all the other places for problems, MovieClip Names, Targets, What happends when it Get to the Scene? Another one might be what Player you're exporting it to? If it's Player 7 check to see if your using ActionScript 2, somethings have been changed in AC2 that don't actually cause output errors but will just plain make the movie not work when you test it. Try Exporting as Player 6 and use ActionScript 1 for the time being, to tell.

D
  • wscheeks
  • Born
  • Born
  • No Avatar
  • Joined: Aug 16, 2004
  • Posts: 2
  • Status: Offline

Post August 19th, 2004, 11:41 am

Yeah, I tried the exporting with the correct action script level...This is the first flash I have used and from reading, lots of people seem to be having problems.

It is very frustrating doing exactly what a tutorial tells you or a lesson, along with all things correct aaaaannnd.......it does'nt work.

Thanks for the help though...I will just keep trying.
  • Sean Dempsey
  • Novice
  • Novice
  • No Avatar
  • Joined: Sep 04, 2004
  • Posts: 25
  • Status: Offline

Post September 4th, 2004, 9:38 pm

digitalMedia wrote:
Using scenes is discouraged. They have a number of problems in newer versions of Flash, just like the problem you are encountering.


I have never heard of using scenes being discouraged, could you elaborate a bit? What is the alternative?
  • lvchang
  • Novice
  • Novice
  • User avatar
  • Joined: Jun 27, 2005
  • Posts: 34
  • Loc: malaysia
  • Status: Offline

Post June 27th, 2005, 12:43 am

i also face the similar problem can you help me!

Instead of going to scene 5, it go to scene 2 from 1

I'm using flash mx2004

codes are:


on (release) {
gotoAndPlay("Scene 5,1");
}


i also trying using this:

goScene_btn.onRelease=function (){
gotoAndStop("Scene 2", 1);
};
  • lvchang
  • Novice
  • Novice
  • User avatar
  • Joined: Jun 27, 2005
  • Posts: 34
  • Loc: malaysia
  • Status: Offline

Post June 27th, 2005, 12:44 am

it always says, error when i check the syntax using the software!
  • santana
  • Born
  • Born
  • No Avatar
  • Joined: Jul 12, 2009
  • Posts: 1
  • Status: Offline

Post July 12th, 2009, 5:48 pm

My problem is practicaly the same. i have a game using 6 scenes but i just can go from the first (main scene) to the second and back to the first. if i use the same scrit in the others scenes to get in the first scene the script make me go trought every scene that lies before in scene board box.

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

this code work good from first to second and viceversa. i just did a little change becouse it gave me an error

on (release) {
gotoAndPlay("Scene 1,1")}

if somebody know the changes help me
sanjebapa@hotmail.com
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Joined: Jul 11, 2005
  • Posts: 1828
  • Loc: In the Great White North
  • Status: Offline

Post July 13th, 2009, 11:28 am

you need to change the scene number (Scene Number, Frame Number) Also I believe you need to change the quotes.
Code: [ Select ]
gotoAndPlay(scene 1, frame number "or frame label in quotes");
If at first you don't succeed F1... If that doesn't work try Google!
//// Designer, Developer & Teacher - Interactive, Motion and 3D \\\\
Portfolio at WhenImNotSleeping.com
  • IceCold
  • Guru
  • Guru
  • User avatar
  • Joined: Nov 05, 2004
  • Posts: 1254
  • Loc: Ro
  • Status: Offline

Post July 20th, 2009, 2:44 am

And also probably you need to come to present and stop using scenes :)
Scenes are so outdated, i only used them once for preloading, when i was a total beginner, but never used them since then.
Movieclips are so much better.
“True mastery transcede any particular art. It stems from mastery of oneself - the ability, developed throgh self-discipline, to be calm, fully aware, and complety in tune with oneself and the surroundings. Then, and only then, can a person know himself. ”

Post Information

  • Total Posts in this topic: 10 posts
  • Users browsing this forum: demonmaestro and 53 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.