Be a Supporter!

Scene select in a flash movie

  • 147 Views
  • 5 Replies
New Topic Respond to this Topic
blank0000
blank0000
  • Member since: Jan. 29, 2006
  • Offline.
Forum Stats
Member
Level 07
Blank Slate
Scene select in a flash movie 2009-09-14 23:01:09 Reply

I know this is a basic thing, that has been explained in maybe differnetways in several tutorials, but none of them seem to work with me. I'm dreadful at using actionscript and was hoping someone could help makes things a little clearer for me


BBS Signature
Innermike
Innermike
  • Member since: Sep. 11, 2009
  • Offline.
Forum Stats
Member
Level 14
Blank Slate
Response to Scene select in a flash movie 2009-09-14 23:19:40 Reply

reaally simple
make buttons for each scene
on button put

on(release){
gotoAndPlay(scene,frame number/label);
}
do that for all your buttons but change the scene / frame of course then stick them in the first frame/introscreen with
stop();
on the frame

TEH EDN


nobody

blank0000
blank0000
  • Member since: Jan. 29, 2006
  • Offline.
Forum Stats
Member
Level 07
Blank Slate
Response to Scene select in a flash movie 2009-09-15 00:52:33 Reply

does'nt work, this is the code i'm using

on(release){
gotoAndPlay(scene2,1);
}


BBS Signature
OMGx
OMGx
  • Member since: Oct. 4, 2007
  • Offline.
Forum Stats
Member
Level 08
Blank Slate
Response to Scene select in a flash movie 2009-09-15 02:41:15 Reply

At 9/15/09 12:52 AM, blank0000 wrote: does'nt work, this is the code i'm using

on(release){
gotoAndPlay(scene2,1);
}

Take out the scene2 and put just 2?


"Marx was wrong. Religion is not the opiate of the masses, religion is the placebo of the masses."

BBS Signature
Innermike
Innermike
  • Member since: Sep. 11, 2009
  • Offline.
Forum Stats
Member
Level 14
Blank Slate
Response to Scene select in a flash movie 2009-09-15 10:05:58 Reply

I personally think its a lot better just to have it iin one timeline then label the frames
that HAS to work
i actually would put each scene into an mc the have 5 frames with 1 mc in and at the last frame in each i put
_root.nextFrame();
but thats just me
as for you is it a button your using or mcbutton and are there any errors coming up
make sure in the scene part you write it like this if you want to go to scene called later frame 14 thats
on(press){
_root.gotoAndPlay("later",14)
}


nobody

Giantsockmonster
Giantsockmonster
  • Member since: Jul. 14, 2009
  • Offline.
Forum Stats
Member
Level 12
Blank Slate
Response to Scene select in a flash movie 2009-09-15 13:19:29 Reply

Easy peasy, make buttons for all the different scenes you have in your flash (you'll have to leave a frame for the scene select and do your animation) once you've finished your animation go back to the menu frame. On the buttons for the scenes copy and paste the actionscript:

on (release) {gotoAndPlay(FRAME HERE);}

Delete the 'frame here' and put in the frame number for the scene you want it to go to. Do this for all the buttons.

THE END.


BBS Signature