macromedia.director.lingo
[Top] [All Lists]

Re: (OSControl Xtra)How to detect when a user click down and when up

Subject: Re: (OSControl Xtra)How to detect when a user click down and when up
From: "wgb14"
Date: Sat, 28 Jul 2007 05:15:05 +0000 UTC
Newsgroups: macromedia.director.lingo

I tried this script (based on docs) but it crashes director.... 


 property pSprite

 on beginSprite(me)
   pSprite = sprite(me.spriteNum)
 end beginSprite


 on update 
   
   if pSprite.click(#down) then 
     
     alert ("down we go")
     
   end if 
   
   
 end 


<Prev in Thread] Current Thread [Next in Thread>