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








How To Pause Movie For 10 Seconds At Frame 10 And Then Continue


Can i make my movie pause for 10 seconds at frame 10 and then continue to the following frame? is it a Timer script type thing or something? what should i write for the script




FlashKit > Flash Help > Flash ActionScript
Posted on: 09-26-2001, 07:34 AM


View Complete Forum Thread with Replies

Sponsored Links:

Pause Code For 3 Seconds Then Continue
Hi, could someone please tell me how to pause some code for 3 seconds then continue

ive been googling and searching all morning with no luck

someone help me out?

thanks

View Replies !    View Related
Stop On Frame For A Few Seconds, Then Continue Play
hey,
how can i make a movie clip stop on a frame for like 20 seconds, then just go to the next frame?

just you wait, i'll have a whole plethora of stupid questions

THANKS,
dave

View Replies !    View Related
Pause Frame For 10 Seconds
I am sure there is an actionscript for this, I am sorry if this has been covered recently but I would like to have the frame lag for 10 seconds (so they can read) then auto forward to next frame...slide show style. I know I can add more frames to equal the time but I wanted a more efficient method. Thanks for the help!

View Replies !    View Related
Pause Frame In Seconds
Does anyone have the script to pause a movie in a frame in seconds, then continue playing when the pause is over?

View Replies !    View Related
NoOb - Pause A Frame For A Few Seconds?
Hi Folks - I'm a crappy noober in need of a fast fix! Just trying to do something which I am certain is very simple - I just don't know how!

Basically I have a simple movie that is the typical fade in/out slideshow. I want each image (once faded to 100%) to pause for 5 or 6 seconds before fading out.

Now I know that I can just add frames before the fade out to hold each image, but I'm wondering if there is a simple action script way to just attach a 'pause' or a 'loop for X seconds' or something like this to just one frame.

I tried screwing with a 'do while' with a 'goto' then a 'i++' while i<60 but I couldn't get it working. Any help is much appreciated - THANKS! --bp

View Replies !    View Related
Pause And Continue The Movie
how to pause the movie by one click then
continue the movie with following click

thanks

View Replies !    View Related
Pause/continue Movie With A Single Button
How can I pause/continue a flash movie with a single button?

View Replies !    View Related
How To PAUSE A MC MovieClip In ONE FRAME For X Seconds Without Slowing Main Timeline?
Hello, I am desperately trying to find a cut & paste script that I can use to solve my problem:

I have my main timeline and inside it I have one movieclip with 30 frames. I need to pause each of those 30 frames for X seconds. I only have one frame at disposal so I need a script that doesn't require multiple frames, several gotos etc... I know there is stuff like that and I am hopeing somebody can be kind enough and post it here. Again, a DELAY function that I can paste into ONE FRAME of a MOVIE CLIP. I need the rest of the movie (the main timeline) to keep working so I can't use anything that stops the main time line in a loop...

Also I have been reading that using loop functions bog down the movie a lot so if there is a way not to slow down the entire movie it would be much appreciated. Thanks a lot in advance to anyone who took the time to read this and reply to it...

View Replies !    View Related
Way To Make Movie Pause For X Seconds?
Hello everyone,

I need to make a MovieClip play, then pause for X seconds, then play again.

Can this be accomplished with ActionScript? Or do I just need to add enough frames in-between those actions to make it work?

Sorry if this is a ridiculously simple post, still new to Flash and uncertain as to the best way to accomplish certain tasks.

Thanks,

View Replies !    View Related
Pause My Movie For A Couple Of Seconds.
Hello everyone !!

I tried serching the forums because i've seen a thread like that before, but i couldn't find anything....

I just want to pause my movie for a couple of seconds, say 10 seconds for example. And after those 10 seconds, the movie just keeps on playing.

Can anyone help please?

thank you.

View Replies !    View Related
Loop / Pause In Movie Clip - Duration In Seconds Instead Of Number Of Frames
hi,

i want to know if there's a smart way of creating long-ish, easily editable pauses in movies clips using actionscripting (instead of just throw in dozens more frames in the timeline)?

i'm currently using a loop as such:

i++
if (i<500) {
gotoAndPlay("waitingForUser");
trace(i)
} else {
gotoAndPlay("autoScroll ");
}
this has it looping through 500 times so is obviously dependant on framerate. is there a way to do this and have it loop for for x amount of seconds instead?

