dcsimg
A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: onPress and onRelease in AS3?

  1. #1
    Member
    Join Date
    Oct 2004
    Posts
    57

    onPress and onRelease in AS3?

    Like the title says;
    how do I use onPress and onRelease and ReleaseOutSide in AS3?

    Please help!
    Last edited by Pattt; 07-04-2007 at 10:43 AM.

  2. #2
    Member
    Join Date
    Dec 2005
    Posts
    61

    Mouse Events

    Look in the Flash help for MOUSE_DOWN, MOUSE_UP and there is also MOUSE_CLICK.

    I'm not sure about an AS3 version of "outside".

  3. #3
    Member
    Join Date
    Oct 2004
    Posts
    57
    I can fix the outside if I can make this to AS3:

    if (!Key.isDown(1)){}

    Any ideas how to do that?

  4. #4
    Member
    Join Date
    Dec 2005
    Posts
    61

    Mouse Tutorial

    Here is a link about Mouse Events in AS3:

    http://drawk.wordpress.com/2007/06/0...-user-actions/

    There is a MOUSE_OUT event.

  5. #5
    Member
    Join Date
    Oct 2004
    Posts
    57
    If the MOUSE_UP shall work, the mouse need to be inside the movieclip. It doesn't work if it's outside, and that's what I need.

  6. #6
    Member
    Join Date
    Oct 2004
    Posts
    57
    Solved:

    I just used stage.addEventListener

  7. #7
    half as fun, double the price senocular's Avatar
    Join Date
    Feb 2002
    Location
    San Francisco, CA (USA)
    Posts
    4,361

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