Go To Scene Button Problem
My movie has two scenes. Each scene has two buttons (go to and Play)that enable you to flip back and forth. Button 1 for scene 1 and button2 for scene2.
Here is the weird thing.
When in scene1, button 1 does not reload scene 1. It goes to scene2 and when in scene2, button2 takes you back to scene1 (or the next scene if there was one. It happened when I put three scenes. It just goes to the next scene.) Each scene is 1 frame long with a stop action.
This only happens with the button named for the current scene so what I had to do was de-activate that button so that it would not play the action.
Is this the only thing I could have done? Why would the button not reload its own scene?
FlashKit > Flash Help > Flash MX
Posted on: 08-21-2004, 01:22 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
[F8] Flash Site, Multiple Scenes, Button Moves Scene To Scene Instead Of Navigating
Hi...I am very new at flash, so forgive my ignorance in advance...I really really need help!
I created a site, separated into scenes (intro, main-home, about, portfolio, press, contact).
About half the time the navigational buttons work fine. However, the other half of the time one of the buttons, the Press button, instead of bringing me to the Press scene, just moves scene to scene (for example, say I'm on the home page and I want to go to the Press page, it just goes to the about page...I hit the button again it goes to the Portfolio page, etc.). I think the problem lies somewhere in bypassing the intro prematurely (you can skip intro and go straight to the site/home-main scene), but I'm not positive.
Here's the code for the Press button:
on (release) {
gotoAndPlay("press", "pressframe");
}
where pressframe is the name of the first frames in the Press scene.
I can upload the fla file to my own site for download and review if necessary....
Please help!....I am losing sleep and hair over this.
Button Relase; Play Curent Scene And Go (scene)
I need a bit of help, and its hard to explain. I have a menu that consist of 6 buttons on Scene1. I want to be able to click on a button and play scene1,frame37, then after it finishes playing I want it to move over the designated scene from the button pressed.
//This is what I currently have which makes the button play the ending of the scene.
on (release)
{gotoAndPlay( "scene 1", "fadeout");
}
//I need to finish the actionscrip by going to a different scene after it finishes playing the current scene. This is for all the buttons.
Example:
Button1 needs to play "scene 1", "37" then go to scene 3
Button2 needs to play "scene 1", "37" then go to scene 4
(any button) to Play "scene 1", "37" then go to (scnen asign from button)
and so on.
Any feedback is greatly appreciated.
Button In Scene 1 Loads A Specific Mc In Scene 2?
Unfortunately my brain isn't really designed for understanding or figuring our ActionScript very well... Here's what I'm trying to do and the problem:
The user arrives at a 'splash screen' in Scene 1 which gives them the option to choose to view the demo in 'interactive' or 'autorun' mode (the two modes are slightly different in terms of their content so I'll have two separate scenes, Scene 2 will contain all the 'interactive' movie clips and Scene 3 will contain all the 'autorun' movie clips). The user can then choose whether they'd like to view the demo with the sound on or off. Once they've made this selection they'll be taken to the opening animation of the mode (i.e. interactive or autorun) they selected, with the sound on or off as they specified.
What ActionScript needs to be applied to the sound on or off buttons in Scene 1 to ensure that the correct sound movie clip loads at the beginning of Scene 2 or Scene 3.
If the user initially decided to view the demo in autorun mode they will be able to change to interactive mode at any time... how can I ensure the sound setting they have selected remains unchanged across Scenes (and they can choose to turn the sound on or off at any time)?
I need to create this as a single SWF - I can have as many Scenes and movie clips as is necessary but cannot use loadMovie and multiple SWF's
If anyone has any ideas I'd love to hear them! I just can't figure it out and I'm getting REALLY desperate!
Thanks!
Button Action - Finish Scene And Go To Other Scene
hello and thanks for any help,
i have a main scene that runs to frame 125 and stops.
i have a few buttons, each one i want to (upon click) continue the movie (up to, say, frame 130, which has my 'transitional fade') and then go to the corresponding scene (each button corresponds to it's own scene).
this is what i've been trying, and it's continuing past the 'stop' but not going to the scene:
button:
on (release) {
_root.choice = 1;
_root.play();
}
frame 125
stop();
if (_root.choice == 1){
_root.gotoAndPlay("Scene 2",1)
}
if (_root.choice == 2){
_root.gotoAndPlay("Scene 3",1)
}
thanks a lot !
[F8] Button Script - Play Until The End Of The Scene, Then Go To Scene X
I'm just a newbie to actionscript, but I'm working on a project in which the following is vital, and I was really hoping that someone might be able to give me a helping hand.
- Scene A lasts for 100 frames, and it includes a button on one layer (lasting from frame 1 - 100) that links to Scene B - pretty standard fare.
- When the user clicks the button at any time within these 100 frames, I need the Scene A to play until the end (frame 100), then go to Scene B.
The reason behind this is that I would like the video clip of Scene A to have a seamless transition into the video clip of Scene B, and the only way I see this happening is to force Scene A to end before playing Scene B.
To sum up, is there any method to delay the event of a button (such as gotoAndPlay("Scene B", 1), until the end of Scene A, or until a specific frame? (whichever is easier)
Sorry for any confusion - If the above explanation is unclear, just let me know and I'll try to write it more precisely.
Many thanks, and any help would be extremely appreciated!
Costas
Button Script - Play Until The End Of The Scene, Then Go To Scene X
I'm just a newbie to actionscript, but I'm working on a project in which the following is vital, and I was really hoping that someone might be able to give me a helping hand.
- Scene A lasts for 100 frames, and it includes a button on one layer (lasting from frame 1 - 100) that links to Scene B - pretty standard fare.
- When the user clicks the button at any time within these 100 frames, I need the Scene A to play until the end (frame 100), then go to Scene B.
The reason behind this is that I would like the video clip of Scene A to have a seamless transition into the video clip of Scene B, and the only way I see this happening is to force Scene A to end before playing Scene B.
To sum up, is there any method to delay the event of a button (such as gotoAndPlay("Scene B", 1), until the end of Scene A, or until a specific frame? (whichever is easier)
Sorry for any confusion - If the above explanation is unclear, just let me know and I'll try to write it more precisely.
Many thanks, and any help would be extremely appreciated!
Costas
Button Action: Finish Scene And Go To Specified Scene
hello and thanks for any help,
i have a main scene that runs to frame 125 and stops.
i have a few buttons, each one i want to (upon click) continue the movie (up to, say, frame 130, which has my 'transitional fade') and then go to the corresponding scene (each button corresponds to it's own scene).
this is what i've been trying, and it's continuing past the 'stop' but not going to the scene:
button:
on (release) {
_root.choice = 1;
_root.play();
}
frame 125
stop();
if (_root.choice == 1){
_root.gotoAndPlay("Scene 2",1)
}
if (_root.choice == 2){
_root.gotoAndPlay("Scene 3",1)
}
thanks a lot !
Getting A Button In Scene 1 To Play Scene 2
okay here's the deal. i've got a button in scene 1. i want it to play scene 2, frame 1, but when i put in scene 2, frame 1, it ends up playing scene 1, frame 1... any ideas??? god it's annoying!
thanks...
Scene 1 To Scene 2 With Nested Button
I am having trouble getting a nested button in an MC to follow script, and go to scene two when released.
Over view, I have an MC and a stop action on the first frame in separate layers in scene one. I have also given an MC/graphic in scene two an object name so to use it in scripting. When the MC in scene one plays its last frame, it stops on a keyframe which is the button with the script. This is the button that will trigger the action script to take the viewer to the next scene when the mouse is click released on. I have placed the script that is:
on (release) {
_root.portfoliobutscene2.gotoAndPlay(1);
}
I have a stop action in the first frame of scene two on its own layer, and the MC/graphic on another.
When the button in scene one is click released it does not go to scene two as scripted. It does nothing.
What am I doing wrong, I know this is pretty simple! For your reference I am using Flash MX.
I have place the button for navigation in the desired frame in scene one, and not nested as it was earlier in the MC. It seem to work fine this way with the *script, but alignment with the MC animation and the button is a pain in the ass since they are both separate objects, and are not together. My realization is that a button object placed in an MC that is placed in a scene, can not navigate or control anything outside that MC. Only when the button for navigation is placed outside, and standing alone as its own keyframe in a scene will it understand the script for navigation to another scene. Is this true for all instances? I don’t know, please help.
*
on (release) {
gotoAndPlay(Scene_2)
}
Thank you for your help.
Jumping To A Scene From Button In A Movie Clip Button?
I need to jump to a scene from a button inside a movie clip of ascene. Can any one please help? On the frame for the button in the movie clip I have this action script:
on (press, release) {
gotoAndPlay ("presCambells", "presCamp");
continue;
}
It works (with enable simple button action) in flash, however, when I publish and preview as a swf flash file it just shows the current scene with the movie clip looping after I click on it. Please Help.
HELP Button From Scene 3 To Scene 5
Hello.
on the homepage the first button links to Scene 4, but i want another button on the homepage to link to Scene 5.
I have tried and tried but with no effect.
on (release){gotoAndPlay (5,1)
}
Also i am using Flash 5 does that make a difference?
Can someone please help.
Thank you.
GotoAndPlay : Scene From A Button Inside A Button
Hi,
Two scenes : "scene1" and "scene2"
One button on the main scene... : instance = button
one button INSIDE this button : button2
from button 2, I need to swtich to another scene, for example scene2
How do I execute that?
I have tried putting button2 inside a mc on the main scene, but I can't because I need to put a startDrag on it...hence why I have a button inside a button.
thanks for helping?
How Can I Make A Link To Another Scene For The Button If The Button Is In A MC?
sorry newbie question*_*
but im getting really mad at it now..
i created a button in a MC
i tried to put action on the button to make it link to scene 2
but it just doesnt work....
and i tried the button on main stage and it worked
but in my situation the button cant exist in main stage
what can i do? pls pls pls help me>__<+
PS. my version is Flash MX
Button In Mc To Next Scene
I have a button inside an mc, On press I want to continue to my next scene but it doesn't work.
Anyone who can help me out?
Button Within Mc Won't Go To A Different Scene.
I have a button that does nothing when clicked, yet is set to go to a certain scene.
Code:
on (release) {
gotoAndPlay("NewCat",1);
}
I've tried adding _root., and even _parent._parent._parent. with no success, it's set up like this:
Main (Scene) | mc_MenuTop | mcFileMenuCat | mcFileMenuContents
I do have another button within the menu cat that executes fine, but it does something different, so it has to be something with the scene setup.
I have a stop(); in teh "NewCat" scene, so I know it's not going to it. Yes, it's a drop down menu that I created, and yes I have it selected to track as menu item.
Any ideas? Thanks!
Using A Button To Take Me To Another Scene. PLEASE HELP
Ok I have a button that I'm trying to use to take me to another scene. For some reason I can't get my button's syntax correct. The scene I want to go to is named "bio", in the first frame. So my script looks like this
gotoAndPlay(Bio,1);
When I do that my error is
Frame=1: Line 1: Scene name must be quoted string
gotoAndPlay(Bio,1);
I try to put quotes around it but that doesn't work either.
What is up!!!!!!
Button For Next Scene
Hi
I'm really strugling with this, so i'll ask it again in a diferent way. I made an intro swf with a skip button in it. I want, on release, for the next scene in the main timeframe to kick in. I've tried
_root.gotoandplay("frame label")
and
gotoAndPlay("frame label");
but none seem to work. Please help caus eI haven't got a clue to what's wrong.
Jantunes
Button Too New Scene? Or What?
Well I just made a short of flashy like mini intro after a pre-loader I am using. And it's about 100 frames long mini intro. Once done I had an action to stop all. Were now it's says the name of site and I have a scrolling Terms of Service and an enter button. What do I do to open up another scene to start the site itself were I will have the buttons and pages. I guess which can all be done on the same scene.
-----------------------
Next, How does the pre-loader work exactly I mean I'm using a pre-build one and it starts on scene 2 after of which I made the mini intro to were you can enter the main flash site itself. Does the pre-loader load all the scenes or what? I wanna make sure it does before I go a step further. And whats the best way for me to add a contant moving loop after the mini intro stops where the main enter button is? Is there an easy way to add it? or what?
------------------------
Thank you,
-NormanTheDoorman
Next Scene Button.
in a MC i need a button to go to another scene. but i dont know how to set it with _root.
on (press) {
gotoAndPlay("AC", 1);
}
i know this doesn't work...any help?
thanks
Mx Scene Button
i have buttons which when pressed goto and play a different scene for example here is the action for what i have put, but ofr some reason if the button is clicked twice it goes to the scen befor or after!!
heres what i go:
on (release) {gotoAndPlay("Scene 2",1);
}
help???????
Cant Get Button To Go To New Scene
Cant get it to work...how is it supposed to be.....
saw i have a blue circle in (scene 2), make it into a button then in its action script put
on (release) {
gotoAndStop("Scene 1", 40);
}
So it can display the pink square thats in frame 40-100 in scene 1...
i put:
on (release) {
gotoAndStop("Scene 1", 40);
}
In the action script for the Blue circle...but its not going to the pink square..
Next Scene Button
Hey everyone,
I'm creating a movie where I want the user to be able to click either text or a button to get to the next scene. I'm having a hard time figuring out the actionscript for this. Can anyone help me?
Thanks!
Button Won't Go To Right Scene.
I have a button and I want it to goto the scene titled "select". I messed around wiht it till it went somewhere but it just goes to the frame after the one with the button. Why won't it go to the Scnene I want?
on (release) {
gotoAndPlay("select",20);
}
That's what I have for the action script. Can someone please help me?
Button To Go To Another Scene
HELP ME!!!! PLEASE!!!! i skip skool 2day cuz i havent finish my presentation on history..... the actions i used is this..on {release} { go toAndPlay ( "scene8", 1) ;i got 19 scenes.... the buttons are not working.. when i click it it went to the next scene... i didnt put any actionscript to go to next scene... anyone?? help please???
Next Scene Button
Ok, if this has been answered already, I apologize. I've looked all over the site, searched, and can't find it.
How do I create a button that can be clicked to move a Flash movie onto the next scene, once the previous scene is complete? Specifically, what is the correct Actions for it to assign to the button for it to do this? It's fairly simple to create a button, I just need to know what kind of actions to assign to it, for it to keep progressing the scenes every time it's clicked (scene 1 (click) scene 2 (click) . . . . and so on)
Thanks for your help!
From A Button To A Scene
Hey y'all, again.
I'm working on another project... this time I'm trying to get it so when you click a certain button it takes to a diffferent scene/part of the website.
This is urgent and mind-puzzling... please help.
Button To Go To New Scene
Hi,
I'm relatively new to this so please dont flame me or anything. Anyways, I have a timeline filled with symbols that are movie clips of stars that are twinkling. I also have a symbol thats a movie clip of a curtain comming up. Anyways, I have a symbol thats a button, and I want people to be able to click on this button to go to the next scene however, I also want to the stars to continously twinkle until someone clicks on the button to take them to the next scene. When I try everything, instead of going to the next scene, the current scene just replays, the curtain goes back up, the stars start twinkling and theres the button again. Could someone please help me!? Oh and should I have all the star movies on one layer? Or should I have each on its own seperate layer. How can I make these stars continue to twinkle until someone presses the button to go to the next scene? Right now I have each star movie on a different layer since I have about 5 different star animations. At the end of each layer I have
gotoAndPlay (12) and on my button I have
on (release) {
gotoAndPlay ("scene 4",1);
}
Any help would be greatly appreciated. Thanks.
Next Scene Button?
hey, i have three scenes, An intro, a main, and an end scene
In the main scene there is a movie clip, within that movie clip there is another movie clip, and finally within that movie clip are my buttons. For some reason the usual on (release) {blah blah blah } ) isn't working. Is there somethign i'm missing to make this button take me to the next scene?
Need AS For Button To Go To Another Scene
hi,
I am using Flash MX 2004 and I need to know the actionscript for getting a new scene to play upon the release of a button.
this site gives an idea of what i want to happen...
http://sixstation.com
keep in mind though-i need to know how to get any scene i want to play, not just the next scene because the buttons are being used for navigational purposes meaning visitors to my site may not always want to go to the next scene.
many thanks in advance to any one who could give me solution to this~
p.s. i actually did search for tutorial on this but not much luck with the results.
Button With VAR Going To Scene
I am using a variable "aim" to set the gotoAndPlay on a button.
The original script works fine, where aim is a named frame on the current timeline
on (release) {
gotoAndPlay (aim)}
What I need to do is to hav ethe button go to another scene, where aim is the name of the scene.
When I tried this, it works, but flash complains that a scene needs to be in quotes, but if I put it in quotes it looks for a scene named "aim" not going to the scene name that is indicated in the variabble "aim".
on (release) {
gotoAndPlay (aim , 1)}
Is this really a problem and is there some way around it... like using single quotes or something to designate this as a variable to be decifered?
I Can't Get A Button To Go To A Different Scene...
Hi, I am working on a portolio for a school project and I can't seem to get a button to go to another scene. I have tried numorous codes, even the one that came in the help section of Flash. I have tried:
on (release){
gotoAndPlay("About me",1);
}
and it still doesn't work. Any help is greatly appreciated! I am using Flash MX 2004. Scene I want to link to is called About me. Thanks!
How To Tell Button To Go To Another Scene?
hi~!
i've tried ways to tell a button to go to another scene...but failed...
how do u tell a button go to to another scene?
thanks...
btw, i'm using flash 5...
pls help me...!
Add Button To Scene
So I want scene one which is a static graphic to be a button that when pressed taked the user to the rest of my flash site beginning with scene 2.
So i turned it into a button...and did
on (release) gotoAndPlay("scene 2")
and it doesn't work...
then i tried some other crazy stuff...
like naming the instance and this whole seemingly overly-compicated thing I read about which still doesn;t work. Anyone want to take a stab?
Button On Scene....what?
Hey guys...
So I want my scene one to be a button that when clicked takes the user to scene 2 and therefore the rest of the site.
I turned Sc.1 into a button...
but something is weird with my scripting...I've tried a couple different things.
Like:
on (release) { gotoAndPlay ("scene 2") };
but OH NO...
Someone wanna take a stab...?
And thanks to all for your help with other questions. I finally figured some out on my own!! YAY!!
Button For Another Scene
Here's what I want to do... To have let's say 3 scene's. The first its the Home page, thae second scene it's the photo page, and the third scene is contact. On the home page I want to put 3 buttons with the name home, photo and contact. The thing I want to do it's when i click on photo button to go on the scene named photo, and when i click on conact button, to go on the scene named contact. Someone told me to write in the first frame of the first scene on actions this code:
stop();
photo.onRelease = function() {
gotoAndPLay("Photo",1);
}
contact.onRelease = function() {
gotoAndPLay("Contact",1);
}
The name for my buttons are home, photo and contact, and the name for the scene's are home, photo and contact to... s what should I do to work??
Any Other Way To Have A Button That Go To Very First Scene?
Im using Adobe Flash CS3 Professional and I created a new layer for my replay button that I was going to make. Then I went to Window (at the top) went down to components and dragged the Button out. I right clicked it and went to action and tried typing in stuff but it wont even let me.
Anyone know the problem?
Or is there any other way to have a button that go to very first scene when people click it?
Here is a picture of my problem
http://www.jcliqcs.com/~sammy/pix/123498760.jpg
Next Scene Button
I know there are a million threads on buttons, and I have spent the last hour reading them and trying out the tips. However, nothing is working for me. I simply want to go to the next scene when my button is pressed. I right click the button symbol, select actions and input the following code:
on (release) {
gotoAndPlay ("Scene 17", 1);
}
also tried
on (release) {
nextScene();
}
Nothing works. Please help.
Button In MC Won't Go To Scene
Hi,
I tried searching for this, but the search keeps bringing up a blank page.
I have a a movie and to keep it simple lets say I have 2 scenes:
Main and Location (Location has a frame label on the first frame called "Local")
In the main timeline I have a movie clip which contains a button. All I want to do, it when you press that button the Movie will go to the "Location" scene.
I've tried the following, but none have worked.
on (release) {
gotoAndPlay("Location", 1);
}
on (release) {
gotoAndPlay("Location", "Local");
}
on (release) {
_root.gotoAndPlay("Location", 1);
}
on (release) {
_root.Location.gotoAndPlay(1);
}
on (release) {
_level0.gotoAndPlay("Location", 1);
}
on (release) {
_level0.gotoAndPlay("Location", "Local");
}
I've run out of ideas. I've tried every combination of the above that I can think of and none have worked.
Can anyone help?
Button To Scene
Cheers inhan for help on my last problem,
Now i am trying to get a button which is imbedded in a scroll bar to link to a specific scene.
The button is three layers in (home, mask_text, text)
I am trying to get is so that when the button is clicked it will move to a scene called "mikegardner".
On the main timeline if i make a basic button and add the following script it works fine :
on (release) {
gotoAndPlay("mikegardner", 2);
}
I am pretty new to flash and am not really sure why this script wont work when added to the button within my scroll bar. to guess i would say it's something to do with _root or _parent but i don't have a clue.
Can any please help
Much appriciated
Next Scene Button Help
I'm making a flash site and I need help with a small actionscript I need to make a button that goes to the next scene. The current actionscript I am using is:
on (release) {
nextScene();
}
It's not working.
Go To Scene Button
I need a button to go to Scene 4 in my animation.
Very new at Action Script and Flash.
Button To Scene Help
My Flash MX project is comprised of 9 scenes. Each scene has the same navigation movie across the top where the buttons are directed to a frame label in a scene. Here is my problem...from the main page (scene 1) if I click PRIZE INFO on the top navigation it takes me to that new scene (scene 2)where the first frame is labeled prizeinfo. That scene loads fine but if I hit PRIZE INFO again it goes to the next scene (scene 3) in the flash file the Sign Up scene and not to the prizeinfo frame which is in scene 2.
I'm sure this is hard to follow so here is the link to the page:
http://kstc45.com/miscellaneous/bpag...e&k=ec&sk=home
Any help would be appreciated...also any overall ideas about this section of the site would be cool (the rest of the site is almost completly out of my control). I'm a relativly new user and I know I have a lot to learn.
Thank you!
Using A Button To Go To Another Scene
I used to use Flash 5 and was very good at coding, but it all looks very different in Flash MX. All i want to do is find the Action for when I click on the mouse, it goes to another scene. The code used to be there when I clicked on the function for onMouseEvent...but its not here in this Flash version. Please tell me where to find it b/c I am so frustrated. Thanx
Button To Scene
Hey guys.
I have a question on how to do something (duh well obviously i do lol)
Well i have a flash document that has to scenes and one scene is the login screen and the other is the dialing computer but i dont want the login screen to goto the dialing computer unless they click on the login button how would i do that if ne one can hellp.
cause at the moment it acts like an animation and jumps from scene to scene constantly but i dont want it to do that.
please help its for a a game im working on.
thanks for reading hope someone can tell me whati need to do
Button 'go To Different Scene'
ok, having some problems with simple actionscript
scene 1: preloader
scene 2: two buttons which lead to either scene 3 or scene 4
scene 3
scene 4
what script should i give the buttons do this action?
i've tried numerous things but it won't work?
|