many thanks,

ponch

View Replies !    View Related
Movie Plays Till Frame 10 Then Pauses For 2 Seconds And Continues To Frame 11
Can i make my movie pause for 2 seconds at frame 10 and then continue to the following frame? is it a Timer script type thing or something? - I HAVE NO IDEA! help!

View Replies !    View Related
Pause For "x" Seconds Before Playing Next Frame?
I know there is a way but i haven't figured out how to do this yet.. i have three different images and i want them to play for 3 seconds each without having to drag out the timeline. basically it is a slide show. what is the actionscript for this? a few people gave me different formulas, but it stops the movie after the 3 seconds. i'd appreciate any help! thanks.

View Replies !    View Related
How Can I Pause At The "n"th Frame For Few Seconds?
Without extending the timeline, how can I pause at a particular frame for 'x' amount of seconds? I like to control the length of pause using a varible.

View Replies !    View Related
Movie 1 Frame Per 10 Seconds
Hi all,

I have this movie I am developing. I am using the following code to make sure the movie stays at the first frame for ten seconds:


Code:
function jumpNextFrame(){
nextFrame();
}

myTimer = setInterval(jumpNextFrame, 10000);
stop();
This works beautifully. However, the second frame then takes ten seconds to go to the third frame, which then takes ten seconds to go to the fourth frame, and so on. I want all frames after the first one to advance immediately to all succeeding ones.

So I added a clearInterval as follows:


Code:
function jumpNextFrame(){
clearInterval(myTimer);
nextFrame();
}

myTimer = setInterval(jumpNextFrame, 10000);
stop();
Now, my problem is that the second frame never advances to the third frame.

Does anyone have ideas as to why this is?

Thanks.

View Replies !    View Related
Help How Can You Pause And Continue?
Does anyone know how to pause the movie for a certain amount of time that I determine then continue?
I'm new to Flash so pardon my ignorance. Its easy to do in Director, so I figured it would be easy in Flash as well. Thanks!

View Replies !    View Related
Help How Do I Pause Then Continue?
Does anyone know how to pause the movie for a certain amount of time that I determine then continue?
I'm new to Flash so pardon my ignorance. Its easy to do in Director, so I figured it would be easy in Flash as well. Thanks!

View Replies !    View Related
How Do I Pause Then Continue?
Does anyone know how to pause the movie for a certain amount of time that I determine then continue?
I'm new to Flash so pardon my ignorance. Its easy to do in Director, so I figured it would be easy in Flash as well. Thanks!

View Replies !    View Related
Pause And Continue
Is there a way to have a pause button in my movie and then when play is clicked it starts again from the same frame it was paused at?

View Replies !    View Related
Stop Movie Ona Frame For 4 Seconds
Hi there
Does anybody know how to stop a movie on one particular frame for a specified period of time after which it should progress to the next frame?
Any help would be greatly appreciated.
Thanks

View Replies !    View Related
Pause Continue Button
The code below is attached to a button. It is suppose to toggle between
stop and start. It does. However, it is unpredictable. Sometimes I must
click the button two or three times before the toggle kick in.

What am I missing?

on (release) {
// toggle a flag between two values

active = ! active;


if(active) {
play()


} else {
stop()
}
}


thanks

iaustin

View Replies !    View Related
Pause And Continue Button
Hi,
Is it possible to have the same button pause and continue a movie. I'm creating a demo and I want the user to be able to pause the movie and with the same button continue on. I would like the button to have a different look for the pause and continue states.

thanks for any help

View Replies !    View Related
Script To Pause And Continue
Hi,

I'm looking for a script that when someone does a mouseOn on a button (with an internal movie) the movie stops.
And when the user does a mouseOut it continues from where it stopped earlier....

Could someone help me with this?

Thx

View Replies !    View Related
Pause/continue Button
Hi, I've made a button with the up and over state as 'Pause' and the down and hit states as 'Continue'. I've put this button on the main stage that is playing a series of demonstrations. The idea is that the user can pause the demo and then continue when they are ready using only one button that changes from pause to continue and vice versa. On the button I've put the action to actually pause and play the overall movie on(release) {
if (playing)
_root.stop();
else
_root.play();

playing = !playing;
}

That is working fine. BUT I cannot get the button to stay on the down state once it is pressed and the movie is paused (it needs to show the continue state) Can someone tell me how to do this please? Thank you.

