A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [F8] Detect mouse outside movieclip area

  1. #1
    Member
    Join Date
    Oct 2002
    Location
    England
    Posts
    80

    [F8] Detect mouse outside movieclip area

    Is there a way to detect if the mouse is outside a movieclip area?

    Thanks

  2. #2
    Registered User nunomira's Avatar
    Join Date
    May 2002
    Location
    portugal
    Posts
    7,003
    hi,

    Here are 3 options:

    If the mouse isn't touching the movie clip it's because it's outside.
    You can use hitTest() and onMouseMove() to check this (if there are no other movie clips or buttons on top of the movie clip)
    or
    You can use the _xmouse and _ymouse VS my_mc._x, my_mc._y, my_mc._width and my_mc._height.

    If my_mc.onRollOver() doesn't get triggered or my_mc.onRollOut gets triggered, it's because the mouse it's outside my_mc.

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