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