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

Changing a Sprite

Subject: Changing a Sprite
From: "katie_lostsoul"
Date: Wed, 14 Jan 2009 01:13:46 +0000 UTC
Newsgroups: macromedia.director.lingo

Hello,

 I have a bug, and I've scripted it as a button:

 on MouseEnter me
   _player.cursor(280)
 end

 on MouseDown me
   _player.cursor(280)
   sprite(me.spriteNum).member=member("bug_btn_d")
   sound(2).play(member("bug_squish"))
 end

 on MouseUp me
   _player.cursor(280)
 end

 on MouseLeave me
   _player.cursor(0)
   sprite(me.spriteNum).member=member("bug_btn_n")
 end

 Now, if the user has already squashed it, I want it to remain squashed and not 
go back to its normal state. Is there a way to detect if the down state has 
already happened, and if so, disable the button?

 Thanks!


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