Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








NextScene Command?/?


Hi everyone,

I just want to be able to play the content of the first scene because i am trying to use this technique as an ntro http://www.kirupa.com/developer/mx/fadegrid.htm


and then once it gets to the end of it, go to the next scene, where all the buttons and content will be loaded. (its a site). I thought i could just add in the AS frame,

gotoAndPlay("Scene 2", 1);

but for some reason its not working. There is probably something really basic I am missing. It will only go there after I press enter on the keyboard. Is there a way around this?

thanks for all the help, you guys rock!




KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 01-12-2006, 03:44 AM


View Complete Forum Thread with Replies

Sponsored Links:

[F8] Nextscene() = GotoAndPlay("nextscene",1) ?
I'm making a movie with an intro scene that people can skip by pressing a button. The button is coded with on (release) {nextScene();} and the action for the last frame of the movie is gotoAndPlay("scene2", 1);.

The first frame of scene 2 has some text that should show up by default that changes when you click other buttons. The actions for the first frame contains the following code:

hideLeftTextArea(); //referencing a function to hide all the text boxes
defaultText._visible=true; //shows the default text

The problem is that when you skip the intro by pressing the button the default text shows up as it should, but when the intro runs its natural course it disappears.

I've solved the problem by using nextScene(); for the last frame of the movie, but I'm curious why that way works while the other doesn't. Any ideas?

View Replies !    View Related
NextScene()? HELP
ive got a button inside a movie clip that, when clicked should send the main movie to the next scene.However, when i type _root.nextScene() it doesnt work. even when i use nextScene() it doesnt work. Why not? What is the right code?
HELP
Thanx
IRF2k

View Replies !    View Related
How Do I Use Nextscene?
I'm trying to get a button on my host movie to make the swf loaded into the MC called "screen" jump to the next scene

on (release) {
screen.nextScene ();
}

doesn't work.

I can't use frame labels because the button needs to act generically going always to the next scene.

Thanks for the help.

View Replies !    View Related
NextScene()
I have 6 scenes that have to play one right after the other. Each scene contains movie clips with x amount of time. On the main timeline of the scene I give it that x amount of time so it can run. On the last frame of the main timeline of the scene, I added a nextScene() command. It works fine trasfering from the first scene to the next. The problem is with the transition between 2 & 3. I would be able to say if 3 would go to 4, and so-on because it doesn't get that far. I tried swaping scenes. For instance, placing 4 in 2's spot. It works, but then it will not transfer to the next after that. What happens is it will stop on the last frame of the movie clip because of a stop() command in the clip. I don't see how that could effect what I put on the main timeline (which would be nextScene()).

This has me stumped. I analized what I did with the first scene which works so well. I can't see anything that I could possibly mess up. All I have is that one line of code for each scene and stop() commands in the movie clips that are placed on the main timelines of each scene.

Any suggestions?


Stressed!
KDV

View Replies !    View Related
NextScene
is it possible to communicate with movie on another scene?

in the last frame of scene 1, i have this code:

nextScene();


nav.gotoAndPlay(2);


can't i write

nextscene.nav.gotoAndPlay(2); or something?

View Replies !    View Related
NextScene
Code:
on (release) {
_level1.nextScene();
}
What's wrong with this code? My movie doesn't do anything when you click the button that has this code. It just sits there. And yes, I do have several scenes.

View Replies !    View Related
NextScene() In MC?
i have a MC on the main timeline, inside the mc i have a button

all i want to happen is when that button is clicked it goes to the nextscene, it doesnt work. is tehr anykind of thing i have to add to nextScene to make the movie change scenes?

help is apreciated
thanks
-steve

View Replies !    View Related
NextScene();
I have a FLA with a bunch of scenes.

I want a user to click on a button that will take them to 'the next scene' I have tried the following 2 types of code on my button and it doesn't work.

(oh yea my button is burried in side a Movie clip).


on (release) {
_root.nextScene();
}



on (release) {
nextScene();
}


Any ideas how I can get this to work?

