Why won't my movie clip stop playing

when i press shift + enter it just loops without stopping when i press the first button to launch it

movieclip timelines loop by default.  you need a stop() in the last (or some other) frame to stop the timeline from continuing to play.

Similar Messages

  • Movie clip stops playing for no reason

    I am making a banner that has multiple movie clips sharing the same area, creating different rainbow effects when different areas (invisible buttons) are moused over.
    First of all I couldn't figure out if there was a way to have one invisible button over the whole area that changed to a different colored effect with each mouse over (first mouse over the black and whites would change to reds, second would change it to blues, third would change it to browns, etc.). Since I couldn't figure this out I settled on creating three buttons covering a third of the banner each, so when the mouse passes over one button it changes to reds, over another button it changes to blues, over the third it changes to browns.
    The effects are movie clips where each frame has another stripe changing color so it goes in a wave effect from one to the next, and then goes back to white and black in the same manner.  The first frame of each movie clip I had to turn into a nested movie clip so I could turn the alpha to 0, since I was going to have these color effect movie clips on top of one another in the main timeline on different layers, and so you could see the effect even if that color layer wasn't on top. I used the same nested movie clip with zero alpha for the first frame of each color effect clip (reds movie clip, blues movie clip, etc), so I dont' know if that's an issue.
    Anyway, it seemed to work fine for a while, but after working on it for a while longer (and not getting any further since I removed most of the changes I made), now when I test the movie the mouse over does not seem to work correctly. It works fine, seemingly, for the first time I mouse over each button, but in order to have it work again I have to mouse over the button twice, and then it will pause randomly during a part of the clip and I have to move my mouse back over for the movie clip to continue.
    I can't tell if this is because of the overlapping movie clips, or because my buttons are messed up, or if my actionscript is messed up, or if the timeline has to be longer, or what. Currently the timeline is 55 frames, the same as each movie clip.
    I put a movieclip_instance.stop(); command in the first frame of the main timeline, is there a better way to do this? Should I put the stop command in the movie clip itself?
    Here is a section of my AS in the main timeline, this is my first time programming ever, in any language, and trying to learn from the internet is more difficult than I thought it would be.
    redmovie.stop();
    red_btn.addEventListener(MouseEvent.ROLL_OVER, playRed);
    function playRed(event:MouseEvent):void
              redmovie.play();

    I am not sure of what the problem is, so I don't know if this will help or not.  One thing I might suggest is that you use gotoAndPlay(1) instead of play().  That way, if your movieclip is in the middle of playing it won't continue but will start from the beginning.
    You could use one button to have the different movieclips play in sequence if you prefer that.  You would just need to have some form of counter that keeps track of which is the next to play. Somethin like...
    var mcCounter:uint = 0; // start at 0 since an array is being used to identify which movieclip to play
    var mcs:Array = new Array(redmovie, bluemovie, brownmovie);
    only_btn.addEventListener(MouseEvent.ROLL_OVER, playMC);
    function playMC(event:MouseEvent):void
             mcs[mcCounter].play();                  // tell the current mc to play
             mcCounter += 1;                            // increment for the next mc
             if(mcCounter == 3) mcCounter = 0;  // reset the counter if it exceeds the array

  • *Class Project - Please help:  Why does my movie clip keep playing over and over?

    I am desperate for help on this one as its my Final Flash
    class project and I just can't get my scenes/movie clips to play in
    the order I want them to.
    I have Scene 1 (movie clip 1) that plays and then Scene 2
    (movie clip 2) plays. The problem is that Scene 2 (or movie clip 2)
    repeats itself over and over again. I can't get it to go back to
    Scene 1 (movie clip 1) to play that again.
    I want it go to to this Scene 1 and actually start at a
    certain frame to continue on with the story.
    I have named my movie clip instances.
    What am I doing wrong? I went into movie clip 2, into
    actions, and movie clip control, and I don't really see a way to
    tell it to go back and play movie clip 1. Trying to see how to
    refer back to the instance name of the movie clip and get it to
    play.
    Ideas? Please please? I would be forever greatful.
    Angie

    quote:
    Originally posted by:
    computerkitten
    I wonder if I should just take that movie clip out of the
    scene completely.... and not have the second scene at all. Maybe I
    should just have 1 scene and these 2 movie clips. Wonder if that
    would work better?
    As Nickels55 said, above, scenes add unnecessary complexity.
    So the answer to this is: YES. Scenes are awkward in Flash. Never
    use them in any final project. Put everything on a single timeline
    in a single scene, and you will have much better control of the
    project.

  • I would like a movie clip to play repeat itself everytime a button is pressed

    Hello,
    I am new to actionscripting but not Flash, I am using Flash
    MX 2004 for a college project at the moment. I have created an
    interface which features four buttons, each button activates a
    different movie clip. This works fine but only on the first time to
    press the button if you press the button again the movie clip does
    not play again, I would like the movie clip to play EVERY time the
    button is pressed. Here is the script that I have created in a
    seperate layer called actions, if that helps:
    ellaimage._visible = false
    Betaimage._visible = false
    Yakuzapic._visible = false
    Pornopic._visible = false
    boxmovie._visible = false
    Betabox._visible = false
    textboxmc._visible = false
    Yakuzabox1._visible = false
    Pornobox1._visible = false
    pellabutton.onRelease = function () {
    stop ();
    Betaimage._visible = false
    Yakuzapic._visible = false
    Pornopic._visible = false
    textboxmc._visible = false
    Betabox._visible = false
    Pornobox1._visible = false
    Yakuzabox1._visible = false
    boxmovie._visible = true
    textboxmc._visible = true
    Pellaimage._visible = true;
    Pellaimage.gotoAndplay(1)}
    Betabutton.onRelease = function () {
    stop ();
    Pellaimage._visible = false
    Yakuzapic._visible = false
    Pornopic._visible = false
    textboxmc._visible = false
    Yakuzabox1._visible = false
    Pornobox1._visible = false
    Betaimage._visible = true
    Betabox._visible = true
    boxmovie._visible = true
    Betaimage.gotoAndplay (1) }
    Yakuzabutton.onRelease = function () {
    stop ();
    Pellaimage._visible = false
    Betaimage._visible = false
    Pornopic._visible = false
    textboxmc._visible = false
    Pornobox1._visible = false
    Betabox._visible = false
    Yakuzabox1._visible = true
    boxmovie._visible = true
    Yakuzapic._visible = true
    Yakuzapic.gotoAndplay (1) }
    Pornobutton.onRelease = function () {
    stop ();
    Pellaimage._visible = false
    Yakuzapic._visible = false
    Betaimage._visible = false
    textboxmc._visible = false
    Betabox._visible = false
    Pornobox1._visible = true
    Yakuzabox1._visible = false
    Pornopic._visible = true
    boxmovie._visible = true
    Pornopic.gotoAndplay (1) }
    // this command stops the timeline
    stop ();
    Any help would be great.
    Thanks in advance

    No that doesn't work, that isn't what I want to to be
    repeated.
    In the below script I want textboxmc (which is a movie clip)
    to restart and play again everytime pellabutton is released.
    pellabutton.onRelease = function () {
    stop ();
    Betaimage._visible = false
    Yakuzapic._visible = false
    Pornopic._visible = false
    textboxmc._visible = false
    Betabox._visible = false
    Pornobox1._visible = false
    Yakuzabox1._visible = false
    boxmovie._visible = true
    textboxmc._visible = true
    Pellaimage._visible = true;
    Pellaimage.gotoAndplay(1)}
    Please can anyone help?

  • Can't get nested movie clip to play

    Hi everyone,
    I have a movieclip on one of the frames on the maintimeline.
    Within this movieclip is a nested movieclip which itself is
    contained by another clip. The first movie clip plays to a certain
    frame where I've got some code telling the nested movie clip to
    play at that frame but this nested clip doesn't play. I'm not sure
    if I'm targetting the nested clip incorrectly or whether something
    else is wrong with the code.
    The .fla file can be downloaded at:
    http://www.officelinkonline.com.au/Ad/
    if someone would take a look. The movie clip in question is
    on the layer called text5, and within this mc on frame 15 is the
    code I'm trying to use to get the nested movieclip to play at that
    point. The code used on that frame is:
    this.innerText5_mc.free_mc.play();
    stop();
    pauseAnim = setInterval (this, "nextFrame", 4000);
    I wondered if someone could take a look and see what I might
    be doing wrong? Basically the free_mc clip just makes the word
    "FREE" scale up.
    Would really appreciated any advice.
    Thanks

    Thanks again. I'm a bit worried that you weren't able to see
    the font that I used. All of the text used in the animations are
    static text fields. I don't seem to have the option to embed these
    characters since it's static text. It'll only let me embed if the
    text fields are dynamic. Does this mean I have to change them all
    to dynamic text fields, and if so do I need to embed the font in
    every text field in every frame of the animation or can you do this
    in one place?
    Appreciate your continued help.

  • Clip stops playing

    I am looking at a large number of mov. clips which I am logging and transcribing in a database. Every time I switch over to the database program, the clip stops playing in FCP. Is there a way to display a clip that will continue running while I switch over to a different program?
    If not, is there a media player that can display the timecode of .mov clips? I did not find the timecode in Quicktime 10.
    Thank you!

    Thanks RedTruck, however I am running 10.6 which comes with Quicktime 10. Is there a way to make QT 10 display the timecode? If not, how can I install QT 7? I tried to do it, but the system said it cannot proceed since there is a newer version of the program already installed.
    Thanks -
    Message was edited by: tgruene

  • HT4095 Why won't a movie download that I rented from iTunes Store

    Why won't a movie download that I rented from iTunes Store

    Click here and ask the iTunes Store staff for assistance.
    (114449)

  • Why won't the movie I purchased on itunes not download to my ipod?

    why won't the movie I purchased on itunes not download to my classic ipod. In ipod's summary, I checked "all" under sync for movies. I have the classic 160 gig ipod and have plenty of space. I unchecked "HD" and chose the 720 resolution. What next?

    HI moveandshaker,
    try to open itunes then drag the movies to your device.

  • Why won't some of my songs play after upgrade to IOS5?

    Why won't some of my songs play after upgrade to IOS5?

    I'm confirming that after trying several other ideas, the steps outlined here by S.E.A. and Amelia P. worked perfectly. For those of you having problems with certain songs not playing, or the wrong song playing, follow their "unsynch" "resynch" process. A few notes:
    Before starting, I was confident that iOS 5, iTunes 10.5, and Mac OS X 10.7.2 were all up-to-date and functioning correctly.
    After selecting my Device in iTunes (an iPhone 4S in my case), then selecting the "Music" tab and unchecking "Sync Music", be sure that it actually Applies the new settings (force a synch to be sure).
    After this step, most of the songs disappeared from my device (including all of the corrupted ones) but not all songs (perhaps it left those that I purchased directly on the device?). In any case, don't worry about these. Just re-check the boxes you unchecked and then be sure to force a synch again. It should take a while to complete if you've got a lot of music.
    Perfection!

  • How do I get a movie clip to play fully in an iphoto slide show.

    How do I get a movie clip to play fully in an iphoto slideshow.  Right now it only plays for a few seconds, while the complete clip is 22 seconds.

    Bring up the Settings pane for the slideshow and click on the movie clip in the tray at the top.  Then in the Settings pane click on This Slide button and set the play time to the actual length of the movie clip. 
    OT

  • Why won't my ipad let me play email attached wmv videos?

    Why won't my ipad let me play email attached wmv videos?

    Windows media files are not natively supported - have you had a look in the app store to see if there are any apps that support WMV files ?

  • Why won't my .mov or my .mp4 movie play in Keynote 4.0?

    Others on the forum seem able to play movies in their keynote projects. I can't.
    When the slide I have placed the movie comes up, the movie plays for a second or so and then quits while the next slide comes up. What am I doing wrong? The movie is just over 2 minutes long. Why won't it play?
    Any help will be appreciated. I'm new to using Keynote. I've enjoyed making builds with music on mulitiple slides, but dang it, I can't seem to make a simple .mov or a .mp4 movie work. I'm guessing I'm missing something very basic. Please help.

    If I am understanding your problem correctly, this is unfortunately a bug (or simply an unsupported feature) in Keynote that has not been corrected since the very beginning. Currently, the only way to have a movie play properly through is to:
    1) make sure the slide containing the movie has no delay in the transition to the next slide, and
    2) you will need to create transparent objects (like a square), each building in a set amount of seconds (60 seconds max allowable per object). For example: For a three minute movie, you will need to create an object, build it in over 60 seconds. Then copy and paste for the second object only this time, set it to start building in AFTER the previous build. Copy and paste again, set to build after the previous build, only this time, you will need to adjust the 60 seconds down to whatever fits. When the last object is done building, the slide will transition regardless of whether or not the movie is done playing.
    It is a complete waste of time as trying to determine the duration of the last object to build in is totally trial and error. I am amazed that this simple feature (playing a movie within a slide) is hampered.

  • Movie Clip not playing correctly (Flash CS3, AS2)

    Hey, I'm making a tutorial for a board game and there's this movie clip that mimics a piece being played. It's basically empty for about 9 frames and then the piece is on the 10th frame. On the 10th frame, I placed a stop(); script. The movie clip has no linkage and no label.
    For some reason, on a certain frame, it didn't work. It worked fine on other frames so I copy & pasted from those frames and replaced the movie clip that did not work right. Oddly enough, after I copy & pasted the movie clip, the error spread to the movie clip I copied! I tried it again and again the error spread to what ever clip I copied from. The other movie clips (same item) still functions properly. I never encountered a problem like this. Can anyone please help?

    1. you should have no code attached to objects.  assign your objects instance names (eg, mc) and use those names in your code.
    2. that code should not be in an enterframe loop. 
    if(_root.action_ryu==1){
    mc._alpha=100;  // not _Alpha
    mc.gotoAndPlay(4);
    _root.Ryu._alpha=0;
    } else {
    _root.Ryu_Attack._alpha=0;

  • AS3 to make movie clip not play on default?

    I created a movie clip that I want to play when a button is
    clicked and
    stop when another button is clicked.
    I have a stop action on the first frame where the 2 buttons
    appear and
    the movie clips resides. When I test the movie, the movie
    clip plays by
    default.
    How do I set it up so the movie clip does not play until the
    user clicks
    the play button?
    The code I am using:
    myPlay_btn.addEventListener(MouseEvent.CLICK, playMc);
    myStop_btn.addEventListener(MouseEvent.CLICK, stopMc);
    function playMc(e:MouseEvent):void{
    my_mc.play();
    function stopMc(e:MouseEvent):void{
    my_mc.stop();
    Thanks!!!

    Not sure if I understand. Where specifically should this be
    added to the
    code:
    myPlay_btn.addEventListener(MouseEvent.CLICK, playMc);
    myStop_btn.addEventListener(MouseEvent.CLICK, stopMc);
    function playMc(e:MouseEvent):void{
    my_mc.play();
    function stopMc(e:MouseEvent):void{
    my_mc.stop();
    Thanks!

  • Can' get movie clip to play

    I have a Flash movie that plays a movie clip called DR1 at
    frame 113 using this code:
    DR1.play();
    There is nothing else going on in the movie for the length of
    the clip, but when I play the movie, the clip does not play - I
    just have a blank screen for those frames.
    Also, if I try dragging an instance of the movie onto the
    timeline at that point, the same thing happens - blank screen for
    the amount of frames that the clip is present.
    If I play the clip in the library it plays correctly.
    What am I doing wrong?
    Thanks,
    Beth

    OK - I realize now that I have to actually publish the movie
    to have the clip play, whether by dragging an instance onto the
    timeline or loading it via AS.
    Now I have another issue. I'm sorry if these are stupid
    questions, but I have a hard time finding things in the help file -
    maybe I'm too much of a new Flash user to understand what to look
    for!
    Anyway, when I play the movie, I have three problems:
    1) the clip starts playing immediately, even though I don't
    issue the play() command until the middle of the movie. I do the
    attachMovie in the first frame so that it has loaded by the time I
    want to play it, but it starts playing right away even though I
    don't tell it to play.
    2) the clip seems to be centered on the upper left corner of
    the screen when it plays. I have tried setting the _x and _y
    properties of the instance to 0,0 but that doesn't seem to make a
    difference. I want the clip to be centered on the screen (it is
    sized to take up the whole stage) but can't seem to move it no
    matter what values I plug into the _x and _y properties.
    3) the clip loops continuously. I only want it to play once
    but can't seem to find a property to control the looping.
    Here is the code in the first frame:
    var mc1:MovieClip;
    mc1 = this.createEmptyMovieClip("DR1",
    this.getNextHighestDepth());
    this.attachMovie("DR1", "mc1", this.getNextHighestDepth());
    mc1._x = 500;
    mc1._y = 500;
    mc1.stop(); (this was added to get it to not play until
    later, to no avail)
    And the code at frame 113:
    mc1.play();
    And finally at frame 412:
    mc1.stop();
    Help, please!
    Thanks,
    Beth

Maybe you are looking for