A Pause Issue
stop(); offset = 2; timerInt = getTimer(); initialTimer = timerInt+offset*1000; onEnterFrame = function () { currentTimer = getTimer()-initialTimer; if (currentTimer>=timerInt) { play(); } };
allows a pause that works perfectly, as I have a shape tween mask that reveals a photograph, and then uses a mask to reveal a second image. However I place a stop(); at the last frame, and for some strange reason the effect repeats itself, dispite my stop action at the end frame. Any ideas you guru's?
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 08-18-2003, 01:33 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Wierd Pause Issue
Basically when you go to the site below you'll notice that when you click on the "pix" button, the pictures will not show up right away. But, if you click on the "band" button (after first clicking on the "pix" buutton) and then back onto the "pix" button, the pictures are somehow there. I just can't figure out why they don't show up without the back-and-forth.
Here is the link to what I was talking about:
http://www.fenixphoundation.com/temp/newfp.html
Here is the link to the files:
http://www.fenixphoundation.com/temp/
thanks
nik
[CS3] Still Having Clock Time Zone Issue---and Dynamic Text Box Issue
I'm trying to do a clock that displays another time zone. The problem I'm having is that instead of running on a 12 hour clock, its on a 24hr one.
any insight as to how I can change the time?
Currently the clock is displaying
23:00p-Jul.22
I want it to display 11:00p-Jul.22
var dayText:String;
var dateText:String;
var monthText:String;
var AmPm:String;
_root.onEnterFrame = function() {
var myDateate = new Date();
//var sec:Number = myDate.getSeconds();
var min:Number = myDate.getMinutes();
var hour:Number = myDate.getHours();
var day:Number = myDate.getDay();
var date:Number = myDate.getDate();
var month:Number = myDate.getMonth();
//var year:Number = myDate.getFullYear();
//sec = sec<10 ? "0"+sec : sec;
min = min<10 ? "0"+min : min;
//AM/PM
if (hour>12) {
hour = hour-12;
AmPm = "p";
} else {
AmPm = "a";
}
//day
if(date == 1 || date == 21 || date == 31) {
dateText = date+"";
} else if(date == 2 || date == 22) {
dateText = date+"";
} else if(date == 3 || date == 23) {
dateText = date+"";
} else {
dateText = date+"";
}
//month
if (month == 0) {
monthText = "jan";
} else if (month == 1) {
monthText = "feb";
} else if (month == 2) {
monthText = "mar";
} else if (month == 3) {
monthText = "apr";
} else if (month == 4) {
monthText = "may";
} else if (month == 5) {
monthText = "jun";
} else if (month == 6) {
monthText = "jul";
} else if (month == 7) {
monthText = "aug";
} else if (month == 8) {
monthText = "sep";
} else if (month == 9) {
monthText = "oct";
} else if (month == 10) {
monthText = "nov";
} else if (month == 11) {
monthText = "dec";
}
//display
dateDisplay.text = hour+":"+min+ AmPm + "-" + monthText+"."+ dateText;
};
Complex Audio Issue..or Maybe Just Syntax Issue
what's up peoples. I'm building a new site for my studio and having some audio issues i can't explain very well, so here goes:
I've got an external .swf successfully loading into _level6 of my project with it's own audio. and from reading thse forums, i know that if i want to control the audio independently of other audio, i need to attach the sound object to a seperate movieclip, which i'm doing and I can control the audio just fine. However, when i click to load in a dynamic image into a dynamicly loaded movieClip, the volume button no longer works. Both the soundobject's mc and the dynamic mc's are being loaded into the nextHighestDepth() so i don't think one is kicking out the other. Here's what i've got:
Code to attach the soundObject when the section starts:
Code:
this.createEmptyMovieClip("soundstage6",this.getNextHighestDepth());
work_sound = new Sound(soundstage6);
work_sound.attachSound("myaudiofile");
work_sound.start(0, 999);
Code to control the volume:
Code:
this.testVol.onPress = function () {
this._parent.work_sound.setVolume(0);
}
Code that loads in my dynamic images:
Code:
this.testLoad.onPress = function () {
_root.attachMovie("infoClip", "infoClip", this.getNextHighestDepth(), {_alpha:0, _x:491.1, _y:193.9});
}
that testLoad button does severl other things when clicked, but when i comment out that particular line of code, the volume control button contines to work. I'm sure this has something to do with the fact that all of this is occuring on _level6 but i have no idea why or how to fix it!!!
Anybody have any ideas? Sorry for the long and complex explination!!
Mac Textinput Issue + New Player Fullscreen Issue
Please inform me if I am a total idiot,... but it appears that holding down backspace while in a TextInput on a mac will only delete one character rather than deleting chars as long as the button is held down. I have tried making the simplest project consisting of only a base sprite and a textinput, and it fails (i thought i may have been preventing the event from bubbling or something.) I tested the movie on PC and holding down backspace works fine. Is this a known issue? and so I just have to extend textInput?...
Also, it seems like when coming back from fullscreen in a swf embedded on a page causes some flickering of the swf content upon resizing the browser window, 3 people I know have also encountered this problem.
Thanks for any help,
Chris Laan
Button Issue In Flash - Program Issue
all of a sudden when i create a button and place it on stage i cant click it to drag it, scale or whatever...instead when i hover over it it behaves as in a compiled swf file (cursor changes into a hand,...).
How can i change that to the way it was? Anyone had this problem before? It is becoming really irritating.
Level Issue Or Version Issue?
hi,
wondering if anyone knows why this movie here:
http://www.pixel360.com/dev/zoompan.html
works fine as it is, but when loaded into another movie, into an MC called 'blankmc1' it will drag, but not zoom?
Also when i try exporting it as AS 2 and Flash8 the zoom handle sticks to the top of the screen?
source here:
----------------------------------------------
http://www.pixel360.com/dev/zoompan.fla
weird?
Help With Crash Issue/actionscript Issue
Hello all,
My name is Josh and I want to say thanks for even reading my post, I appreciate any help I can get. I am here at work trying to edit a flash intro I bought from templatemonster (no im not a newbie, but this is the one my boss really liked, so what he wants he gets). Im trying to edit it here and i first opened it in Flash 8 which is what i normally use. So, im editing it and usually after I edit a few things I would like to get a glimpse so i test the movie real quick. Well, everytime the "export movie" dialog box came up, it stops at about a little more than half way and the box goes away and NOTHING comes up. IT doesnt freeze, but my test movie doesnt show like something usually would. So i tried installing/uninstalling it to no avail. Finally my boss went out and purchased flash cs3 and we installed that. So im editing it again, and went to test movie, and this time it gets 3/4 way done and "flash has unexpectedly quit" etc etc. So im starting to think its something with the actionscripting maybe?? i dont know but im really frustrated and need some help here. And also, even if I tried to just plain export the movie to swf, crashes too!
Thanks everyone!
-Josh
Flash 8 Pro Issue Interval Issue
Hey, I've been working on my site for a few weeks trying to get it all just right, and I'm making it import text, to text fields from external documents, I've been using loadVariablesNum() and createTextField() to post the text onto the flash document.
ActionScript Code:
//0x393c39;
this.createTextField("forum_box",this.getNextHighestDepth(),212,3,162,120);
forum_box.wordWrap = true;
forum_box.border = true;
loadVariablesNum ("forum_txt.php", 2);
function ftv() {
if (_level2.forum_txt != undefined) {
trace(_level2.forum_txt);
forum_box.htmlText = _level2.forum_txt;
clearInterval(ftt);
}
}
var ftt:Number = setInterval(ftv, 100);
this function keeps looping, it is in a frame that is only called once, i tested this by placing a trace at the very begining , just to see if it would echo it to the output screen more than once, It seems my interval isn't stopped by clearInterval(). if anyone can see my issue here it would be greatly helpful.
Thanks
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
|