Button Movie Clips Loops Ad Nauseum

Greetings
I have a button that is a movie clip that is set up with animations triggered with MOUSE_OVER and MOUSE_OUT event listeners.  The glitch is that once the mouse is over the button ... each ensuing pixel that the mouse is moved, loops the animation again.  That probably didn't make a whole lot of sense, so I posted the file on my test site (http://www.savagepixels.com/test/test.html).  You have to drag your mouse slowly across the button to see this. The bottom part of the button works as I'd expect.  When you roll over the text at the bottom of the button, everything functions as it should.  The looping problem starts when you roll over the image portion of the button.  For some reason it considers each consecutive pixel rolled over to be a new event and consequently triggers the "over" animation again.
The code I have is below.  I've commented out the MOUSE_OUT function for now.  There is also a screenshot at the above link of my Layers palette for the button clip in question.  I put a "stop" label at each frame that has an action so you see the actions used.
Thanks for helping!
oneBedButton_mc.buttonMode = true;
oneBedButton_mc.addEventListener(MouseEvent.MOUSE_OVER, overEffect);
//oneBedButton_mc.addEventListener(MouseEvent.MOUSE_OUT, outEffect);
function overEffect (e:MouseEvent)
    oneBedButton_mc.gotoAndPlay("over");
function outEffect (e:MouseEvent)
    oneBedButton_mc.gotoAndPlay("out");

