A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: onMouseUp > on release outside?

  1. #1
    Senior Member Vincent26381's Avatar
    Join Date
    Feb 2003
    Location
    The Netherlands
    Posts
    833

    onMouseUp > on release outside?

    Hi,

    if I have this code:

    code:

    mousecontroll.onMouseUp = function() {
    //trace("release");
    _root.pageDragged = false;
    if(flip) {
    flipOK = false;
    if(sx<0 && pages._xmouse>0) flipOK = true;
    if(sx>0 && pages._xmouse<0) flipOK = true;
    trace(flipOK);
    flipOff = true;
    flip = false;
    }
    //if dragged, release it!
    }



    Is there any way to add something that the function is also called when the mouse is release outside the movie?

    Now when you drag out the movie the page get's stuck at you mouse.
    I tried adding a blank button with on (releaseOutside) but that gives a flash of the book in this movie.

    thanks
    Vincent
    SWIS BV

    Last edited by Markp.com on 07-23-2003 at 02:25 AM

  2. #2
    Senior Member
    Join Date
    Aug 2002
    Location
    Dublin, Ireland
    Posts
    1,749
    Put this afterwards.
    code:

    mousecontroll.onReleaseOutside = mousecontroll.onMouseUp;


  3. #3
    Senior Member Vincent26381's Avatar
    Join Date
    Feb 2003
    Location
    The Netherlands
    Posts
    833
    thanks but it doesn't work
    the fla is here

    (frame 3 code)

    thanks again
    Attached Files Attached Files
    Vincent
    SWIS BV

    Last edited by Markp.com on 07-23-2003 at 02:25 AM

  4. #4
    Senior Member
    Join Date
    Aug 2002
    Location
    Dublin, Ireland
    Posts
    1,749
    That is because you didn't supply enough information. Next time try to supply complete information with your request.
    My solution works for MovieClip events: you make multiple events point to the same function handler.
    You, on the other hand, are using a MouseListener that only handles onMouseDown, onMouseMove and onMouseUp.
    The listener means you can do things without referring to a specific movieclip. However, the listener doesn't support "onReleaseOutside" because there is no outside of everything to release in.
    Either a) accept this and live life happily.
    Or b) rework your movie to use movieClip events.

  5. #5
    Senior Member Vincent26381's Avatar
    Join Date
    Feb 2003
    Location
    The Netherlands
    Posts
    833
    I'll accept this and live life happily.

    Thanks man
    Vincent
    SWIS BV

    Last edited by Markp.com on 07-23-2003 at 02:25 AM

  6. #6
    Senior Member
    Join Date
    Aug 2002
    Location
    Dublin, Ireland
    Posts
    1,749
    Quality of life is what it is all about at the end of the day.

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