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








Play The Rest Of Current Scene, THEN Gotoandplay Another Pre-determined Scene


Hi,

Im my scene contains 6 buttons, I want button '1' to play the rest of the current scene (for example scene '0' then goto and play scene '1'

I want button '2' to play the rest of the current scene (for example scene '0' then goto and play scene '2'


I want button '3' to play the rest of the current scene (for example scene '0' then goto and play scene '3'

etc....

any ideas? this is for actionscript 3. My current script just makes the button goto a certain frame, can I edit it? here it is:

stop();

thumbbtn1.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler1);
function mouseDownHandler1(event:MouseEvent):void {
gotoAndStop(2);
}
thumbbtn2.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler2);
function mouseDownHandler2(event:MouseEvent):void {
gotoAndStop(3);


any help greatly appreciated.

Ger




FlashKit > Flash Help > Flash Newbies
Posted on: 06-26-2008, 06:10 AM


View Complete Forum Thread with Replies

Sponsored Links:

Play Next Frame In The Current Scene Then Go To Play Other Scene
Hello !! Everybody

I'm minny. I'm the new one who use flash ^_^

I don't know how to write this action scirpt about to play next scene -_-

How can i do ??? In the scene 1, when push the button (that it is menu), i want it play next frame in the current scene and then it go to play in the frame 1 in other scene. I have 5 menu, Each menu in their scene. How can i write this script ???

Help me please...eeee
Thank you :-)

View Replies !    View Related
Play Out Current Scene, While Loading Movie Into Next...
hi,
i'm trying to do the following:
after pressing a nav button i want to play out the rest of that scene (making everything animate out of view) and then move to the next scene. on this scene i have set up as a nav movie (swf) and a target (container). I want the container to contain what i pushed from the previous scene. make sense? so basically what i'm trying to actionscript is:

on (press) {
play();
}
on (release) {
loadMovie("exp.swf", "_root.container");
_root.loader.gotoAndPlay(2);
}

it plays as it should, moving onto the next scene, nav loads, but the movie won't load into the target. exp.swf is the 'experiment' movie that i want to load into the target. which will be different for each nav selection. make sense?

oh, on this next scene the exp.swf movie will load to the container from the nav on that stage no problem. so the script works there on that scene.

i working with flash mx. sorry for the long question.


__________________
kvl
editor
http://pupo.com/kelly
http://sliceedit.com

View Replies !    View Related
Play Frames Then GotoAndPlay Scene
How can i tell my buttons to play a number of frames and then gotoAndPlay at a frame label. I want to make a animation after the user click on the button but i can't figure how to write the action script. Right now, that's what i have as an actionscript:

bouton_engineering.onRelease = function()
{
_root.gotoAndPlay(110);
_root.onEnterFrame = function()
{
if (_root.currentframe == 128)
{
this.onEnterFrame=null;
gotoAndPlay("engineering");
}
}
}

But it doesn't work.. it goes to the frame i specified (110) but it doesn't stop playing... and it doesn't go on the frame label ''engineering''

Please Help !!!
thanks

View Replies !    View Related
Sound Plays From Next Scene, While Playing In Current Scene?
i am making an animation, i have about 8 scenes.
for some reason it starts playing the sound from the next scene in the middle of the current scene.
why?? i checked movie explorer and the sound is in another scene. does that sound like a flash bug, or just me? it is a big file, could that be it. please help it is driving me crazy!!!!!

View Replies !    View Related
Simple Gotoandplay - Animate The Scene Out Before Playing Selected Scene?
Hey there again,

Just wondering if you guys could point me in the right direction.
Before, when I made full-flash websites, when I clicked a button I'd have it gotoandplay frame 60 or whatever (or scene 2 or 3 or 4 etc.) and that page would start up there and have a nice little animating intro but it would be a very abrupt start because anything on the previous page would just disappeer jaggedly.

But I've seen a lot of nice sites, that once you press a button, it'll clean up the current scene, say have everything burn out or fade or or something instead of just having the next option just appear, then go to the selected page. Say they clicked News or Contact, and they were on products. It would allow me to have a timeline to animate all the objects out (just a simple tween) then once it reached the end and all the objects were out, it knew which button they pressed and where to gotoandplay.

This is probably easy actionscripting (or not, I have no clue) so it would be greatly appreciated if someone could direct me, thanks!

View Replies !    View Related
Playing A Scene When Current Scene Ends
I don't want to come sound like and idiot, but i am stuck on one of the most simplest things.
i have 3 scenes, and in my first scene, i have two buttons.
The first button plays the rest of the first scene and then goes to the 2nd scene.
But!<
the 2nd button is meant to play the rest of the first scene and then go to the 3rd scene, but i don't know how! I've tried the 'and' statement, '+' etc but nothing works.
Any help would be greatly appreciated!

View Replies !    View Related
Targetting The Current Scene Instead Of Main Scene?
Hi, last week yall helped me with targetting the main scene from a button inside a movie clip, by using _root.

Now I cant figure out how to target the current scene (not the main scene), its still a button inside a movie clip.. any ideas?

View Replies !    View Related
Buttons Going To Scene 1 Instead Of Frame In Current Scene
Looks like I've got another problem...!!

In scene 3 of my file I've got four mcs working as a menu (with buttons inside them). When I test just the scene on it's own and the mcs use the "on(release)" command to do gotoAndPlay(2), it doesn't do it unless I put in a tellTarget (_level0 or _root).

When I test the entire movie, clicking the buttons just goes straight back to frame 1, scene 1...!!

What am I doing wrong? Is it the target path that the mc opens?
It's driving me mad... and this is my second post today!

I've tried gotoAndPlay("Scene 3", 2) but it still goes back to scene1. Help!!

Thanks again for any advice

View Replies !    View Related
Call Next Scene From Current Scene Help..
I have a scene1 in which I have 2 other movie clips which should run continuously. But I want the scene2 to be played after some time, giving enough time for the viewer to read the contents in scene 1.
I kept an action in 150th frame of scene1 as
gotoandplay("scene 2",1). But its not calling scene2, instead scene1's movie clips are being repeated again and again. What shall I do? Any help please.
Thanks.

View Replies !    View Related
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.

View Replies !    View Related
Play, Pause, Next Scene, Previous Scene.
Hi all, could some give me an example of Play, Pause, Next Scene, Previous Scene, preferably in action script 2. (Flash MX 2004)

Id like it to work like so…

Pause - Pauses sound and movie.

Play – Continue Movie and sound were it was paused.

Next/Previous Scene - +1/-1 to current scene so that I would not need to edit it for each slide. (Is this possible?)

I’m reflectively new to action script so please don’t bite.

Thx in advance.

View Replies !    View Related
[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

View Replies !    View Related
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

View Replies !    View Related
Making Scene 2 Play AFTER The First Scene Is Finished
hello everyone. I am hard at work trying to figure out as much flash as possible (hence the posts I've made recently). I am now working on a flash project that has 3 scenes, each scene has one frame and 3 layers (2 layers used for masking a picture and making it appear with boxes and 1 layer as a button).

The problem I am having is that when i test movie, it shoots back and forth from scene to scene without playing the movie instance of the masking I have created. I have uploaded the file for anyone who would like to look at it to see what i mean.

I just need to have scene two play AFTER the first scenes movie clip is done, and scene 3 to play after scene 2's movie clip is done, ect.

Thanks for the help everyone.

- Robb

View Replies !    View Related
How To Go Back From A MC In Scene 2 To Play Scene 1
i have this,

1-main scene
2-scond scene ( in this scene i have one MC and inside another MC with a go back button and a home button)

i need to know how i can tell that button to go and play home.

let look aT IT THIS WAY.

in my scond scene i have a MC called "lines" inside "lines" i have another MC called "map" and inside "map" i have a button called "back" and one called "home"

"back" must return to "lines" and play frame 13
while "home" must return to the first scene and stop at frame 14.

Have any idea?

another thing.

I have a button inside a MC that has to go to scene2, how can i target that button the right way tat will understand that it does not need to play "the main scene" but the second one?

View Replies !    View Related
How To Play Scene 1 For 20 Seconds Before Scene 2
i've searched for a few answers to this on the board, and found similar q/a's, but not something as exact, so ill ask here:

i want scene 1 of my movie to play for, oh, 20 seconds or so before moving on to scene 2.

currently, my scene 1 is 10 frames.

an instance of a movie begins on frame 2.
when the player reaches frame 10, there is an action script there to jump back to, and play, frame 2 (thus, starting another instance of the MC).

so, my move repeats 2-10 over and over and over again, only advancing to the next scene by the click of an "enter" button.

but, is there anyway to have it automatically advance to the next scene after a certain time period? (if i put some sorta script in frame 1, telling the movie to advance, to scene 2 frame 1 after 20 seconds)

?

thanks in advance

View Replies !    View Related
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...

View Replies !    View Related
Help - Scene 1 Gotoandplay Scene 2
hello everybody..

I have a problem..I have just made a preloader (scene 1)..
There I have the following actionscript

ifFrameLoaded ("Scene 2", 55) {
gotoAndPlay ("Scene 2", 1);
}

Now my Problem; In Scene 1 There is only 1 pic. In the scene 1 there is a movie called "finalmovie"..when the preloader is finish..it goes to scene 1..but then don't move further to the movie "finalmovie".

Do you know more..?

Thanks for your reply

adrian138

View Replies !    View Related
Current Scene, Current Frame? How?
I want to get the current frame in the current scene.

Right now, I have a movieclip symbol within a scene, and I need to get the current scene/total scenes within the current scene, not the current movieclip, and not the entire flash movie.

I have tried _root["scene1"]._currentframe and _root.scene1._currentframe and _parent._currentframe ... none of them work?


What must I do?

View Replies !    View Related
Scene 1 Play One Time And Play Scene 2
I'm creating a flash project and have two differant scenes. Scene 1 is the intro which I only want to play ONE time. Scene 2 plays with interactivity. Right now the swf file plays but once the animation in scene 2 ends it goes back and plays scene 1. I would like scene 1 to play only one time and scene 2 loop. Can someone help please?

Thanks!!
Jeff

ImCoolToo@aol.com

View Replies !    View Related
How Can I Get Current Scene?
If there a way for Flash (6) to tell me which scene is currently playing?

Or can it tell me how many frames are in each scene?

Or can I tell flash to go to the second, third, forth... scene without knowing the scene name?

(I never use scenes but need to write a controller for a program that does.)

Thanks for any help.

View Replies !    View Related
Current Scene
mornin

Anyone know how to get the current scene which you are on at runtime.

Trying to create a progress bar!

cheers

View Replies !    View Related
Get The Name Of The Current Scene
Yes. I know there are work-arounds and hacks.

I have searched for quite a while now and can't find an answer that actually works.

Using flash 8 pro, AS2.0

I've tried all kinds of apparently relative solutions, including the classes:

import flash.display.MovieClip;

...currentScene, name(), etc. as found in the newsgroups with not even a little success.

I'm going to dynamically name and control movies based on the current scene, yet not duplicate a lot of scenes. To do this I need to know which scene I'm in. Even using an array index to determine this is fine, as there is supposed to be an array of scenes maintained for use.

Ideas?

TIA!

View Replies !    View Related
Printing Current Scene
I have my movie broken into 3 scenes. I have a print button on each scene. I want the print button to just print the current frame of the current scene when it's selected.

Right now I'm using this action script:

on (release) {
getURL ("print:", "/");
}


And then I have the last frame of each scene labeled #p.

With this set up when I select print it prints the #p frame of each scene. How can I set it up so that it only prints the current frame (or last frame) of the current scene when the print button is selected?

Thanks for any info. you can give me.

View Replies !    View Related
Get Scene Current Frame?
Hi,

I know you can get the current frame by doing something like this

_root.displayNumber=_root._currentframe;


However, I am using many scenes in this fla and was wondering if it was possible to get the current frame of a SCENE.

ie. frame 420 of the fla clip might be frame 1 of the scene.

Thanks,

SL

View Replies !    View Related
Printing Current Scene
I'm having some real difficulties getting an flash movie to print the entire screen.

I need it basically to take the whole screen from this interactive movie and allow the user to print it at the click of a button, it seems to be having some issues with transparancies and masks at the moment. :

I'm using this at the moment, any ideas on how I can get it to work a little better?

Movie can be found here for referance

Kinda stuck on this one


Code:
on(release){
printAsBitmap(_root, "bmax");
}

View Replies !    View Related
How To Loop Current Scene?
Last edited by Codemonkey : 2006-11-07 at 12:45.
























I have the following in a movieclip:


ActionScript Code:
onClipEvent (enterFrame) {
    var newLoadVars = new LoadVars();
    newLoadVars.load("http://www.voicesyssoft.com");
    if (newLoadVars.decode ="show=Agent")
        {
            gotoAndPlay("Agent", 1);
        }
}

I am trying to goto a seperate scene based on the name/values returned. The above will not work. Why?

Thanks, Justin.

View Replies !    View Related
Targeting An Outside Scene From Current Within FlashMX.
Hello All,

It seems I have worked myself into a bit of a situation. I am trying to avoid using the depracated commands within Flash MX, but I need to perform functions I would have normally used the _ifframeloaded command with. Flash's index tells me that I am supposed to use the with() {} command set, but how do I target a scene outside the current using such a format?

Please help.

Thanks

View Replies !    View Related
IF/ELSE-actions Based Upon Current Scene
Hi,
I'm trying to make an audio player in MX where onSoundComplete it advances to the next frame, loads the next mp3 and highlights the next text(song title).Easy enough, but my trouble is that I have another scene ("two") that offers text to read while listening, but onSoundComplete the movie jumps back to scene "one."

I have been trying if/else statements with no luck so far. I can't seem to nail the syntax.Is there a way to say:

IF(While?) the current scene is scene "one", onSoundComplete advance to the next frame ( which will play the next song and highlight the next title)
ELSE (if the current scene is "two")
Play the next song(without moving from scene two)

I can't find anything about scene-location specific conditionals.

At scene one, frame 2 I have:

song1 = new Sound();
song1.loadSound("./songs/1.mp3", true);
song1.start();
song1.onSoundComplete = function() {
gotoAndPlay(3);
}

Any hints much appreciated, Boston Bill
Please direct me to the correct forum if necesary. THANKS!

View Replies !    View Related
Current Frame Number Of A Scene
i have 2 scenes
and in the second scene in each frame i want to know if i am in the
frame 1 of scene 2!
but when i try
trace(_currentframe);
i get 5 for example!
how can i get the correct frame number of the current scene?
thanks in advance
peleg

View Replies !    View Related
[F8] NextScene() Brings Me Back To The Current Scene?
I have 3 scenes in my movie right now.

Intro , Main Movie, Text Scene..

when i use nextScene() in the Intro scene.. it brings me to Main Movie and stops just fine..

when i use nextScene() in Main Movie, it goes to Text Scene but immediately back to Main Movie..

there is a stop(); command in Text scene like all the others.. So I don't know why it won't stop on it?

View Replies !    View Related
Finding Current Scene For Child Movie
Hi,

I have a movie, and this movie loads a movie into a holder.
The movie loaded into the holder has a number of scenes that play from scene to scene.

I am looking for a way of finding out what scene it is on, but I need to do it from the parent movie.

I am looking for a way of doing it without changing the child movie, as there are hundreds of those, so if I can use script from the parent movie I will be saving weeks of work.

Is there any way of finding the current scene of a movie? And as a last resort can you find it from within a movie itself?

Thanks!

View Replies !    View Related
Gotoandplay Next Scene From A Mc
This doesn't work:

The last frame of the mc contains this action:
_root.gotoAndPlay ("level_1", 1);

At the end of the mc it starts playing again instead of jumping to the next scene.

The next scene is called "level_1"

Please help

View Replies !    View Related
GotoAndPlay A New Scene...
I have a menu system that I made from several movieclips that each have a button imbedded in them. (Did this so I could move them around the screen).

I want to accomplish the simple task of clicking the button and executing a gotoAndPlay("newScene", 1);

This doesn't work since gotoAndPlay will only move the playhead to a different scene if it is called from the main timeline. Since my button is inside an mc, I get nothing.

THE QUESTION IS: There obviously must be a simple solution. Can anyone get me pointed in the right direction or to a tutorial on this site that will enlighten me?

View Replies !    View Related
Gotoandplay Another Scene
I'm new to flash and am having trouble with actionscript for
gotoandplay. I have a dynamic menu and am trying to play a different scene in my movie on release of the menu option. This works when I test in within the scene but does not work when I test or publish the whole movie.

on (release) {
gotoAndPlay ("template1", "temp1one");
}

the scene I am currently in is "mainscene" and I am trying to play the first frame in the next scene called "template1" this screen has a label called "temp1one". These all seem valid as they appear in the dropdown menus.

How do I move from scene to scene?

Can anyone help?

View Replies !    View Related
GotoAndPlay To Scene
Can anyone help me with this one? It seems that a gotoAndPlay to a certain scene does not work inside a movieclip...does anyone have a solution to fix this?

View Replies !    View Related
No More GotoAndPlay Scene?
Does the scene paramater no longer work with gotoAndPlay?

I've got a dynamic button that reads in scene names and frame #'s to populate itself. It works find when I only pass the frame number to gotoAndPlay, but if I give it a scene and a frame number it craps out.

View Replies !    View Related
GotoAndPlay Second Scene
when i have 2 scenes, strangly, this code doesnt work to get to the second scene's second frame. it goes to the first scene's second frame. i dont know what to do.
CODE

onClipEvent (enterFrame) {
if (_root.targ1._currentFrame>=2)
_root.gotoAndPlay(2);
}

I ALSO TRIED THE FOLLOWING

onClipEvent (enterFrame) {
if (_root.targ1._currentFrame>=2)
_root.gotoAndPlay("Scene 2",2);
}

onClipEvent (enterFrame) {
if (_root.targ1._currentFrame>=2)
gotoAndPlay(2);
}

onClipEvent (enterFrame) {
if (_root.targ1._currentFrame>=2)
_root.Scene 2.gotoAndPlay(2);
}

View Replies !    View Related
GotoandPlay Scene?
How can I GoToAndPlay a scene from a movie clip? At the end of the clip, I want it to go back to Scene 1 and start playing at frame 3. This is what I've tried:

--- gotoandplay("1",3) ---

and

--- stop();gotoandplay("1",3); ---

The script is fine, but when I test the movie and hit the button to start the clip, the clip plays, but keeps looping. It doesn't want to go back to Scene 1, Frame 3. Thanks in advance for any information.

View Replies !    View Related
GotoAndPlay Scene Help
I have a website with buttons. When a button is clicked it goes to and plays a scene. I have the scenes named and when I click a button sometimes it does not go to the right scene. I checked the buttons to make sure the scene names are right. The button is a menu button and when it is clicked it goes to that section of my website and the menu stays in the same place the whole time. Is this the best way to do it? Should I have the buttons goto and play movies instead? I haven't been able to figure out how to do that though.

View Replies !    View Related
Won't GotoAndPlay Next Scene
I have a question I don't know if anyone knows the answer but I thought I'd ask.

Here is the URL I am working on.
www.benwood.net/corrigo.html

What I would like to happen is that once the movies have played the user is taken to another page. I thought this might be a simple gotoAndPlay ("nextscene") action or something similar but that dosn't seem to work with the code I have.

This is what the actionscript currently looks like. Its in the main timeline.

stop();
// Plays a succession of externally loaded swf's.
// Does not work in test movie mode, only in player or web browser.
// Not sure why.
//
// clip to load external swf's into
_root.createEmptyMovieClip("holder_mc", 10);
// array that stores swf's waiting to be played
_global.movieArray = new Array();
_global.playNextMovie = function() {
var nextMovie = movieArray.shift();
// grab next movie
if (typeof nextMovie != "undefined") {
// if we've got one
_root.holder_mc.loadMovie(nextMovie);
// load it
playing.text = nextMovie;
refreshQueue();
} else {
holder_mc.unloadMovie();
// unload last movie
controller.onEnterFrame = null;
// and stop checking for more
}
};
// we define this as a global function, so that we can attach and detach it
// as the onEnterFrame of a controller movieClip
_global.playSomeMovies = function() {
if (holder_mc._currentframe>=holder_mc._totalframes-1) {
_global.playNextMovie();
}
};
// this clip serves only to watch the holder_mc and call playNextMovie()
_root.createEmptyMovieClip("controller", 20);
controller.onEnterFrame = _global.playSomeMovies;
// make some buttons
for (var i = 0; i<7; i++) {
var b = _root.attachMovie("button_mc", "button"+i, i);
b.t.text = i;
b.i = i;
b.onRelease = function() {
movieArray.push("movie"+this.i+".swf");
// not i, since eval at runtime
refreshQueue();
};
b._x = 10+84*i;
b._y = 20;
}

View Replies !    View Related
GotoAndPlay And Scene
I am a beginner on Flash, please help.

Please download the flash file here.
home.netvigator.com/~esky2002/episode01.2.fla



Please navigate to the scene "Menu".


I have placed a movieclip 'button 1 movie' there.
there are 2 frames inside the movieclip, for the layers 'icon alt', basically consists of only 1 button. The action script is written on the button.

I can't use

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


to move to the "story" scene. Any clues?




Thank you!!!

View Replies !    View Related
GotoAndPlay Scene
Library
=====
Movie Name = DynamicMenu


DynamicMenu is placed on Scene 2. On the buttons I have for following

on (release) {
gotoAndPlay("Scene 2", "COMMON ST");
}


I wouldn't do anything. Have tried several ways but no luck

Any tips

View Replies !    View Related
Scene/gotoAndPlay()
I am having a very stupid silly problem... I have to build a presentation that requires buttons and movement to various scenes. It has to be an all inclusive file therefore requiring scenes.

mcNav.btnSystemUpgrade.addEventListener(MouseEvent .CLICK,loadSystemUpggrade);

function loadSystemUpgrade(evtObj:MouseEvent):void{
gotoAndPlay(1,"SystemUpgrades");
}

The problem is that is does go to the scene but only plays frame 1, not the entire scene... HELP! I am new to flash as3 and I know this is probably a stupid issue I am having.... but help would be greatly appreciated.

View Replies !    View Related
GotoAndPlay Scene
Hi, on loading, my Flash movie calls the following:
loadMovieNum("main_menu.swf", 10);

I have a mc button within "main_menu.swf". I am trying (with no avail) to put an action on this button to tell the movie to play scene "portfolio", frame 1, within "main_menu.swf". This is what I am trying:

on (release) {
_root.gotoAndPlay("portfolio", 1);
_level1.gotoAndPlay("leave");
_level2.gotoAndPlay("play");
loadMovieNum("", 4);
loadMovieNum("", 5);
loadMovieNum("", 6);
stopAllSounds();
}
on (rollOver) {
this.gotoAndPlay('over');
}
on (rollOut) {
this.gotoAndPlay('out');
}

The problem seems to be with "_root.gotoAndPlay("portfolio", 1);". I have tested the other elements which work fine.

How can I get the button to play the desired scene?

Many thanks

View Replies !    View Related
GotoAndPlay SCENE
hello,

I have a problem with Flash Mx 2004 Professional.
I have a movie with 4 scenes, and i have a button that jump with one scene to another, but it dont works

The code that i use is:

on (press){
_root.gotoAndPlay ("NAME OF THE SCENE", 1);
}

Anybody could help me, please?!

View Replies !    View Related
Scene/gotoAndPlay()
I am having a very stupid silly problem... I have to build a presentation that requires buttons and movement to various scenes. It has to be an all inclusive file therefore requiring scenes.

mcNav.btnSystemUpgrade.addEventListener(MouseEvent .CLICK,loadSystemUpggrade);

function loadSystemUpgrade(evtObj:MouseEvent):void{
gotoAndPlay(1,"SystemUpgrades");
}

The problem is that is does go to the scene but only plays frame 1, not the entire scene... HELP! I am new to flash as3 and I know this is probably a stupid issue I am having.... but help would be greatly appreciated.

View Replies !    View Related
GotoAndPlay Scene
I am still a noob and am not sure why this isnt working. All I am trying to do is go to a specified scene using Actionscript 3.0...cuttingBTN is a button...If anyone has a solution, please let me know...

Code:

stop();

import flash.events.MouseEvent;

cuttingBTN.addEventListener(MouseEvent.MOUSE_DOWN, cutting);

function cutting(event:MouseEvent)
{
   gotoAndPlay("cutting");
}

View Replies !    View Related
Making A MC Stay At Current Positon After Scene Change
Dear Actionscript Peoples ,

I'm in a slight bind.

I have a control panel for an RPG im making that controls the sound.. which can fade out or pan left to right.. it works great.

so if i set my volume for the music and sound effects to 75% each..
the volume adjusts.. and if a fadeout occurs itll fade FROM 75.. and unload the music and set itself back to 75%.

my main problem now.. when they hit new game.. and the scene jumps to the new game menu.. the movieclip for my control panel resets back to frame 1 which is 50% Music and 50% Sound Effects.

hense making the sound adjustment pointless.


=================
ON TO THE POINT AND ACTUAL QUESTION
=================

how do i make a movie clip STAY at its current frame instead of jumping back to frame 1 when jumping scenes?

=================


thanks ahead of time you all rock

take care
-Clint Remley

View Replies !    View Related
GotoAndPlay (**scene With Variable Name**,1)?
Loading an swf uses the line
> loadMovie ("test.swf")

Loading a swf with variable name 'test' uses the lines
> test = "test.swf"
> loadMovie(test)

How about loading a scene with a variable name?
> gotoAndPlay(varscene2,1)
does not work because script requires quotes around scenes
> gotoAndPlay ("""+varscene2+""",1)
does not work either

----> I've to pass the scene name with a variable becuase it is within an array



Thank you very much for answering my question...

View Replies !    View Related
GotoandPlay Scene From Button Within MC
I have a dropdown menu with two buttons in the submenu (dropdown) area. From one of the submenu buttons, I am trying to link to a new scene. Like this:

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

I can't get that to work, but I can load an external .swf from the button (which won't work for my problem because the flash will be embedded in a Powerpoint). Is there a problem linking to another scene from a button within a movie clip? If that is the problem, is there a fix?

Thank you!
[Edited by mbk on 03-22-2002 at 01:48 PM]

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