View Replies !    View Related
Pause Timeline And Then Continue?
Is there an easy actionscript that can be added to the main timeline to delay playing and wait at that point in the timeline for a few seconds and then continue to play? Sounds easy but I've yet to see an example of such.

View Replies !    View Related
Stop Movie, Then Goto Frame 1 After 60 Seconds?
I've been searching but can not find an answer...

Instead of adding a bunch of frames, I'd like to put in a stop action on the last frame and then after a period of time (60 seconds or whatever), I'd like it to loop back to frame one and start again.
Ideas?
Thanks in advance!

View Replies !    View Related
How Can I Make The Movie To Stop On A Certain Frame For A Few Seconds?
How can I make a scene or movie to stop at a certain frame for a few seconds and then continue?

View Replies !    View Related
Pause And Continue Linked To User Interaction
I'm building a looping flash movie which has a section that allows user interaction.

What I want to do is if there is no user interaction for the movie to play and loop as normal. However if the user clicks on the screen then the movie pauses to allow the interactive elements to be manipulated. Also after a set time of no user interactivity (say 30 seconds) the movie will resume playing.

Can someone suggest some code for pausing and resuming the movie?

Thanks

View Replies !    View Related
Playing A Movie Clip On Mouse Over And Continue To Last Frame On Mouse Out
Hi All,

I have a movie clip on the timeline which is an animated mouseover button

Basically what I need to do is for the movie to be stopped at frame one when there is no mouse over and loop continuosly when I do have mouse over then on mouse out i want it to finish it's frames playing from where ever it was at when the mouse was moved out to the last frame and then display frame one so it is stopped again ready for a new mouse over.

Something I have found difficult to work out is that whilst it is doing the "out" play to to last frame, if you put the mouse back over again, it starts from frame 1 so looks like it jumps so i need the mouse over to also read what frame it is currently playing so that it can continue its endless loop from that frame to avoid it jumping about.

I hope that makes sense, it's really difficult to describe in words.

Here's the movie clip's action as it is now.

on (rollOver)
{
this.gotoAndPlay("over");
}
on (releaseOutside, rollOut)
{
this.gotoAndPlay("out");
}

ok so in the movie's timeline itself, the label "over" is a frame containing another movieclip which is basically a continous 30 frame loop and my movie timeline is stop();

so, on (rollOut) it plays at label "out"

I have placed a copy of the movie loop at the "out" frame which plays the movie slower at the end to make it a nice wind down stop

what I thought to do in action script is to read the current frame that the movie loop is at and make so the "out" position movie starts its playing frame from that frame number until it reaches the end frame where it jumps back to frame one of the timeline with the first stopped frame.

I've seen a command something like this below used to get the current frame number and take it away from the total to continue playing from that point, that's not totally right for what I am doing but it shows me the sort of thing i need to write but i don't know how to write an actionscript to read the current frame from the movie1 whcih is playing and start playing movie2 at "out" from that frame number?

on (rollOut) {gotoandPlay(_totalframes - _currentframe); }

maybe there is an easier way to get this to work, i've seen lots of similar examples on the web but nothing that specifically plays a lopp and then continues to the end on mouse out. it sounds simple but I've tried all weekend to do it without success?

Can anyone help me please?

Thanks,
Terrence.

View Replies !    View Related
How To Pause For A Few Seconds
Is there anytway to get the script to pause for a few seconds.. and then go on with reading the rest??

I tried fooling around with do while ... but everything just locks up

any help is apreciated... thanks

dizy

View Replies !    View Related
Pause For 5 Seconds
Hi, i'm tring to count 5 seconds befor i go to next command, is this script right?

it doesn't work... :-(

pauseDuration = 5000;
startTime = getTimer();
lapsedTime = getTimer()-startTime;
while (lapsedTime<pauseDuration) {
lapsedTime = getTimer()-startTime;
}


Thanks in advance,
Maya

View Replies !    View Related
How Do I Pause An MC For A Few Seconds?
I'm sure I can pause a movie for a few seconds using getTimer, but I can't figure out how! Does someone have a simple script for this?

Thanks in advance.

View Replies !    View Related
Pause For X Seconds
Hi,
Very sorry for the long post but.....

I posted this earlier but without any luck, I've been working on it for a full day now but I can't figure it out.

