Requires Effector Set 2. These behaviors are for use with the Alphamania Xtra and its add-on effector sets
property sNum
property mouseLoc
property mode -- blur, or blur in and then out
property startBlur
property endBlur -- where the blur stops and the action begins
property blurResolution
property moveMode -- whether in up or down part of animation
property frameCount -- how much time left in this part of animation
property actionType, actionText -- what to do or where to go
property clickThresh
on getBehaviorDescription me
return "A simple button behavior that plays a blur animation when the user clicks. The blur increases after the user clicks. This creates a fade out/blur effect."
end
on beginSprite me
set frameCount = 10
set moveMode = VOID
set sNum = the spriteNum of me
set the clickthreshold of sprite sNum = clickThresh
blur(sprite sNum, [animMode:#static, blurAmount:startBlur, blurResolution:blurResolution])
end
on mouseEnter me
set newLoc = point(the mouseH, the mouseV)
if newLoc <> mouseLoc then
blur(sprite sNum, [animMode:#range, numFrames:frameCount, endBlur:endBlur])
set mouseLoc = point(the mouseH, the mouseV)
end if
end
on mouseLeave me
set newLoc = point(the mouseH, the mouseV)
if newLoc <> mouseLoc then
blur(sprite sNum, [animMode:#range, numFrames:frameCount, endBlur:startBlur])
set mouseLoc = point(the mouseH, the mouseV)
end if
end
Contact
MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA