A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: [RESOLVED] [F8] onrelease function problems

  1. #1
    Member
    Join Date
    Feb 2005
    Posts
    35

    [RESOLVED] [F8] onrelease function problems

    i Have a slider to control volume and it works almost perfectly except that if i mouse out of the slider MC and then release my mouse button flash doesn't seem to recognize this and i can still affect the slider by moving my mouse around even though i am no longer holding the mouse button.

    the code that i have is on the first frame of my swf and is basically
    Code:
    tool.button.slider.volslide.onRelease = stopslider;
    //stopslider function
    function stopslider() {
    	tool.button.slider.volslide.stopDrag();
    }
    This code works as long as i don't mouse out of volslide before i release my mouse button but if i do then i get problems. Any solutions would be greatly appreciated.

    Thank you

  2. #2
    Member
    Join Date
    Jan 2007
    Posts
    68
    why don't u use .onReleaseOutside to do the same thing?
    double security.

  3. #3
    Member
    Join Date
    Feb 2005
    Posts
    35
    Thanks a lot, that totally worked. Is .onReleaseOutside new to flash 8? I've never seen that before.

  4. #4
    Member
    Join Date
    Jan 2007
    Posts
    68
    don't know much abt that part, but hey it works!

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