on beginSprite me
set overMe = -1
set sNum = the spriteNum of me
set frameCount = VOID
ripple(sprite sNum)
PauseEffect(sprite sNum, #ripple)
end
on mouseDown me
set overMe = TRUE
if mode = #center then
set x = (the width of sprite sNum)/2
set y = (the height of sprite sNum)/2
else
set x = the mouseH - the left of sprite sNum
set y = the mouseV - the top of sprite sNum
end if
ripple(sprite sNum, [#xLocation: x, #yLocation: y])
end
on mouseEnter me
if the stillDown and overMe = FALSE then
if mode = #center then
set x = (the width of sprite sNum)/2
set y = (the height of sprite sNum)/2
else
set x = the mouseH - the left of sprite sNum
set y = the mouseV - the top of sprite sNum
end if
ContinueEffect(sprite sNum, #ripple)
ripple(sprite sNum, [#xLocation: x, #yLocation: y])
set overMe = TRUE
end if
end
on mouseWithin me
if mode <> #center and the stillDown and overMe = TRUE then
set x = the mouseH - the left of sprite sNum
set y = the mouseV - the top of sprite sNum
ripple(sprite sNum, [#xLocation: x, #yLocation: y])
end if
end
on mouseLeave me
if the stillDown and overMe = TRUE then
PauseEffect(sprite sNum, #ripple)
set overMe = FALSE
end if
end
on mouseUp me
if overMe then
set overme = -1
repeat with x = 1 to delay
updateStage
end repeat
on mouseUpOutside me
Removeeffect(sprite sNum, #ripple)
ripple(sprite sNum)
PauseEffect(sprite sNum, #ripple)
set overMe = -1
end
on action me
if actionType = #goToFrame then
if value(actionText) > 0 then
go to frame value(actionText) -- go to frame number
else
go to frame actionText -- go to frame label
end if
else if actionType = #doLingo then
do actionText
end if
end
Contact
MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA