Skip navigation
sachin_mak
Currently Being Moderated

OnClick...Goto Click Location

May 22, 2012 4:21 AM

i am new in actionscript.

actually i want to move a man to a location where user clicks.

but the problem is i don't know how to do this..

 

Can anyone help me??

 
Replies
  • Currently Being Moderated
    May 22, 2012 4:38 AM   in reply to sachin_mak

    You can use mouseX and mouseY to determine where the click is made and assign the character's x and y properties to those values.

     
    |
    Mark as:
  • Currently Being Moderated
    May 22, 2012 5:09 AM   in reply to sachin_mak

    If you change your publish settings to AS2 it might work since that is AS2 code.  If you want to create an AS3 file, then you need to use AS3 code, which would include using the mouseX, mouseY, x and y properties, among other things.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points