Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

flash 5 button help

Status
Not open for further replies.

gilc

MIS
Feb 20, 2002
36
HK
hi,
i have these buttons on the stage , now as soon as mouse rolls over them i want some defined text to appear in a text box i have created , i saw it done in one site , i don't know how to do it in mine ,
can anyone help?
thankx
gilc
 
do you want the button to change into the text? if so just double click your button and on the over state, delete your button and type whatever you want to appear.
 
There are a few different ways to do this:

If the "textbox" you are talking about is a dynamic textbox, then to modify the text in the box, simply put te following command on the button.

on (release) {
variable = "your text here"
}

The text can have html tags if the dynamic text box has html selected.


Another way is to double click the button to modify it, add a new layer to it, select the over frame and insert a keyframe (f6) now in this keyframe, put the text wherever you want it.


A third way is to create a movie clip with any text and animations you want to appear on mouseover. Then edit the button (double-click) and in the over frame add the movieclip where you want it on the stage.


If this isn't clear, or you can't get it working, post again.

Hope This Helps! Lumstar

______________________________________
Keep On Coding!!
If my post helped you, please give me a star.
If your post helps me, I'll give you one!
scifi-alien-with-red-boots-DW.gif
 
Something like this:

onClipEvent (load) {
var text = "foo";
}
onClipEvent (enterFrame) {
if (hitTest(_root._xmouse, _root._ymouse)) {
_parent.text = text;
} else {
_parent.text = "";
}
} Regards

Big Bad Dave

logo.gif


davidbyng@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top