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




Var GotoAnd Play Scene



I'm hoping you guys can help me.

I am working on a nav where when the user clicks on a selection, the nav first plays through a transition/outtro and then is directed to the appropriate scene via a variable embedded into the nav button.

For whatever reason it seems to simply cycle through all the different scenes when I click on a the buttons rather than go to the appropriate scene.


This is what I have:

---------------------------

In the button:

on (release) {
_root.play();
y = "1";
getURL("body_home.htm", "body");
}


---------------------------


In the last frame of the scene:

stop();
if (y = "1") {
_root.gotoAndPlay(1);
}
if (y = "2") {
_root.gotoAndPlay(2);
}
if (y = "3") {
_root.gotoAndPlay("portfolio");
}
if (y == "4") {
_root.gotoAndPlay("clients");
}
if (y == "5") {
_root.gotoAndPlay("ftp");
}
if (y == "6") {
_root.gotoAndPlay("contact");
}


Here is the file if that helps.


http://www.cube-interactive.com/uplo...navigation.zip



ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)
Posted on: 03-02-2004, 11:51 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

How To Gotoand Play A Certain Scene
what is the code to make a replay button go to a frame called "begin" on scene number 1, when i am in scene 14?

Var GotoAnd Play Scene
I'm hoping you guys can help me.

I am working on a nav where when the user clicks on a selection, the nav first plays through a transition/outtro and then is directed to the appropriate scene via a variable embedded into the nav button.

For whatever reason it seems to simply cycle through all the different scenes when I click on a the buttons rather than go to the appropriate scene.


This is what I have:

---------------------------

In the button:

on (release) {
_root.play();
y = "1";
getURL("body_home.htm", "body");
}


---------------------------


In the last frame of the scene:

stop();
if (y = "1") {
_root.gotoAndPlay(1);
}
if (y = "2") {
_root.gotoAndPlay(2);
}
if (y = "3") {
_root.gotoAndPlay("portfolio");
}
if (y == "4") {
_root.gotoAndPlay("clients");
}
if (y == "5") {
_root.gotoAndPlay("ftp");
}
if (y == "6") {
_root.gotoAndPlay("contact");
}

Var GotoAnd Play Scene
I'm hoping you guys can help me.

I am working on a nav where when the user clicks on a selection, the nav first plays through a transition/outtro and then is directed to the appropriate scene via a variable embedded into the nav button.

For whatever reason it seems to simply cycle through all the different scenes when I click on a the buttons rather than go to the appropriate scene.


This is what I have:

---------------------------

In the button:

on (release) {
_root.play();
y = "1";
getURL("body_home.htm", "body");
}


---------------------------


In the last frame of the scene:

stop();
if (y = "1") {
_root.gotoAndPlay(1);
}
if (y = "2") {
_root.gotoAndPlay(2);
}
if (y = "3") {
_root.gotoAndPlay("portfolio");
}
if (y == "4") {
_root.gotoAndPlay("clients");
}
if (y == "5") {
_root.gotoAndPlay("ftp");
}
if (y == "6") {
_root.gotoAndPlay("contact");
}

Gotoand Play Random Scene
hi there,

upon opening my splash page,

I'd like it to load a random image in the BG.

I've placed a different picture in 9 scenes and would like the first frame on the first scene to load one of these scenes randomly.

any ideas?

thanks!

sctttthomsquinn.com

Droptarget Then GotoAnd Play?
Hi there,
I've got the following actionscript on an object that snaps to position when draged to the target. What I'd like to do is then be able to then perform an action like go to a new frame.

This is where I'm stuck. I've placed a gotoAndPlay but it fails to work.

Just wondering if I'm going about this the wrong way? This is using Flash 5.

on (press) {
startDrag ("/ball");
}
on (release) {
stopDrag ();
}
on (release) {
if (getProperty("/ball", _droptarget) eq ("/target1")) {
setProperty ("/ball", _x, "470");
setProperty ("/ball", _y, "385.3");
gotoAndPlay ("Scene 1", "ballroll");
} else {
setProperty ("/ball", _x, "588");
setProperty ("/ball", _y, "381");
}
}

Using An Expression In GotoAnd Play
Venerable Gurus

This has been buggin me for a while:

If I have a variable (set as a string that denotes a frame label) - How do I use that variable as an expression in the gotoAndPlay command.

This would mean that I do not have to use a whole list of 'if else' loops to check the variable and then go to the relevant frame.

Many thanks

Johnny

GotoAnd Play Priority
I hope someone can help but please take it easy on a novice.

In the broadest terms I have a Flash movie with 3 buttons activating a simple gotoAndPlay action. Each button activates a new sequence which involves a bar moving across the screen ad different part of the movie playing, all buttons function correctly but when one function has been actioned I find that some buttons no longer action a gotoAndPlay command. I haven't got any error messages but it seems that once an action has been performed the other buttons stop working. The gotoAndPlay actions not involving a mouse event all function correctly.

My action scripts for the buttons are each on a seperate layer, all gotoAnd Play actions for repeating a sequence or moving to a new frame are on seperate layers. It's just a guess but I suspect that there is a priority question concerning gotoAndPlay depending on what layer it's on and where that layer is.

Many thanks in advance.

GotoAnd Play (framelabel) In Flash MX
hi there, when i use the gotoAndPlay(framelabel) syntax, my movie makes some strange things. i have one main timeline and 3 scenes. every first frame of a scene is labelled. i can jump normally from the main timeline to a scene framelabel with _root.gotoAndPlay(framelabel) but from out of a scene into another scene, it doesn't work when i use the gotoAndPlay(framelabel). What happens: the movie jumps back into the main movie, runs through it and THEN starts playing at the framelabel it was supposed to go. Why doesn't it directly start playing from the scene framelabel without going to the main movie first???

Question About Gotoand Play Command
It seems to be a simple problem. I have mutiple scenes in my flash movie, so when a certain button is clicked, it jumps to that specific scene, frame 1. when the same button is clicked again immediately, it jumps to the very next scene in the movie. i can't figure this out it's driving me crazy. can anyone help?!?

Flash 5: GotoAnd Play Condition
Hello,

In the condition statement below, the code executes and jumps to the specified frame 20 in mc2, and stops there. However, it should continue to the next frame since I have no stop() command on frame 20. After entering mc2, I'm trying to get the play head to run to frame 30 - playing animations between frames 20-30.

gotoAndPlay executes if using a button event. Could it be the condition statement or the fact that the movie are also using the attachMovie method?

Thank You


iaustin

onClipEvent(load){
var a = getTimer();
var countdown = 6000;//6 sec
var c = 0;
}

onClipEvent(enterFrame){
b = getTimer();
c = (b - a);

//condition
if (c <= countdown){
_root.mc2.gotoAndStop(_currentFrame);
}else{
_root.mc2.gotoAndPlay(20);

}

}

Gotoand Play Random Frame
Hello,

In my flash piece I've created the follow code in the first frame of the action script layer:


PHP Code:



function getRandomLabel():String {  var labels:Array = new Array("2", "4", "3");  var index:Number = Math.floor(Math.random() * labels.length);  return labels[index];}this.gotoAndPlay(getRandomLabel()); 





This code is not working properly. It loads frames outside of the array.



My frame labels consist of the frame names 2 3 4

Gotoand Play Wont Work With If Statement
I have created a mainpage with a button located in a MC.
The location is _root.nav2 where the button resides. In a different MC I have a var orb1contact=true( i use four var to detect what the user has selected)
I want to use the On release fuction of _root.nav2 button to select which scene to play next. Here's the problem i set the actions for the button as follows:

on (release) {

if (_root.controller.orb1contact) {
gotoAndPlay("experience",1);
trace ("true");
}
}

The trace shows that the if statement is working correctly, but no matter what form of goto I use it won't redirect the player. Any help would be great.

RollOver/Our + Gotoand Play To Next Szene Problem
Hello,

Do somebody have a example of a Button with a "rollover" effect and a "rollout" effect and by "press" it jumps to the other Szene?


Thats the code what i got on the button in a movie but it will not jump to the szene?? whats wrong ? i don't understand that. I tried everything
----------------------------------------
on (rollOver) {
gotoAndPlay(2);
}
on (release) {
gotoAndPlay("Studio_Life", 1);
}
on (rollOut) {
gotoAndPlay(17);
}
----------------------------------------

