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




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.



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 08-15-2004, 05:36 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

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.

Is There A STOP ON FRAME Command?
I have a question: is there an action like: STOP ON FRAME? Can you write like: stop animation on frame 28 for instance? That means not putting “stop()” on frame 28, instead writing “stop on frame 28” in the thirst frame….is it possible?

Help With Sending Gotoand Stop Command Across An HTML Frame
Please someone help me out here...

I have a page with two html frames, named 'nav' and 'main'. I have a flash menu in the 'nav' frame named 'navigation.swf'. When you click a menu button in this movie, it loads a corresponding page in the 'main' html frame, and creates a highlight on that button by going to and stopping on the correct keyframe. For instance, if you click the "contact" button, the 'contact.htm' page loads in the 'main' html frame, and the "contact" button highlights to reflect the menu choice and stays that way until you click a different button.

Only problem is when you click a link in the 'main' html frame, the button highlight doesn't know to change.

How can I make it so that when you click a link in the 'main' frame (thus loading a new page) the 'navigation.swf' in the 'nav' html frame knows to change keyframes to make the menu button highlight correctly?


Thanks much in advance...

AS3 - After Command Another Command That Starts A Jump To A Specific Frame
Hi everyone,

I am a newbie using Flash CS3 and Actionscript 3.0. I have spent hours looking through forums and found no answer to my problem. Maybe it is because it's not possible but I just wanted to see if an expert can help me out.

I have a button and a few animations. Basically when I click the button I want to say: "When you are pressed down I want you to play at this specific frame for this many frames and then jump to a specific frame and play on there."

wrong code until now:

btn1.addEventListener(MouseEvent.CLICK,go1);

function go1(event:MouseEvent):void{
gotoAndPlay("frame10");
}

if (you get to "frame 15"){
then gotoAndPlay("frame5")
}

Any help would be very much appreciated!

Changing Movie Clip 'layer' Order Command?
Hey all,

my problemo is: I have 10 movieclips placed on the main timeline. Each of these clips has an swf loaded into it using the loadmovie into target command.

When 1 of the 10 is selected I need it to 'come to the front' of all the other clips, as the others are made inactive and a second-level nav appears for the active clip.

Is there a command like (in designer speak) bringmoviecliptofront?

Help much appreciated..save me re-coding alot of work!

Movie Won't Stop On Stop Command ?
Hello again. I have a movieclip following a motion guide. At the end of the guide, a window comes up with some text. On this frame, on it's own seperate layer, I have a stop command. What is suppossed to happen is after reading the text, you click on the window, it dissappears, and the movieclip follows another motion guide. For some reason though, when I output the FLA, it blows right past the stop command. I have tried making the stop command multiple frames, and I have double checked that there is no other command overriding the stop on that frame. I have no clue. Any ideas? Thanks,

(I would post the file, but it's so large it's killing my G5)

Movieclip Won't Stop On Stop Command?
Inside a movieclip (track) I have a ball on a motion path. At the end of the first motion path, a box comes up and the movie is suppossed to stop on it. For some reason, it keeps going right on to the next motion path. The stop is on it's own layer, and the weird thing is, there are two other stop commands on the same layer, at the beginning and the end of the movie, which both work. I have tried everything I know. Please help. Thanks,

-A

Stop Command
On loading a particular swf, I want my timeline to play up and STOP on frame 96. But I have frames after my STOP that I want to reference as the user navigates. Is this possible? Because it doesnt seem to be working.

CRO8

How Do You Use The Stop Command
how do you use the stop commande in the actionscript to stop your movie from repeating when it is displayed on the internet or when int the swf file

Help With Stop Command
hi am trying to make a small game with flash mx. and i need to no how to make a object stop when it hits a wall so they have to move it in diff way. if any 1 could help me plz thanks

MC Won't Stop On Command
I'm trying to get a MC to stop, then play again once a button is clicked. I am using the _root.MCname.stop(); command, but it seems to just bypass it completely. I gave the MC an instance name and everything, and I just con't figure out what I'm doing wrong. Help please??

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 !!



Go To And Play/stop Command
ok...here is what I'm doing:
I have a movie on _level2 and _level3....I placed a button in _level2 and I want the action to tell _level3 movie to go to and play frame 18 in Scence2

**Scene2 is located in _level3.....

So what is the code that I have to write???

thanx in advanced