What I want to do is:

Have a frame where I want to pause the movie for 5 seconds or so before it carries on to the next frame.
I can't work it out to save my life, any help would be greatly, and I mean greatly, appreciated.

As an added bonus, can you hold on a frame until theres an interaction, ie.

hold on frame until keypress 'space'?

or something similar, I'm an absolute actionscript newbie so I'd love any help.


thanks in advance

Danny



<Copy of part of previous post>

>Hi,

>I usually use director for my multimedia but have started to try and learn a bit about flash.

>For a loop in director I just use the library behaivour loop for X seconds then jump to marker name ''

>Is it possible to do this in Flash MX and if so how. I'm sure these are easy ones for all you gurus so I'm sorry to waste your time but I can't figure it out at all

>I've tried the following code but to no avail.

>var x = 0;
>setInterval(myfunc(),480);


>function myfunc() {
>if(x==0) {
>stop();
>x++;
>}
>else {
>gotoAndPlay(45);
>clearInterval...
>}
>}
>Thanks, I have tried this, I had to take the ... from the end of clearInterval to get it to run, again it pauses the movie but then refuses to carry on.
>I also tried changing the clearInterval line to

>clearInterval(myfunc(),480);

>again with no luck.

>Any more help you can give would be greatly appreciated.

>One newbie going completely out of his mind.....

View Replies !    View Related
Pause For 2 Seconds...
Is there any way to give actions to a button so that it will perform the task after two seconds. For example, I want a button, when clicked, to first open a movieclip and then after two seconds, open another movie clip..

Is there any way this can be done??

thanks.

View Replies !    View Related
Pause After A Seconds
i want to pause a movie or to trigger a movieclip after some seconds have been elapsed.
any idea of how to do that with actionScript?

thanks!

View Replies !    View Related
Pause For 3 Seconds
Is there a way I can pause the entire timeline for a set amount of time? I'm not using any movie clips.

View Replies !    View Related
How Can I Pause For A Few Seconds?
I have an animation.

At the end of the animation, I want to pause for a small amount of time.

And then, I want to carry on with the next animation.



What's the best way of doing this in Actionscript?



Thanks.





OM

View Replies !    View Related
Pause For X Seconds
Hello,

I am creating a presentation that needs to hold/pause on a frame for 12 minutes at the end and then go back and play frame one.

Is there an ActionScript that can let me do this easily without having to drag out my timeline to 15000+ frames?

Thanks
Steven

View Replies !    View Related
Pause For 4 Seconds
I thought I would put in a inquiry to see if it is possible to pause the main timeline for a period of time (4 seconds) and then have it continue.

Has anyone tried this? Does flash have something similar to "the ticks" in director (that shows time passing)?

some kind of a:


Code:
var delay = 2400;
var time = the ticks;
while (time < (time + delay)) {
// do nothing
}
nextFrame();

View Replies !    View Related
Pause For X Seconds?
Hey again,
I was wondering if there was a piece of code that allowed you to create a pause in a MC, without dragging out the frames.
Thanks
-Evil

View Replies !    View Related
Pause For A Few Seconds (k)
I have searched and searched but cannot for the life of me get a timer
that works.

I have a movieClip that has three frames and two layers (Actions and a
layer with a movieClip entitled mcNoreen)


FRAME 1 ACTIONSCRIPT:

stop();
// import tween classes
import mx.transitions.Tween;
import mx.transitions.easing.*;
//
var Animation:Object;
//
Animation = new Tween(mcNoreen, "_alpha", Regular.easeInOut, 0, 100,
_global.FadeInTime, true);
Animation.onMotionFinished = function() {
nextFrame();
};


FRAME 2 ACTIONSCRIPT:

stop();
var myInterval:Number;
clearInterval(myInterval);
myInterval = setInterval(wait, 4000);
function wait() {
clearInterval(myInterval);
play();
}

FRAME 3 ACTIONSCRIPT:

stop();
// import tween classes
import mx.transitions.Tween;
import mx.transitions.easing.*;
//
var FadeOutAnimation:Object;
//
FadeOutAnimation = new Tween(mcNoreen, "_alpha", Regular.easeInOut, 100,
0, _global.FadeOutTime, true);
FadeOutAnimation.onMotionFinished = function() {
_root.nextFrame();
};


