ActionScript 2.0 :: Stop On Anoter Frame On My Root Timeline And Then Play?

Nov 9, 2007

Im trying to tell my movie to goto and stop on anoter frame on my root timeline and then play a movie clip on the new frame... This is probs really simple but it is early.

[Code]...

View 11 Replies


Similar Posts:


ActionScript 3.0 :: Flash Play Stop Root Timeline Sound?

Aug 15, 2010

I have added some three sound clips, play pause buttons, on the root timeline in a movie with corresponding callouts. I am able to stop all sounds on the main timeline by below

stop_btn.addEventListener(MouseEvent.CLICK, stopSound);
function stopSound(event:MouseEvent) {
SoundMixer.stopAll();
}

But now how do I resume all the sound to play. In sort, mute unmute root sounds in AS3.

View 1 Replies

ActionScript 2.0 :: CS3 Making A MovieClip Play It's Frames, Then Stop On A Main Timeline Frame?

May 12, 2010

I am currently in the middle of making a "sniping" flash game. In the first level there are a series of moving targets which are also movie clips. Inside the movie clip there is a 7 frame animation of the target exploding. Inside that is a tween of the target moving up and down. And inside that there is a plain old button.

What I want to happen is when you click on the moving target it explodes and brings you to a new frame of the main timeline. (ex. Main Timeline frame #27) But I'm pretty sure it thinks I was to play the seven frame animation of it exploding and then go to frame 27 inside the movie clip, rather then frame 27 on the main timeline.

Here's what my AS looks like on the target (ActionScript 2.0 is what I'm using.)

on (press) {
play();
}
on (release){
gotoAndStop(27)}

So how do I make it explode and then take me to frame 27 on the main timeline?

View 3 Replies

ActionScript 2.0 :: Use SetInterval To Start And Stop The Root Timeline?

Jan 9, 2006

How can I use setInterval to start and stop the root timeline? I would like to use it in this little fade function wherein the setInterval would kick into effect once the alpha is 100%. You can see where I think it needs to go. Here's the code.

