A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: [RESOLVED] [HELP] Target of onMouseDown?

  1. #1
    I'm not Crazy :D
    Join Date
    Nov 2015
    Location
    Brazil [<o>]
    Posts
    86

    resolved [RESOLVED] [HELP] Target of onMouseDown?

    Hey Flashkit, how long!

    It seems that things here are pretty quiet when I'm not around.

    Well, the question today is, is there any command like the droptarget of the startDrag, however to the onMouseDown? Example: Imagine two objects in the game, a circle and a square. The function only runs if we click on the square and not in the circle.

    Any idea?

  2. #2
    . fruitbeard's Avatar
    Join Date
    Oct 2011
    Posts
    1,780
    Hi,

    maybe just use onPress for the square, or more comlpexily, onMouseDown if x,y coordinates of mouse hitTest true for square, then do you function/code

  3. #3
    I'm not Crazy :D
    Join Date
    Nov 2015
    Location
    Brazil [<o>]
    Posts
    86
    Hey bro, I try this, but dont work :3
    Attached Files Attached Files
    Last edited by CrazY.; 02-22-2017 at 09:00 PM.

  4. #4
    I'm not Crazy :D
    Join Date
    Nov 2015
    Location
    Brazil [<o>]
    Posts
    86
    Sorry for asking so much, I forgot the old Google haha ' SOLVED!

Tags for this Thread

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