Moe

Flash 5 - Stop Command
This should be easy. But it isn't.

I'm doing a preloader with the run protection (saw it in a tutorial somewhere on here and have the general idea just trying it out). However, I am just trying to make the movie stop using... stop;


So far I have two layers, one for an animation in the preloader, and one for main timeline.

The first fram does checks and things.
The second has the 'you cannot run this' (or will have)
The third onwards will be the rest of the preloader/movie.

I have put stop on the second frame and on the last fram yet when I check the 'publish preview' or press 'Ctrl+Enter' or 'Ctrl+Shift+Enter' it continues to loop.

I know it does because I have :
1) a test animation of the rest of the movie
2) a trace command which keeps printing

It has to be simple and I am wondering if someone can please point me in the right direction.


I'm just starting to use flash script more and have a background in VBA/VB coding.

Vince

Stop Command In Menu
Hello all,

I would like to create a scrolling marquee where the various text that is scrolling are the buttons.
This, I already know how to do but... how do I make the scrolling stop when the user hovers over one of the buttons?

Any info would be greatly appreciated.

Thanks!

@lex

For Loop With Stop(); Command?
hi

does anyone know how to make a for loop with the stop command? sort of like below? it doesn't work though:

for (a=1; a<=10; a++) {
"_level0.mc"+a+".stop()";
}

thanks!

Over Write Stop Command
Hi,

is it possible to over write the stop command using ACTIONSCRIPT?

Cheers,
G

The Stop(); Command Is Failing Help Me Plz
I have a keyframe with the stop(); command on it. It is the final frame of my .fla. It has a button that plays it from the beginning again, but just some static text. However, after a couple seconds, it loops back to the beginning on its own. Why would it do that? How can I stop it? Thanks.

Smaug

[F8] CS3 Stop(); Command Ignored By Menu
Hi Guys,

Bit of a random one, but I hope that someone has an idea of what is going on. When my movie loads it gets to the first stop(); and stops. But when I use the navigation to move about, it ignores the stop on the landing frame and plays all the way through. This has only started happening since I upgraded to CS3. I have tested in FL8 / 9 and 9.45 with the same issue?

The majority of the content is loaded in from external swf or xml / txt files so it should all be behaving, but for some reason it's got a mind of it's own. I am sure that this is 100% user error, but I can't work out what I've done here.

As always, any help would be appreciated. The movie can be seen at http://www.fatepromotions.co.uk/arvella/arvella_v1.html and the source files are at http://www.onemarketingmonkey.co.uk/...sample_zip.zip if anyone has time to have a look it would be apprecited.

Regards,

Will

[F8] Problem With Stop; Command
hey, I'm using flash 8 but seem to have a problem using the stop; command. On my main timeline I have a movie clip. I created an actionscript layer 'inside' the movie clip, with on the first frame a stop; command. when testing the movie it just plays on.
Could anyone help me solve this,

thanks in advance, Jables

SWF Goes White At End Despite Stop Command
The title says it all really; I've got a simple FLA that just slides some content into place.
It's got a stop frame at the start because it's actually a submovie of a parent movie (and the stop on the first frame accommodates the preloader in the parent) so when the SWF is viewed in isolation a quick tap of the Return key is needed to start it playing... entirely normal.

BUT when it gets to the end the SWF it goes white, instead of displaying the content visible on the last frame (30). There's a stop command on the last frame. Why does it all go blank?

I figure you'll need the FLA to help, so here it is:
http://tinyurl.com/2wmc2z
(2.5MB)

I wondered if the AS inside the slideshow_mc was causing it, but swapping slideshow_mc for a regular static image with no internal AS made no difference. None of the other symbols have any internal scripting.
This is baffling me, mainly because the FLA is so bare-bones that I can't see where the problem can possibly be hiding. No doubt I'm missing the wood for the trees, so can someone end my pain here?

Cheers.

Stop Command Not Working
I have a flash file that includes a video clip. The first two lines of AS3 code say:

movie_1.stop();
movie_1.alpha = 0;

movie_1 is the clip. The clip does not play when I preview it in flash (CS3). At least not until it has been triggered to play. The clip does not play when previewed in Dreamweaver after I have made Web page for it. At least not until it is triggered to play. When I test the Web page created in Dreamweaver that includes the Flash file off of my hard drive, the clip does not play. At least not until it has been triggered to play.

Why is it that the Web page that has been created always plays the music found in the movie clip once it is posted on the Internet?!?

Stop Music Command?
how would i stop music if a button is pressed?
on (release) {
stop.street.mp3?? or somthing like this?

Stop GeURL Command
I have a mailing post script that executes a url to sign up on a mailing list

getURL("http://app.campaignmonitor.com/api/api.asmx/Subscriber.Add?ApiKey=b6eaddb23e91f8f6aaabbfa6d4c5 81abde851343&ListID=50578&Email=" + _parent.email + "&Name=" + _parent.namef + "", "_blank","POST");

A window opens up that I don't want to open, I want to kill the window before it opens, is there a way to do it?

Stop Command Not Working?
Well I just got flash 8 and I opened a site I started in Flash 7. I converted it to Flash 8 format and I was able to make amazing changes to it thanks to the new Flash. Anyway, now, I'm having troubles with it. It could be that my stop(); commands aren't working because when I put them on a frame, the swf. completely ignores it and continues on. The hting is, if it were just the stop(); commands malfunctioning, my swf. would keep looping. But, it does NOT loop, and instead stops at the last frame. I might have accidentally triggered an option but if I did, I have no idea what I pressed. So if any of you guys have any suggestions, that would be most helpful. Thanks

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.

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.

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.

FS Command - Stop/exit/pause
After using the FS Command to make the presentation Full Screen, is there a way to not only EXIT the presentation, but PAUSE it as well? I want to give users the option to PAUSE, MINIMIZE and come back to it later--starting from the same point they'd left from.

Sorry if that doesn't make much sense...still on my first cup of coffee.

-banjk

Stop (); Command Isnt Working
strange problem here,

i have this button:

again_btn.onRelease = function() {
gotoAndStop(1);
};
stop();


when button is clicked it goes to frame 1 for one frame (1/35 of second) then goes back to the page with this button on it.

On frame 1 there is actionscript for my game and a stop(); command but it doesnt stop. When the swf is opened it stays on frame1 untill my timer runs out but when it goes to frame one from the button it doesnt stop.

completely baffled me, ive tried using frame labels and that didnt make any difference.

Were am i going wrong or is flash being buggy?

[F8] Global Timeline Stop Command
OK Guys, hopefully someone can help me out here or at least point me in some direction!

I have a presentation which consists of a main timeline with an assortment of animations and MC's which run independently of the main timeline. I also have some animations which loop depending on array data and also some switch commands to control navigation.

All was going well until I was asked for a pause/play button to be added.

Due to the dynamic nature of the presentation this isn't as easy as a simply pause/play button with a stop and play command

Anyone have any idea how I can stop something like this in it's tracks and then start again from where it is without some major rework?

Mike

Stop Command And 1119 Error
Im am new to actionscript and what i am trying to do is simple, so this could be a simple fix. What i am trying to do is.... I have 6 buttons, that when you roll over one, it jumps to a particular frame where there is a text field off to the side giving more info.

First problem is, the stop command is not working, its just scrolling through each frame with each text field on it.

Secondly its giving me the following errors

1119: Access of possibly undefined property RollOver through a reference with static type Class.
Source: acc_btn.addEventListener(MouseEvent.RollOver, accOver);

1119: Access of possibly undefined property RollOut through a reference with static type Class.
Source:acc_btn.addEventListener(MouseEvent.RollOut , accOut);

Here is what my code looks like on frame 1 of the actionsript layer.

stop();

import flash.events.MouseEvent;

acc_btn.addEventListener(MouseEvent.RollOver, accOver);
acc_btn.addEventListener(MouseEvent.RollOut, accOut);

function accOver(event:MouseEvent):void{
gotoAndStop("getAcc");
}
function accOut(event:MouseEvent):void{
gotoAndStop("1");
}

Any help would be greatly appreciated.

Stop Actionscript Function At A Specific Frame (stop Looping)
I want to stop an effect at a specific frame but I dunno how.
Do I have to put something in the code?
I'm confused.
Or just tell me how to stop it from looping.
Edit:
Is it possible to attach this to a movie clip? Then i can stop it or use onEnterFrame and then escape();
I actually have no idea what I am talking about. /Edit

Here is one of the code I borrowed:

MovieClip.prototype.placeInSpace = function(id) {
var ratio = this.focaldistance / Math.sqrt(this[id].z * this[id].z);
this[id]._x = this[id].x * ratio;
this[id]._y = this[id].y * ratio;
this[id]._xscale = this[id]._yscale = 1000 / this[id].z;
}
MovieClip.prototype.randomPlace = function(id) {
var radius = this.rmin + (this.rmax - this.rmin) * Math.random();
var polar = 2 * Math.PI * Math.random();
this[id].x = radius * Math.cos(polar);
this[id].y = radius * Math.sin(polar);
this[id].z = this.zmin + (this.zmax - this.zmin) * Math.random();
}

Here's the other code cause I can use two in my movie:
function mover() {
// Move the particle over time
this._y += this.speed;
this._yscale += 10;
this.speed++;
if (this._y>500) {
this._y = 0;
this.speed = Math.random()*10;
this._yscale = 100;
}
}
function starField(x, y, n) {
// Generate a starfield of specified dimensions with n stars
for (var i = 0; i<n; i++) {
var star = this.createEmptyMovieClip("star"+i, i);
var dot = star.createEmptyMovieClip("dot", 0);
star._rotation = Math.random()*360;
star._x = x;
star._y = y;
dot.lineStyle(0, 0xFFFFFF, 100);
dot.moveTo(0, 10);
dot.lineTo(0, 15);
dot.onEnterFrame = mover;
dot.speed = Math.random()*10;
}
}
starField(275, 200, 100);

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

Tired Of Hearing This Question Yet? (stop Command)
Okay, so I'm either the first one ignorant enough to not know this, or I'm the millionth person to have asked this.

I'm totally new to actionscript, and I was wondering- what's with the empty layer that just says "stop()" in the actions? What does it do, and why does the movie just not stop there?

Preloader Causing The Stop Command To Not Work[CS3]
Hi,

I am using CS3 actionscript 2. I am having trouble with the preloader. It works, but it is causing the stop commands throughout the rest of the movie to not work. I know it is the preloader because when I remove it, it works. It is just a basic preloader. index12.fla has it with the preloader and index13.fla doesn't.

The file is located here: http://www.gregbrophydesign.com/test1/index12_13.zip

The swfs can be viewed at http://www.gregbrophydesign.com/test1/index12.html

http://www.gregbrophydesign.com/test1/index13.html

Any help would be greatly appreciated.

Thanks,

Greg

Why Export Video Is Interrupted By Stop() Command ?
Is correct that when I try to export a project as video (quicktime format), the exporting process is interrupted because there are 3 stop() actions on the main timeline ?

If I remove the stops everything works perfectly, but then my embedded movieclips are not played correctly in sequence.

thanks

Reverse Animation Script With Stop Command?
Hello,
Any idea how to script reverse animation and stop it with "on (release)" on desired frame?

Sounds easy?

I was experimenting but I didn't succeed. You may look at included file for problem...

Controlling Swfs: Play And Stop On Command?
Does anyone know how to control a swf within a movie e.g. an animation with Play and Stop buttons?

Cheers,

Yossi

Controlling Swfs: Play And Stop On Command?
Does anyone know how to control a swf within a movie e.g. an animation with Play and Stop buttons?

Cheers,

Yossi

Flash Player Skipping The Stop Command
I've got a very unusual problem. Basically, at various points I issue a stop(); command on the timeline. It stops for a split second and then plays on. It's quite bizarre. Now there are no looping movie clips or anything on the stage that would be causing this and I've gone through the FLA with a fine-tooth comb but can't see what's causing it. Is there a bug in the player or has anyone experienced this before? (I'm using Flash MX by the way!)

Carousel To Slow Down And Stop On Cursor Command.
Hi guys,

I'm currently finishing off my own version of the tut Carousel. I've been trying to work out how to get the Carousel to slow down and stop when the cursor rolls out of the Flash area. Currently the Carousel keeps spinning rapidly. I'm a bit of a novice, sorry!

Any help would be much appreciated.

Thanks

Is There A Way To Stop/play/goto Frames On One Layer Only.
I'm not very good at actionscript at all.

Stop Command Only Affects Visual, Audio Keeps Playing
I'm trying to use the stop command for my whole movie, I have audio in the timeline and it keeps playing regardless of the stop command. How can I command it everything to stop?

Copyright © 2005-08 www.BigResource.com, All rights reserved