Gotoand Learn Video Player, Play Only Once?
Hi,
I am using the code from http://www.gotoandlearn.com/
as my video player. publishing in flash7
can anyone tell me how to make the flv play only once.
I want it to play and then go back to frame 1 and stop
here is the unmodified code from the player at the site
the file is available for download, its "video basics 8"
I know I could do this differently in flash 8 but I have everything working and client just wants this one change, and I want to upload tonight!
thanks mark


Code:
var nc:NetConnection = new NetConnection();
nc.connect(null);

var ns:NetStream = new NetStream(nc);

theVideo.attachVideo(ns);

ns.setBufferTime(10);

ns.onStatus = function(info) {
trace(info.code);
if(info.code == "NetStream.Buffer.Full") {
bufferClip._visible = false;
}
if(info.code == "NetStream.Buffer.Empty") {
bufferClip._visible = true;
}
if(info.code == "NetStream.Play.Stop") {
ns.seek(0);
}
}

ns.play("Do you feel like I do0.flv");

playButton.onRelease = function() {
ns.pause();
}

rewindButton.onRelease = function() {
ns.seek(0);
}

var videoInterval = setInterval(videoStatus,100);
var amountLoaded:Number;
var duration:Number;

ns["onMetaData"] = function(obj) {
duration = obj.duration;
}

function videoStatus() {
amountLoaded = ns.bytesLoaded / ns.bytesTotal;
loader.loadbar._width = amountLoaded * 208.9;
loader.scrub._x = ns.time / duration * 208.9;
}

var scrubInterval;

loader.scrub.onPress = function() {
clearInterval(videoInterval);
scrubInterval = setInterval(scrubit,10);
this.startDrag(false,0,this._y,208,this._y);
}

loader.scrub.onRelease = loader.scrub.onReleaseOutside = function() {
clearInterval(scrubInterval);
videoInterval = setInterval(videoStatus,100);
this.stopDrag();
}

function scrubit() {
ns.seek(Math.floor((loader.scrub._x/208)*duration));
}

var theMenu:ContextMenu = new ContextMenu();
theMenu.hideBuiltInItems();
_root.menu = theMenu;

var item1:ContextMenuItem = new ContextMenuItem("::::: Video Controls :::::",trace);
theMenu.customItems[0] = item1;

var item2:ContextMenuItem = new ContextMenuItem("Play / Pause Video",pauseIt,true);
theMenu.customItems[1] = item2;

var item3:ContextMenuItem = new ContextMenuItem("Replay the Video",restartIt);
theMenu.customItems[2] = item3;

var item4:ContextMenuItem = new ContextMenuItem("© 2005 Lee Brimelow",trace,true);
theMenu.customItems[3] = item4;

function pauseIt() {
ns.pause();
}

function stopIt() {
ns.seek(0);
ns.pause();
}

function restartIt() {
ns.seek(0);
}

_root.createEmptyMovieClip("vSound",_root.getNextHighestDepth());
vSound.attachAudio(ns);

var so:Sound = new Sound(vSound);

so.setVolume(100);

mute.onRollOver = function() {
if(so.getVolume()== 100) {
this.gotoAndStop("onOver");
}
else {
this.gotoAndStop("muteOver");
}
}

mute.onRollOut = function() {
if(so.getVolume()== 100) {
this.gotoAndStop("on");
}
else {
this.gotoAndStop("mute");
}
}

mute.onRelease = function() {
if(so.getVolume()== 100) {
so.setVolume(0);
this.gotoAndStop("muteOver");
}
else {
so.setVolume(100);
this.gotoAndStop("onOver");
}
}

Question About "gotoAnd Play" Command
hi there,
i have quick question here. i have button inside movie clip and graphic symbol properties. now when i assign my button to "gotoAndPlay" scene but it won't work. i know that i miss some level of movie but i don't know exact command to put it. do you know? please help me!

thank a lot

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 :-)

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

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.

How To Start Play Scene From Movie Located In Another Scene
Please, help,

i need to solve this problem:

what action script i need to put on a button which is located in a movie called "mainmovie" (of scene 2) to play scene 1.

thank you.

therock

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

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.

