View Full Version : TextInput Component
martinbly
11-21-2005, 01:51 AM
hi... quick question.. How do I increase the font size of the type that a user inputs into the TextInput component?
Many Thanks
Scottae
11-21-2005, 02:44 AM
You have to use the setStyle method. Check out this link on Using styles with the TextInput component (http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00004066.html)
martinbly
11-21-2005, 11:21 AM
thanks for that...
where wud i put the code and what would i put? sorry a newbie to flash
Scottae
11-21-2005, 03:12 PM
Put something like this on a keyframe on the timeline which the TextInput exists:
import mx.controls.TextInput;
var myTextInput:TextInput;
myTextInput.setStyle ("fontSize", 15);
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.