I want (need) to use the "nextScene();" Syntax.
I am not looking to use Frame Labels or Scene Names.

View Replies !    View Related
NextScene()
Now please don't shoot me down for this being posted on the Actionscript forum as I am fully aware that this is a mainly Director issue... however I have come to no other alternative than to seek you kind people's help! I seriously have been searching for hours to find the answer to this.

Basically I am sending variables from Flash to Director.. no problem there... and then my Lingo basically performs an action based on the variable received.. again no problem there.. however when I attempt to "tell" another Flash movie to play the nextScene() it gives me a big old handler error...

I know that nextFrame() works and this is proved in my movie but I just wondered if anyone could give me a definative answer that it is either possible or not to use nextScene!!

Also if anyone knows of a good Director forum that I can post this up to I would be most grateful!

Cheers in advance guys and girls!

View Replies !    View Related
NextScene
Code:
on (release) {
_level1.nextScene();
}
What's wrong with this code? My movie doesn't do anything when you click the button that has this code. It just sits there. And yes, I do have several scenes.

View Replies !    View Related
NextScene
Code:
on (release) {
_level1.nextScene();
}
What's wrong with this code? My movie doesn't do anything when you click the button that has this code. It just sits there. And yes, I do have several scenes.

View Replies !    View Related
NextScene?
um... yup, me too has a dumb question.
if the command nextScene() is put in one of the frames of a movieclip, why doesn't the actual flash movie go to the next scene?


i want the actual flash movie to go to the next scene when one of the movie clips in it it's done playing...

so far i've tried setting a variable on the last frame of the mc and have the 1st frame of the actual movie check for that variable, but it seems the variable is already that value and the actual movie goes to the next scene without letting the mc finish playing.

However, i think there's a easier way than using a variable...

i appreciate

View Replies !    View Related
NextScene Tantrums
As ever My ever beloved Freind Flash Does not wish to do something quite simple for me.

No Matter how Hard I try - A button - which is inside an MC (which is also inside another MC) Does not seem to be able to Command the timeline on the root - to goto the nextScene() - or the prevScene() - WHY???

