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








Pausing


Is there any way to create pausing functions, so that, code is only executed in steps for user interraction.
For example:- The ability to run a search algorithm where there is a pause of one second between each displayed comparison of a letter, or everytime the user clicka abutton, one line of code is run.




KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 01-31-2003, 03:01 PM


View Complete Forum Thread with Replies

Sponsored Links:

Pausing Everything?
I have some movies on main time line comming one by one and the main timeline is also running.I want to put a pause and a Play button on the main timeline which should pause the main movie.If i put simple play() command it only stops the main time line and if their is any MC, MC keeps running.How can i pause everything on the stage.Any easier ways???

View Replies !    View Related
Pausing MC's
I have an if statement that evaluates a variable and performs an action until the variable reaches 10. The only problem is, 10 cycles through happens very quickly, and I need the process to slow down. Is there a way to insert a pause within the if statement telling the computer to wait for a few seconds before proceeding to the next pass?

View Replies !    View Related
Pausing?
is there some way to pause? i dont mean in a movie, but in actionscript. is there a way?

View Replies !    View Related
Please Help - Pausing
i have a problem

loadVariablesNum ("data.txt", 0)

loadMovieNum (songpath, 1);

songpath is a variable in data.txt that has the song file, for some reason it wont play, but if i put the loadmove before the loadvariables and put the actual filename there, it works, so i thought it might be that its trying to use the variable before loadvariable has loaded them?

so is there any way to create a delay between the loadvariable and loadmovie

btw, im wanting the movie to play as soon as it loads

please help

View Replies !    View Related
Pausing A Swf Within A Swf
I have a video clip (.swf) running inside (with loadMovie command) of a movie (which will ulitimately be exported as .exe or .swf). I need to be able to stop and start the movie so that viewers can refer to information before continuing on.
I can stop the flash movie, but not the video clip. How can I "pause" the entire movie, video clip and all?

View Replies !    View Related
Pausing
Does anyone know how you get your movie and music to pause at the same time???

View Replies !    View Related
Pausing
is there any easy way to have a movie pause for about 15 seconds on a frame, and then continue to play again
thanks
DiGiT

View Replies !    View Related
Pausing?
I'm trying to pause a movie clip so it loops back to the beginning every 5 seconds or so... Can somebody pllleeeasee help me.
Thanks.

View Replies !    View Related
Pausing
I'm creating a simple game and after my title screen I have 2 buttons, play and instructions. How do I pause the movie here so that it doesn't just jump to the next scene?

View Replies !    View Related
Pausing?
Okay.. I'm horrible at working with flash and trying to explain what it is I'm trying to do, so bare with me.

I'm making a horse race viewer for my website. I send data to the movie (ie. horse names and stats and stuff like that). That all works fine. Here's the layout of my scenes and such:

Scene 1: Preloader
Scene 2: Horse Introductions
Scene 3: Race Information
Scene 4: The Actual Race
Scene 5: The Results

I've found that the stop() function seems to 'erase' my variables and their data.. so I'm trying to do something without using the stop function in my movie. But... I want users to be able to view the horse introductions and such for as long as they want to and click a button when they're finished reading to move on to the next part of the movie. I've tried doing the following:

frame 21 has nothing in it
frame 22 gotoandplay(21)
frame 23 has nothing in it

and when the button is pressed, it will go to frame 23 and continue to play the movie. but.. it won't. it just sits there. any help would be greatly appreciated as I can't think of anything else to do and being unable to use the stop function is really mucking things up a bit.

thanks in advance

View Replies !    View Related
Pausing
Is there any way to make a flash movie pause on a certain frame for a specified amount of time?
thanks in advance!

View Replies !    View Related
Pausing
How can i pause the motion inside the movie for few seconds and then to continue it ( as in to freeze the move on a certain keyframe without adding or spreading it over the timeframe) and i dont mean using the "Ease in and out"
example: on the banner the object reaches some stage in the morphing stops for 2-3 seconds and continues the morph.
thanks in advance for any help guys.

View Replies !    View Related
Pausing
I have created a pause feature in my game that uses a recursive function to pause a movieclip and all it's nested movie clips so that all the animations stop. It uses the movieclip.stop() function. That works fine, but when I do the same thing to try to resume using a movieclip.play(), things go haywire. It seems to resume from where it was in my movieclips, but it keeps going through their timelines even if it was supposed to be stopped on a certain frame. Anyone have any ideas (I'll put the code below).


Code:
MovieClip.prototype.pauseAll = function() {
for (name in this) {
if (typeof (this[name]) == "movieclip") {
this[name].pauseAll();
}
this.stop();
}
};

MovieClip.prototype.playAll = function() {
for (name in this) {
if (typeof (this[name]) == "movieclip") {
this[name].playAll();
}
this.play();
}
};
_root.pauseAll(); // this works fine to pause

_root.playAll(); // resumes, but keeps going through the timelines

View Replies !    View Related
[F8] Pausing
Hi

I am using Flash8 and AS2 and I want to put in a pause between two functions. This will then give the effect of some text sitting on the stage and doing nothing between times of activity.

What's the easiest way of achieinvg a "Break in the action"? I could do it using setInterval but that does seem like a rather complex way since I will then have to write another function (which I guess will be called twice - first at time 0 and then say 1 second later).

Thanks in advance

Edward

View Replies !    View Related
Pausing An Mc
I have a series of images that fade in and out. When an image is fully faded in I need the mc to pause and stay paused for a set amount of time and then resume. How can I pause the MC and then have it play? thanks

View Replies !    View Related
As1 To As 2 Pausing
Hi i´ve this code that works on as1 and i need to put it to work on as2.
It´s a code to pause an animation on the main scene of _level2, and all the mcs and submcs on it.

// on click of a button

for (i=1; i<=4; i++)
{
var myClip = _level2 ["mc" add i];
var mySubClip = _level2 ["mc" add i add "." add "mc" add i add "a"]
myClip.stop ();
mySubClip.stop ();
}

Thx

View Replies !    View Related
Pausing
I've a got a game, want it so that when a player press's P, the game pauses and then when its pressed again it plays again is there any simple way to do this?

View Replies !    View Related
Help With Pausing Mc For 10s
I have a scene where a post-it note flies in from offscreen. Once it settles at it's destination, a close button appears.
If the close button is clicked, the note disappears (gotoAndPlay(76)).

Here's the tricky part: If the button doesn't get clicked, the post-it note needs to stay there for 10 seconds then goto frame 76 (where it disappears). What code would I use?

If you can help, I'd really appreciate it!!!

View Replies !    View Related
Pausing An Outside SWF
Does anyone know how to do this? I have Pause/Play controls on my main timeline that need to control outside timelines.

I generally used "previous frame", but thta can't work with this, otherwise it'll leave the fram that the MC is on.

I'm probably overlooking something simple, but any ideas?

View Replies !    View Related
FLV Pausing
Hello all,

I'm trying to make a flash swf with two frames. On the first frame is an flv with buttons such as play and a seek bar. On the second frame there is no video and just some other information. I am trying to make it so when you press a button on the first frame the video is paused and you get taken to the second frame, then if you click a button on the second frame you can go back to the first frame and continue the video from where it was paused.

Unfortunately I can't seem to do this, the video seems to pause ok, but it plays from 0 again after you click back from the second frame. I can't get it to stay paused when navigating to a different frame.
The only way I could get it to pause was by having the layer with the video on extending along to the second frame(without making it into a new keyframe, so it's one long keyframe lasting 2 frames) but the problem with that is the triangle on the seekbar is still visible on the second page, even though the second page's background is above the seekbar's layer and everything else from the first page is hidden.

If anyone has any ideas about what to do it would be much appreciated.
Thanks.































Edited: 10/11/2008 at 02:38:21 PM by pinefresh

View Replies !    View Related
Pausing
sorry if this a noob question but i'm just starting with action script in flash...
can someone tell me how to pause the movie at the end i.e. make it not loop anymore?

and im using MX 2004 actionscript...

View Replies !    View Related
Pausing
Does anyone know a simple piece of code that i can use that will pause the execution of my code for a set amount of time before resuming?

View Replies !    View Related
Pausing
sorry if this a noob question but i'm just starting with action script in flash...
can someone tell me how to pause the movie at the end i.e. make it not loop anymore?

and im using MX 2004 actionscript...

View Replies !    View Related
Pausing An SWF In A MC
Kind folks,

I have a pause/play button that I would like to use to pause an external swf that plays in a movie clip. The movie clip has an instance name of "window". Different swfs play in it from time to time.

Is it possible to write a script that will reference the instance name "window" and it will pause whatever swf is playing in there at the time?

And how would I write the code? I've tried a couple ways and it didn't work.

View Replies !    View Related
Pausing An Animation
Hi,

I want to pause an animation for a few seconds.
I dont want to increase the frames to make the animation to pause.
can any body tell me how i can do it using actionscript.

thanks
GugZ
India

View Replies !    View Related
Pausing The Timeline - Why Am I So SAD
It's got to be easy, but I just can't find a way of setting up an actionscript to pause the timeline for say 10 secs or until the user clicks the screen.

I know that I can just insert extra frames to make up an extra few seconds, but there must be a way to do it with actionscript.

Sorry if this has been posted/answered before. I did trawl for ages trying to find the answer....

Cheers.

View Replies !    View Related
Pausing Frames
is there a way to pause frames. i'm doing a simple fade. and i don't like flashtyper...

i'll check out some turorials, if they have any...

help.

View Replies !    View Related
Pausing A Preloader
Here is the deal:


I want to make a flash site that consists of a "main" flash file with 6 links, that loads 6 swf's.

while the user is reading or viewing the intro I want to preload all 6 swf's and the when the user makes a selection, all bandwith should be devote to that swf, and then when that is loaded, it should go back to preloading the others.

I have been searching all over for a solution for this problem, but with no luck :-(


thanx

View Replies !    View Related
Pausing Sounds
I can start and stop sounds in Actionscript 5 but can anyone tell me how I can PAUSE a sound and start playing it again, please?

Rickoflash

View Replies !    View Related
Pausing & Looping
hi there
thinkning that there must be a simple way to do what i want but i am not sure how to ...
have an instance of a movieclip in the main time line,
and i want (through action scripting) to have it pause for 20 seconds, and then play, and the repeat the pause/play infinitely.
so it effectively plays every 20 seconds, but begins with that 20 seconds pause.

any help muchly appreiated.
ss

View Replies !    View Related
Effect Pausing...
Would like to know how to Pause and effect.

For example:
I have text that I would like to be visible for a short period of time before the effect takes place (so that it can be read first). how do I do this?

View Replies !    View Related
Pausing A Sound
Hi,
I'm trying to pause a sound so that when it starts again it starts at the point it was paused and not at the start again, I was using the code from the tutorial on this site:

http://www.flashkit.com/tutorials/Audio/Pause_-marius_h-749/index.shtml

but it keeps starting from the start when I unpause it.

Any other suggestions or maybe why this isn't working, I used the exact same code..litterly I copied it from the web page!!

Thanks

View Replies !    View Related
Pausing An Animation
Hello,

Im looking to pause a movie for x secs before continuing on to the end then looping back again.

Ive looked through the actions but i cannot find an option to pause the movie.

Any help appreciated.

Thanks.

BM

View Replies !    View Related
Pausing The Timeline For....
can the main timeline be paused until an external swf has been completely loaded. if someone can help me with this, it'll solve a lot of problems. thanks

View Replies !    View Related
Pausing The Timeline
I too am waiting for a response to this one.
What is the action script format for a simple loop?

for i=1 to 100
next i

???

View Replies !    View Related
PAUSING ON A FRAME
Is there any way i can pause the timeline on a specific frame for 3 seconds then continue again ???

View Replies !    View Related
Pausing On A Key Frame
Hi,

I am trying to make a image pause for around 2 minutes (on a key frame) using action scripts, does anyone know how to do this apart from making a long timeline and having the image apear on that.

Thanks

Bob

View Replies !    View Related
Pausing With Actionscript
Anyone know how to pause using actionscript? This needs to happen with no user input. For instance I might want an attached movie to play, then wait 40 frames before going to the next frame of the root movie. I don't want to do this by adding blank frames to the timeline - I need an actionscript solution.
Thanks in advance for any help.

View Replies !    View Related
Pausing Pages
HI
This might sound a silly question...how can I make a page "pause" for say...five seconds ??
I want the screen to "freeze" then continue. So it looks like a powerpoint presentation..only far better. The sound can continue, thats fine.
I am trying to do a presentation for head of European marketing...this will get me lots of bonus points...anybody help ???
Thanks
vtr1000

View Replies !    View Related
Pausing And Starting
Ok forgive me if this sounds dumb I cant seem to get how to do this even after reading the tutors.

I have a movie that at one point in it I want to stop it, So on the layer that I have stopped it at I have used
stop();

Now what my challange is once the movie is stopped I want the viewer to be able to hit a single key lets say K for instance and the movie to go to the next layer and continue on. How can I code it to get this done. Call the layer it stops on, press and the layer it continues on gofer at frame 755, thanks in advance. Heh just cant make sence of it.

View Replies !    View Related
Help With Pausing Sound
I have a bit of a problem which you guys might be able to help with

I am trying to have an interface that when you play the narration you have the ability to pause it. I have set up the script to initialize the sound in the first frame along with a script I found on a tutorial which counts the number of seconds from the time you start the sound..then when you hit play again it puts that value in the offset field of the mySound.play() line of code.

An example is
FRAME 1
mySound3 = new Sound();
mySound3.attachSound("tradeLync");
// play myMuzak
i = 1;
function timeme () {
now = new Date();
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds();
_root["nowtime"+i] = (Number(hours)*3600)+(Number(minutes)*60)+seconds;
_root.newstarttime = _root["nowtime"+i]-_root.nowtime1;
i++;
}
mySound3.start
timeme();

STOP BUTTON
on (release) {
stop ();
mySound3.stop();
timeme();
}

PLAY BUTTON
on (release) {
play ();
mySound3.start(_root.newstarttime);
}

I have added the lines stop(); and play(); because I want the animation accompanying the sound to stop as well.

Anyone have some advice as to what I might have done wrong. Right now the sound pauses fine the FIRST time but when you hit pause and play again it plays from the point where you paused it from the first time every other time.

If this script is totally off base perhaps someone could suggest an alternate method.

Thanks in advance.

View Replies !    View Related
Pausing Playback
what actionscript do I use to pause the playback head in my movie? I am using Flash 5. I want it to pause for 20 secs and then continue.

thanks

View Replies !    View Related
Pausing Sound?
we have a cd rom presentation thats pretty large (45mins).

each page has a pause / go button - which works great

problem: how do i control the sound in the same way?

steve

View Replies !    View Related
Frame Pausing
I have 100 graphics that I need to create in a type of slide show with each graphic waiting about 1 or 3 secs before the next one comes up.

I go the graphics in by importing the first one and letting flash import the rest so that they are on the time line sequentially, 1 in each frame. But I don't want to have to stretch each sprite as that will take forever.

Is there an action script that will allow me to pause each frame for a determined amount of time then go to the next frame? Is there a better way?

Thanks

View Replies !    View Related
My Movie's Pausing
My movie’s (Astrocalendar 03)is pausing at certain frames where I’ve got a few movie clips stacked up waiting for a button to control their alpha property( this is the only way I could think to do it with my limited scripting ability) it actually looks like I meant it to happen because of where it does it, but I’d like to know how to stop it.

View Replies !    View Related
Pausing Playback?
Ive been trying to pause the playback head for 4secs before moving on.
Flash 5 scripting needed.
Please help!

View Replies !    View Related
Pausing Playback?
Please help!

I need to pause my playback head for 4secs before it continues.
Flash 5...

thanks

View Replies !    View Related
Pausing A Frame
Hi

I want to be able to pause a frame before it moves onto the next frame for say 5 seconds, how do you do this without adding extra frames.

I have made a few tweens on my logo, i then want it to pause before the next frame.

My animation is all on scene 1 and there are no movie clips.

thanks for any help

View Replies !    View Related
Pausing And Sound
I've added control buttons to a flash presentation. Pause, Play, Fast Forward and Rewind. The Fast Forward and Rewind take you to either the next scene or the previous scene. The Pause button stops the presentation at its current location, and the play button resumes play from the spot it was paused. The problem I'm having is that there is speech in the presentation as well. I can make the audio stop when the presentation is paused. But is there a way, that when the play button is pressed, it picks up the audio track where it left off?

Thanks.

View Replies !    View Related
Pausing An External MP3?
I was curious if anyone knew of a way to pause an externally loaded MP3 in Flash MX. I have it streaming to obviously load faster and play sooner but can't figure out if there's a way to pause the thing. I'm a little new to FLash MX but have a decent amount of knowledge in Flash 5 so not totally new to the Flash and actionscripting scene. Any help would be awesome.

View Replies !    View Related
Pausing A Button
hi,

just wandering if there is actionscript for pausing a button so that moving the cursor over has no effect.

thanks

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