[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

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

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?

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

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...

GotoAnd ?
I have few buttons inside a movie clip and I can't get them to work. If a user presses the button A I want the playhead to go to the frame labled A on the scene, if the user presses B the playhead should jump to the frame B...

Here is a small sample of the scripts that I used
I cant get this to work and I used many variations of the gotoAndStop action.
I even took out the frame lables, and still nothing

ActionScript Code:
on (press) {_root.gotoAndStop ("buss","a");}

ActionScript Code:
on (press) {_root.gotoAndStop ("buss",1);}

ActionScript Code:
on (press) {gotoAndStop ("root.buss",2);}

ActionScript Code:
on (press) {root.nextFrame;}

other actions on these buttons work fine, such as

ActionScript Code:
on (press) {getURL ("http://www.ebay.com", "_blank");}

ActionScript Code:
on (press) {_root.gotoAndStop (3);}

How can I get the playhead fo follow the directions?

More Than One GotoAnd... Command
here's what I have:
anim1 w/ a frame label "pu1"
anim2 w/ a frame label "pu2"

both anims appear at the same time in the same frame but when I use this AS:
anim1.gotoAndStop("pu1");
anim2.gotoAndStop("pu1");

anim1 plays from the first frame (which isn't "pu1") and anim2 play from "pu1". can't i use more than goto command on the same frame? and can't i control more than 1 anim in a single frame? what gives?

i don't want to have to drop one of the anims into the other so what can i do?

[F8] GotoAnd* Performance
This has been confusing me: in my current project, it looks like the gotoAnd* calls incur a pretty high cost. One example: I had a character animation where the head was in the same movie clip as the body and they animated on different layers, but I needed to make it so that sometimes the head would be drawn above the body and sometimes below. The first solution I thought of was to put the head's animation in a separate movie clip, create two copies (one below and one above the body, changing which is visible), then just use gotoAndStop() to synchronize the head frame with the body frame. The performance hit was enormous (many copies of this character are on screen at once). So I tried moving the animation back into the same clip as the body, and just creating two identical copies on different layers. The performance was fine. Was gotoAndStop() the difference? What was making it go so slowly?

TellTarget To Gotoand**&*?
I am at this time ripping the hair from my head in big clumps.....

for the last 3 hours I have been fighting with the tellTarget command and the dot command to gotoAnd Stop(112)....something's just not right!

I've tried frame labels, double and triple checking instance names....

nothing works!

on (release) {
_root.gotoAndStop(4);
}
on (release) {
tellTarget (_root.InfoMain.InfoButtons) {
gotoAndStop("Reload");
}
}

on (release) {
_root.gotoAndStop(4);
_root.InfoMain.InfoButtons.gotoAndStop(112);
}


I am trying to go back a frame on the main timeline and to tell a movieclip to goto the last frame and stop so the animation will not play again.

Lets say I'm one layer into the 7th frame and I want to go to the 3rd layer on the 4th frame...

Why isnt this working???

Play Scene From MC?
I can't seem to find the answer to this. My movie has Scene 1 and Scene 2. I have a MC in Scene 2 that has a button within it that says "replay movie". I want to have it so that when you click on the movie it will play Scene 1, frame 1.

I know I have to do something like _root. something.

Can anyone help me?
Thank you
linkme75

Last Scene Won't Play
I've created a Flash MX piece that will be played locally from a Projector file off of a CD. The piece has 13 scenes, each composed of numerous layers with photo images that animate over the timeline as a voiceover plays all the way through each scene on its own layer. Each scene (except the opening "intro") has a stop action in the last frame, and the various scenes are accessible to the user through buttons.

Everything plays well, looks great, actions/buttons all work as they should EXCEPT one scene, which is the last one in the scene order. It plays about 3/4 of the way through (no matter where it's accessed from in the piece), then the voiceover layer continues playing, but the remaining image layers won't play, it just stays on the one image(layer) that it appears frozen at as the timeline continues to play the narration layer until the end of the scene.

I tried re-doing the layers/tweens from the "frozen" point forward and re-publishing, checking actions, frames, everything and can't find anything that accounts for this problem.

In the fla file, if I scrub/play the timeline the images all appear and animate as they should. And, in published (projector) form, I can "force" it to "fast forward" past the frozen point using the Ctrl-> keys to step it forward, however it will not play on its own, and in the "test movie" mode, it won't even scrub past the frozen point.

I'm not a newbie, but not very sophisticated with action script either--any help with a workable solution would be greatly appreciated!
Thanks

Last Scene Won't Play...
I've created a Flash MX piece that will be played locally from a Projector file off of a CD. The piece has 13 scenes, each composed of numerous layers with photo images that animate over the timeline as a voiceover plays all the way through each scene on its own layer. Each scene (except the opening "intro") has a stop action in the last frame, and the various scenes are accessible to the user through buttons.

Everything plays well, looks great, actions/buttons all work as they should EXCEPT one scene, which is the last one in the scene order. It plays about 3/4 of the way through (no matter where it's accessed from in the piece), then the voiceover layer continues playing, but the remaining image layers won't play, it just stays on the one image(layer) that it appears frozen at as the timeline continues to play the narration layer until the end of the scene.

I tried re-doing the layers/tweens from the "frozen" point forward and re-publishing, checking actions, frames, everything and can't find anything that accounts for this problem.

In the fla file, if I scrub/play the timeline the images all appear and animate as they should. And, in published (projector) form, I can "force" it to "fast forward" past the frozen point using the Ctrl-> keys to step it forward, however it will not play on its own, and in the "test movie" mode, it won't even scrub past the frozen point.

I'm not a newbie, but not very sophisticated with action script either--any help with a workable solution would be greatly appreciated!
Thanks

Last Scene Won't Play
I've created a Flash MX piece that will be played locally from a Projector file off of a CD. The piece has 13 scenes, each composed of numerous layers with photo images that animate over the timeline as a voiceover plays all the way through each scene on its own layer. Each scene (except the opening "intro") has a stop action in the last frame, and the various scenes are accessible to the user through buttons.

Everything plays well, looks great, actions/buttons all work as they should EXCEPT one scene, which is the last one in the scene order. It plays about 3/4 of the way through (no matter where it's accessed from in the piece), then the voiceover layer continues playing, but the remaining image layers won't play, it just stays on the one image(layer) that it appears frozen at as the timeline continues to play the narration layer until the end of the scene.

I tried re-doing the layers/tweens from the "frozen" point forward and re-publishing, checking actions, frames, everything and can't find anything that accounts for this problem.

In the fla file, if I scrub/play the timeline the images all appear and animate as they should. And, in published (projector) form, I can "force" it to "fast forward" past the frozen point using the Ctrl-> keys to step it forward, however it will not play on its own, and in the "test movie" mode, it won't even scrub past the frozen point.

I'm not exactly a newbie, but not very sophisticated with action script either--any help with a workable solution would be greatly appreciated!
Thanks

Why Does One Scene Play Over Another?
A button in the main scene start onrelease another scene. Goes great.
But when I press the backbutton it goes to the wright scene, but over that scene still plays the other scene.
Please see the URL cause explaining is a little hard.

Press the second rose FOTO'S BEKIJKEN (see pictures)

http://www.buromoerel.nl/test/index.html

How do I unload that scene?

Thanks loots

Petra

How To Play Scene?
I have a button inside of the movie clip and I need this button to play a scene.
Here is what I tried:

on (press){
gotoAndPlay("Scene1",1);
}

it wont work

on (press){
_root.clipname.gotoAndPlay("Scene1",1);
}

it wont work

The only way it works when I place the button to the upper level
But I need it work while the button inside of clip

Any suggestions?
thanx

Play Another Scene, How?
Hi there,
I'm really new to flash, tough I have used it abit in school.
But now I'm making a little flashmovie for a schoolwork, and now I am stuck at a place.
I have got almost every scene done, only problem is that they aren't in the places they should be (i.e scene 4 should be scene 2, etc).

So I tried to add this action:
gotoAndPlay("4","Layer 1");
which should tell it to play scene 4, but instead it do play scene 2.
I maybie use the wrong action, but I hope someone is willing to help me out here.

Thanks in advance.

Scene 2 Won't Play
My new movie has two scenes. The first scene displays the title and the creator's name. Then it goes into the second scene which shows an animation. But when i play it, it show the first scene, then when it goes into the second scene, it only shows the first frame and loops back into the first scene and display the name again. What's wrong?

Getting The Scene To Play...
Is there a way to have my opening scene ( a bunch of animated pics) start to play BEFORE the entire scene itself is loaded?
I wanna cut down on load time.

Gotoand Learn.com Tutorial
I am trying to figure how to add multiple lines in the Tool tips tutorial at http://www.gotoAndLearn.com website.

I can't seem to figure out how to make multiple lines of text like he has in his menu.

Can anyone explain this? Is it seperate text files being loaded? And could it be possible to load a .swf file instead??


Thanks..

[F8] Simple If/else GotoAnd Stop Help.
Hello, I KNOW this can be done in a very simple manner (as I have done it before I swear!)

Right now my brain is refusing to cooperate and I need a push..

I have basically 2 MCs. One is dragable on x-axis only. It outputs it's location to a dynamic text in a numerical form

For simplistic sake let's say it shoots out 1, 2, 3, 4, 5, ...10

Now, what I WANT is my second MC has 10 frames. 1 for each of the output numbers.

Besides doing something like:


Code:
if (output ==1){
sedcondMC.currentframe ==1;
}
else if (output == 2){
secondMC.currentframe == 2;
}
//you get the idea
}


What is it I need to do to make secondMC's current frame match the output number? So when out put is 3 secondMC is showing it's 3rd frame, and so on?

Thanks,

~MoN

Slow GoToAnd* Function
In our company we make Flash e-elarning courses. The problem is that the transition between two screens is very slow. In fact the transition to the previous screen take three times more time than to go to next screen.

Transition to next frame takes about 5 seconds. In one screen there is usually about 400 objects - 150 of them are simple movieclips with no animation (only wrappers for bitmaps). The rest is components. We use selfmade components to simulate real-life behavior of icons etc. We have components for simulations "show on mouseover", custom cursor, tooltip...

After transition the movie runs fast - no latency in response to mousemove, mouseclick...

Can someone tell me how to speed up your courses?

Thanks a lot for every help.

Vlasta





























Edited: 04/13/2007 at 06:15:19 AM by Vavruinek

LoadMovie And Play It From Scene X?
Hello Folks and Friends,

i have a Problem which looks very simple but for me probably it´s to big.
I have a .swf and from this i want to load an other .swf in _level0 and start to play from scene x.

I really tried a lot of things but nothing works.
Please help me FLASHGURUS.
My code

on (release) {
loadMovie ("myMovie.swf", "0");
gotoAndPlay ("Scene x", 1);
}

I can send the fla´s if needed!!

Thanks a lot
Bazucca

On Play Goto Scene?
hi. i tried searching for a thread with this but was unsuccessful . . could i get some help on this? i don't think it's a very hard one but i'm kinda new in actionscript. .

i've got a .swf with 3 scenes on an html page.
the first time the page loads the first scene plays and then stops.
if you mouse over that it will play scene 2 and stop. mouse over scene 2 it plays scene 3 and stops.
mouse over scene 3 and it plays scene 2. and continues the cycle between scene 2 and 3.

now on the html page there is a frame. there are links on the same page as the swf. every time a link is pressed it loads a page inside the frame, and at the same time it gives the command to play the .swf.

what i want to happen is for the .swf to see if it's in scene 1, 2, or 3.

if in scene 1 (when the play command is issued)play scene 3.
if in scene 2 (when the play command is issued)play scene 3.
if in scene 3 (when the play command is issued)play scene 2.

is there some way to set this up so that the swf can do this? also, where do i put this action scripting? would i need to put one on each scene? or just on scene 1?

thank you in advance for the help. .. 8*)

looooooooove,

botti

Using AS To Randomly Play A Scene...
Is it possible to randomly play a scene using actions? I am just trying to start a movie from any of 3 scenes using Flash 5. Thanks.

Play Scene Backwards?
How can I make a series on frames play backwards (frames 66 to 24) with one click of a button.

Regards
Troy

Play Before It Moves To Next Scene
having a headache now.. is there any way that i can do so that this

tellTarget ("/faces") {
gotoAndPlay(2);
}

to get to play first.. only after that.. i will call the next scene to continue..

what now is that it will directly skip the above action and just moves to the next scene.. is there any looping methods or such that i can do to make it works?!

thx 4 the help..

Sounds Play From Next Scene?
hey guys,

I'm in the making of a game, and I'm finding that the sounds from the next scene are starting way before the scene acutally starts. Even if the current scene has stop(); and stopAllSounds(); at the end. Any information or advice would be greatly appreciated. Cheers.

Copyright © 2005-08 www.BigResource.com, All rights reserved