View Replies !    View Related
Levels And NextScene
I have an old fla (flash 3)that I am 'fixing', but there is not enough time to redo in flash MX. Basically I need to know if I can do something like this. (yes, I can republish it in flash MX, but I don't have time to convert the files logic to MX).

myButton.onPress = function(){
_level1.nextScene();
}

View Replies !    View Related
NextScene (); Problem
Hi Guys and Gals,

Does anyone know why

on (release) {
nextScene();
}

doesn't work? the code is attached to a button that is in a nested movie clip ( _root.completenav.botnav) and works fine when the button is placed in the root.

Using Flash MX on WinXP pentium 4.

thanks for anybody who can come up with any ideas, however wild as I am totally stuck.

Cheers,

Paul

View Replies !    View Related
_level0 Not Going To NextScene
Hi

Im tring to add an action to a button that sits on _level5 that tells _level0 to skip to the nextScene and play.

on (press) {
_level0.nextScene()
_level0.play();
}

but its only working when the _level0 scene is complete (or stopped). Does anyone know how i can skip forward regardless of what is happening on _level0 (whilst its still playing).

Cheers

View Replies !    View Related
Gotoandplay() NextScene()
I'm new to flash, but I need this crap for work, so please help.
I'm using flash MX.


1. I chose a frame, right clicked, and chose actions, I
added "gotoAndPlay(8)"

I assumed that as soon as the movie reaches that frame, it will
go back to the 8th frame and play from there. But it doesn't go
back, it just keeps going to the end. Basically, I am trying to
make it loop on a certain number of frames.

2. Is it possible to make a single layer loop on a certain number
of frames, or when you loop, do you always have to include all the
layers?

3. In another attempt to figuring out this problem, I divided the
movie into 2 scenes. First I assumed that as soon as the movie
finishes playing the first scene, it will automatically start
playing the second scene...wrong again. So I added another
action, this time it was nextScene(), but this didn't work either.
I also tried gotoAndPlay("Scene 2", 1) and this didn't work.

Can anyone please tell me how to get this thing to work??
I would really appreciate it, thanks.

View Replies !    View Related
Nextscene(); In Movieclip?
Hi,

I have a movieclip that is three layers deep. (A movieclip, inside of a movieclip, inside of a movieclip).

I put a nextscene(); action on one of the frames in this third level movieclip. When the player goes over this frame, it just goes back to the beginning of that movieclips timeline. I, obviously, want it to go to the next scene in the movie (thereby unloading all movieclips).

Do I need to be using some sort of root_nextscene action? Can a movieclip that is buried that deep control the main timeline?

Any help appreciated. Thanks!

Luke

View Replies !    View Related
NextScene(); Problems
Im trying to do something very basic and that is to advance to the next scene when a button is pressed the sceen is named "getScore" and I used the script (right out of the AS dictionary I might add)

Code:
on(release) {
nextScene();
}

and this doesnt work either

Code:
on(release) {
_root.nextScene();
}

what am I doing wrong?

Thanks alot!

Mark

View Replies !    View Related
[F8] NextScene And Loaded Swf's
i need my loaded swf to tell the parent swf to go to the next scene when a button is clicked in the loaded swf. the loaded swf is being loaded into a movie clip on the main stage. can anyone help? i'm sure it is a simple task to an expert.

View Replies !    View Related
Go To NextScene (specific One)
Hello. I want to make a button and tell it to take the user to a specific SCENE. I can get the code that just takes you to the next scene to work but I can't seem to get the specific name of the scene I want to go to, to work..

So, how can I tell Flash CS3 or how can I specify a button in FLASH CS3 to take the user to another scene that I want them to go to?

View Replies !    View Related
Nextscene() Function
Ok, i have flashmx2004 and love it. There are a few things that have been puzzling me for a while. I have a movie with multiple scenes, and i would like a button to be able to go foward one scene or go back one scene. I have success when i put the button on the parent level and use the A.S. :


Code:
on (release) {
nextScene();

}
But if i try to put this same code on a differant level like within a movie clip or even a movie clip that has a button. Or any level other than root, the code will not work. I have tried using :


Code:
on (release) {
_root.nextScene();

}
But no luck there.
Any ideas?

thanks,
Nimbus

View Replies !    View Related
Nextscene Problem
Ok im doing a project for school and its got 5 scenes in it but
only the first scene moves on to the next wich is the 2nd and ive put the nextscene code after the frames in the 2nd scene but when i test the movie it doesnt move on to scene3 the scene code i used for all of them is

nextScene(); and i used it from the actions page can anyone tell me why after the second scene it wont move on?? do i need to put like nextScene(3);

or somthing like that? THNX IN ADVANCE

View Replies !    View Related
How Do I Do The Nextscene Thing
how would i keep going to the next scene after scene ive made 4 scenes and after the frames i put the action code and itll only work untill scene2??a lil help plz lol

View Replies !    View Related
NextScene / NextFrame
I have a problem with the nextScene(); command, it doesnt seem to be working at all. Code:

if(_x > 10){
_root.nextScene();
nextScene();
_root.gotoAndPlay(nextScene);
}
I only use one of these commands at a time but none of them seem to be working, what is the propper way to format nextScene? if I put a trace command inside the same if statement that triggers correctly.

If it helps the code is inside a movie clip thats on the stage, in a enterFrame clip event.

View Replies !    View Related
NextScene() And PrevScene()
What's up with this. Macromedia boasts, they've fixed the bug in flash 7, but it still won't work. Any thoughts?

View Replies !    View Related
NextScene And Components?
Hello,
do components allow nextScene statements? It seems not.
I added this code to a button component (AS2):

Code:
on (click) {
nextScene();
}
Any hint?

thank you
m.

View Replies !    View Related
NextScene Then Playing
Hi,

Have been stuck on this for a while, but I am using the nextScene() on the timeline, but when it actually goes to the nextscene it stops on the first frame, when I want it to play. Does anyone no how to achieve this? and not using scenes is not a option.

Thanks.

dabush.

View Replies !    View Related
Goto Nextscene
Can anyone tell me how to go to a different scene from a movie clip? I've tried actionscripting, but it doesn't seem to work.
On the frame that the movie clip appears in, there is a stop.
On the clip itself is:
on (release) {
play();
}
why is this not working?

View Replies !    View Related
Nextscene() In Movieclip Problem
Hi,

I think this is a very easy question but never done it before.


I want to skip to the next scene, but...

In Scene2 I've got a movieclip, at the end of the movieclip
I just want to go to the next scene, but when I place NextScene() in the movieclip flash doesn't skip to the nextscene.

Any way to skip scenes IN a movieclip ?

Thanx,

View Replies !    View Related
Nextscene() In Movieclip Problem
Hi,

I think this is a very easy question but never done it before.


I want to skip to the next scene, but...

In Scene2 I've got a movieclip, at the end of the movieclip
I just want to go to the next scene, but when I place NextScene() in the movieclip flash doesn't skip to the nextscene.

Any way to skip scenes IN a movieclip ?

Thanx,

View Replies !    View Related
NextScene() Play From First Frame
i got a nice preloader in one scene and the rest in another one. If my preloader finishes it jums to the next scene (nextScene();) but that scene is already at the end. I want it to play scene2 from 1st frame.

Already tried:
GotoAndPlay("scene2",1); // frame 1 of scene2
... // frame label of scene2
using temporary variables to identify when to start playing first frame of scene2
stop at first frame of scene2

etc.

I don't know what am I doing wrong... (am I dumb???)

Please help if you know how...

View Replies !    View Related
Can't Get NextScene To Work Helpp
hi i have a question regarding nextScene() ...

iam about four layers inside a movieClip and want my root timeline
to goto nextScene...real simple.

but it wont work... i tried

myButton.onPress = function( ) {

this._parent._parent._parent._parent.nextScene();
_level0.nextScene();
_root.nextScene();

}

but none works .. its driving me nuts...how can i solve that problem

thanxx

View Replies !    View Related
Onrelease Nextscene In Mx 2004
heya!

i'm brand spankin new to mx 2004, but i know mx fairly well.

i have a project that i'm working on which is sorta set up like an animated powerpoint file, with each "slide" (scene) having its own lil animation, then pausing until you click a NEXT button to go to the next slide (scene).

all the next buttons have the same code:

Code:
on (release) {
nextScene();
}
the previous button is the same way on every scene:

Code:
on (release) {
prevScene();
}
that, apparently, no longer works in mx 2004.

how come? and what should i use as the new code?

thanks

View Replies !    View Related
NextScene() Function With Loaded Swf
on (press) {
_root.folioMovie.nextScene();
}

I used the loadMovie() function to load the movie "Corp_ID.swf" into a movie with the instance name folioMovie, but the button function nextScene() does not seem to work. What am I doing wrong?

Thanks in advance for any help.

View Replies !    View Related
Button To Link To NextScene
HI

I have been doing this before and it always worked easy, but seems like in Flash MX smoething has changed...

I am refering to the actionscript in buttons.

I have a button in a movieclip which o release should go to next scene:

on (release) {
nextScene();
}


the above code seems to work if it is in the main timeline but not in a movieclip ??

I also have aother question:

is it possible to link to the last scene in the movie ? as I don't want to name it or label it as I might be adding more scenes later on so I want this button to link straight to the last scene..

thanks
silv

View Replies !    View Related
[CS3] Wierd Error: NextScene() Bug?
Code:
function onEnterFrame() {
if (Key.isDown(Key.ENTER)) {
nextScene();
}
}
This code work when previewing the project in Flash (the fla-file), but it doesn't seem to work when I export the project to a swf-file. Does anybody know the answer to this wierd behaviour? Should I have wrote it differently?

Thanks!

View Replies !    View Related
NextScene PrevScene Issues
Hey there

There have been questions posted along this line in the past but i can't find the answer i am looking for.

I am making a flash book. Each page is a seperate scene. Each page has a forward button and a back button. The buttons are MovieClips, and I drop an instance of each into each scene.

Now, i know i can't call nextScene, prevScene from off the main timeline, so for the back button i have the following:

function onRelease():Void { _parent.previousScene(); }

...and on the first frame of the second scene (no back on the first page) on the main timeline i have declared this:

function previousScene():Void { prevScene(); }


This works on the second page (you click the button and go to page one), but on page three you will also be taken back to page one. I suppose the previous scene is taken as the one before the function definition.

If i declare previousScene on the first frame of the fist scene each button instance always takes you back to page 1. The function is always in scope on any scene.

If i copy the previousScene function to the first frame of EVERY scene (kind of missing the point of code reuse) it seems to work fine - until about page 10!? Then it doesn't work for the rest of the book.

Can anyone help me write the correct code for this? Is there a limit on how many times a scene function can be overridden or something.

Does anyone know what the hell is going on?

Thanks

View Replies !    View Related
GotoAndPlay() And NextScene() Troubles...
Ok, I've struggled with this for 2 days now because I didn't want to bother anybody with a pointless question.

So to jump right into it, I have 2 scenes (a preloader and a main scene). in the preloader scene i have this code at the very end:

Code:
trace("i'm here");
nextScene();
stop();
I threw in the trace to show i'm in the preloader scene, and the stop() because of a problem I've ran into....

When it goes to the main scene I have a button with the code...


Code:
onClipEvent(enterFrame) {

this.onRelease = function () {
_parent.gotoAndPlay(2);
}
}
when the button (really a movieclip for you nit-picky ones) it goes back to the preloader and since it's already loaded it just repeats the nextScene and trace code I have starting over at frame one of the next scene. why does it keep going back? keep in mind, without the preloader scene it works fine. in fact when i add in the preloader scene (and put it first) with only that code at the top (no other preloading code) it behaves this way....

View Replies !    View Related
Simple Question - NextScene
I'd like to know how to switch scene with a button.

I thought it would be something like

Code:
on (release) {
nextScene();
}
or

Code:
on (release) {
gotoAndPlay(scenenumber,1);
}
And I got an other question, I used flashmx and I upgraded to 2004, I was wondering where the hell is the scene panel?

View Replies !    View Related
PrevScene(); & NextScene(); Does Not Work
In my fla, I have 2 scenes - Begin and Grass. I have 2 buttons in a movie clip and I intend to put it in every scene. I tried using
Code:
on(release, keyPress "<Right>"){
nextScene();
}
but it does not work. What code should I use or what should I do?

View Replies !    View Related
Problem With NextScene() And GotoAndPlay()
Hello,
I am new here, and I have a problem with the ActionScript on Flash 8.
When I am trying to achieve the basic command like gotoAndPlay() function, the symbol disappears.

Scene 2:



Scene 2(Actions):



Scene 14(Actions only, nothing in the scene itself):



Executable file of the main project:
http://rapidshare.com/files/19215722/main.swf.html

Ignore the weird language, its Hebrew, I am from Israel

This is really urgent.

Regrads,

Avishay.

View Replies !    View Related
Simple Question - NextScene
I'd like to know how to switch scene with a button.

I thought it would be something like

Code:
on (release) {
nextScene();
}
or

Code:
on (release) {
gotoAndPlay(scenenumber,1);
}
And I got an other question, I used flashmx and I upgraded to 2004, I was wondering where the hell is the scene panel?

View Replies !    View Related
Simple Nextscene Using A Button Question
I am new to actionscript and I can't seem to figure out how to code a button to go to the next scene after I release it. I have tried:

stop();

on (release) {gotoAndPlay(2, 1) (for scene 2, frame 1) ;
}

and

stop ();

on (release) {nextScene (2);

}

but neither of them seem to work. I always get an error saying there are extra characters at the end of the program. Can anyone tell me what I'm doing wrong?

View Replies !    View Related
Strange Problem With Button Going To Nextscene
Im making an enter button for my site and created the button and put the action

Code:
on (press) {
nextScene();
}
with a

Code:
stop ();
on the first frame of the second scene and it worked just fine... then I started working on setting up the second scene and went to test the button in the first scene again and its not working now.. I have changed nothing in the first scene that I know of and havent messed with any actions or mc's that I know of. When I click the button now the button just disappears and doesnt proceed to the next scene. Anyone know what could be causing this?

Id upload the fla but its 192 kb so cant do that... If anyone can help it would be greatly appriciated! This stupid problem is holding me up from setting the rest of the site up!

another question I have to is if I have a preloader in the first scene does it preload the second scene as well? If it does that would be awesome but since I dont have the rest of the site built I cant really tell myself.

thanks

View Replies !    View Related
Quick Question (nextScene() Related)
Alright, the answer to this question may be rightly apparent, but I'm going to ask the question anyway because it's late and I'm beginning to halucinate. From a .swf loaded into a movie clip within another .swf (we have 2 swfs), how do I go about getting to the second scene of the one loaded into the mc? (nextScene within the swf loaded into the mc causes the main swf to go to the nextScene, not the swf that was loaded into the mc, like I want)

Later,
--elios

View Replies !    View Related
Strange Problem With Button Going To Nextscene
Im making an enter button for my site and created the button and put the action

Code:
on (press) {
nextScene();
}
with a

Code:
stop ();
on the first frame of the second scene and it worked just fine... then I started working on setting up the second scene and went to test the button in the first scene again and its not working now.. I have changed nothing in the first scene that I know of and havent messed with any actions or mc's that I know of. When I click the button now the button just disappears and doesnt proceed to the next scene. Anyone know what could be causing this?

Id upload the fla but its 192 kb so cant do that... If anyone can help it would be greatly appriciated! This stupid problem is holding me up from setting the rest of the site up!

another question I have to is if I have a preloader in the first scene does it preload the second scene as well? If it does that would be awesome but since I dont have the rest of the site built I cant really tell myself.

thanks

View Replies !    View Related
AS3 - After Command Another Command That Starts A Jump To A Specific Frame
Hi everyone,

I am a newbie using Flash CS3 and Actionscript 3.0. I have spent hours looking through forums and found no answer to my problem. Maybe it is because it's not possible but I just wanted to see if an expert can help me out.

I have a button and a few animations. Basically when I click the button I want to say: "When you are pressed down I want you to play at this specific frame for this many frames and then jump to a specific frame and play on there."

wrong code until now:

btn1.addEventListener(MouseEvent.CLICK,go1);

function go1(event:MouseEvent):void{
gotoAndPlay("frame10");
}

if (you get to "frame 15"){
then gotoAndPlay("frame5")
}

Any help would be very much appreciated!

View Replies !    View Related
I'm Stumped NextScene() On Loadmovie() Doesnt Work HELP
anyone tried this? i'm having trouble with telling a loaded movie to nextscene correctly.


I have a parent movie with button to tell the child movie to go to the nextscene

the child movie has 4 scenes inside about >10 frames each.

on (release) {
tellTarget ("crap") {
nextScene ();
play ();
}
}

where crap is the target of loadmovie() loaded beforehand. Heres the problem whenever i press the button, the movie goes to the last frame of the last scene and stops What Gives? HELP! BTW nextscen doesnt work too!

can someone try this and tell me how to get it to work? I need it for a project and nobody here in my workplace knows what loadmovie() is.

Thanks

View Replies !    View Related
NextScene, PrevScene GotoAndStop - All Not Changing Scene
Hi All,

I am building some software for special needs children, however, I am experiencing difficulties in changing scenes. I am using FlashMX.

At the end of the first scene (named Ovals) I have tried both:

nextScene;

and

gotoAndStop("Rectangles", 1);

however, both result in the Ovals scenes repeating it's self.

Can anyone help?

Chris

View Replies !    View Related
Button To Exicute NextScene In A Diferent Level
Can anyone tell me why Flash cannot do this?

forward_btn.onRelease=function(){
_level10.gotoAndPlay(nextScene());
}

I want a button to skip to the next scene in a movie located on a different level than where the button is located.

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved