is there any way to change the color of a dynamic textbox.
for example, initially, black is the color of my dynamic textbox. when i click a button, i want it to change to white. hope to hear from u soon!
Would be a little different if you worked from a loaded text file or from a simple text variable. From a text variable within the movie, you would only have to use a second text variable (in fact a copy of the first one!), with <color> tags like these:
_root.textfield2 = "<u>THIS IS THE FIRST LINE... </u><font color=\"#FFFFFF\">THE PREVIOUS LINE WAS UNDERLINED AND IN THIS ONE, THE TEXT COLOR HAS BEEN CHANGED FROM BLACK TO WHITE.<font color=\"#0000FF\">...AND THIS LAST LINE OF TEXT WILL APPEAR IN RED!";
On the button press, you would then simply use something like:
_root.textfield1 = _root.textfield2;
You could also load a new external text.txt file holding the same tags:
_root.textfield2=<FONT FACE="Arial" SIZE="10" COLOR="#0000CC"><B>Scrolling a text box with a diagonal scrollbar!</B></FONT><BR><BR><FONT FACE="Arial" SIZE="11" COLOR="#00FF00">Oh oh, don't you just love this new scroller? It looks practically the same as an OS scroller. Stop confusing your users with weird navigation schemes: use an OS scroller.</FONT><BR><BR><FONT FACE="Arial" SIZE="11" COLOR="#0000FF">Anyway, as you can see, lots of things have been added to this one. First of all, this one got rid of the anoying hand cursor when you rollover the buttons. Second of all, the text is loaded from an external text file. Finally, and most important, a scroll bar has been added for your scrolling pleasure.</FONT><BR><BR><FONT FACE="Arial" SIZE="11" COLOR="#FF0000"><BR>Now stop scrolling and read the damn tutorial!<BR></FONT>
i was looking for a property of the dynamic textbox like _alpha for example. that way i would just use the setProperty() method. it works great! thanks old. i was expecting something simplier, but this one hits the mark.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.