A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: RollOver & RollOut too quickly

Hybrid View

  1. #1
    Senior Member ::bluemoth::'s Avatar
    Join Date
    Jun 2001
    Posts
    521

    RollOver & RollOut too quickly

    This has me puzzled:

    code:
    		thumbHolder.onRollOver = function() {
    trace("rollover");
    tempx = this._x;
    tempy = this._y;
    if (thumbAlign == "horizontal"){
    _root.hoverme._x = Number (tempx) + 215;
    }
    if (thumbAlign == "vertical"){
    _root.hoverme._y = Number (tempy) + 21;
    }
    _root.hoverme.gotoAndPlay(2);
    }


    thumbHolder.onRollOut = function() {
    trace("rollout");
    _root.hoverme.gotoAndStop(1);
    }



    Seems straight-forward enough and it does work, but as each thumbHolder is very close in proximity, the onRollover doesn't send _root.hoverme to frame 2 if you move from the cursor from one thumbHolder button to the next, too quickly (though the trace shows that the actual rollOver and rollOut DO activate).

    Oddly enough, if I remove the RollOut completely, it works fine (but then I have no way of sending _root.hoverme to frame 1 when no thumbHolder is being 'rolled out', as there is no rollOut then).

    Never come across this before ... anyone found a cure for this?
    Last edited by ::bluemoth::; 09-07-2004 at 07:22 AM.

  2. #2
    Member
    Join Date
    Sep 2004
    Location
    Sweden
    Posts
    35
    Have you tried putting the rollOut part of the script before the rollOver part?

  3. #3
    Senior Member ::bluemoth::'s Avatar
    Join Date
    Jun 2001
    Posts
    521
    For anyone in the same situation, try sending your rollOut to a frame that is AFTER the rollOver's current frame, and not BEFORE.

    This seems to do the trick for me, and for others.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center