It's the frame in the middle(#2) that has become my arch nemesis. I have
tried every method I can find on the web and none are working. Instead
of pausing it seems to go right out of the movieClip.

All I want to do is pause the playhead on a frame for a few seconds then
move on to the next frame.

It shouldn't be this hard.

-Kirk

View Replies !    View Related
How Can I Pause For A Few Seconds?
I have an animation.
At the end of the animation, I want to pause for a small amount of time.
And then, I want to carry on with the next animation.

What's the best way of doing this in Actionscript?

Thanks.


OM

View Replies !    View Related
Pause For 2 Seconds
Hey!! I want to pause my movie for 2 seconds on frame 4 then go to frame 5...
how can i do this? sorry for my lousy AS!!!

thanks!!

View Replies !    View Related
How Can I Pause For A Few Seconds?
I have an animation.

At the end of the animation, I want to pause for a small amount of time.

And then, I want to carry on with the next animation.



What's the best way of doing this in Actionscript?



Thanks.





OM

View Replies !    View Related
[F8] Pause Movie On Last Frame.
Hey guys,

My site is this: http://www.housepaintinglouisvilleky.com/

I'm trying to play a flash movie through then pause it on the last frame forever.

When I place

stop();

on the last frame, it automatically wants to restart the movie.

I want the movie to pause on the last frame then stay there forever.

I tried putting in

pause();

but this didn't work.

I know this is a super newbie question but any input would be greatly appreciated!

Thanks,
Daniel

View Replies !    View Related
Pause Movieclip For A Few Seconds
Okay i was experimenting with the setInterval() function;
Frame 1 till 10 is a simple tween (small square to large square)
in frame 5 i've got this sript:

Code:
stop();
myTimer = setInterval(pauseSomeTime,3000);
trace("The tween is paused");
function pauseSomeTime() {
this.play();
trace("The tween is starting");
clearInterval(myTimer);
}
I get the two traces, but it still won't go further frame 5...
Any1 know what's wrong, i figure it's the "stop()", but I need that function :S

View Replies !    View Related
Is It Possible To Pause X Seconds Between Events?
Does anyone know if it is possible to place some kind of pause command between event statements?

I'm looking to do something like:

if (symbol1.hitTest(symbol2)){
symbol3._visible=true;
[WAIT 5 SECONDS AND THEN..]
symbol 4._visible=true;
}

View Replies !    View Related
NetStream Pause After X Seconds
I have this and it's not working any advice?

var myNC:NetConnection = new NetConnection();
myNC.connect(null);
var myNS:NetStream = new NetStream(myNC);

myVideo.attachVideo(myNS);
myNS.play("header.flv");

var time_interval:Number = setInterval(checkTime, 500, stream_ns);
function checkTime(myNS:NetStream) {
var ns_seconds:Number = myNS.time;
if (ns_seconds>4) {
myNS.pause;
}
}

View Replies !    View Related
AttachMovie(); Pause For 2 Seconds; UnloadMovie()
Hi, I'm trying to simply add a few lightning sparks to this picture to teach myself a little flash. I'm trying to do it with a root movie that just contains a single frame and some actionscript. I'm trying to attach a movieClip and then unload it after 2 seconds - here's my code:

function dspLightningSpark() {
trace("hi, lightning spark");

attachMovie("shortCircuit1","myShortCircuit",1);

myShortCircuit.startTime = getTimer();
myShortCircuit.delay = 2;

myShortCircuit.onEnterFrame = function() {
if (((myShortCircuit.getTimer()-myShortCircuit.startTime)-timer)/1000>=myShortCircuit.delay) {
unloadMovie("shortCircuit1");
}
};

}

As you can see, I'm trying to use the attached movie's getTimer() function since my root movie only consists of one frame and won't respond to onEnterFrame. The movieClip that I'm attaching has two frames so I can use the onEnterFrame function to 'loop' through, comparing the current time to my delay (2 seconds). Do I have that right?

I just started so I don't know whether I can play with an attached movie's variables like getTimer() and such?

Maybe somebody can set me straight on how I can achieve my desired result? Thanks.

View Replies !    View Related
Pause The Actionscript From Execution For 5 Seconds
i have a one frame movie with all the actionscript cluttered...

I want the actionscript to pause or delay for a few seconds from executing and then continue on its own... how can this happen?

Thanks!

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