A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: _xmouse & _ymouse

  1. #1
    Member
    Join Date
    Oct 2002
    Location
    Planet Earth ?
    Posts
    58

    _xmouse & _ymouse

    Hello there.. quick question.

    Is it possible to plot a square area using x & y co-ordinates which then can be checked to see if the _ymouse || _xmouse have entered into this square ?

    Any help would be great.

  2. #2
    Junior Member scudsucker's Avatar
    Join Date
    Feb 2003
    Location
    Cape Town, RSA
    Posts
    1,509
    OK, you have a rectangle.
    (a,b) is top left corner, (c,d) is bottom right.
    //
    if(_ymouse<d and _ymouse>b and _xmouse>a and _xmouse<c) {
    // mouse is over
    } else {
    // mouse is not over
    }
    Hariyemadzisawira nhaka yedu! Down the SCUD and win!
    I'm too lazy to read Private Messages.

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