on beginSprite me
-- Convert Ease In & Out to frames
set pIn=(pIn*pFrames) / 100
set pOut=(pOut*pFrames) / 100
reset(me)
end
on trigger me,reverseFlag
set s = the spriteNum of me
if not alphaManiac(s) then exit
if pLoop then
hsb(sprite s,[animMode:#Pendulum,startSat:pStart,¬
endSat:pEnd,numFrames:pFrames,EaseIn:pIn,EaseOut:pOut])
else
if reverseFlag then
hsb(sprite s,[animMode:#Range,startSat:pEnd,¬
endSat:pStart,numFrames:pFrames,EaseIn:pIn,EaseOut:pOut])
else
hsb(sprite s,[animMode:#Range,startSat:pStart,¬
endSat:pEnd,numFrames:pFrames,EaseIn:pIn,EaseOut:pOut])
end if
end if
end
on reset me
set s=the spriteNum of me
if not alphaManiac(s) then exit
hsb(sprite s,[animMode:#Static,forceSat:pStart])
end
Contact
MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA