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








Help Pausing My Movie :)


I'm using the following code to allow the viewer to stop the movie and return it to the first frame of scene one:

on (keyPress "<Space>") {
stopAllSounds();
myMusic.removeMovieClip();
gotoAndStop("firstScene", 1);
}

What I also need (and which I can't figure out) is how to allow the user to "pause" the movie... that is, stop the movie on it's current frame by hitting the space bar.


Any thoughts?

Cheers!
Jen




FlashKit > Flash Help > Flash ActionScript
Posted on: 11-10-2005, 12:10 PM


View Complete Forum Thread with Replies

Sponsored Links:

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 A Movie
I was wanting to know if you can have a button that would pause a movie, and beable to have a play button to start up where it left off?

Thank you everyone

View Replies !    View Related
Pausing A Movie
Is there any way in flash you can pause a movie??

for example
you got type flashing in and out of focus, then the type stops on screen
for exactly (30 seconds) and then carries on playing again, or another
bit of animation appears.

What I'm trying to say is I want to stop a bit of animation for a
certain amount of seconds or minutes and then playing again.
any scripting in flash that does that??

ps don't want to add a load of frames and guess how long coz different machines will play at different speeds needs to be a certain time

View Replies !    View Related
Pausing A Movie...
Is there a way to make a button which "pauses" your movie, and then resumes upon hitting it again?

View Replies !    View Related
Pausing A Movie
anyone know how i can get a movie to play 10 frames then pause for 20 seconds then move onto the next frame without using a load of blank frames.... so basically putting a time delay in with code on a frame action

View Replies !    View Related
Pausing My Movie
Hi Guys,

I am looking for a way to pause my entire movie.

I have created the buttons play and pause and applied the actions


Code:
on (release) {
_root.stop();
gotoAndStop(2);
}


and


Code:
on (release) {
_root.play();
gotoAndStop(1);
}


BUT this only stops the main timeline and all the other movieclips still play.

I really need a way of stopping the whole movie as its needed to talk through a presentation .

Please can you help out a man in need.

cheers

View Replies !    View Related
Pausing A Movie
I haven't done a lot of ActionScript, so some help would really be appreciated.

I have a movie with thumbnails defined as movie clips scrolling from right to left. I would like to allow users to pause the movie by mouseover on any of thumbnails.

I called tech support, the guy suggested I create movie clips and use Listeners to get the desired effect. (I was going to start by creating each thumbnail as a button.)

I've been reading everything I can on listeners online, in the help section, etc. I've been checking all of the Actionscript code in Flash trying to find how to start the script, but I'm at a loss.

My movie is currently at http://www.haggertycompanies.com/test/home.htm.

Could anyone help me or at least steer me in the right direction?

Thanks.

View Replies !    View Related
Pausing A Movie
Hi,
I have a movie clip moving on the stage. I want it to pause what it's doing for a second or two and then continue. I'm using script not manipulating it with tweens. Any ideas??

View Replies !    View Related
Help Pausing A Movie
I have the following code:-

if ((horowitz_2 && horowitz_1)== 2) {
set("horowitzTotal", "4");
} else if ((horowitz_2 && horowitz_1)!= 2) {
set("horowitz_1", "0");
set("horowitz_2", "0");
tellTarget ("mc_horowitz") {
gotoAndStop(1);
_root.txt._visible=false;
}
tellTarget ("mc_llyfr_horowitz") {
gotoAndStop(1);
_root.txt._visible=false;
}
}

I want my movie to pause for a couple of seconds before performing the tellTarget (gotoAndStop) action. Any ideas how I would do this.

Thanks.

View Replies !    View Related
Pausing A Movie
I have the following code:-

if ((horowitz_2 && horowitz_1)== 2) {
set("horowitzTotal", "4");
} else if ((horowitz_2 && horowitz_1)!= 2) {
set("horowitz_1", "0");
set("horowitz_2", "0");
tellTarget ("mc_horowitz") {
gotoAndStop(1);
_root.txt._visible=false;
}
tellTarget ("mc_llyfr_horowitz") {
gotoAndStop(1);
_root.txt._visible=false;
}
}

I want my movie to pause for a couple of seconds before performing the tellTarget (gotoAndStop) action. Any ideas how I would do this.

View Replies !    View Related
Pausing Loaded Movie
i loaded a .swf file via the load movie command into an empty mc. it all works fine so far. the loaded movie is played but here is the problem. it is played over and over again but i need to pause/resume it via button press and i need it to stop when it has played once. how can control the loaed movie? using telltarget for the empty mc it is loaded into obviously won t work.
thnx for ur help

View Replies !    View Related
Pausing Movie For 5 Seconds
Does anyone know how I can pause my movie at lets say frame 10, have it wait there for 10 seconds, then continue to play.

View Replies !    View Related
Pausing A Movie Clip.
i'm a student taking my first flash class.
I was wondering how to pause a movie clip on roll over. It would be for a photo section. the pictures loop across the screen in a vertical bar. The bar would pause on roll over. then you can click on it and the full size pic will be loaded.
i was referencing the final fantasy site. their url is http://www.finalfantasy.com. click on enter, then on gallery, then on the "A" button. the photobar animates in then in loops.

if anybody could help or point me in the right direction that would be great!! thanks.

View Replies !    View Related
Pausing A Movie With Code.......?
Is it possible to set up a pause in my movie with a bit of script? I'm thinking that I'd like to have a five second pause in the movie by getting the movie to stop, and then using a bit of maths, something like; b=a+1 (repeat), when b=100 then play, - you know the sort of thing I'm getting at.

Rob.

View Replies !    View Related
Pausing And Continuing During A Movie.
I'm looking for answers here. Heelp me.

1. How do I pause a movie while it is playing (perhaps during a slideshow) then be able to continue the movie again.

I can make a button that stops a movie. But how do I make this same button play the movie again? Do I have no other choice than to have 2 seperate buttons. I.e. one for pausing and the other for continuing? Is there a simpler Action Script?

2. And one more thing. After publishing my movie and opening the HTML file, the movie plays in the browser window, I want it to have a quit button which closes the browser window. How do I do this as well?

View Replies !    View Related
Pausing A Movie With GetTimer?
Hey. I need to pause a movie for like 40 seconds at certain frames... then I need it to play. How can I do this. I can use getTimer right? If so, how? Thanks!

View Replies !    View Related
Pausing A Movie In Flash MX
n00bie question:

How can I pause a movie for about 4 seconds and then have it continue playing. I only know the basics of Action Script right now. Help would be MUCH appreciated.

Thanks!

View Replies !    View Related
Pausing Or Delay In Movie
I haven't really been using Flash 5.0 very often. A few days ago, I decided to make a flash video for the heck of it. I do not know very much about flash, but I know the simple basics.

But I have a problem with a certain frame. It has text in it and I was wondering instead of making several frames of the same thing for a delay-type concept, how can I pause the movie for the viewer to watch that frame and then having the movie proceed after a set time?

View Replies !    View Related
Pausing Movie Clips
I have a flash movie that contains several movie clips. Is there actionscript that will allow me to have a pause button on my main timeline that will pause the movie at any point, even during the movie clips?

View Replies !    View Related
Pausing A Flash Movie
Hi Everyone!

I am trying to figure out how to pause a flash movie via a button and then have that button change to a play button and when clicked it it resumes the movie from the place it left off. Is there a way to do this and if so can you please point me in the right direction.

Thanks in advance,
Danielle

View Replies !    View Related
Pausing Sound And Movie
I am attempting to pause streaming audio along with the movie with a button. As well I am also wanting to continue playing the movie and sound from where it left off. The buttons are not located within a movie. And the sound would be on the main scene and not linked from the library. Any thoughts?

View Replies !    View Related
Pausing A Movie Clip
Hi!

I did a forum search to find my answer for this, but none of the suggesitons worked....

I have a button on the stage in the main timeline. Filling the background of the stage there is a looping movie clip.

My button's code is as follows:

on (rollOver) {
tellTarget ("/rollOverBlue") {
gotoAndPlay("Blue1");
}
}
on (rollOut) {
tellTarget ("/rollOverBlue") {
gotoAndPlay("Blue2");
}
}

I want to add an "On (Release)" which will pause the looping movie clip in the background. It is in the the bottom layer on the main timeline.

Any suggestions? Thanks in advance.

View Replies !    View Related
Pausing One Movie And Playing Another
hello

i have one swf playing level1 and another playing level5 when i click a button
they are interfering with each other and level5 is unbearably slow

but if i pause the base movie for a number of seconds while level5 swf plays its perfect

i have this action asigned to a button:

on (release) {
unloadMovieNum(5);
loadMovieNum("si.swf", 5);
for (i=0; i<50000; i++) {
gotoAndPlay(nextframe);
}
}

but its pausing both movies instead of just the level1 movie

i hope this makes sense
and somebody can help me
as i've been going round in circles with this for ages

thanku

sx

View Replies !    View Related
Pausing The Movie With All Mcs Inside?
Hi,

I am working ona flash presentation and client wants me to add a button to pause the presentation.I searched the flashkit and found that as from "iaskwhy";


Quote:




on (release) {
count++;
if (count % 2) {
_root.stop();
} else {
_root.play();
}
}







That works fine, pause the movie but all the movieclips in that frame keep working Is there an actionscript that also pauses ALL movieclips and graphics in the movie?

Thanks.

View Replies !    View Related
Help: Pausing External Movie
I have an external movie being loaded into a clip and I'm trying to figure out how I can pause and start that external movie at the push of a button. I've tried using clip.pause() and the movie continues to go. Thanks.

View Replies !    View Related
Pausing Parent Movie
I'm looking for a way to pause the parent movie while it loads a movie clip using the loadmovie command. Basically, I've got a main movie that contains start/stop/play buttons and a text navigation menu. When you select a text navigation link, loadmovie is invoked, loading the respective movie into a blank container within the parent movie. The problem I'm running into is that while the mc loads, the parent movie continues to play, which then puts everything out of sync.

I've done some browsing in the forums and have come across setInterval, but I'm not sure if this is anywhere near where I should be looking. Could it possibly be tied to the preloader in each mc? Something like pause until the mc loads, then continue? I'm using Flash MX. Thanks for any help in advance.

-pete

View Replies !    View Related
Pausing A Movie Clip
I have a button where when clicked, should pause a movie clip running in the same timeline.

is there a way to do this?

Cheers

View Replies !    View Related
Pausing Flash Movie
Hi.
I load a movie clip on top of my movie which is fine. But now I have a new problem. How do I get the original movie to wait for the input from the new clip before it continues? The input movie has a submit button and a input text field. How do I get the value from this movie into this original? The original movie is only one frame.
Is it using event listeners and if so how? Is there a better way? I would rather NOT use popup windows if possible.

All suggestions are welcome.

Thanks.
mars

View Replies !    View Related
Pausing Movie For A Few Seconds
Hi All,


This probably asked already. However due to the pressure I have to finish my project, time to dig in this vast forum threads is a luxury I don't have right now, so here I am writing you

Basically, I just want to pause the movie using a script like:


function wait(secs){
//some small code here to make the
//movie pause for :secs: number of seconds.
}

so along the timeline, I'll just call:

wait(10);

to make it wait 10 second before continuing to play instead of stretching the frames.

Any Ideas? Thanks!

View Replies !    View Related
Pausing A Movie Through Scripting
I have found that when you tell a Flash animation to stop playing, it only stops the top-most timeline, and any movieclips are left playing.

What we have created is a Flash animation that may have one or more movieclips in it. The animation is playing within a web page(displayed in IE) and is controlled by JavaScript. The whole package is a training piece that use HTML to display images and text and has a navigation panel to move through the training. Therefore, the navigation panel also controls any Flash animations for pausing and resuming.

This arrangement works fine for Flash animations that do not contain any movieclips. If there are movieclips they do not get stopped when the StopPlay method is used. It appears that in additon to the StopPlay method, the TStopPlay method must be used to stop each movieclip. Then to resume one would have to start each movieclip individually and then start the main timeline. This seems rather cumbersome, especially if there are some movieclips that do not play the entire length of the animation, you would then have to check the current frame location and know which movieclips to start again.

Is there a way of creating a function in Actionscript such that when the main timeline stops, it will trigger an event an call a function that will then handle pausing all active movieclips. And the same for when the movie begins to play again?

View Replies !    View Related
Pausing A Movie With Actionscript
Hello,

I have a slideshow (basically 10 frames with an image in each) and I would like to know if I can place a simple bit of actionscript in each frame to make it stop and wait for 10 seconds before moving on to the next frame, then waiting 10 seconds again etc.
I have tried a few versions of this using info from here and elsewhere but when I come to view them on my site the pauses do not happen - the slideshow is a .swf that is loaded into another .swf if this helps.

Thanks for your time,

Tim

View Replies !    View Related
Help: Pausing External Movie
I have an external movie being loaded into a clip and I'm trying to figure out how I can pause and start that external movie at the push of a button. Thanks.

View Replies !    View Related
Pausing Main Movie..
Hey oldnewbie,

Thx for ur quick rply.

I tried ur code. But its works not.

Pls have a look at my trials ( .fla) to better understand my situatiion.


Once again , i thk u very much.



Jsam.

View Replies !    View Related
Pausing Main Movie...
Hey oldnewbie,

Thx for ur quick rply.

I tried ur code. But its works not.

Pls have a look at my trials ( .fla) to better understand my situatiion.


Once again , i thk u very much.

View Replies !    View Related
Pausing Movie Clips
It there a way i can pause the animation in one movie cilp until another movie cilp has loaded

this is what it want to do:
the firts movie clip is loaded into the main stage the you hit a button, the animation starts... half way through it pauses, then loads another movie into a diffrent container, it waits for the second movie to be full load the finishes the animation..

i can do everything above execpt get it to pause utill the second clip is loaded

View Replies !    View Related
Pausing End Of Movie Clip
I am trying to pause the end of a movie clip, not with buttons for the user, within the timeframe. If I try to extend the movie it starts over, if I copy the last frame of the movie the first frame always shows up. I am trying to do is hold the last frame of the movie for about 10 seconds then continue on with the animation

New to Flash
working with Flash MX Professional 2004
Thanks in advance!

View Replies !    View Related
Pausing A Movie On Mouse Over,
Hi

I have a movie clip of boxes moving up the screen, I want the tween to pause when the user moves their cursor over the movie and start again when they roll off.

could someone please tell me how i could do this?

Cheers,

View Replies !    View Related
Pausing Movie Clips
It there a way i can pause the animation in one movie cilp until another movie cilp has loaded

this is what it want to do:
the firts movie clip is loaded into the main stage the you hit a button, the animation starts... half way through it pauses, then loads another movie into a diffrent container, it waits for the second movie to be full load the finishes the animation..

i can do everything above execpt get it to pause utill the second clip is loaded

View Replies !    View Related
Pausing A Movie Clip
i have a banner im making and want to have various things fade in and out and time intervals. i want to play a PAUSE between effects. i know i could probably do this on the timeline. however, i want to use actionscript. anyone have any ideas ?? thanks for anyones help in advance !!

View Replies !    View Related
Pausing A Flash Movie
Hi everybody,
I was wondering what syntax I can use to pause a flash movie. I have a number of slides that I'm displaying one after the other. I want to include a button so that the user can pause and look at the picture when they want. Any help would be appreciated.

Thanks

View Replies !    View Related
Pausing Main Movie With Clip
Hello,

This is probably on here somewhere but I am unable to find exactly what I need so I hope someone can help.

(1)I have a movie that spans about 20 scenes and I want to have the option of an expandable menu on the bottom. When that menu is expanded I would like it to pause the movie wherever it is and have the menu options come up over the frozen movie as a background. There is also sound that would have to pause.

I have another related question too:

(2)In another movie I also have a menu that expands when clicked. This I would like to stay expanded when the user goes to next scene however it returns to its collapsed position. Is there a way to have Flash remember the state it was in for the previous scene?
Here is the url for the second question:
www.folkphotography.com/index_files/dogs.html


Thank you for any tips.

View Replies !    View Related
Movie Pausing In Test Mode
Another strange one to me....

The movie is pausing when I test the movie after a few frames. This has not happened to me before..

Any suggestions...

PS- I do not have a stop(); action placed in the frame.

View Replies !    View Related
Help Needed Pausing Movie For A Few Seconds.
Hello coders,I have a little problem I want to pause for a few seconds a movie that I created and then play ...i know it can be done I just never needed to untill right now..the pause has to be made in action script so I don't modify the rest of the movie.

Thanks for reading.

Best regards,
KatSOft.

View Replies !    View Related
Pausing, Looping, Movie Controls ?
Hello

Im really new with flash. I am having a problem with my animations. I would like to know how you have an animation play once and stop at the end with a "play again" button. I have a website (www.quikshop.com.au) and the animation just loops over and over again. Also how do you have part of an animation play once and the rest of it loop? I am currently using MX04.

Thanks in advance.

View Replies !    View Related
Pausing A Movie Object On Rollover
Hi all,

I have a movie (a rotating globe made up of 20 frames). I want to be able to 'pause' the movie on rollover. Can someone please help!

I know this is probably really easy, but im new to this! It's my first post!

Leissa

View Replies !    View Related
Pausing A Movie To Get Screen Grags
Really basic question, but it is driving me crazy. What is the best way to preview a .swf while in Flash and pause it as you are viewing it so that you can get screen grabs? I work on a MAC and I've found out that if i "control click" while viewing the movie stops but as soon as I let go of anything it starts back up. Any ideas?
thanks in advance

View Replies !    View Related
Pausing A Movie Clip When A Mouse Goes Over It.
Okay, so there is a movie on the timeline, and at the end of it there is an action frame that stops the movie so it doesn't loop.

However, the last frame on another layer is also a movie clip, of a rotating circle. This rotating circle has buttons on it that will load other parts of the site. I want the circle to stop rotating whenever someone puts their mouse over it.

How can this be accomplished?

Please keep answers simple, precise, and easy to understand. I'm an artist and I don't know code very well.

View Replies !    View Related
Pausing The Loaded Movie 5 Secs
This script pauses 5 secs the timeline.. if I put that on a frame in main
timeline
works ok...

// Set the following two values for how long you want to
// loop, and how many frames to loop:
pauseDuration = 5*1000;
framesInLoop = 1;
if (startTime == null) {
startTime = getTimer();
gotoAndPlay (_currentframe-framesInLoop);
} else {
lapsedTime = getTimer()-startTime;
if (lapsedTime<pauseDuration) {
gotoAndPlay (_currentframe-framesInLoop);
} else { startTime = null;
}
}


However I need to pause a swf loaded into level1 when a button is pressed...
I couldn't customize it to make it work...
I thought that changing the gotoAndPlay for level1.gotoAndPlay would be
enough
but it is not... can someone help me please?

Thank you!

View Replies !    View Related
Pausing A Movie Clip When A Mouse Goes Over It.
Okay, so there is a movie on the timeline, and at the end of it there is an action frame that stops the movie so it doesn't loop.

However, the last frame on another layer is also a movie clip, of a rotating circle. This rotating circle has buttons on it that will load other parts of the site. I want the circle to stop rotating whenever someone puts their mouse over it.

How can this be accomplished?

Please keep answers simple, precise, and easy to understand. I'm an artist and I don't know code very well.

View Replies !    View Related
Pausing The Loaded Movie 5 Secs
This script pauses 5 secs the timeline.. if I put that on a frame in main
timeline
works ok...

// Set the following two values for how long you want to
// loop, and how many frames to loop:
pauseDuration = 5*1000;
framesInLoop = 1;
if (startTime == null) {
startTime = getTimer();
gotoAndPlay (_currentframe-framesInLoop);
} else {
lapsedTime = getTimer()-startTime;
if (lapsedTime<pauseDuration) {
gotoAndPlay (_currentframe-framesInLoop);
} else { startTime = null;
}
}


However I need to pause a swf loaded into level1 when a button is pressed...
I couldn't customize it to make it work...
I thought that changing the gotoAndPlay for level1.gotoAndPlay would be
enough
but it is not... can someone help me please?

Thank you!

View Replies !    View Related
Pausing And Running A Movie In Flash
hi
how can i pause a movie (including sound) in flash..I tried stop all sound sound..then the sound and movie stops(put sound track in stream mode)..
thatz part is working properly...but it wont work when an pre -defined object is inserted to the scene..then the sound wll stop but not the movie...
wll anybody help to solve this problem
i want a script for buttons that work buttons like a vcd player ie.play, stop,pause,mute sound
thanks
mcgrath

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