home *** CD-ROM | disk | FTP | other *** search
/ Knitting Made Easy / Knitting.iso / App / Patterns.dxr / behaviors_70_SoundPlayMemberMouseUp.ls < prev    next >
Encoding:
Text File  |  2002-04-18  |  661 b   |  18 lines

  1. property WhichSound, whichChannel, StartImmediately
  2.  
  3. on mouseUp me
  4.   puppetSound(me.whichChannel, me.WhichSound)
  5.   if me.StartImmediately then
  6.     updateStage()
  7.   end if
  8. end
  9.  
  10. on getPropertyDescriptionList
  11.   p_list = [#WhichSound: [#comment: "Sound:", #format: #sound, #default: EMPTY], #whichChannel: [#comment: "Channel:", #format: #integer, #default: 1]]
  12.   return p_list
  13. end
  14.  
  15. on getBehaviorDescription
  16.   return "Plays the designated sound cast member when mouseUp event occurs." & RETURN & "PARAMETERS:" & RETURN & "ΓÇó Sound - Choose the sound cast member to be played." & RETURN & "ΓÇó Channel - Enter the sound channel number to be used for playback."
  17. end
  18.