home *** CD-ROM | disk | FTP | other *** search
/ Help! Multimídia 16 / HELP_CD16.ISO / help / proj32tc.exe / Amenu.dxr / 00011_AAULA1.ls < prev    next >
Encoding:
Text File  |  1998-11-12  |  1.7 KB  |  47 lines

  1. property standardImage, alternateImage, nextCM
  2.  
  3. on mouseEnter me
  4.   set the member of sprite the spriteNum of me to the alternateImage of me
  5.   cursor([19, 20])
  6. end
  7.  
  8. on mouseLeave me
  9.   set the member of sprite the spriteNum of me to the standardImage of me
  10.   cursor(-1)
  11. end
  12.  
  13. on beginSprite me
  14.   set the standardImage of me to the member of sprite the spriteNum of me
  15.   if nextCM = 1 then
  16.     set memref to the member of sprite the currentSpriteNum
  17.     set castLibNum to the castLibNum of memref
  18.     set memdefault to member (the memberNum of member memref + 1) of castLib castLibNum
  19.     set alternateImage to memdefault
  20.   end if
  21. end
  22.  
  23. on getPropertyDescriptionList
  24.   if the currentSpriteNum = 0 then
  25.     set memdefault to 0
  26.   else
  27.     set memref to the member of sprite the currentSpriteNum
  28.     set castLibNum to the castLibNum of memref
  29.     set memdefault to member (the memberNum of member memref + 1) of castLib castLibNum
  30.   end if
  31.   set p_list to [#nextCM: [#comment: "Use Next Member:", #format: #boolean, #default: 1], #alternateImage: [#comment: "Rollover Cast Member:", #format: #graphic, #default: memdefault]]
  32.   return p_list
  33. end
  34.  
  35. on getBehaviorDescription
  36.   return "Change the sprite's cast member when the mouse rolls over the current sprite." & RETURN & "PARAMETERS:" & RETURN & "ΓÇó Use Next Member - Turn this option on to automatically display the next cast member in the cast when mouse rolls over the sprite." & RETURN & "ΓÇó Rollover Cast Member - Choose a specific cast member to appear when the mouse rolls over the sprite. This setting is ignored if Use Next Member is on."
  37. end
  38.  
  39. on mouseDown me
  40.   set the member of sprite the currentSpriteNum to "bot som 3"
  41. end
  42.  
  43. on mouseUp me
  44.   puppetSound(0)
  45.   go(130, "Bmenu")
  46. end
  47.