Linking Scenes with buttons?

  • wscheeks
  • Born
  • Born
  • wscheeks
  • Posts: 2

Post 3+ Months Ago

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
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Posts: 5149
  • Loc: SC-USA

Post 3+ Months Ago

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

Post 3+ Months Ago

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
  • wscheeks
  • Posts: 2

Post 3+ Months Ago

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
  • Sean Dempsey
  • Posts: 25

Post 3+ Months Ago

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
  • Posts: 34
  • Loc: malaysia

Post 3+ Months Ago

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
  • Posts: 34
  • Loc: malaysia

Post 3+ Months Ago

it always says, error when i check the syntax using the software!
  • santana
  • Born
  • Born
  • santana
  • Posts: 1

Post 3+ Months Ago

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
  • Posts: 1828
  • Loc: In the Great White North

Post 3+ Months Ago

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");
  • IceCold
  • Guru
  • Guru
  • User avatar
  • Posts: 1254
  • Loc: Ro

Post 3+ Months Ago

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.

Post Information

  • Total Posts in this topic: 10 posts
  • Users browsing this forum: No registered users and 13 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
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.