on getPropertyDescriptionList
set description = [:]
if the currentspritenum = 0 then
set indefault = 0
set downdefault = 0
set disdefault = 0
else
set memref = the member of sprite the currentspritenum
set castlibnum = the castlibnum of memref
set indefault = member (the membernum of member memref + 1) of castlib castlibnum
set downdefault = member (the membernum of member memref + 2) of castlib castlibnum
set disdefault = member (the membernum of member memref + 3) of castlib castlibnum
set cursorList = []
repeat with i = 1 to the number of members
if the type of member i = #bitmap then
if the depth of member i = 1 then add cursorList, the name of member i
end if
end repeat
if count(cursorList) > 0 then
set cursDef = getAt(cursorList,1)
else set cursorList = [#none]
end if
on beginSprite me
set the upMember of me = the member of sprite (the spriteNum of me)
if not the enabled of me then
set the member of sprite (the spriteNum of me) to member the disMember of me
else if not voidP(cursorMember) then
setCursor me, true
end if
end
on mouseDown me
if the enabled of me then
set the member of sprite (the spriteNum of me) to member the downMember of me
set active = true
end if
end
on mouseEnter me
if the enabled of me then
if the mouseDown and the active of me then
set the member of sprite (the spriteNum of me) to member the downMember of me
else set the member of sprite (the spriteNum of me) to member the insideMember of me
end if
end
on mouseLeave me
if the enabled of me then set the member of sprite (the spriteNum of me) to member the upMember of me
end
on mouseUp me
if the enabled of me and active = true then
set the member of sprite (the spriteNum of me) to member the insideMember of me
do mouseUpScript
end if
set active = false
end
on mouseUpOutside
set active = false
end mouseUpOutside
on disable me
set the enabled of me = false
set the member of sprite (the spriteNum of me) to member the disMember of me
setCursor me,false
end
on enable me
set the enabled of me = true
set the member of sprite (the spriteNum of me) to member the upMember of me
setCursor me,true
end
on toggle me
if the enabled of me then
disable me
else enable me
end
on setCursor me, theVal
if theVal then
put the number of member cursorMember into theCurs
put the number of member(the name of member cursorMember & ".mask") into theMask
if theMask > 0 then
set the cursor of sprite (the spriteNum of me) = list(theCurs, theMask)
else set the cursor of sprite (the spriteNum of me) = list(theCurs)
else set the cursor of sprite (the spriteNum of me ) = 0
end
Contact
MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA