Contents
Articles
Behaviors
Books
Director News
Director Web Sites
FAQ
Games
Mailing Lists
News Groups
Project Examples
Reviews
Software
Tools
Useful Web Sites
Utilities
Xtras

Don't miss these
Delete a file
Reshacker
Accessing Keys to Control a Sprite
Vector Shape - Create Polygon
Generic behavior to change System Cursors
Sprite on/off
How to find the computer's IP Address at runtime
Diffusion Effect - Imaging Lingo
Trim Function
Slider Puzzle by J.R.D.R.
 

 

 

Behavior Fade In Out Text

Added on 12/14/2000

 

Compatibilities:
behavior D7 D8 Mac PC Shockwave

This item has not yet been rated

Author: FrankHaili

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

Send e-mail