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




Is It Possible To Pause A Preloader?



Is it possible to pause a preloader? I have tried using stop();, but that did not work. My intentions are to pause the preloader by pressing a button, then when I press the continue button start off from where the preloader took place. Is this possible to do?



KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 09-23-2005, 12:05 PM


View Complete Forum Thread with Replies

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

Preloader/pause Question
I have a frame.swf with an empty movie clip in it that loads other swf files when buttons are clicked within the loaded movie clips. When a button is clicked, I have a movie clip in frame.swf that wipes over the existing movie clip (wipe_mc) and loads the new movie clip. My problem is, sometimes the movie clip to be loaded is not finished loading before the wipe is complete. I was thinking of putting a pause in the wipe_mc and a preloader in the first frames of the "to be loaded" swf's. Is there an easier way to do this? What would be my code for the preloader?

Also, I was looking around this site and I couldn't find a preloader without a progress bar. I wouldn't mind having a progerss bar that just said loading and was suddle. thanks - Chris
Here's the link I'm talking about... www.cmdsonline.com

Pause In Between Preloader And Movie
Hi,

I have a slight preloading/loading external .swf problem.

I have a preloader that works correctly - loads by percent, reaches 100, then loads an external .swf file. However, especially on slower connections, the preloader loads to 100%, a blank screen appears, and *finally* several seconds later loads the actual first frame of the external .swf (i.e., there's a blank, white screen during these several seconds, ack!).

Has anyone else had this happen before? What did you do to solve the "blank screen" issue in between the first preloading .swf file and the external .swf file it loads? I'm pretty sure the reason it takes so long to load is that the external .swfs are rather large: 800k-1MB (due to high quality, non-looping audio files inside each, that I cannot change nor loop, but are being streamed).

Thanks in advance for your help!
Amanda

20sec Pause At The End Of The Preloader...
what am i doing wrong. my preloader works and the page isn't anything fancy just once it gets to the end of the preloader it has like a 20s pause. also once it's loaded when i click on buttons that open new pages running movie clip objects it pauses just before it goes. I am using comands like gotoAndPlay and onRelease for those. What should i do to get smooth animation.

--tyler

Pause Before Preloader Starts - Why?
Is this just the browser trying to find the file?

eg.
I have a flash site that loads other swf movies from the server. Like I have a gallery for example that if you press a button will load an swf of the image in a bigger size on stage. Now the image swf has a preloader on it.

I am noticing that there will be a pause before the preloader will start and when it does start, its like 50% of the swf data has already loaded.

My preloader starts on the first frame though, so why does this pause happen. I mean the preloader is only a little bar and would not take more than a second to load.

I am noticing this happen on alot of flash sites that have to load movies on top.

[F8] Preloader Finished, But Still Pause Before Main Movie
Hi all,

After searching (I think) every possible forum on the internet about the problem I am encountering (and not finding a solution), I decide to post it. It is about preloading and I know this topic is discussed in great detail and many tutorials etc are available, but none of them solved my solution.

I will describe the movie set-up as I cannot post the movie due to db links and other sensitive information which is in there at the moment.

The movie is reasonably complex with database links and many MCs with an attached class file in AS. These class files containing the logic for processing information on that particular MC. Some of these MCs contain on screen components as combobox, steppers, checkboxes etc.

Anyway, this is what the first 10 frames of my movie contain:
frame 1 - Nothing
frame 2 - A preloader, very simple: just a text field showing progress and the following code:

onEnterFrame = function() {
var percentLoaded:Number = // wraps to next line:
Math.floor(getBytesLoaded()/getBytesTotal()*100);
if (percentLoaded == 100) {
delete(onEnterFrame);
gotoAndPlay(10);
} else {
loadStatus.text = "Loading: "+percentLoaded+"% done";
}
}

stop();

Note: I tried many different preloaders, but to get this working i went back to a very basic one.

frame 3 - nothing, but this is my export frame for classes in publish settings
(yes, I have turned the 'export in first frame' off for all exported items)
frame 4 - nothing
frame 5 - here I copied all instances of the mcs, components etc to preload them.
frame 6-9 - nothing
frame 10 - This has the layout, main movie and all components etc, i.e. this is where it starts


Now here is what happens: When I start the movie, the preloader screen does come up, it is almost immediately finished. But it does actually preload all bytes and frames required. However, it does still halt for a few seconds before playing the main content.

At the moment I am tearing my hears out for the last couple of days and cant find the problem.

Any help is greatly appreciated, many thanks in advance for reading this....

Shared Font Library Causes Pause After Preloader Loads Main Movie
Man I never saw this coming. I finally built my first preloader for a small navigation banner and the shared font library it uses is messing up the preloader. Basically, after the main movie loads, the preloader disappears and there is a pause while the shared font library downloads - the dumb thing is like 21KB*. On a 56K modem, this takes about 8 seconds. What can I do?

*
Code:
Font Name Bytes Characters
---------------------- --------- --------------
Verdana 20479 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ˆ˜–—‘’‚“”„†‡•…‰‹›€™

Pause
Hey guys, i just need a simple timer to put into my for loop. i can make one easily in C but its a little more difficult in flash 5 cause im newer to it than i am to C. Can someone help me out? just a timer where it will wait for a desired number of seconds that u can easily put into some scripting. thanks

Pause MC
I have several movies on the stage. They are controlled by the "with" statement to play in sequence. The problem is how to stop and and start them. This means I have to create a variable to tell me what movie is currently playing and at what frame. Please help I have tried everything for days !!!

Pause
Here's a little something that's been buggin me that I need to figure out.
If you go to certain sites such as http://www.faintstatic.net/ and go to his portfolio, and choose one of his projects to launch.
You get a pop up.
I do it all the time myself. No problem.
The question is in that when you return, his original site has been paused. Music, movie clips, and all. I assume this is done for the benefit of us with slow processors on our machines, so that the new thing that's launched doesn't have to compete with the other in the background.
Can someone tell me what the cleanest way to do this is?

P.S. Does anyone have a favorite hosting company?

Thanks as always. John

5 Second Pause?
I was wondering if there was any way to pause a Flash 5 movie for maybe 5 seconds or so, and have it carry on with the rest.

i.e
say I have some text in the movie that i want people to be able to read. Is there a script that will pause the peice, or maybe loop a 1 sec peice 5x and then carry on with the rest of the movie??

I hope this is clear...

TIA.

Pause Mc
I have a mc in my main timeline. I would like to create a button that allows the user to pause the mc at anytime and then press the pause button again to allow the movie to continuing playing.

Thanks

J

I Need A 30 Sec Pause...
G'day trendsetters...

I have a movie (15 frames per sec) where I need a 30 second pause along the timeline. Rather than create 450 empty frames, is there an easier and more efficient way?

I have seen the answer to this question in the forum before but I can't find it!

Cheers

Pause?
can you pause a mc for a set amount of sec.?

Pause For 1 Second
Hi ppl, wanna ask does anyone know the actionscript to pause for a second, mi story is this. There is 2 sound file in my game, at the start of the game, a slowMusic file will be played, after a time limit is reach, the slowMusic will stop and another fastMusic will be played.

Problem:
--------
The slowMusic does not stop fast enough, so what I have is that there will be a mix of both the slowMusic and fastMusic, making it sound real bad. So, that's why I want to pause a second before the playing of the fastMusic.

Any suggestion to solve this problem is welcome and thz for reading.

I am using flash 5.

Pause
I want to pause my movie.... and any movie clips playing when paused this is what ive done... i set a variable if = 0, telltarget each movie clip and stop... variable = 1 telltarget each movie to play and it does that but i only want to play the movie clips that were running when paused!! any better solutions out there...

thanks alot!

I Can't Get It To Pause Please Help
Im using Flash 5.. and i want to know how do you create a button at the begining of a a flash vid to "start" it.. (like press the button to start the movie..) and also how create a reply button at the end.. if anyone could help.. that would be great!! thanks

I Need To Pause
anyone no how to pause, or delay a movie for a certain amount of time or ticks? What actionscript do I need? Thanks for the help!

Pause
Hi,

I'm new to the autoacripting thingy and preloader. I'm wondering if there is a way to add a 3 sec pause to the end of the preloader. My scene 2 is pretty small, so on T3 line, my loading page doesn't even show up a bit. but i want people to see my loading page though...

Or maybe there is a way to preload scene 2 as well as scene 3? or another swf file?

thanks for helping

Pause?
is there a way to tell the script to just WAIT 5 seconds and THEN execute? like a pause action or something?

Pause
If i want to pause a movie for say 5 seconds at the beggining, how can i achieve this? Do i use actionscripts?

Pause Mc
say I have MC with animation loop

can I pause it for 10 seconds???

How Can I Pause...
Flash5
I want to stop something from happening too quickly, by pausing my AS for two seconds. How can I do this (preferably without adding more keyframes or movieclips)?
Ta!

Pause?
Is there such a thing as a "pause" feature in Flash MX?? i want to pause the movie for a couple of seconds and resume it. Is there another way than spacing it out over all the frames you want it to cover or by using the stop and goto actions?? Thanks!!

Pause A MC
I have a movie clip that contains a drop down menu. I have the movie clip falling down the screen. I need to stop the menu on rollover then continue falling on rollout. I am not very good with action scripts, so could someone help me. I have attached my flash file for further reference.

Here is a link to a zip file in case the attachment didnt work.

http://home.indy.rr.com/coxdcc/flash/

or you can email me at jcox-dcc@indy.rr.com and I can send you the flash file.

Thanks for any help you can give . . .

Pause
I'm trying to figure out an elegant way to pause my movie. It wouldn't be that hard to figure out it it were just an animation, but I also have 2 frame counter loops all over the place for pacing. If someone hits the spacebar to pause, and the movie is in the middle of the loop at the time, then how can I make sure it will stop? And when they hit spacebar to unpause, I would need to skip the rest of the counter loop. Any ideas?

Pause
Hi,
i want to pause my main movie for 25 frames i forgot how to do it...hope you can help me..

How Would I Put A Pause In This
Hi I want to put a slight pause in this slideshow. a couple seconds. Here's the code. I want it so it fades in a pic and then pauses for a couple seconds and then the next pic fades in.

_root.onEnterFrame = function(){
for(t=0; t < used; t++){
_root.slide[t]._width = 200;
_root.slide[t]._height = 150;
if(slide[t]._alpha < 100){
slide[t]._alpha += 5;
}
-->>>>I'm guessing the code would go here<<<-----
}
}

Thanks a lot
Dave

How Would I Put A Pause In This
Hi I want to put a slight pause in this slideshow. a couple seconds. Here's the code. I want it so it fades in a pic and then pauses for a couple seconds and then the next pic fades in.

_root.onEnterFrame = function(){
for(t=0; t < used; t++){
_root.slide[t]._width = 200;
_root.slide[t]._height = 150;
if(slide[t]._alpha < 100){
slide[t]._alpha += 5;
}
-->>>>I'm guessing the code would go here<<<-----
}
}

Thanks a lot
Dave

Pause
I think I already know the answer to this but, is there a way to pause a sound in flash? I have an instance where the client would like to pause a presentation and then unpause and continue with the sound at the same point it left off, similar to video control but within flash.

thanks for any help in advance

I Need A Pause :)
Hi,

I thought I wasn't a newbie that much, but I guess I am

I have a for-loop to fade in a movie.
But because I need the fade to in a movie-instance, but it needs to go way slower. So I probably need something as a pause function or whatever...

Please help me out

thanks,
PD

Pause
I have seen this question posted up before but cannot find it.

I want to pause one of my movie clips and continue after so many seconds, so i dont have to create loads of frames for the pause.

Thanks

Pause
I have seen this question posted up before but cannot find it.

I want to pause one of my movie clips and continue after so many seconds, so i dont have to create loads of frames for the pause.

Thanks

Pause
i need to pause movieclip for one second before it plays to allow movieclip2 to finish, but i only need it to be paused if movieclip2 hasnt been initiated. if it hasnt then i need movieclip to just play normally. and thats it. any suggestions?

Pause
Is there an easy way to pause a complex game?

Pause
I have an existing animation which I would like to insert a new segment into the beginning.

Instead of moving frames around, I was hoping I could pause the timeline, use a movieclip to

insert the segment, then when the segment is done, resume the timeline the frame after the

inserted movieclip...can someone help be figure how to do this? Thanks in advance.
JH

Pause?
Is there a way to make a movie pause on a certain from for a specified amount of time and then proceed to the next frame or frame label?

A Brief Pause...
Hello!

I was wondering if anyone could suggest a way to insert a brief pause in a movie using action script.

Basically, what I'm doing is causing a window to fly out and fly back in, but all with action script. I tried this:


Code:

on(press){
_root.contentMC.newX = -900;
_root.contentMC.gotoAndStop("ServicesApproach");
_root.contentMC.newX = 20;
}
Naturally, that just gives it the bearest of twitches, if that.

So what I want to do is give it enough of a pause that the thing can move a bit. with action script.

Any suggestions?

Thanks!

Oni

Pause
Hello, I need a pause/play function for my movie clip that loops from start to beginning. Once user clicks play again I want it to continue the loop.

I'll quickly break it down like this


Intro.swf>Menu.swf>Main.swf

Those load from loadmovienum(0) to (3) in order shown above.

Can anybody help out with some codes?

Pause A SWF
Hi,

I have a timer and I need to add a pause /play button.

I can not use _root. and this has to do with the fact that I loading the SWF into presentation software that does not like the _root. go figure.

is there a way to simple pause and play the SWF?

Thnaks

Ponyack

About Pause-ing....
Hi there, my very best frinds like Flash Gordon and others...how are you doing!?

i have a king request.....

i found the following piece of code somwhere and is about the slideshow....

i am trying to figure out how to pause and continue the slideshow with a click on a pause button....

