Movie Loop
I have just created a flash movie in CS3 with 5 scenes. I need to make it loop back to the start of the first frame of the 1st scene. What action do I include, and where, at the end of the 5th scene? Can anyone assist?
Adobe > Flash General Discussion
Posted on: 10/11/2007 10:30:25 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Make One Element Loop Without Making Enitre Movie Loop?
i'm trying to make one element continue looping without making the entire movie loop... here's what i mean..
i have a layer that i've name actions which i've asigned a stop(); to at the end of the animation. but i want the red pulsating dot to continue looping/ animating ... to give you an even better idea, here's the swf file...
http://www.push1.com/roster_art_gal.swf
cheers!
Movie Clips In For Loop Onlydisplaying In 1st Loop
Hi there! I'm new at this so excuse if I'm being stupid.
I'm creating a game which I'm looping through an array and inside the loop I'm playing clips. The clips display only the first time the loop is being run. Here is the actionscript. PLEASE SOMEONE HELP ME... I'M DESPERATE!!!
code:
on (release) {
var myClips = new Array("Fletter", "Lletter", "Aletter", "Mletter", "Eletter");
var myClipsNewName = new Array("mov2", "mov3", "mov4", "mov5", "mov6");
var myClipsValue = new Array (10, 11, 12, 13, 14);
var cnt = 0;
for (var t = 0; t<4; t++) {
for (var i = 0; i if (cnt == -1) {
cnt = 0;
}
var temp = myClips[cnt];
attachMovie(myClips[cnt],myClipsNewName[cnt], myClipsValue[cnt]);
updateAfterEvent();
trace(myClips[cnt]);
if (i == Total-1) {
myClips.splice(cnt, 1);
myClipsNewName.splice(cnt,1);
myClipsValue.splice(cnt,1);
if (cnt == myClips.length) {
cnt = 0;
}
break;
}
cnt = cnt+1;
if (cnt == myClips.length) {
cnt = 0;
}
}
}
}
edit: jbum added as tags
[MX04] Imported SWISH Movie To Flash Doc And Only Want To Loop 1 Time Within My Movie
I have a flash movie that I am working on. This is my situation:
- I brought a movie from SWISH max to create an effect to this one tag line
- I exported that movie and imported it into a flash mx 2004 document
- When I preview it dont stop looping!
- I tried creating a setting for it on the SWISH application that says "stop playing at end of movie" but i think it overrides that once its brough over to Flash MX.
Any suggestions how I can take care of this problem withi flash? Thanks!
I Need To Know How To Loop A Movie Clip Inside The Main Movie
well heres my problem im trying to loop my movie clip over and over with out tweening from point A to B.
so far i got this actionscript to move it across
---------------
onClipEvent (enterFrame) {
this._x++;
}
----------------
which moves my mc across the screen, and now what i want to do is when the movie clip gets to the end of the screen then i want to loop it again.
i know that it has to be something
-----------
onClipEvent (enterFrame) {
this._x++;
if (this_x<300);
this.removeMovieClip();
}
------------
but i cant get it to work.
well just take a look at my footer and look at the "fog" that changes color, and thats what im trying to do but without having to tween the animation from point A to B.
Loop A Movie Inside Another Movie
hi! i have a problem...
I have two flash movies, so i wan to play a flash movie "two.swf" inside "one.swf"
so i placed a command in the frame of the timeline of movie "one.swf" to load in on level 3 (i have other movies inside) and it works
the problem is that i want to loop this movie, but i want to loop it only inside the movi "one.swf", because when i load the same movie from other movies (three.swf, four.swf etc...) i want it to stop in the end, this why i have a "stop" placed in the end of "two.swf"
i suppose it must be simple to loop it but have no idea how to do it
help please,
thanks
How To Loop A Movie Twice?
Hi,
I would like to loop a movie twice. How should I write the script?
I add an action to the last frame of the movie, a ball jumping for example which has one layer only. Below are the codes I wrote:
Set Variable:"index" = "1"
If (index < 3)
Go to and Play (1)
Set Variable:"index" = "index + 1"
End If
The above codes seems to cause the movie to loop infinitely. How should I loop a movie twice? And how should I loop a movie that has a lot of layers?
Thanks for your help.
Movie Loop Off
Hello:
I made my first swish movie and can not figure out how to turn off the auto loop. I read in the help instructions that at the export to html option it automatically defaults the loop to true.
The help options show a window that has all these export options, but when I click export to HTML I dont get any options, all I get is the Save window.
How do I shut the loop down? I want it to play only once...
Thank you
Loop Movie
I don't want to have my movie looping on a webpage by default. Is there a way a can make it appear only once and then stop (but still displaying the last movie and continue playing the music)? Please help!
Please note I am using Swish 2.0, not Flash!
[Edited by vasal on 01-12-2002 at 07:04 AM]
Movie Loop
Hi everyone,
I've a prob with my movie. I put all animations at "play once" but the movie still loops. I want everything to play once and then stop but just can't find the setting where I can put the whole movie at "play once" only.
Can someone help me??
thanx a bunch
How Do I Loop A Movie?
Hi All,
I have a movie with 6 layers and its 500 frames long..
How do i get it to loop back to the begining when it reaches the end frame???
Cheers,
dvdvault
Loop Movie
Is there a way to loop an flv movie? Thanks!
Movie Loop
hi
how do i make the _root timeline loop twice and then stop at frame 1.
then when the user places the mouse over the movie, it loops again twice.
I tried the following actionscript for the loop part:
i=0;
while (++i>2){
_root.gotoAndStop(1);
}
Grateful for help.
thanx
dirk
Loop A Movie
All I need to do is make a movie in flash loop 2 times then stop as opposed to creating the same animation 2 times. I did a search on this site but all of that code is way more than I need. This is my second attempt at Actionscripting and its not working out to well, so any help would be greatly appreciated.
Want My Movie To Loop. How?
Hi!
I have created "new symbol -> movie", and made an animation in it. Now I want that animation to loop in the symbol. How do I do that?
I'm running Flash 8
/Chrille
Trying To Loop My Movie
hello!
i have a problem with a movie i have been given that doesnt currently loop but i would like it to. i have one scene with eight movies in it and the first command looks like this:
Mouse.hide();
for (i = 1; i <= 8; i++) {
_root["movie"+i]._visible = false;
}
function delay() {
clearInterval(interval);
movie1._visible = true;
movie1.play();
}
//;
myListener = new Object();
myListener.onKeyUp = function() {
getURL("javascript:close_window()");
};
Key.addListener(myListener);
interval = setInterval(delay,500);
stop();
there is another command at the end of the scene which says:
movie8.play();
stop();
can anyone help me out with the actionscript to make it loop please, i think it has something to do with the for (i = 1; i <= 8; i++) line but i'm really not sure. any help would be greatly appreciated.
many thanks
rich
Movie Loop
Hi There!
I have a movie, lets say 300 frames long.
I would like to play it once: start at frame 1 and end at frame 300.
I then want to loop part of the movie indefinitely, so when frame 300 is reached, the playhead goes to frame 200 and then plays to frame 300.
Is this possible?
Would it be better to make two separate movies?
Play movie 1 (frames 1 to 200) first and once only and then loop movie 2 (frames 200 to 300).
Why? I operate a multiple camera array that generates a 360 degree frozen moment (movie 2) and I have motion footage (movie 1) leading up to the frozen moment.
I want to show the motion footage once and then just have the 360 degree frozen moment play repeatedly.
Thanks in advance
Ruffy
Movie Loop In AS3
I'm trying to move to AS3. I have a simple animated loop, on the last frame of the timeline I have a gotoAndPlay(4);
In AS2 the back ground loop plays seamlessly, but in AS3 it pauses for a second, or a frame, so the loop is not smooth.
Why is that?
Thanks!
Movie Loop
Alright, I have a flash file which you can view here BPA.fla. At the very end, the BPA logo fades in and out. I need to know how to make that continue for the whole time someone is on that site
Help In Getting The Movie To Loop
HI, I have editied a an xml gallery from Kirupa turoials, here is the link (http://www.kirupa.com/developer/mx20...otogallery.htm)
I have removed the buttons and used a set interval instead so the pictures change by themselves, Issue I have is, the movie wont loop when it gets to the last picture. Can anyone help, code is below...thank you
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
description = [];
description2 = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
description2[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
}
firstImage();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");
/////////////////////////////////////
updateAfterEvent();
setInterval(nextImage,8000);
/////////////////////////////////////
p = 0;
this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = false;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 3;
}
}
};
function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
desc_txt2.text = description2[p];
}
}
}
function prevImage() {
if (i==(total)) {
firstImage();
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
}
}
function firstImage() {
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[0], 1);
desc_txt.text = description[0];
desc_txt2.text = description2[0];
}
}
Movie Loop
Alright, I have a flash file which you can view here BPA.fla. At the very end, the BPA logo fades in and out. I need to know how to make that continue for the whole time someone is on that site
None Loop Movie
How can you get a flash document to just play one time without looping?
Thanks
Loop A Movie Without The Reset
I am setting the x position of one object compared to a 2nd object that you can drag. so I am looping past the same action action but it all so resets the positions of my 2 oboject every time it loops back any ideas
Loop The Layer, Not The Movie?
hello,
i suppose this is a basic question but.. i dont know the answer so here goes:
i want to continually loop one layer of my movie while the others stop. and the movie itself reaches an end.
is there an easy way to do this with action script or whatever???
thanx in advance
Alexoras
How To Put Sound Loop Into Movie?
i'm doing a game and i want to put a sound loop that i downloaded into the game...i want it to start playing once i open the game and stop once i click on one of the button...can anyone help??
Stopping Loop Of Movie
This is the situation:
In scene 1 I have a movie called 'movieke', this movieke loops.
I've placed this movieke in scene 1, and I created a button, now I want to stop the loop of this movieke by pressing the button.
I use the following actionscript when the button is released:
on (release) {
_root.movieke.Stop()
}
But it doesn't work, looked everywhere, can't find the solution.
Thanks for your help.
Greetz,
BruteD
A Movie With Several Scenes, - How Do I Loop It?
I have a movie with 7 different scenes, - when scene 7 has finished playing I want my movie to start scene 1 again.
But ..... I have a label in frame one of scene 1 that I address like this in the last frame of scene 7'
gotoAndPlay("startMovie");
but it just repeats scene 7.
I have also tried to say
gotoAndPlay("scene1") as I thought that flash understood scenes as frame labels.
Well, - can you help me...
Regards
Godowsky
Loop Movie Only Twice, Then Stop?
so we can stop a movie after it plays once - no loop. great. or we can let it loop forever. lovely. but how can we make it loop only twice, THEN stop (kinda like you can w/ an animated .gif)?
Thanks!
~elle*
Movie Wont Loop,
im a complete newb at flash started learning it about a week ago so please try 2 interpret what im talking about as i dont know the proper words,i created a navigation bar for a website nothing really fancy just a few buttons when u click on them with a sound anyway that worked fine untill i uploaded it 2 a server and now it is only posible 2 use the navigation bar once when visiting the site i.e u can go to the hompage and click anybutton and and the approiate page will load up then when u try to use it again it just doesnt work, the buttons change colour still but do not change the page, im stumped plz help me
Loop Certain Part Of Movie
Hi there folks,
I have a basic flash movie which when its finished, I would like it to repeat the last few frames only, rather than take it back to the beginning.
Help would be greatly appreciated.
Movie Loop Question
i have two movie clips i made. And what i want to do is show the first one, then loop the second all in one clip combined. Can it be done? If so how?
Loop Movie Button
Hi there, here's what i'm looking for:
The code behind a button that when pressed, the current movie will jump to a SCENE that is the identical movie (except this one has a different song playing), but will pick up exactly at the same frame that was left on the previous movie/scene by the user. Thusly, it'll appear that the animation hasn't been touched, but the music has changed.
Is this possible?
Loop Through Movie Clips?
Is there a way that I can loop through the movie clips?
For example.
Instead of doing this:
clip0._visible = true
clip1._visible = true
clip2._visible = true
clip3._visible = true
can I do something like this:
for(i=0;i<4;i++){
clip(i)._visible = true;
}
thanks for any info.
Back And Forth Movie Loop
Does anyone have any action sccript for making a movieclip with video in it run forwards then backwards continuously?(a back and forth loop).
Any help would be greatly appreciated!
Thanks
Loop Without Stopping Movie
hello is it possible to create a loop that increments an action, say increasing the height of a graphic, without using a physical frame loop i.e. action on a frame and time line looping to that frame... But that still uses the movie frame speed to increment the action so it doesnt happen instantaneously?
Infinite Movie Loop...
Here is what I would like to do for a test project... I want to set up 3 movie clips (A, B, C), with junk content. At the top and bottom of each is an area left blank for a thumbnail of another movieclip (an empty clip, which another clip could be attached to).
the first clip (A) will load with its preloader. AFTER it has loaded, the top area will show a preloader and load a miniature version of B. At the same time, the bottom area will show a preloader and load a miniature version of C.
Once B is loaded, it becomes a button, linked to clip B. Same with C - it becomes a button once loaded.
If you click the button, whichever clip you clicked will zoom in and replace clip A. Now the same thing happens - preloader with A at the top, and B or C (whichever this isn't) at the bottom.
I've got a crude working model of this, but I have a few issues with several areas... and I think I am making it harder than it should be. So I figured I would ask if anyone has done something similar, how they went about it - I know there has to be a simple, clean, and efficient method of doing this.
Thanks!
[F8] Loop Movie X Times?
Hi, I apologize for the elementary question, but I have made a movie in Flash CS3 and want it to loop 3 times then stop on a specific frame. I cannot for the life of me figure out how to do this, I understand the premise, and figure it has something to do with setting a variable and adding one to that variable each time it plays until it hits three, then goto that frame...or I could be completely wrong.
Either way I just do not know how to do it and any help would be appreciated.
Thank you!
Better Way To Use A Loop With Movie Clip
I have 10 movie clips. Clip1_mc, Clip2_mc, etc. I want to hide them so I did a loop
or (i=1; i<11; i++) {
"Clip"+i+"_mc"._visible=false
}
but it only gives me errors. Is there a way to do this without _root in the loop?
Thanks.
[CS3] Loop Movie 3 Times Only
So for the playback in the html publish settings, you can either loop, or not. How do you make your movie loop 3 times and stop?
thanks!
Preloader N Movie Loop
hello.
i m working on a website and came across this problem and got me stuck on it for quite a while now.. the codings are messy as I'm a complete noob at coding.. please understand =x
Scene 1: Preloader (6 frames)
Description: a loading bar with percentage showing...
Code used:
Quote:
stop();
loadingBar._xscale = 1;
var loadingCall:Number = setInterval(preloadSite, 1);
function preloadSite():Void {
var siteLoaded:Number = _root.getBytesLoaded();
var siteTotal:Number = _root.getBytesTotal();
var percentage:Number = Math.round(siteLoaded/siteTotal*100);
loadingBar._xscale = percentage;
percentClip.percentDisplay.text = percentage + "%";
percentClip._x = loadingBar._x + loadingBar._width;
bytesDisplay.text = "loaded " + siteLoaded + " of " + siteTotal + " bytes";
if (siteLoaded >= siteTotal) {
clearInterval(loadingCall);
gotoAndStop(5);
}
}
6th frame is an enter button with the following coding:
Quote:
on (release) {
gotoAndPlay("Main",1);
}
Scene 2: Main 1 frame
7 buttons(movie clip symbols), 1 background design and 4 movie containers for external swf: 2 for hovering text, 1 for transition effect and 1 for loading the main swf.
Coding is just a stop(); on the frame.
the buttons have the following code:
Quote:
on (rollOver) {
gotoAndPlay ("go2");
loadMovie("./dynamictext_about.swf", _root.prutextdropzone);
//to show hover text
} on (rollOut) {
gotoAndPlay ("go3");
unloadMovie(_root.prutextdropzone);
//to unload the hover text
} on (release) {
loadMovie("./transition_pruabout.swf", _root.prutransitionzone);
//to load the transition onto the movie container "prutransitionzone"
unloadMovie(_root.prutextdropzone);
}
the transition swf will load the main information with the following code at the last frame:
Quote:
stop();
loadMovie("./pruabout.swf", _root.prudropzone);
Problem:
the first button click works perfectly.. however, when click another time on any button the flash will loop back to the Preloader Scene and start again and then it will jus randomly loop back to the starting.. even bypassing stop(); commands.. =(
basically any button on clicking twice will loop the whole site again..
I dont know why but when i remove the Preloader, everything will work fine..
is there anyway to have both Preloader and Main in my site without having the problem?
Note: I tried puting the Preloader in the same scene as Main, but it still have the same problem. the problem seem to be something to do with the external file pruabout.swf.. but the only coding used there is stop(); at the last frame.. (5frames in total)..
please help. thankz. do let me know if its needed for me to upload the .fla/.swf files..
How To Loop A Movie Infinitely?
hello,
I'm not a developer, and i'm not familiar wiht flash at all. However, i was asked to do a simple page in which an FLV would loop infinitely. I got this scrip from somewhere, and it works just fine, except that it does not loop. Can someone please tell me what should i add (and exactly where) to the script to make the video loop?
Thanks!
Code:
Stage.align = "TL";
Stage.scaleMode = "noScale";
Stage.showMenu = false;
var timeline:MovieClip = this;
var _minW:Number = 360;
var _minH:Number = 204;
var video_container:MovieClip = timeline.attachMovie ('video_container', 'video_container', timeline.getNextHighestDepth ());
function onResize ()
{
var scaleY:Number = Math.round (100 * (Stage.height) / _minH);
var scaleX:Number = Math.round (100 * (Stage.width) / _minW);
var scaleFactor:Number = Math.min (scaleY, scaleX);
if (scaleFactor > 100) video_container._xscale = video_container._yscale = scaleFactor;
video_container._x = Math.round ((Stage.width / 2) - (video_container._width / 2));
video_container._y = Math.round ((Stage.height / 2) - (video_container._height / 2));
}
var connection_nc:NetConnection = new NetConnection ();
connection_nc.connect (null);
var stream_ns:NetStream = new NetStream (connection_nc);
video_container.my_video.attachVideo (stream_ns);
video_container.my_video.smoothing = true;
stream_ns.play ("riding_giants_m480.flv");
Stage.addListener (this);
onResize ();
function netStatusHandler( event:NetStatusEvent ) :void
{
if(event.info.code == "NetStream.Play.Stop")
stream.seek(0);
}
Using A Loop To Stop Movie
I have a movie that has 3 rows of 5 blocks, totaling 15 blocks. I have written a script that randomly highlights one block at a time by attaching a movieclip that has a lighter color of the block. The drawback to this script is it runs continuously. I am trying to loop the movieclip, called allpics 15 times then have it stop. Unfortunately, my attempts at using loops have failed. Any Ideas how to overcome this?
Here is my script:
_root.speed = 100;
movePics = function () {
mx = (Math.round(Math.random()*15));
if (mx == 0) {
_root.attachMovie("allpics", "pix", 1);
pix._y = 0;
pix._x = 0;
}
if (mx == 1) {
_root.attachMovie("allpics", "pix2", 1);
pix2._y = 0;
pix2._x = 83;
}
if (mx == 2) {
_root.attachMovie("allpics", "pix3", 1);
pix3._y = 0;
pix3._x = 171;
}
if (mx == 3) {
_root.attachMovie("allpics", "pix4", 1);
pix4._y = 88;
pix4._x = 0;
}
if (mx == 4) {
_root.attachMovie("allpics", "pix5", 1);
pix5._y = 88;
pix5._x = 83;
}
if (mx == 5) {
_root.attachMovie("allpics", "pix", 1);
pix._y = 88;
pix._x = 171;
}
if (mx == 6) {
_root.attachMovie("allpics", "pix2", 1);
pix2._y = 173;
pix2._x = 0;
}
if (mx == 7) {
_root.attachMovie("allpics", "pix3", 1);
pix3._y = 173;
pix3._x = 83;
}
if (mx == 8) {
_root.attachMovie("allpics", "pix4", 1);
pix4._y = 173;
pix4._x = 171;
}
if (mx == 9) {
_root.attachMovie("allpics", "pix5", 1);
pix5._y = 258;
pix5._x = 0;
}
if (mx == 10) {
_root.attachMovie("allpics", "pix5", 1);
pix5._y = 258;
pix5._x = 83;
}
if (mx == 11) {
_root.attachMovie("allpics", "pix", 1);
pix._y = 258;
pix._x = 171;
}
if (mx == 12) {
_root.attachMovie("allpics", "pix2", 1);
pix2._y = 345;
pix2._x = 0;
}
if (mx == 13) {
_root.attachMovie("allpics", "pix3", 1);
pix3._y = 345;
pix3._x = 83;
}
if (mx == 14) {
_root.attachMovie("allpics", "pix4", 1);
pix4._y = 345;
pix4._x = 171;
}
}
id1 = setInterval(movePics, _root.speed);
[F8] Movie Load Loop
Hello,
Is there a way you can load a (CS3) movie from flash 8 without it looping?
I have been having this issue. Everytime I load a movie that was published with ActionScript 3, my movie would loop and not stop. I have setup the stop at the end of the timeline but to no avail. If I change the publish settings to to ActionScript 2 it will work fine but it has to be in AS3 as I have got a new form running in it.
Here's the code:
stop();
loadMovie("sections/contact.swf", "loadcontact");
can anyone help?
thanks
How To Loop A Scripted Movie?
I have a flash banner, all scripted. On the last frame of the banner I want to tell it to go back to frame 2 and play from there, causing it to contiously play from frame 2 when it reaches the end. However, it's not in the third frame I have
gotoAndPlay(2);
What happens is it executes the code in frame 1 jumps to frame 2 and nothing at all, it is running the codes, because the trace commands are running over and over again in the output window.
|