Code:
stop();
variable = x+5;
title_mc._alpha = 0;
function fade() {
var nFadeSpeed = 4;

[Code]...

View 6 Replies

Flash - Tell The Root Timeline To Root.gotoAndStop(2); From The Timeline Of A MovieClip Added Using AddChild?

Nov 7, 2011

How do you tell the root timeline to root.gotoAndStop(2); from the timeline of a movieClip added using addChild?In the maintime line I have

addChild(fade_eng);

and in fade_eng I have the following on frame 20

root.gotoAndStop(2);
this.gotoAndStop(1);

But I am getting 1061: Call to a possibly undefined method gotoAndStop through a reference with static type flash.display:Stage.

View 1 Replies

ActionScript 2.0 :: Check To See If The Root Timeline Is At A Certain Frame?

Jul 7, 2009

I am using Flash CS4 and Actionscript 2.0, and I want to be able to run a certain command for a time I am making only on certain frames...

[Code]...

This doesn't work. The reason I am trying to do this, is because every time I complete a level the timer is still going at the 'congratulations screen' and then when I go to level 2 the timer would start up again, and the seconds would go twice as fast.

View 1 Replies

Professional :: Loading External Swf Then Going To Frame In Root Timeline?

May 10, 2011

when a button is clicked, I want an external swf to load and play, then I want to go back to a particular frame in the original timeline.

View 2 Replies

ActionScript 3.0 :: Get Main Timeline To Stop In The Beginning On Button Press To Play And At The End Stop Again?

Feb 1, 2008

I just got Flash CS3. I'm trying to get my main timeline to stop in the begining, on button press to play and at the end stop again. In AS2, you would just put stop(); on the first keyframe and stop(); on the last key frame and program your buttons accordingly.

The stop(); does not work!!!! It's driving me crazy. What am I missing? I've gone through the tutorials in Flash and they don't work either.Also, if you have MovieClip that contains an animation and you don't want the movie clip to be on a continuous loop how do you stop it from playing. In AS2, I would put a stop(); on the last keyframe of the movieclip's animation. This also does not work in AS3.

View 9 Replies

ActionScript 1/2 :: Stop Movieclip When The Root Moves On To Frame 2

Jun 18, 2009

[Code]...

I can not make the above stop when the root moves on to frame 2.

View 5 Replies

ActionScript 1/2 :: Loadmovie Swf Into Flash - Plays The Frame On The Root 46 To 59 Non-stop

Apr 30, 2011

I did a MC called "bgproducts" on the root frame no:46 to 59 then stop(); and in this MC, you have an animation and stop at frame no :64 then stop(); in the frame 64, i have another an empty MC called "productsMC". when i do this code in bgproduct frame no 64 : productsMC.loadMovie("main.swf", ""); it plays the frame on the root 46 to 59 non-stop and nothing to loadmovie, and also the main.swf has a preoloader then frame 2 an load from xml file.

View 2 Replies

ActionScript 2.0 :: Loading Frame 1 Of Root Timeline From End Of Nested Movie Clip

Jun 25, 2009

I am building a small banner, which ideally will have a random string of text fade in (long enough to be read), then fade out...to play another random text.

Each of my texts have been built as movie clips... they fade in, stay up long enough to be read, then fade out. At the end of this, I need the movie to go back to frame 1 of the main timeline, as I am using the following script:

Code:
_root.onLoad = function() {
//generate a random number from 1 to 11
var nRandom = 1+Math.floor(Math.random()*12);
//tell timeline to goto and play the random number 'nRandom'
gotoAndPlay(nRandom);
};

Each of my text movie clips are on a different frame, so I need to call a new random _root frame to play from within the movie clips. So far, all that is happening is whichever movie is chosen to play, goes in a loop.

View 5 Replies

ActionScript 2.0 :: Loop 2x, Go To Frame 1 And Play To Frame 30 And Stop?

Feb 5, 2009

Using MX 2004. I would like to play the entire movie twice, then start playing a third time until frame 30 and stop.

View 1 Replies

Flash :: MovieClip To Play From Frame 5 To Frame 30 And Then Stop?

Aug 1, 2011

I want my MovieClip to play from frame 5 to frame 30 and then stop. How can I do this?

View 5 Replies

Play/Stop Flv From Main Timeline?

Sep 30, 2008

[URL]about 30 seconds into this flash, there is an FLV of a computer screen. The problem is, when I pause the swf, the flv keeps going. How do I get around this?1. Is it possible to convert the flv to swf?OR2. Is it possible to control the flv from the main timeline?

View 7 Replies

ActionScript 1/2 :: Stop And/or Play Everything On The Timeline?

Jun 18, 2009

I have movie clips, animation, streaming voice over, and event music and sound fx on the timeline. I have tried the following example:

on (release) {stopAllSounds();
daveNight.stop();
stop();

[code].......

View 9 Replies

Play A Certain Number Of Frames Then Stop-from Anywhere On The Timeline

Jun 10, 2009

Okay, so I've got a happy little movie that shows an atom diagram. Every seven frames shows an electron popping up in the ring around the nucleus. This is all contained in a movie clip. I want a button that when pressed, tells the movie clip with the atom to advance the seven frames ( making an electron pop up ) and then stop. The same button if pressed again, will advance the movie clip an additional seven frames ( thus adding another electron ).

I've looked around quite a bit but haven't found a solution that will work for me. Also, I am working in AS2. (if you're feeling especially helpful, do you also know how to do the same but in reverse? I've found how to play movie clips in reverse, but not for a certain frame interval.)

View 1 Replies

ActionScript 3.0 :: Play / Stop Timeline With Spacebar?

Sep 25, 2011

Normally I have a 'MouseEvent.CLICK' on a movieclip handle this but I want use the keyboard instead of the mouse this time. I haven't used the keyboard for button actions since AS2, any tips on how I can do this in AS3?

View 1 Replies

ActionScript 3.0 :: Play/stop Timeline With Spacebar?

Sep 28, 2011

Normally I have a 'MouseEvent.CLICK' on a movieclip handle this but I want use the keyboard instead of the mouse this time. I haven't used the keyboard for button actions since AS2, how I can do this in AS3?

View 1 Replies

ActionScript 1/2 :: Timeline Cannot Stop In First Frame

Aug 7, 2009

I'm making at quite big company presentation with slides (CS4). On some of the slides I'm using buttons with behaviors on the timeline - they are a all placed in the first frame of the related slide. I have a placed a stop(); in the first frame in every slide so I'm sure the timeline will not start playing. The problem is that it does. I runs one time and then it stops.

How can I make it stop the first time you go to the slide?

View 5 Replies

Stop An Animation At Frame 30 On Timeline?

May 27, 2009

I have an animated movie clip (a man walking). I have created a tween with that clip, but when he stops at frame 30, I want the animated movie clip to stop, so it doesn't look like he's walking on the spot.

View 2 Replies

ActionScript 2.0 :: Reverse Play Timeline Till Stop?

Apr 27, 2011

I have 3 objects. One is a Movieclip, and other 2 are buttons (forward and backward)[code]...

Inside MC there are several animations with stop(); where it should stop till clicking Next button to play till the next stop.[code]...

View 1 Replies

Flash :: Actionscript 3 - Stop On Frame 1 Of Timeline?

Apr 3, 2011

I try to create a tab interface: So on each layer in frame 1 I added

this.stop();

but when running it says: 1180: Call to a possibly undefined method addFrameScript. main.as is currently useless but I can show it in case it would have impact:

[CODE]....

View 3 Replies

ActionScript 2.0 :: Timeline Of The Main Swf To Go To A Certain Frame And Stop?

Jul 14, 2004

I have an internal swf file play within a main swf file. At the end of the internal swf file timeline I want the timeline of the main swf to go to a certain frame and stop.

View 3 Replies

ActionScript 2.0 :: Timeline Of Main SWF To Go To Certain Frame And Stop

Jul 14, 2004

Flash MX- I have an internal swf file play within a main swf file. At the end of the internal swf file timeline I want the timeline of the main swf to go to a certain frame and stop.

View 3 Replies

ActionScript 3.0 :: Loop On The Main Timeline - Play 3 Times And Stop

Jul 22, 2009

I have a very simple banner that I would like to play 3 times and stop. How can I do that in Actionscrip 3.0?

View 4 Replies

ActionScript 3.0 :: Accessing Mc Timeline - Play The Next Frame

Jun 8, 2010

i have a mc in wich timeline i put (manually) a mc called joe_mc. The first one (the container) holds all the code: A timer function slows down joe_mc and when it reaches its last frame its suppossed to play the next frame on the container mc timeline. Here�s the code:

[Code]...

View 5 Replies

ActionScript 3.0 :: Button Play Frame On Timeline?

Sep 23, 2009

how to play the timeline with a simple button

example:
in AS2 you could attached script to button something like
on MouseEvent {
gotoandplay(6);
}

thats all I am trying to do, but in AS3 how do I simply get a button when clicked to go to a frame and play.

View 1 Replies

Mc To Play Until A Certain Frame Is Reached, Then Stop

Sep 7, 2007

I have an mc placed on the main stage that I'm trying to control through a separate button. I want the mc to play until a certain frame number is reached and then stop. I've got the following actionscript on the button instance:

Code:
on(rollOver){
if (mc._currentframe == 10){
mc.stop()

[Code]....

This is not working at all - the mc is not stopping at frame 10, just looping continuously

View 5 Replies

ActionScript 3.0 :: Play To And Stop On A Frame?

Aug 19, 2010

I am using this code to start a movie playing. I can't get it to stop on the last frame. It keeps resetting back to the first frame. I have tried this.stop() and gotoandStop() with frame numbers and frame labels but none of that worked.

this.stop();
var myStartButton:StartButton = new StartButton;addChild(myStartButton);myStartButton.x = 284;myStartButton.y = 255;myStartButton.addEventListener(MouseEvent.CLICK, playMe);

[code]....

View 2 Replies

ActionScript 3.0 :: Button Play Specific Frame On Timeline?

Feb 19, 2010

how to play the timeline with a simple button

example:

in AS2 you could attached script to button something like

on MouseEvent {
gotoandplay(6);
}

thats all I am trying to do, but in AS3 how do I simply get a button when clicked to go to a frame and play.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved