Saya ingin membuat tampilan mouse hilang dalam hitungan detik apabila programnya tidak dipakai...
Masukan script behavior ini kedalam sprite dan tentukan waktunya.
property mhLoc, mhCount, mhTiming 
--------------------------------------------------
on new me 
me.mhLoc = duplicate(the mouseLoc) 
me.mhCount = 0 
me.mhTiming = 1000 -- 1000 = 1detik
return me 
end 
on exitFrame me 
if me.mhLoc = the mouseLoc then 
if me.mhCount = 0 then 
me.mhCount = the milliseconds 
end if 
else 
me.mhCount = 0 
me.mhLoc = duplicate(the mouseLoc) 
end if 
if me.mhCount = 0 then 
cursor 0 
else if (me.mhCount + me.mhTiming) <>cursor 200 
end if 
end
-----------------------------------------------------------------
(sumber: www.Augesweb.com)
Kamis, 13 Maret 2008
Menghilangkan Mouse Pointer
Langganan:
Posting Komentar (Atom)
Tidak ada komentar:
Posting Komentar