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

Re: Changing a Sprite

Subject: Re: Changing a Sprite
From: Sean Wilson
Date: Wed, 14 Jan 2009 14:40:47 +1300
Newsgroups: macromedia.director.lingo


Try something like:
--
property spriteNum
property my
property _clicked

on beginSprite me
  my = sprite(spriteNum)
  _clicked = 0
  my.cursor = 280
end

on endSprite me
  my.cursor = 0
end

on mouseDown me
  if _clicked then exit
  _clicked = 1
  my.member = member("bug_btn_d")
  sound(2).play(member("bug_squish"))
end

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