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

Similar Messages

  • Ipad 2 ipod stops playing for no reason

    recently the ipod on my ipad 2 stops playing music mid-song for no apparent reason... I haven't actually change anything or done anything unusual to it, so not sure what could be causing this?
    Thanks!

    Try a Reset [Hold the Home and Sleep/Wake buttons down together for 10 seconds or so (until the Apple logo appears) and then release. The screen will go blank and then power ON again in the normal way.] It is app and data safe!

  • ITunes stops playing for no reason

    Every once in a while, iTunes will randomly stop playing in midsong. I'm usually using a different application (Safari, MS Word, etc) when it happens. When I go back to iTunes the "play" key is on pause, as if I were to have paused the song myself. When I press play again, it's all good.
    This used to happen with my 5 year old Powerbook G4 and I figured it was just the computer slowly decaying, but the same thing happens in my brand new Macbook, so I'm assuming it may be a software glitch. I'm running 7.5 right now. It's not a huge inconvenience, but I know it's not supposed to be happening.
    Anyone else have this problem?

    You could try deleting the plist:
    1.) Quit iTunes
    2.) Go to Home > Library > Preferences and delete a file called com.apple.itunes.plist
    3.) Restart or logout/login comp
    4.) Open iTunes and try again
    Also try in a new user. That'll narrow it down to an issue with your account or something more system-wide.

  • 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.

  • 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?

  • Issue playing scenes in test movie animations stop playing

    I'm fairly new to adobe flash so I hope I use the right terms when asking this question.  I am using AS2 in CS5.5.
    I am creating a project for a class that introduced me to adobe flash.  The issue is I have gotten to a certain point about 15 scenes. 
    During say the 15th scene scrolling through the timeline animations works fine, playing it on test scene works fine.  When I go to play it on test movie it stops at a certain point. 
    At first I thought it might have been a misplaced stop action but there is none to be found.  The weird part is every other scene I create after that
    continues to freeze as well, the images are there, but the animations won't play.  All my previous animations play before those with the issue, it's just
    These new ones won't play for some reason in test movie, but work completely fine in test scene and the timeline.  Can anyone help me figure this out please?

    you're welcome.
    to remedy, remove one or more scenes from your original fla by shift-clicking all the frames/layers in a scene and pasting into a new fla.  save the new fla with a new name and publish a new swf that you can load into your original.
    there's no limit to how many swfs can be loaded into your original.  you might find it convenient to put each scene (after your first few) into their own fla/swf.

  • 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

  • Qosmio X500: power adapter stopped working for no reason

    Hi,
    Now i have my Qosmio X500 for a year and i like it, however i have small problems with it, and i would like to know if it can be problematic.
    The first thing is that my power adapter stopped working for no reason,
    So i bought a new one, but it always made some noise when the laptop was fully charged.
    I know people with the same laptop and their adapter didn't make that sizzling noise, it looks like it was already defect from the begin.
    Then i have one dead pixel in the middle of my screen, no problem for me.
    Finally my screen is a bit loose from the laptop, when i close it, i can move it, it always seems like it's not on it's correct place, because when i close it normally it's not 100% horizontal...
    Also when i replace my screen, my speakers make crackling noises and my webcam stops working.
    So all those problems i have annoy me, especially the last one (webcam and speakers problem), can this fit in the warranty of the laptop? I did extend the warranty for one year...
    Thanks in advance.

    > The first thing is that my power adapter stopped working for no reason,
    > So i bought a new one, but it always made some noise when the laptop was fully charged.
    I think this is AC adaptor fault maybe a broken cable or something like that I would recommend you to replace this get in contact with the dealer and ask for the new one.
    > Then i have one dead pixel in the middle of my screen, no problem for me.
    I found a info about such issues:
    +Information on screen technology and pixel failure tolerance for LCD displays
    +http://aps2.toshiba-tro.de/kb0/TSB9502LZ0000R02.htm
    > Finally my screen is a bit loose from the laptop, when i close it, i can move it, it always seems like it's not on it's correct place, because when i close it normally it's not 100% horizontal...Also when i replace my screen, my speakers make crackling noises and my webcam stops working.
    Maybe you should ask Toshiba notebook technicians for a check maybe some screws or the hinges are loose.
    The speakers should be checked with connected headphones. If you will not notice the same crackling sound using headphones, then the issue might be related to speakers

  • 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.

  • *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.

  • 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

  • I've just downloaded a sd movie from iTunes with my ipad but the movie will only play for 13s then a msg comes up saying "could not load video! I've paid for it and downloaded the whole thing ! Can anybody help me pls?

    I've just downloaded a sd movie from iTunes with my ipad but the movie will only play for 13s then a msg comes up saying "could not load video! I've paid for it and downloaded the whole thing ! Can anybody help me pls?

    Hello Lcw2610,
    I would recommend deleting the affected movie from your iPad, and redownloading the movie.
    How to delete content you've downloaded from the iTunes Store, App Store, iBooks Store, or Mac App Store
    http://support.apple.com/kb/HT5772
    Download past purchases
    http://support.apple.com/kb/HT2519
    If the issue persists, please do report the issue to the folks in our iTunes Store.
    To report an issue with your iTunes Store, App Store, Mac App Store, or iBooks Store purchase, follow these steps:
    Find the email receipt for your purchase.
    Click Report a Problem under the app that is having the issue.
    When prompted, enter the Apple ID and password you used to purchase the item, then click Report a Problem.
    Click Report a Problem next to the item you are having an issue with.
    From the Choose Problem dropdown menu, choose the appropriate issue.
    Follow the onscreen instructions and—if prompted—type a description of the problem into the text field.
    Click Submit to have your issue reviewed.
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBooks Store purchase
    http://support.apple.com/kb/HT1933
    Cheers,
    Allen

  • I cant get a photo project to email the moblile me address to someone else.  I know how, but it has stopped working for some reason.  Instead of pulling up the web address on the email form, it puts an error message?  Any ideas?

    I cant get a photo project to email the moblile me address to someone else.  I know how, but it has stopped working for some reason.  Instead of pulling up the web address on the email form, it puts an error message?  Any ideas?

    Michael,
    The link for the word 'HERE' directs to a Evergreen School District page, which outside of Mobile Me and/or Aperture. Your school district network might be intercepting the request from Aperture and displaying the 'network authentication page' that you see, instead of the email. I would get with the IT department to see if they can help you get around this.
    Have you also tried using the 'Tell a Friend' feature from another network location, like starbucks or your home?
    Cheers,
    Owen.

  • Gtx 970,,Stopped working for no reason

    Hi,,
    Im from Oman It is a country in the Middle East
    I own GTX 970 GAMING
     ,,, I used it for several weeks and then stopped working for no reason.I talked to the agent in the Middle East.And they told me they do not take VGAs or MBs...And They told me that i have 2 speak with the Global....I called the Headquarters (Address: No. 69, Lide St., Zhonghe Dist., New Taipei City 235, Taiwan
    Tel: +886-2-3234-5599 (REP))
    And they ask me for my email and i gave them.. Then thay say that the service Center will contact me...
    Now its Happend From 3 days and no one Contect me...

    check emails in your "SPAM" folder maybe the message is there
    else have a ask them again
    optional: >>How to contact MSI.<<

  • Movies/Videos stop playing in Windows 7 64-bit for no reason.

    In the past couple of months, movies and videos played in iTunes from Windows 7 64-bit have begun stopping during playback for no apparent reason. iTunes does not crash, but this happens multiple times throughout playback requiring the movie/video to be restarted. This problem started with iTunes version 11. However, it does not appear to affect Windows 8.

    @Magic_Peter
    Can you please advise where in the Registry you set the maxallowedzone to 1.
    Was it
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\HTMLHelp\1.x\ItssRestrictions
    so that your CHM could run on a network drive?
    I'm thinking that Adobe Reader 11 fixed the problem and the above was just to do with the location of the CHM. Does that sound right?
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

Maybe you are looking for

  • Is there a way to view embedded files in a Word doc that you have PDF'd?

    We embed as objects different types of files (i.e, pdf, excel, etc.) into our word documents.  When those documents are PDF'd, you cannot open the files as they become pictures.  Is there anyway I can have the embedded files open in PDF as they do in

  • Photo info on thumbnails in new photo ap????

    Previously the photos shown in ann Event or Album the image number  shown automatically, and you could add or rename that image.  With the new update those items are not showing.  Has that feature been removed?  I looked thru the drop down options in

  • How can I get the CODEC DVCPRO HD 100 for Premiere CS5?

    how can I get the CODEC DVCPRO HD 100 for Premiere CS5?

  • Hide Column in Query

    Hello, I have one query that it contains 24 columns, necessary to create one variavel where the user will go to choose creaks, in accordance with the choice opens somesnte the columns referring that one creaks selected. Exists some How To? Ex: In cas

  • Different titles for different copies while printing an invoice

    hi guys !! I want to print different titles on copies as follows... 1st copy - "Original" 2nd copy - "Duplicate" 3nd copy - "Triplicate"... i have used system vairable SFSY-COPYCOUNT.... in my 'Copies Window'..i have the following program lines.. CAS