"nextButton" in the code just goes to the next jpg on each click.....BUT

my question is How to create a "pauseButton" that can stop and continue the whole slideshow at any current jpg....??????????

Would you be so kind and please help me out....Thank You very very much

the code is as follows:
-------------------------------------------------------------------------
swfArray = new Array("SB1.jpg", "SB2.jpg", "SB3.jpg", "SB4.jpg", "SB5.jpg",
"SB6.jpg", "SB7.jpg", "SB8.jpg", "SB9.jpg", "SB10.jpg",
"SB11.jpg", "SB12.jpg", "SB13.jpg", "SB14.jpg", "SB15.jpg",
"SB16.jpg", "SB17.jpg", "SB18.jpg", "SB19.jpg", "SB20.jpg",
"SB21.jpg", "SB22.jpg", "SB23.jpg");

this.createEmptyMovieClip("target1",1)
this.createEmptyMovieClip("target2",2)

target1.loadMovie(swfArray[0]);
target2._alpha = 0;

activeTarget = target1;
currentIndex = 0

this.onEnterFrame = function() {

if (obj1._alpha > 0) {
obj1._alpha -= 10;
}
if (obj2._alpha < 100) {
obj2._alpha += 10;
}
};

nextButton.onRelease = function() {

if (activeTarget == target1) {
obj1 = target1;
obj2 = activeTarget = target2;
} else {
obj1 = target2;
obj2 = activeTarget = target1;
}

if (currentIndex < swfArray.length-1) {
currentIndex++
} else {
currentIndex = 0
}

obj2.loadMovie(swfArray[currentIndex])
if (swfArray[currentIndex]._xscale >= 600) {obj2._x = -200;}

obj1.onEnterFrame = function () {
if (this._alpha <=0 ) {
this.unloadMovie();
delete this.onEnterFrame;
}
}
};

Help: Pause
ok, the code works perfectly, yet it wasn't what i was looking for, lol. I was that i wanted the

number-number2

to execute only once per 3 seconds.

Pause It?
Hello all,

My first time here!

I am stumped on probably a very easy thing to do in Flash.

All I want is to tell a button to goto a movieclip and delay playing it for a few seconds or milliseconds.

Other than inserting hundreds of blank keyframes, how can I do this?

hope you can help

Pause Btn->?
hello i am wondering if any of you flash gurus can help me with this code ..

Code:
clicked = "play";
my_btn.onRelease = function() {
if (clicked == "play") {
_root.stop();
clicked = "stop";
} else {
_root.play();
clicked = "play";
}
};
it works fine to pause the _root but is there are better way for this code to be written ?
thanks for your help !
timo

Pause
Hi,
I have a preloader what i wanna do is add a pause of a few secs before the %counter starts ticking

FLV Pause
Can anyone tell me why, when playing back an FLV video, it refuses to play back unless after it has finished loading 60 or so frames?
It then recurringly pauses at certain intervals?
Is there a way of configuring FLVs (maybe keyframes while creating the video) so as to allow continuous playback ie frames loaded=frames played back

Thx a bunch in advance

Pause
Can anyone give me an example of the following code in use...

my_ns.pause(); // pauses play first time issued
my_ns.pause(); // resumes play
my_ns.pause(false); // no effect, play continues
my_ns.pause(); // pauses play


Thanks in advance...

Pause Within A Pause?
Hi there,

I have a movie of pictures changing, the picture changes into another one over a 30 frame motion tween.

I then 'pause' the newly tweened picture for 3 seconds, and then enter into the next tween, and so on...

I've added two buttons to my movie, a 'pause' and 'play' button so that you can stop the movie and look at the
newly tweened picture.

However, the pause button only seems to work when you click it during the tween. When the movie is
paused for 3 seconds between tweens, the pause button does not work?!?

the code i'm using just now for my pause button is
on(release){
stop();
}



Any ideas what code i should put in my pause button so that it stops the movie even during a timed pause?

thanks

FLV Pause
Hi i have an embedded FLV file in my flash move. i want to pause the FLV file on frame 30 then continue play on frame 50

how can this be done

many thanks

Pause All
Hello
I have been trying for a long time to find a code to pause all the item in an animation at once (sound, animationd, etc) and all the ones i did find were confusing and nobody walked me through how to stream the sound, or whatever its cald where you not only put it in the frames but you attach it to them and i was wondering could anyone help me out on this by attaching codes, and telling me how to do that thing with the sound.

Thanks a lot.

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