That was helpful. I had one of images in the button movie clip that wasn't a movie-clip type symbol ... it was just a static .png image.  Once I converted that into a movie clip, the repetitious looing went away.
There is still some weirdness if you refresh that same link ... (http://www.savagepixels.com/test/test.html) if you roll over the lower part of the button where the text "One Bedroom + Study" is, and then move your mouse up over the image portion, the whole MOUSE_OVER event gets triggered again.  This is weird because there are no actions whatsover in the button movie clip except a few stop(); keyframes.  It treats the image as a separate button.  Any ideas on what is causing that event to be triggered in this way?

Similar Messages

  • Unable to edit Flash file - Can't enter inside buttons/movie clips.

    Hi
    I am in the middle of creating a website using Flash CS5. I opened up my .Fla file one day to continue my work but I am no unable to access buttons and movie clips. When creating movie clips or buttons I am unable to get inside them, when I hover my mouse over them there is a white hand icon which never used to be there it was always just a normal mouse icon. I double click to enter inside the buttons/movie clips but nothing happens. This happens to existing movie clips and buttons on the page and even when I create new ones. Can anyone please help.. I really don't wanna have to start this website again!!
    thanks!

    Hi,
    This would normally happen when you have a Button symbol on stage and the 'Enable Simple Buttons' setting is enabled.
    Can you check in your Control menu, if the option 'Enable Simple Buttons' is enabled? If it is, click on the option to disable it and then try double clicking on your symbols.
    In case you still face the issue, can you send across your test file for investigation.
    Thanks!
    -Nipun

  • Button movie clip

    hello,
    i am building a full flash site, and i have created animated
    buttons seperatley,outwith the main fla, and i have imported them
    into the main timeline. The button file is a movie clip,and works
    beautifully when testing from its own fla,but it does not work (no
    animation on roll over) when i embed it into my main site. Below i
    have trhe action script
    On top level main timeline,where movie clips reside,in one
    keyframe -
    this.onEnterFrame = function(){
    if(rewind == true){
    prevFrame();
    this.onRollOver = function(){
    rewind = false;
    play();
    this.onRollOut = function(){
    rewind = true;
    this.onRelease = function(){
    getURL("
    http://www.kirupa.com","_blank");
    within each button movie clip
    stop();
    this.onEnterFrame = function(){
    if(rewind == true){
    prevFrame();
    this.onRollOver = function(){
    rewind = false;
    play();
    this.onRollOut = function(){
    rewind = true;
    this.onRelease = function(){
    getURL("
    http://www.siteName.co.uk","_blank");
    any ideas ?
    hope you can help !

    This is what I came up with and it seems to work... can this
    be refined and improved on?
    For example, what if I want it to return to its original
    value when clicked a second time?

  • Captivate movie clips looping in Flash

    I've read the discussions on the forum, but nothing seems to
    be able to stop a captivate 2 movie clip from looping when brought
    into Flash. I exported the captivate movie with the default values,
    converted it to a movie clip in Flash8 so I could resize it,
    brought the movie clip into the Flash movie by dragging it to the
    stage. Everything looks great, but I can't stop the clip from
    looping. Stop commands placed within the movie clip seem to have no
    effect nor do commands put on the main timeline.
    Thanks for the help.

    Hi there
    Hopefully someone here will have an answer for you. In the meantime you might also wish to post this question in the forums for Acrobat.
    Click here to visit the Acrobat forums
    Cheers... Rick
    Click here for Adobe Certified Captivate and RoboHelp HTML Training
    Click here for the SorcerStone Blog
    Click here for RoboHelp and Captivate eBooks

  • A really annoying problem with a button/movie clip

    I am having a problem with a button! its driving me insane
    because i managed to do it last week, but that was by chance and
    now i can't remember how i did it!
    I can get the button (i'm using gelright from the common
    libraries panel) and convert it to a movie clip(by pressing F8) and
    even attach a behaviour but when i play the movie it doen't work!
    when i move the curser over the button it changes into a hand, but
    will not act like a button, even though i have set the behaviour to
    'on release, go to and play keyframe 2'.
    Please help me, for the sake of my laptop goin through the
    wall!

    virgosam20 wrote:
    > first, i found the button i wanted in the common
    libraries (gelright) and
    > added it to the stage. I resized it and converted it
    into a symbol as a movie
    > clip. Then it got added to my library.
    > Then i deleted it from the stage and replaced it with
    the movie cip version i
    > had just converted it to. so now i have the same object
    on the stage, but now
    > its a movie clip and not a button.
    ok - you are running yourself around in circles - why did you
    delete it to the stage only to add it
    again? once you converted it to a movie clip, you had what
    you wanted on the stage - but then you
    deleted it and dragged another instance of the same symbol
    back onto the stage - there's no reason
    to do that.
    > Then i double clicked on it to bring up the movie clip
    timeline, but instead
    > of saying 'top, down, over, hit' (or whatever it says),
    it jsut said 'layer 1'
    > (but this was not my original stage as i have a number
    of layers on that one).
    Right - this is expected because yoyu are now inside the
    movie clip timeline - not the button timeline.
    > When i double clicked on it again, it brought up the
    right headings (top, down,
    > over, etc),
    Right - because by double clicking the button symbol you were
    then brought to "edit mode" for the
    button symbol.
    but there were about 5 layers that showed the different
    layers for
    > the original button.
    Huh? What "5 layers"? What do you mean "original" button -
    per your description there has only ever
    been 1 button you have been working with.
    > I think i have to add the button to each of the
    headings, bt there is no room,
    Lost you completely now - what do you mean add the button to
    each heading? I have no clue what you mean.
    > as when i did it before, there was only one layer for it
    and i had to insert
    > the key frames myself.
    Still losing you here.
    > I then added a behaviour to it using the Behaviours
    pannel, (selected
    > movieclip, then 'go to and play....') and it appears in
    the behaviours pannel.
    > But when i got to Play Movie, although the curser
    changes into a hand, the
    > button does not work.
    That's because you are applying a behavior for a button to a
    movie clip instead.
    I think you went wrong when you converted the button to a
    movie clip - i have no idea why you did
    that or why to think your button needs to be in a movie clip.
    >
    > Hope that can help you with what i've done and you can
    tell me where i've gone
    > wrong.
    >
    I just think you don't understand how timelines, symbols or
    buttons work yet in flash.
    1. drag a button to the stage.
    2. select it and open the Behaviors panel (dont double click
    it to edit it).
    3. add your actions.
    4. test movie.
    (no need for a movie clip here.
    -chris

  • Buttons, movie clips and actionScripts

    I've created myself conundrum. In my test movie I have
    created two named frames on the screens timeline (home, box); each
    content frame consists of a movie clip with a button in it
    (home_btn, box_btn). What I'm attempting to do is have the home_btn
    button call the movie in "box" and have the box_btn button call the
    movie in "home".
    If I don't use movie clips the is a simple task,
    home_btn.onRelease = function() {
    gotoAndPlay("box"); }
    but as soon as I place the buttons inside a movie clip the
    navigation ceases to work. I'm assuming I'm getting beaten as
    something very basic, but unfortunately I can't find it.
    Anything thoughts would be greatly appreciated. Thanks
    locoLindy

    Perfect! That fixed the problem. Many thanks for your help,
    I'd have toiled with that for days!
    Again, that's for your help!
    locoLindy

  • Basic invisible button movie clip frame actions not working, pls. help!

    Hi,
    I've got a basic little slide show player which is timeline-based, rolling through 5 images with alpha transitions, and on the topmost layer, I have 5 invisible movie clips which have actions applied to them as follows:
    on (press) {
        gotoAndPlay(21);
    This action should allow for the on click button to navigate to that specific frame, or image, but for some reason it is not working.
    Did I do something wrong? I feel like I've done this before but I'm rusty with Flash since I don't use it all the time.
    Any help is greatly appreciated!
    Thanks,
    Sean

    The invisible movie clip is something I know I've done over the years on many occasions - I'm not sure I'm understanding your alternate technique, can you explain it better? The way my movie clips are invisible is just by setting the alpha to zero in the properties for the movie clip instance (clicking on the object on stage, then setting it in properties)..
    Also, the actions are on the invisible movie clips (buttons) and not the timeline.
    Cheers,Sean

  • Button Movie clip link

    I've created some simple buttons that I'd like, when clicked,
    to play a movie clip. Whats the best way to do this?

    This is what I came up with and it seems to work... can this
    be refined and improved on?
    For example, what if I want it to return to its original
    value when clicked a second time?

  • Random Movie Clips loop

    Hey there.
    I have a question about randomizing Movie Clips:
    I am attaching an example where 12 movie clips will be called
    into stage.
    (movieA1, movieA2, movieA3....)
    I am trying to create a situation where instead of triggering
    "movieA1" and so on, the code will trigger:
    movieA1 OR movieB1
    movieA2 OR movieB2
    movieA3 OR movieB3 and so on......
    can anyone help here with how to apply it?
    Thanks!
    note that the attached code triggers AllMovies (MovieA's),
    MovieB's are not in code yet, only in the library, because I am not
    sure how to code such a thing.
    adamlewen

    All I posted was a replacement to the corresponding
    attachMovie portion of your code... as you had in your first post.
    If I've made a correct allowance for the wrapping it should be in
    the 6th line of code beginning with
    var Movie:MovieClip = _root["Movie"+i] =holder.attachMovie
    etc
    What I suggested is only making a change to the first
    parameter to include a
    B or no B in the library ID that's requested by the
    holder.attachMovie part.
    The way its set up (if you use this changed attachMovie) it
    will randomise each time that makeAllMovies is called.
    If I was doing something like this I'd be inclined to set up
    the holder clips once. And then load the randomised content clips
    inside on the setInterval call to something like your makeAllMovies
    function. I also think you'd need to use removeMovieClip for
    previously attached content clips before attaching each time as I
    don't think it just replaces ("overwrites") the old one. I've seen
    other posts where if you attachMovie the same library item with the
    same name in the same holder clip, you end up with 2 instances
    (flash apparently appends a number to one of them each time). If
    this is indeed the situation and happened each time, it would
    probably cause some problems.
    Don't know if that helps. Kglad or others may have more
    insight in this area where I've indicated uncertainty.

  • Movie Clip Loop

    I have some quite nice clips that I would like to use as screen savers.
    So can I make them into a loop?-chatch

    HI Bengt, Thanks for your help. Unfortunately I still haven't got it to work. I did as you advised, but when I clicked on the new QT folder, I got the message "contains no picture". As one can put music in loops, I would have thought there was an easy way to put film clips in loops!
    Anyway, Thanks again-chatch

  • Movie clip looping...

    and looping, and...
    running logic 8 rewired to reason 4.0.1.
    when i run a QT video clip in logic, the clip repeats automatically, altho looping is off (on both apps).
    any idea how to stop this from happening??
    thanx!

    anyone?
    clip will stop if i set end point to BEFORE the end of the clip, but i need to get to the end!
    any ideas would be great...!

  • Making Button links within a movie clip

    I am attempting to learn more Flash in general and
    actionscript in particular. I have created a flash piece that
    consists of 4 buttons within a movie clip that is being masked by
    another movie clip. One movie is the set of 4 buttons. The other
    movie is a "spotlight" that moves with the cursor. As the spotlight
    shines on each button, the button's text changes color and is "lit
    up".The Over state of each button is set to cause the button to
    change color. When I put a keyframe in the Down state of each
    button in order to add actionscript to create the action that makes
    the button clickable to take the viewer to a web page, it tells me
    that no actions can be given to this Down state. If I try using
    Behaviors to accomplish the same thing, it tells me that Behaviors
    are not supported. If I put actionscript into the actions layer of
    the timeline, it does not do the required action, i.e. clicking on
    the buttons leads nowhere. I have tried moving the actionscript
    before, between, and after the setInterval and setMasker
    actionscript that controls the interaction between the two movie
    clips (which work perfectly). I have tried inserting an actions
    layer into the button movie clip--same result--nothing. I have
    tried putting the actionscript in the second frame of the actions
    layer (both in the main timeline and in the movie clip), all to no
    avail. I did give each button an instance name and used them in the
    actionscript.
    Here is the actionscript I am using for one of the buttons:
    book.onPress = function(){
    book.getURL("http.//www.bainbridge.wednet.edu");
    I do not get an error message with this actionscript. I just
    don't get sent to the web page. I am using Flash 8.
    What else I should be doing? Is this a problem because the
    cursor is already attached to an action? I am sure that this must
    be possible, if only I knew more.
    Thanks for helping.

    do you have the actual mc identified as ( book ) on the root
    as well as the code i posted above? if so, are the code and the mc
    on the same frame? also you should note that the code posted above
    is meant to be placed on your root time line, not directly on the
    mc identified as ( book ). one more thing: you must target your mc
    ( book ) correctly.
    target like this:
    IF YOU ARE ON THE MAIN TIME LINE ( _root ):
    // if ( book ) is setting on the _root already then your
    target path is simply book.onRelease.
    // if ( book ) is setting inside another movieclip on the
    _root, find out what movieclip ( book )
    // resides in. that will now be the first part of your target
    path.
    // next find out if ( book ) resides in yet another
    movieclip. if so, that will be the next part of
    // your target path.
    // continue this until you reach ( book ). the entire path
    you took to reach ( book ) is your
    // target path.
    // you can also click on the target icon in your actionscript
    pane to insert a target path for
    // your movieclip.
    here is an example in which ( book ) resides inside another
    movie clip ( yourMovieClip ) on your _root:
    yourMovieClip.book.onRelease = function () {
    getURL("
    http://www.cnn.com/");

  • How do I stop a Movie Clip (Button) from working once clicked?

    Ok,
    I'm using a movie clip as a button to show content on a page, effectively its like a new page of the website. Problem is, with the script im using for it, once the content is show, the button is still active and if clicked again, will re-load the content. I want a way to effectively disable the button whist the content is shown.
    Thanks.
    this.services_inner.buttonMode = true;
    this.services_inner.addEventListener(MouseEvent.MOUSE_OVER, rollOver_services);
    this.services_inner.addEventListener(MouseEvent.CLICK, onClick_services);
    function rollOver_services(evt:MouseEvent):void {
    this.services_inner.play();
    function onClick_services(event:MouseEvent):void {
    MovieClip(root).mov.backgrounds.colour.gotoAndPlay(2);

    Thanks, that does stop it, however, i now need it to work again if a different button is clicked... there are 4 buttons (movie clips) in total, so I assume I'd just need to add the event listener back again on click of the others?
    This is the "Services" Button, with the event listener removal.....
    this.services_inner.buttonMode = true;
    this.services_inner.addEventListener(MouseEvent.MOUSE_OVER, rollOver_services);
    this.services_inner.addEventListener(MouseEvent.CLICK, onClick_services);
    function rollOver_services(evt:MouseEvent):void {
    this.services_inner.play();
    function onClick_services(event:MouseEvent):void {
    MovieClip(root).mov.backgrounds.colour.gotoAndPlay(2);
    this.services_inner.removeEventListener(MouseEvent.CLICK, onClick_services);
    This is the "Contact" Button, which when clicked would need to "re-activate" the Services button.
    this.contact_inner.buttonMode = true;
    this.contact_inner.addEventListener(MouseEvent.MOUSE_OVER, rollOver_contact);
    this.contact_inner.addEventListener(MouseEvent.CLICK, onClick_contact);
    function rollOver_contact(evt:MouseEvent):void {
    this.contact_inner.play();
    function onClick_contact(event:MouseEvent):void {
    MovieClip(root).mov.backgrounds.art.gotoAndPlay(2);
    this.services_inner.removeEventListener(MouseEvent.CLICK, onClick_contact);

  • Button "go to movie clip"

    Hi,
    I had previously posted a discussion entitled "how to link a
    button to a .swf file" and after some feedback, decided to try and
    create multiple movie clips (which were actually to be individual
    site pages) which could be accessed by clicking on a particular
    button. The last response I left was this:
    Okay, here I am again. So I created a movie clip called
    ENERGYwhiteTransparentBoxMC. On my Sustainability page, there is a
    button called Energy Services. When I click on that button, I would
    like it to go to the ENERGYwhiteTransparentBoxMC and begin (which
    is a page that is laid out identical to the Sustainability page
    only with a new image, new text, etc.)
    In my button movie clip which contains the Energy Services
    button (as well as 2 other buttons), I applied the following
    actionscript in the first frame.
    import flash.events.EventDispatcher;
    import flash.display.MovieClip;
    this.stop();
    function startMovie(event:MouseEvent):void
    this.gotoAndPlay(ENERGYwhiteTransparentBoxMC);
    btnEnergyServices.addEventListener(MouseEvent.CLICK,startMovie);
    A couple of things...
    1.) it doesn't work and go to the Energy Services movie clip
    when the Energy Services button is clicked.
    2.) my stop action that had previously been applied doesn't
    work (the links fade in and drop, the transparent box slides
    in...but they are supposed to stop and now they don't). So, I'm
    confused as to where to apply the stop action for this now.
    Am I close at all?????
    I would also add now that I wasn't sure what to insert here:
    this.gotoAndPlay(
    TextENERGYwhiteTransparentBoxMC);
    ...I would like it to go to the movie clip that is called
    ENERGYwhiteTransparentBoxMC.
    It might help to check out my original post as I explained it
    better there what I was trying to do. I last posted on it today,
    November 19. Any help would be greatly appreciated!
    Thank you!

    Just a suggestion: maybe the preloading could be done in a
    movie script of the new movie and the particular cast member sent
    to the new movie in a global variable.

  • How to link from a movie clip to main timeline?

    My problem first appeared very simple, but I have spent a
    while on it and can't think how to solve it. I must say that I am
    very much an amateur in designing in Flash and ActionScript.
    I created a movie clip containing an embedded video and a
    sound clip. In the main timeline I inserted the movie clip into a
    keyframe. When I found the movie clip didn't play, I discovered
    that the only way of making it play was to place a Stop action in
    the keyframe of the movie clip, and also set the whole movie to
    loop. The Stop action stopped the whole movie from looping, but
    instead made the movie clip loop. If the keyframe is on frame 456,
    how do I make it advance onto frame 457 once the movie clip has
    finished running?
    I've tried various ways around the problem, including placing
    a button inside the movie clip to Go to and Play frame 457, but
    instead it plays frame 457 in the movie clip.
    Can anyone help me with this please?

    Hello,
    You need to tell flash the "target" you want to play. If not
    specified
    it will think it is the target you are calling from which in
    your case
    is the movie clip.
    So to go back and play one level up would be:
    _parent.gotoAndPlay(457);
    If the movie clip was inside another movie clip then it would
    be:
    _parent._parent.gotoAndPlay(457);
    or you can just referent the root of the movie directly:
    _root.gotoAndPlay(457);
    Search the help file for timeline target and you should find
    more about it.
    Incubusguy wrote:
    > My problem first appeared very simple, but I have spent
    a while on it and can't
    > think how to solve it. I must say that I am very much an
    amateur in designing
    > in Flash and ActionScript.
    >
    > I created a movie clip containing an embedded video and
    a sound clip. In the
    > main timeline I inserted the movie clip into a keyframe.
    When I found the movie
    > clip didn't play, I discovered that the only way of
    making it play was to place
    > a Stop action in the keyframe of the movie clip, and
    also set the whole movie
    > to loop. The Stop action stopped the whole movie from
    looping, but instead made
    > the movie clip loop. If the keyframe is on frame 456,
    how do I make it advance
    > onto frame 457 once the movie clip has finished running?
    >
    > I've tried various ways around the problem, including
    placing a button inside
    > the movie clip to Go to and Play frame 457, but instead
    it plays frame 457 in
    > the movie clip.
    >
    > Can anyone help me with this please?
    >
    >

Maybe you are looking for

  • What is the best way to create a photo gallery?

    Hi, I want to create a photo gallery in Dreamweaver without using any pre-built "web gallery" function. What's the best way to swap the images when I click the "next" button? Do I create a new Dreamweaver page for each photograph? Is there a more eff

  • Error in SO_NEW_DOCUMENT_ATT_SEND_API1. Unable to open the pdf attachment

    Hi all, I'm currently using SO_NEW_DOCUMENT_ATT_SEND_API1 to send out the email and together with a pdf attachment. However when I tried to open the attachment, it has the decoded incorrectly error. What am I missing? Thanks. Below is the code, this

  • Very Slow Streaming from MacBook Pro to Apple TV

    I am trying to stream movie from my MacBook to my Apple TV but the movies do not stream. My library shows up on my Apple TV and when I select them they do not load. After a few minutes a message will show up saying, "An error occurred loading this co

  • Photoshop CS6 Tools and Cursor Issues with Mountain Lion

    Am using Photoshop CS6 on iMac 27inch with Mountain Lion. Experiencing inability to use the move tool to place one image on another after extraction. I place the move tool on the previously extracted image and drag it into an new image, but the extra

  • ALV drilldown not possible in report once i apply layout save option

    Hi All, I have developed one ALV report. Firstly i use drill down in the report means call transaction by double click event. Then i apply layout save option in same report. But as soon as i apply layout save option the call transaction is not possib