OwlShield

hittestPoint();

Feb 20th, 2013
349
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import flash.events.Event;
  2.  
  3. addEventListener(Event.ENTER_FRAME,temasKontrol);
  4.  
  5. function temasKontrol(e:Event):void
  6. {
  7.     if (mcNesne.hitTestPoint(mouseX,mouseY,true))
  8.     {
  9.         txtKontrol.text = "Temas var!";
  10.     }
  11.     else
  12.     {
  13.         txtKontrol.text = "Temas yok!";
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment