on beginSprite me
set s=the spriteNum of me
if not alphaManiac(s) then exit
set pInterp=interpolation(pInterp)
Swirl(sprite s,[degrees:pAmount])
end
on mouseEnter me
set s=the spriteNum of me
if not alphaManiac(s) then exit
set cmds=[animMode:#Range,startDegrees:pAmount,¬
endDegrees:0,numFrames:pSpeed,EaseIn:4,EaseOut:4,Interpolation:pInterp]
Swirl(sprite s,cmds)
end
on mouseLeave me
set s=the spriteNum of me
if not alphaManiac(s) then exit
set cmds=[animMode:#Range,startDegrees:0,endDegrees:pAmount,¬
numFrames:pSpeed,EaseIn:4,EaseOut:4]
Swirl(sprite s,cmds)
end
on getBehaviorDescription me
set msg= "This behavior swirls a sprite, and then, if the mouse is over, it dramatically unswirls. Simply set the initial swirl, and how fast you want the sprite to unfold."
return(msg)
end
Contact
MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA