Preloader: Looping Movie Clip
within a preloader i have a MC that loops...
once the full .swf has loaded, i want the looping MC to complete a full loop (upto the end frame (105)) before the preloader scene goes to the next scene.
can anyone please help... this seems fairly simple but i can't get it to work... i've tried a few different scripts (using _currentframe and setting variables), but none seem to work... it either jumps to the next scene before the loop has completed, or just keeps looping without going on to the next scene.
cheers
ric
FlashKit > Flash Help > Flash ActionScript
Posted on: 03-17-2004, 07:54 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Preloader And Movie Keep Looping
I took Kirupa's code for "preloading with a progress bar"
http://www.kirupa.com/developer/mx/preloader.htm
and placed into Scene 1 of my movie, so when it finished loading the progress bar it would proceed into scene 2 ( my main movie ) and then STAY there.
But it keeps LOOPING back to scene 1 after a few seconds or so, after scene 2 loads.
I checked my code and nothing points back to scene 1.
I don;t have any loops going back to that scene.
When I delete scene 1 ( the preloader ), my movie works just fine.
What am I doing wrong?
Better yet, can I make them into 2 different movies and have my main movie load and replace the preloader movie when it's done? But how woudl the preloader movie add the bytes to load on the progress bar when then main movie hasn't even been loaded.
Flash experts , please help. Going cuckoo here.
Thanks again.
Preloader And Movie Keep Looping
I took Kirupa's code for "preloading with a progress bar"
http://www.kirupa.com/developer/mx/preloader.htm
and placed into Scene 1 of my movie, so when it finished loading the progress bar it would proceed into scene 2 ( my main movie ) and then STAY there.
But it keeps LOOPING back to scene 1 after a few seconds or so, after scene 2 loads.
I checked my code and nothing points back to scene 1.
I don;t have any loops going back to that scene.
When I delete scene 1 ( the preloader ), my movie works just fine.
What am I doing wrong?
Better yet, can I make them into 2 different movies and have my main movie load and replace the preloader movie when it's done? But how woudl the preloader movie add the bytes to load on the progress bar when then main movie hasn't even been loaded.
Flash experts , please help. Going cuckoo here.
Thanks again.
Looping Movie Clip
Hi
(Sorry for duplicating this question as I posted it in another section but it is better suited here) anyway........
I wish to know if there is a script to loop a movie clip.
Currently it loops continously using gotoAndPlay (1)
but i only want it to loop 3 times and then stop. Please make it simple as I am not very action script savvy, and can you tell me where the script goes too please.
Thanking you
Miffy
:-)
Looping Movie Clip
i know it sounds silly but...i don't know how to go about it.
how do i loop a movie clip for 4 times?
Looping A Movie Clip
Ok, so here's the deal. Inside my flash movie, I have a movie clip symbol set up using actions to loop from frame 85 to 20 continously. No problems there. But the problem I have is whenever I put it on the main movie, it applys the action to the entire scene1 instead of just that particular clip. Is there any way to have an action loop just a clip, and not the scene its in? Thank you for your help and patience.
Looping A Movie Clip?
i have a horizontal scrolling navbar that i am trying to 'loop' so as you scroll across it seams endlessly. or if not that, have it reach its x axis limits and stop the scrolling when it reaches the end of the scrolling navbar. fla file is included, am using flash 5...
Looping And A Movie Clip
I have a movie clip of an animation that i want to stop at a certain frame, hold still, and then resume when the movie loops. Is there any easy way of doing this? I tried putting stop(): at the end of the clip, but it doesn't start up again when the movie loops. Any advice would be nice.
Looping Movie Clip
I’m designing a Flash intro which I’ve divided across 5 scenes to keep everything neat and easy to edit.
In each scene there’s a movie clip of a rotating ring lasting 60 frames, it's looped.
If my scenes are in multiplies of 60 (60, 120, 180 frames and so on) the ring rotates fine but if my scene is not an exact multiple of 60 the animation jumps back to the start as is moves from one scene to the second. As the second scene also contains the movie clip.
Is there anyway around this without having to put all the frames within the one scene?
Thanks
Keep Movie Clip From Looping
well,
I created a MC that fades up.
I place it in the main timeline of scene 1 at, say, frame 60 (the only scene).
I would like the movie clip to fade in and then remain faded up,
however, it keeps looping. Fading up, then fading up again.
I have tried stop();
I have tried end();
I have set rewind = false;
I thought that if you put the stop action at the end of the mc it would stop looping.
What could be causing this?
Non-looping Movie Clip
I have a movie clip that I want to only play once- not loop. And of course when I place it on the stage, it loops. Simple as it is, I forgot how to keep a single movie clip from looping.
Using Flash CS3 on the Mac.
Looping Movie Clip
I’m designing a Flash intro which I’ve divided across 5 scenes to keep everything neat and easy to edit.
In each scene there’s a movie clip of a rotating ring lasting 60 frames, it's looped.
If my scenes are in multiplies of 60 (60, 120, 180 frames and so on) the ring rotates fine but if my scene is not an exact multiple of 60 the animation jumps back to the start as is moves from one scene to the second. As the second scene also contains the movie clip.
Is there anyway around this without having to put all the frames within the one scene?
Thanks
Movie Clip Looping
I want to import a movie clip to a scene and have the movie clip continously loop. Right now it just play through once. Any help will be greatly appreciated.
Thanks,
Michael
Looping Movie Clip
Can some one tell me how to make a frame loop over and over while the movie is still playing?
Please help!
SCHOOL PAGE
Looping Movie Clip
Hi,
And thanks in advance for willing to help me....
First the movie clips will continue looping.
Then later I will random generate a number,
this number determine which movie clip should be played.
While this movie clip is playing, the rest of the movie clip is still looping.
After this movie have play finish, it should continue random generate a number
and loop the other movieclip.
Attached would be the file i tried out.
Even it's working well at first but it stopped looping
at a period of time which made me wonder what went wrong.
Once again, thanks and please help >.<
Looping Movie Clip =[
I've just recently working with flash and everything seemed to pass by easily so far with little mistakes, which I have been able to fix. Yet I ran into one an hour ago which after much trial and error, have been unable to do anything. =[
I have a movieclip w/ an actionscript for falling snow. I had wanted it to only play during the intro of my movie, during the credits and for it to end at the end of the intro, yet everything I tried was futile. I would like to only stop the movieclip so that it won't play anymore after that. Thank you to anyone who can help me.
This is the actionscript for the snowfall:
onClipEvent (load) {
//specifies the size of the movie stage
movieWidth = 600;
movieHeight = 300;
//variables that will modify the falling snow
i = 1+Math.random()*2;
k = -Math.PI+Math.random()*Math.PI;
//giving each snowflake unique characteristics
this._xscale = this._yscale=50+Math.random()*100;
this._alpha = 75+Math.random()*100;
this._x = -10+Math.random()*movieWidth;
this._y = -10+Math.random()*movieHeight;
}
onClipEvent (enterFrame) {
//putting it all together
rad += (k/180)*Math.PI;
this._x -= Math.cos(rad);
this._y += i;
if (this._y>=movieHeight) {
this._y = -5;
}
if ((this._x>=movieWidth) || (this._x<=0)) {
this._x = -10+Math.random()*movieWidth;
this._y = -5;
}
}
And then this is what I put into the first frame of the movie clip:
for (k=0; k<50; k++) {
duplicateMovieClip(this.snow, "snow"+k, k);
}
LOOPING A MOVIE CLIP
How do you get a movie clip to loop? Do you publish movie clips that you can set the html tab to loop in the publish settings box? if not, is there an action to loop a movie clip?
Movie Clip Is Looping Why
hello
I am playing around with creating a 'site' all in flash. the website will be made up of 3 different MC's. 2 of the MC's will load on startup teh thrid will load depending on which button may be pushed. I can get all of the movies to load but they loop.
2 of teh MC's have animation in them and it appears as if the MC is loading and running but when it reachs teh end of teh MC it starts all over again
why is this
hope this makes sence I am new at this and am not completely sure of what's going on
thanks for any replys
Movie Clip Looping
I have a movie clip in my movie that I want to loop (play) three times and then stop. I'm sure there is an easy script for I this, just not sure where to start.
If anyone could point me in the right direction or post a script that would be great.
Thanks in advance.
-cuzman
Looping A Movie Clip
I need help with looping a clip. What code, script or setting do I need to have a movie loop continuously? This seem very basic. What am I not seeing?
Looping Movie Clip
i've been working with flash for about 2 weeks and im getting the hang of it pretty well.. theres one thing i cannot seem to figure out. i am working with a slowly moving background that loops. i got it to work and it looks really good, but when i started to work on other scenes, i wanted it in those scenes too, so i turned the moving background into a movie clip. here's my question:
how do i get this movie clip to play through every scene smoothly without "reloading" itself?
i clicked and dragged the clip from my library to the stage, and it only fills up 1 keyframe... and it blinks.. how do i get it to play through everything?
im sure the answer is simple, im just trying to avoid a headache.
-shawn
Preloader Won't Stop Looping My Movie
hi i added stop commands too but still it keep relading my movie
heres code
this is in my loader component
on (complete) {
stop();
this._parent.myPB.setVisible(false);
}
this is in my progress bar
on (complete) {
stop();
}
i was just tryin to find a easy way to preload my swfs
i am gonna cry
plz help <3
Preloader Won't Stop Looping My Movie
hi i added stop commands too but still it keep relading my movie
heres code
this is in my loader component
on (complete) {
stop();
this._parent.myPB.setVisible(false);
}
this is in my progress bar
on (complete) {
stop();
}
i was just tryin to find a easy way to preload my swfs
i am gonna cry
plz help <3
Looping Layers Within A Movie Clip
I can't seem to get layers within a movie clip to loop. The problem is, there are many layers that end at different times, and I want each layer to loop once it has finished playing. Does anyone know if this is possible?
Stop Movie Clip From Looping?
I have a movie clip with a short 15 second video in it. but when it reaches the end it continues to loop and replay the video. I put in the commands
stop();
gotoAndPlay(51);
but it ignores them and continues to loop.
Any suggestions?
Delay Looping Movie Clip
A first of what I'm sure will be many newbie questions, as I'm just starting to learn flash. Thanks for your help in advance.
I've created a movie clip that includes a motion tween and I simply want to delay the loop for 10 seconds or so. As it is now, it loops right away after the movie clip is done. What function do I need to insert in the first frame of the movie clip to make the loop delay?
A simple question no doubt, however I couldn't find the answer in help and google so I come here. Thanks for your time.
Looping A Movie Clip Along The X Axis
Hi all,
I've got a movie clip with a with of 650 and it scrolls along the x axis, so I want to loop it twenty times behind and after it.
Can anybody tell me how I can do this?
Thanks.
Movie Clip / Looping Problems
I will try to explain this as best I can without giving anyone a headache...
Basically I want to create a looping slideshow of my imported.swf's
This is what I did:
I created a new document and then brought two movie clip files into the Library - lets call them A and B.
I then put them in two different frames movie A in frame 1 and Movie B in frame 2.
Now heres my problem (probably blindingly obvious):
When I test the movie (I have put a stop function on the first frame) It just plays movie A (as there is not a stop action at the end of movie A it does this again and again and again).
Its as if the second frame (and home of movie B) doesn't exist.
There must be an easy way round this I thought to myself -
But if there is I certainly can't find it. I tried putting a gotoAndPlay action in the last frame of the imported movie A's timeline but this just makes it just jump between frames 1 and 2 on the main timeline.
Admittidly I am no flash expert and tend to learn things on a 'need to know' basis. But can generally sort things out. But this sending me crazy and I have a show which this needs to be done in time for.
Basically - Any help would be greatfully recieved!
Thanks for reading,
Rebecca
How To Stop Movie Clip From Looping
Hey guys, a newbie here. I have this movie clip that I purchase and made some changes to, but for some reason can't figure out why it keeps replaying over and over. I'm trying to get it to pause at the end where it says "Call for a free trial." I don't see anything in the action script that would cause it to replay. Can anyone help me figure this out?
The clip can be viewed at:
www.paragon-nj.com/test.html
The FLA file is at:
www.paragon-nj.com/fire.fla
Thanks for all your time
Wil
Movie Clip Looping In Button
I am pretty new to flash, but I've done a few simple animations with very simple Actionscript. What I'm working right now is making animated buttons. I have the basics done, but I'm having one problem: My 'over' state movie clip loops. What I mean is when I have my mouse over the button the movie clip for the 'over' state plays over and over when I would prefer it to play through just once and stop.
I suspect I can solve this all by just making it into a graphic, and changing it properties to just play once, but I would like to keep it a movie clip so I can use it in actionscript.
I'll attach the .fla file, so you all can look at it. I feel like it could be a quick fix, I'm just not sure what to do.
Thanks!
Prevent Movie Clip From Looping
I've made some search, and this subject appears to have been already treated, but I can't figure out how to do this in AS3.
I have a Movie Clip on my stage, named figureAction.
There is a shape tween within, that lasts 120 frames.
I want it to play just once, when the movie is loaded.
Need help !
Thanks
How To Delay A Movie Clip And How To Do A Looping?
HI,
I would like to create a text field which can Loading Text value from External Sources (Text File). And i would like to do a looping to update my text field's data when the data inside database is change.
For example:
Initially Data inside my database is 99. So text field will display a 99.
After that i change the value inside database to 88. Then how am i to write the action script?
Thanks for your help.
Looping Movie Clip While Loading
Hi everyone,
Got yet another preloader question, but this shouldn't be complicated...
I used Kirupa's fab percentage preloader load bar tutorial, which works great. Now I have a small movie clip I want looping while it loads. I don't even care if it syncs with the loading...I just want this baby moving.
I put the movie clip in one keyframe, but as it loads, I only see the first frame - no animation. Do I need to place an additional action?
Thanks in advance!
Nested Movie Clip Not Looping
Using Flash 8, I am creating a mp3 player that gets info from an external XML file. I am trying to create a masked scrolling message that gets the text data from the XML file. I have succeeded doing this and was very happy until I found out the message only scrolls once. I do not understand why it doesn't loop.
The message is loaded into a movie clip inside the main timeline called prompt_mc that has a dynamic text field named prompt_txt inside of it. In prompt_mc I moved the message across 200 frames from right to left and then I dropped the prompt_mc on the main timeline with a mask object above it. The mask is handled in the code and works great. Anyone know why my prompt_mc is not looping or have any ideas??
Here is part of my code if it's helpful:
// function to check if XML file is loaded and parse XML file
function loadXML(loaded) {
if (loaded) {
_root.prompt = this.firstChild.childNodes[1].firstChild.nodeValue;
_root.songtitleone = this.firstChild.childNodes[2].childNodes[0].firstChild.nodeValue;
_root.artistfirstSong = this.firstChild.childNodes[2].childNodes[1].firstChild.nodeValue;
prompt_mc.prompt_txt.text = _root.prompt;
songtitleone_txt.text = _root.songtitleone;
// prompt message mask
prompt_mc.setMask(mask_mc);
// play songs
var artistSong:String = _root.artistfirstSong;
controller.autoPlay = false;
play_mc.onRelease=function() {
if (this._currentframe == 1) {
this.gotoAndStop("stop");
controller.setMedia(artistSong,"MP3");
controller.play();
}
else {
this.gotoAndStop("play");
controller.stop();
}
}
} else {
trace("Error: file not loaded!");
}
}
// load XML file and define XML object
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load(playlist_URL+name_URL+identity_URL);
How To Delay A Movie Clip And How To Do A Looping?
HI,
I would like to create a text field which can Loading Text value from External Sources (Text File). And i would like to do a looping to update my text field's data when the data inside database is change.
For example:
Initially Data inside my database is 99. So text field will display a 99.
After that i change the value inside database to 88. Then how am i to write the action script?
Thanks for your help.
Nested Movie Clip Keeps Looping
Hi, I'm a Flash newbie. I was wondering how can I keep a nested movie clip from looping.
I have my main movie and then inside it is another movie clip (Let's call it mc1). mc1 has a stop(); and doesn't loop when I play it on its own. However, when I try to add it to my main movie. It keeps looping. How can I prevent this from happening?
Thanks!
Movie Clip Keeps Looping On Mouseover
Movie clip button works in own timeline (it stops after one pass) but keeps looping on mouseover when imported into website button - how can I run it to frame 8 and stop on mouseover?
Looping A Movie Clip With A Delay
Hello!
Let's say that my movie is 100 frames long. I want it to loop continuosly but with a delay...let's say 10 seconds.
So what action should i add instead of the stop action from the end?
Regards,
Dragos.
Movie Clip Looping Stutter
Summary: I have noticed a flicker when a movie clip loops back to the begining. (this is not due to the frames not matching up properly-I assure you it is a perfectly looped video) The clip vanishes momentarily before returning to the begining.
Ok so here's the situation: I have made a nice looping movie in After Effects and am bringing it into Flash 8. If I import it as a swf, it works fine but the file size is too big because it creates a bitmap for each frame of the movie, and even with jpg compression set at 25% the resultant file is still too big. So I experimented with exporting from After Effects as a .flv and embedding the file directly in the timeline, then nesting it inside a movieclip so it will loop continuously. This is great for file size because it takes up about a tenth of the space. I noticed however, that the movieclip does not loop seamlessly. When it reaches the end, there is a momentary flicker of darkness as it resets to play from the begining. This problem does not occur when I import it as an swf; so is there something glitchy about looping movieclips? Is there another technique for looping an flv file or a way to fix this stutter?
Making A Movie Clip Appear Only Once In A Looping Animation
hey there flashkitties
I'm making an animation that relies a lot on looping & movie clips.
It's of a character skateboarding down a street. The houses is the background move and loop to make it appear as tho the character is moving forward, but he is just bobbing around..
I want character #2 to appear once on the sidewalk, waving, so that skateboarding character #1 can swerve around him, and continue on his merry way.
Does anyone know if I can make character #2 appear only once in this looping animation, and how this can be done???
(im working in mx)
Stop A Movie Clip From Looping Forever?
I created a movie in Swish 2.0 of a simple text effect. ( bought Swish just for the text effects) I tried importing the .swf file which filled all the frames with one letter of the text. That was fine but it looped forever and was positioned wrong.
Ok, back to my books....
I imported it again as a movie clip. Fine again, even better I can position it correctly. BUT I can't get it to stop looping :-(
Trying action scripting (several variations from book suggestions...I am not getting it.
I want to have the movie clip run one time, stop and stay on the stage/browser window as a static element.
Can someone help?
Thanks in advance,
Terri B
Stopping Or Looping A Scrolling Movie Clip...
so i'm making a movie in flash mx 2004 professional and i'm trying to either stop my scrolling movie clip when it reaches the beginning or end of the movie clip...otherwise it just scrolls out of sight...or loop my movie clip so when it goes too far it loops right around again...similar to logitech's product menu -> http://www.logitech.com/index.cfm?co...2&languageid=1 ...it'd be great if i could have answers for both ways to do this, but would prefer the looping method...thank you for any help in adavance...
Looping Else If Statement Without Reloading Movie Clip
I have a movie clip which contains a number of animated movie clips...when a specific variable is called out, I want to go to a frame and play the embedded movie clip (once). The problem is that it plays over and over again (until the variable changes). How can I prevent this from happening. Here is the code that I am using:
if (displayVar eq "var1") {
MC.gotoAndPlay("banner1");
} else if (displayVar eq "var2") {
MC.gotoAndPlay("banner2");
} else if (displayVar eq "var3") {
MC.gotoAndPlay("banner3");
} else if (displayVar eq "var4") {
MC.gotoAndPlay("banner4");
} else if (displayVar eq "var5") {
MC.gotoAndPlay("banner5");
} else if (displayVar eq "var6") {
MC.gotoAndPlay("banner6");
}
Looping Movie Clip Buttons On Roll Over
I'm trying to loop a certain action in a button when the mouse pointer hovers over it and I want it to keep on looping until the pointer clicks it or moves off of it. I'm trying to make this all happen with a movie clip button. I tried the gotoandPlay ("frame #") action when I want it to loop, but it isn't working. I'm not sure what I should do to achieve this. Thank you.
Looping Movie Clip Stops In Middle
I am using a movie clip as part of a game. It's a clip of a spaceman walking.
When the game is being played, the movie seems to loop one time (the spaceman walks one cycle), and on the second time around the animation seems to stop right in the middle of the cycle. it always stops on the same frame.
What is happening here?
Thank you
Dynamic Text In Looping Movie Clip
Hi,
I am looping a movie clip which has a dynamic text box. I need to call data from XML and place the same in the Dynamic text box as per the duplicated movie clip. how do i do that.
Thanks,
Ayush
[CS3] Pausing A Looping Movie Clip At A Specified Moment
I am building a non-interactive animation based on slot machine reels which will be exported as a quicktime movie and burned to a DVD for playback.
To create the looping of the three reels, I've used the following script:
Code:
onClipEvent (load) {
looping.duplicateMovieClip("slots");
slots._y=looping._y+looping._height;
loopStarty=this._y
loopSpeed=30;
}
onClipEvent (enterFrame) {
if(_root.bg.loopStart) {
this._y-=loopSpeed;
if(this._y<=(loopStarty-looping._height)) {
this._y=loopStartx-loopSpeed;
}
}
}
However, I want to pause the looping at specified moments in order to match up the images (like winning on a slot machine). I'm assuming that there is a function in which I can say "Pause 'slots' after looping 1.3 times for 30 seconds" or "Pause 'slots' for 30 seconds after looping for 3 seconds".
Again, there is no interactivity - this is just a looping animation that will run on a screen.
Thanks!
Keeping An Imported Movie Clip From Looping
I am using Mx. I made a movie clip with basic motions and an extra actions layer with stop() at the last frame. I then imported that movie clip into a new movie of the same size and placed it on the stage with an instance name. The movie clip still loops, though. Am I overlooking something obvious, or is it more involved than that? Thanks to whomever can help me..
|