How To Stop Loop In Only One Layer
Hi i think this question is very basic, i have this movie and i want it to loop, but i want to stop the loop in only one layer of the movie, how do i do that? If i go to actions and apply a "stop" at the end of the layer, the whole movie stops, i bet you know that already, so that's the thing. Thanks to anyone that can help.
SitePoint > Design Your Site > Flash and Actionscript
Posted on: Oct 13, 2004, 12:08
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
How To Stop Loop In Only One Layer?
Hi
i think this question is very basic, i have this movie and i want it to loop, but i want to stop the loop in only one layer of the movie, how do i do that?
If i go to actions and apply a "stop" at the end of the layer i want to stop, the whole movie stops, i bet you know that already, so that's the thing.
Thanks to anyone that can help.
How To Make One Layer Loop And One Layer Static?
I have an interactive Flash application that prompts users and moves them backwards and forwards to different frames.
While this is happening can another layer loop? At a high level can someone please explain what I should be doing to achieve this?
~ Humour
How To Stop One Layer
How can I stop only one layer so that the whole movie won't stop. I tried to set on the frame's actions to stop, but it stops the whole movie. I don't want to make millions of keyframes
Stop Layer
I have like 3 layers, 2 of which draw lines across the screen. Now I want the 2 layers to stop and stay on the screen while the other layers do what they need to do.
The problem I have is the 2 layers just disappear and the other layers after that just do what they are supposed to do.
Anyway to make those stick? Thanks!!!!!!
Layer (stop)
Hi there,
Quick question... can I make the movie loop while some of the layers play once and then stop?
I got a logo I am making.. and there is shapes moving in the background... I want the title to apear once and stay... while the rest of the movie keeps looping...
Thanks guys n gals! <
Can You Stop 1 Layer Out Of 3 Or More?
hello, I have created a simple movie containing 3 layers...is it posible to stop the middle layer once it gets to the end without stoping the whole movie....for example I want layers 1 and 2 to keep rotating (repeating)once they get to the end to go back to the begining and play again...but I want layer 3 to stop once it gets to the end and freeze while the other 2 layers keep playing ?
help, thanks !!
How Do I Loop A Layer ?
Hi All,
How do i get a MC in a layer to loop back to the beginning??
Im using MX
Cheers,
paulm
Also, does anyone know how to import flashtyper output???
Cheers again !
I Only Want 1 Layer To Loop
I lie, I actually want 2 layers to loop while the remaining layer carry on. I read somewhere about converting them into a movie clip but have trouble with this also.
Any advice would be most appreciated.
Getting A Layer To Loop?
Hello All,
I am really new to actionscript, so bear with me here.
Ok, I have like 5 layers setup. On one layer (my background layer, I have frames setup so that it runs a nice little animation (on that layer only). The above layers are all stagnant. What I want to do is to be able to have the animated layer (my bkgrd layer) be set up on a loop, so that it is always moving at all times...all the other layers will remain the way they are.
So..what's the actionscript for this layer? Or is there another way to set it up not using actionscript? And what frame do I add the actionscript to?
Any hlp much appreciated..
Thanx,
chal7ds
chal7ds@yahoo.com
Help Stop Repeating Layer
How can I stop a single layer from repeating itself but have the rest of the layers continuing.
Do I have to strech the layer out until the end of my movie ? or is there an easier way ?
Thanks
Simon
Stop Sound For A Layer
I was wondering the best way to stop a sound for a particular action - e.g. a circle moving across a screen. I want the sound to play only while the ball is going across the screen. I have a seperate timeline layer that is identical to the circles in that scene. When I custom edit the sound, that would be cumbersome as I tend to frequently change the length of the timeline.
When I insert stopallsounds, it effects not only that sound but all of my background music as well. I tried just a stop() but that doesn't seem to work either.
Any suggestions?
How Do You Stop A Layer From Replaying?
i have a movie clip made and i want one layer to stop from playing over again when it reaches the end. i tried adding "stop" at the end of that layer, but it completely stops the whole movie clip, which i don't want. can someone please help me? thanks in advance.
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
Multiple Layer Loop
I have been working on an animation project for a client's website and I have come across a very wierd situation I haven't sen before. I need to be able to loop 10 separate layers all at the same time, all starting from the same point several frames into the scene. They need to loop up until I work in a button to continue the animation, which should be a lot simpler. How do I get all of these layers to loop in unison?
A Layer That Ignores The Stop(); Action?
hi i was wondering if there is any code to allow a singler layer to not be affected by stop(); command, im having a video play in the background of my flash production and it stops when it hits a certain frame and i want it to play til the correct frame. cheers in advance
Stop Command - Per Layer, Not Per Frame?
I'm sure this is a VERY obvious basic question....
BUT (!)
Is there any way to place a stop command on a frame of a LAYER only, rather than the whole frame 1 of all layers within my movie? (ie I want the rest of the movie to play whilst one layer (which has the ability for the user to push a 'next' button to move through the frames in that layer) stops until the user pushes the next button)
Thank you.
Kristen.
Stop Command - Per Layer, Not Per Frame?
I'm sure this is a VERY obvious basic question....
BUT (!)
Is there any way to place a stop command on a frame of a LAYER only, rather than the whole frame 1 of all layers within my movie? (ie I want the rest of the movie to play whilst one layer (which has the ability for the user to push a 'next' button to move through the frames in that layer) stops until the user pushes the next button)
Thank you.
Kristen.
Making One Layer Not Loop While Another Loops?
Download my file: http://www.rdi1.com/personal/banner.fla
If you look at my file you will see what I mean.
The guide animation (top layer) is supposed to loop (and it does). The 'IRA' layer I only want to play once, then stop. I have the objects option set to "Play Once", but obviously I don't know what I'm doing so it doesn't just play once.
Thanks for the help,
Matt
Stopping A Loop On A Single Layer...
Hi,
I am fairly new to flash, but I am just having a bit of trouble getting something to work. I have tried, but to no avail. Basically I would like to stop the loop on one layer of animation, while the rest of the layers continue their loop for infinate times.
Any help would be greatly appreciated, thanks.
EDIT: I forgot to mention I am using Flash MX.
Supernorwichfan.
Stop Scene Loop Without Stop();
I have an interactive flash application that I'm building, but it's gotten kinda large (~200k) because of one large png file. So, I want to build a preloader for it, but I seem to have some difficulty getting it to a) stop looping back to scene 1, or b) look good if I use stop();
for some reason, the folowing scene's moving elements look crappy if I use stop(); in it's first frame in order to stop it from going back.
I don't want scene 1 to continuously reappear, but stop messes with the moving elements in scene 2.
Any novel suggestions? Thanks in advance for even reading this.
Stop Loop And Replay Loop
Okay on my stage I have a start(MC) and a stop(MC) and a clear(MC) these will be used as buttons. I also have a dynamic text box that shows my output.
I am making it so when you click start it will start counting from 0 to whenever you hit the stop button, I have changed my fps to 1 so it doesn't crash my computer, And this is where I am running into trouble. Here is my code.
var myTimer = 0;
startBtn.onPress = function() {
this.onEnterFrame = function() {
myTimer = myTimer + 1;
//trace(myTimer);
this._parent.myTxt.text = myTimer;
}
}
stopBtn.onPress = function() {
trace(myTimer);
this.myTimer.onEnterFrame = stop();
}
I would also like it so when you hit start again it picks up where it left off.
Please any help would be greatly appreciated.
Thanks
T
Stop A Layer From Repeating Without Stopping Other Layers In The Scene
Hi!
I am in the process of learning flash and am having a bit of problem with one of the scenes. I have several layers on the main scene, but I don't want one of the layers to repeat itself, without effecting the other layers.
So, I just want that layer to run once and the other layers to repeat.
Is there a way to do that? How do I do that?
How Do I Make This Movie Clip A Loop In The Mask Layer
Hi, please show me how to make this movie clip a loop using actionscript in the mask layer. Sorry the attachment is not working so I can't attach the flash file.
Basically I have two layers for main timeline; the first layer is for background and the second layer is for mask. Inside the mask layer there are two layers.
I put 6 different images side by side inside the movie clip and the movie clip is masked. I used this actionscript for the movie clip. I get to see the image slides to the left. When it reaches to the 6th image, it cuts off but I want this continues as a loop. How do I achieve this?
Quote:
onClipEvent(enterFrame) {
speed = -2;
this.x += speed;
}
Thank you.
Stop Loop
How do I stop a movie from looping? I want opening animation then to stay static until the user selects and option....but mine just keep looping no matter what I tried....
Can Not Stop Loop
Hi... even though I have the loop box not checked and I have placed a stop on the end of thelast sceen, for the life of me I can not get this thing to not loop. I just want one showing of the movie.
Oh BTW I am using Windows2000 SP2, IE 5.5 latest version and publishing in NetObjects Fusion MX. Hope this helps.
Thanks much for your help.
Stop The Loop
Hi, I've created a movie in Flash 5.
Everything works great. I exported it so that it will play in the Flash player but the player is set to loop by default and I only want my movie to play once.
Any ideas?
Can Anyone Help Me Stop This Loop?
Hi there
I'm trying to stop a tunnel effect so that it stops after, for example, 10 loops. Can anyone out there help with the loop code, and where would it go in the following set up?
The code is set up as follows:
Theres an ACTIONS layer and a MAIN layer on the main timeline.
1. Actions layer has 6 frames, as follows:
FRAME 1
i = 0;
alpha = 0.1;
BBB = 5;
maxlight = 20;
toggleHighQuality();
_root.attachmovie("AA", "NN", 9999);
NN._x = 315;
NN._y = 200;
// Mouse.hide();
FRAME 2
for (j=1; j<5 && i duplicateMovieClip("/li0", "li" add i, i);
setProperty("/li" add i, _xscale, getProperty("/li" add (i-1), _xscale)+i*alpha);
setProperty("/li" add i, _yscale, getProperty("/li" add (i-1), _yscale)+i*alpha);
alpha = alpha*1.14;
i = Number(i)+1;
}
FRAME 3
if (i gotoAndPlay(_currentframe-1);
}
FRAME 4
setProperty("li0", _alpha, 0);
FRAME 5
i = maxlight;
// if( first ==1){
// li0._x = li0._x -1;
// first = 0;
// }else{
// li0._x = li0._x +1;
//
// first = 1;
// }
//
while (Number(i)>0) {
setProperty("/li" add i, _y, (getProperty("/li" add (i-1), _y)+getProperty("/li" add i, _y))/2+11*(li0._y-200)/200);
setProperty("/li" add i, _x, (getProperty("/li" add (i-1), _x)+getProperty("/li" add i, _x))/2+11*(li0._x-400)/400);
setProperty("/li" add i, _rotation, getProperty("/li" add (i-1), _x)/4-90);
i = i-1;
}
FRAME 6
BBB = BBB-1;
gotoAndPlay(5);
if (BBB == 0) {
NN._visible = 0;
}
2. Main layer
startDrag ("li0", true);
Thanks in advance for your time
Rob
Can Anyone Help Me Stop This Loop?
I'm trying to stop a tunnel effect so that it stops after, for example, 10 loops. Can anyone out there help with the loop code, and where would it go in the following set up?
The code is set up as follows:
Theres an ACTIONS layer and a MAIN layer on the main timeline.
1. Actions layer has 6 frames, as follows:
FRAME 1
i = 0;
alpha = 0.1;
BBB = 5;
maxlight = 20;
toggleHighQuality();
_root.attachmovie("AA", "NN", 9999);
NN._x = 315;
NN._y = 200;
// Mouse.hide();
FRAME 2
for (j=1; j<5 && i duplicateMovieClip("/li0", "li" add i, i);
setProperty("/li" add i, _xscale, getProperty("/li" add (i-1), _xscale)+i*alpha);
setProperty("/li" add i, _yscale, getProperty("/li" add (i-1), _yscale)+i*alpha);
alpha = alpha*1.14;
i = Number(i)+1;
}
FRAME 3
if (i gotoAndPlay(_currentframe-1);
}
FRAME 4
setProperty("li0", _alpha, 0);
FRAME 5
i = maxlight;
// if( first ==1){
// li0._x = li0._x -1;
// first = 0;
// }else{
// li0._x = li0._x +1;
//
// first = 1;
// }
//
while (Number(i)>0) {
setProperty("/li" add i, _y, (getProperty("/li" add (i-1), _y)+getProperty("/li" add i, _y))/2+11*(li0._y-200)/200);
setProperty("/li" add i, _x, (getProperty("/li" add (i-1), _x)+getProperty("/li" add i, _x))/2+11*(li0._x-400)/400);
setProperty("/li" add i, _rotation, getProperty("/li" add (i-1), _x)/4-90);
i = i-1;
}
FRAME 6
BBB = BBB-1;
gotoAndPlay(5);
if (BBB == 0) {
NN._visible = 0;
}
2. Main layer
startDrag ("li0", true);
Thanks in advance for your time
Rob
How Do I Stop A Loop?
i have an image of a globe that i ahve tweened to increase it in size whilst it looks like it is rotating. How do i stop it from looping back and make it stay large, rotating at the same time?
Why Why The Loop No Stop
code:
///frame 1
function result(a, b) {
return a+b;
}
var i = 0;
while (i<2) {
var value = result(i, 1);
trace(value);
if (value == 2) {
break;
} else {
gotoAndStop(2);
}
i++;
}
///frame2
stop();
trace(i);
you can see the program should do 'gotoAndStop(2)' in the first loop
because the value equal '1' in this time and the variable i should equal '0' but..
in fact,flash got frame2 after finished while loop 2 times
in the way the "else" doesn't work.
why??
Stop The Loop
i'm sure this is the newbiest of newb questions... basically i made a little flash intro to my site... and i only want it to run one time, as opposed to continually looping... is this something i can turn off using html?
How To Loop And Stop
i have basic frames that need to loop all movie from frame 1 to 100 but i need to stop after 3 loops, anyone can help me?
Edit....
i wanted something like this but it want work.. i added this to the last frame
var countLoop=0;
countLoop += 1;
if (countLoop>3) {
stop();
}
Stop A Loop
How do I make my scene stop looping?
Also when i preview my intro in a browser its not centered. How can I center it?
How Do I Stop Loop? And Should I?
I've got a simple function that works towards a lesson progress bar.
onEnterFrame = function () {
progTotal = Math.round (_root._totalframes);
progCurrent = Math.round (_root._currentframe);
progPercent = (progCurrent/300);
trace(progPercent);
}
Works like a champ, but as I traced it I noticed this occurs about 15 times a second (15fps).
This seems like a ton for overhead computing to me, and was wondering if I could just grab it initially on the enterframe and stop. I only need to know once in the frame when it changes (on the entry of a new frame).
Ideas?
Thanks.
Stop On Second Loop
Hello everyone.
Great start to the work week when I have a question this early in the day.
Here it is. I have a web banner that loops twice. I have the loop working no problem (code below). Now on the second play I want to stop it somewhere other than the last frame. For example the movie has text that fades out so the loop can fade in on the second play. But I want to stop on the text before it fades out since the movie is going to stop.
Does anyone know if this is possible. And if you point me in the right direction.
Code:
var loop:Number;
if (loop == 1) {
stop();
}
else if (loop == undefined) {
loop = 1;
}
How To Stop A Swf, Mid-loop
I have a banner that is looping the appropriate number of times, But I need it to stop on a specific frame after looping (NOT the final frame of the swf).
I need it to play through to the frame i want (Frame 85)... instead of JUMPING to it (after the ad plays the fourth time).
This is the script i'm using.
quote:((!x ? x=1 : ++x)<4) ? gotoAndPlay("start") : gotoAndstop(85);
Is my actionscript vocab just limited? I was so proud of myself for figuring it out up to this point. But I've hit a roadblock. Help? Thanks.
jen
How To Stop A .swf To Loop?
I need to do a several amount of flash clip and it need to stay in .swf files. So all the flash clip a made by now don't stop looping. When I preview it by the CS3 Pro, it's ok. But when I export it and play it in my browser, it won't stop looping. How can I stop looping a SWF file when I export it? Can any one help me?
thanks
How To Stop This Loop?
Hi,
I've got a proplem with stopping this loop:
In the first frame I got this code:
if(!initialized){
i=0;
initialized=true;
}
i++;
duplicateMovieClip ("p", "p"+i, i);
p = eval("p"+i);
p._x = -70+random(10);
p._y = 45+random(10);
if (i==30){
i=0;
}
...and in the second frame I got:
gotoAndPlay(_currentframe-1);
The effect is that the clip duplicates over and over again. Now, I want to stop that loop, e.g. when "i" reaches 30. I've tried to do that by changing the last part of the code:
if (i==30){
stop();
}
...but didn't work:) I wonder if anyone can help me on this. I'd appreciate.
Actually I wanted the animation to stop, dissapear or was removed. I've tried this one for instance:
if (i==30){
removeMovieClip ("p");
}
but didn't work either.
Thanks in advance for any help.
Stop Loop Or Not?
I've got a simple function that works towards a lesson progress bar.
onEnterFrame = function () {
progTotal = Math.round (_root._totalframes);
progCurrent = Math.round (_root._currentframe);
progPercent = (progCurrent/300);
trace(progPercent);
}
Works like a champ, but as I traced it I noticed this occurs about 15 times a second (15fps).
This seems like a ton for overhead computing to me, and was wondering if I could just grab it initially on the enterframe and stop. I only need to know once in the frame when it changes (on the entry of a new frame).
Ideas?
Thanks.
How Do I Stop A Loop?
How do I stop an animation from looping?
I attached the file that I need this done on.
Thank you,
Toad
Stop Loop
How can we prevent a clip loaded with:
loadMovie("someMovie.swf",qaz)
from looping? I want to load it and I don't want it to loop!
Thank you very much
Stop A Loop?
I've used Swish to create a .swf file. Everything works fine, but I can't get the file to cancel the loop. I don't want the movie to restart every time it ends. If you could help I'd really appreciate it. Go to http://hop.to/garbage to see the movie I am talking about. Thanks!!
Loop De Loop Need To Stop
Dear Helper People
I am trying to make a movie using the The Matrix Bitstream Effect
http://flashkit.com/tutorials/Specia...52/index.shtml
but I want to goandplay 10 times then stop.
Could you please tell me how I can set it so it goes through the frames 10 times then stops.
Well since I have you hear I would also like to ask.
I am also using the DOS Text Typer Effect
http://www.were-here.com/forum/tutor...sor/index.html
Why is it when I try to insert pictures to desplay on the screen, the pic moves along with the word.
How can I desplay it and not have it move.
-Thanks
Loop+duplicate Mc + Stop, Help
Hi, my problem is this one:
I have a loop in a MC who duplicate 3 Mc (blue, red, yellow). Blue is a Mc of a graphic symbol with a guide.
i would like to do 3 loops to my loop, and after this, I would like that all my duplicated Mc stop.
example of script into my loop:
if (CopyCount < 99 and _root.B == 1) {
CopyCount = Number(CopyCount)+1;
trace ("Blue" add CopyCount);
duplicateMovieClip (_root.Blue, "Blue" add CopyCount, CopyCount);
setProperty ("_root.Blue" add CopyCount, _y, "384");
setProperty ("_root.Blue" add CopyCount, _x, "512");
}
At the last image of the loop, I put:
counter=counter+1;
if (counter !=3) {
gotoAndPlay (2);
} else {
stop();
}
I was thinking that the stop could stop my car to moving, but not.
Do you know how I can do it,
THANKS.
How Can I Stop The Loop Function?
When I'm in the Publish Settings window, I'm making sure the loop button in the HTML section is not checked, yet my movie still loops after I publish.
Where am I screwing up?
jon
Start And Stop A Loop?
Im new to mx, and am used to tell targets to control audio events.
What would be the easiest way to have a start and stop button that starts/stops the audio loop?
|