PDA

View Full Version : underline text on rollover


benwa02
11-23-2003, 12:12 AM
im trying to do the basic underline of the button text. just on the rollover i want the text to be underlined. thanks.

Warrior
11-23-2003, 02:42 AM
You're welcome :)

So what's the question :confused:

One Eyed Dog
11-23-2003, 08:19 AM
Howdy :D

Double click your button on the stage, and in the OVER state frame of your button, draw a line under your text. Test publish your movie and roll over to see. I think this is what you are looking for? :cool:

george_gaz
08-15-2008, 03:51 PM
Hello all,

Any ideas how to do this on dynamic text boxes?
I have a dynamic text box, pulling data through XML.
I want the text to underline on rollover :confused:
I tried doing:


dynamicText.onRollOver = function(){
this.underline = true;
}


But this did not work ...

Any ideas?

atomic
08-15-2008, 04:02 PM
All of the text or just some specific word(s)?

george_gaz
08-18-2008, 12:18 PM
Hello atomic,

Loving the crown on the photo :D

Yeah well I have a dynamic text box pulling data through an XML so the data could be ten words or fifty words and I would like all of the words to underline, just like a normal HTML hyperlink .

The button thing mentioned above would not work for my problem :confused:

Cheers

atomic
08-18-2008, 04:02 PM
Stick the textfield in a movie clip... And this works...


myTextmc.myText.html = true;
myTextmc.myText.text = "THIS IS A TEST!";
var tempText:String;


myTextmc.onRollOver = function(){
tempText = myTextmc.myText.text;
this.myText.htmlText = "<u>"+tempText+"</u>";
};

myTextmc.onRollOut = function(){
this.myText.htmlText = tempText;
};

george_gaz
08-22-2008, 04:39 PM
OK that's great atomic, I will give that a try :)

Thanks for finding the time buddy

atomic
08-22-2008, 04:56 PM
Keep me posted!

dyamni
08-27-2008, 07:38 AM
its very nifty . I will try this. thanks.your signature is too good.

atomic
08-27-2008, 02:30 PM
Grrrrrreat! ;)