This Behavior lets a text field fade in & out on mouseEnter/mouseLeave.
--Descriptionon mouseEnter
--------
on getBehaviorToolTip
return "This behavior will let a text appear and disappear "&RETURN&"on MouseEnter and MouseLeave over a button/graphic or itself."
end getBehaviorToolTip
--Code
-------
Property MySprite
--------------------
--------------------
on beginsprite
sprite(MySprite).blendlevel = 1
updatestage
end
on MouseEnter
repeat with x = 1 to 200
sprite(MySprite).blendlevel = x
updatestage
end repeat
end
--------------------
--------------------
on MouseLeave
repeat with x = 200 down to 1
sprite(MySprite).blendlevel = x
updatestage
end repeat
end
--------------------
--------------------
on getPropertyDescriptionList
set pList = [:]
addProp pList, #MySprite, [#comment :"Mon texte se trouve en sprite ", #format: #integer, #default : 1]
return pList
end getPropertyDescriptionList
Contact
MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA