00:00
00:00

AS: Text Fields

5,953 Views | 43 Replies
New Topic Respond to this Topic

Response to AS: Text Fields 2006-02-26 16:12:52


Is it possible to change the font dynamicly, and if yes, how?

Response to AS: Text Fields 2006-04-30 08:30:04


do you know how to restrict an input text box that WASN'T created by AS?


BBS Signature

Response to AS: Text Fields 2006-04-30 08:51:52


i have a new question. HOW DO YOU USE THESE VARIABLE SETTINGS???:
background
Indicates if the text field has a background fill.

backgroundColor
Indicates the color of the background fill.

border
Indicates if the text field has a border.

borderColor
Indicates the color of the border.

maxChars
The maximum number of characters that a text field can contain.

password
Indicates if a text field hides the input characters.

restrict
The set of characters that a user can enter into a text field.

textColor
The color of the current text in the text field.

type
Indicates whether a text field is an input text field or dynamic text field.


BBS Signature

Response to AS: Text Fields 2006-04-30 09:00:58


ok, what am i doing wrong? ive drawn an input text box (because the type thing didnt work) it has an instance of ga and a variable name of g and i have this script on the frame, i want to restrict it so that you will only be able to type numbers, not even spaces, this is the script i have: ga.text.restrict="0", "1", "2", "3", "4", "5", "6", "7", "8", "9";
what am i doing wrong?


BBS Signature

Response to AS: Text Fields 2006-04-30 09:24:16


You can do:
ga.text.restrict="0123456789";

But since they are in order, this works too:
ga.text.restrict="0-9";


BBS Signature

Response to AS: Text Fields 2006-04-30 10:01:28


dont work


BBS Signature

Response to AS: Text Fields 2006-04-30 10:04:19


If the textbox is called ga it's just:
ga.restrict="0-9";


BBS Signature

Response to AS: Text Fields 2006-04-30 10:06:10


it may not work because it is a drawn text box not a scripted one, its not scripted because i needed an instance name


BBS Signature

Response to AS: Text Fields 2006-04-30 10:37:44


ty vvm it works!!!


BBS Signature

Response to AS: Text Fields 2006-12-09 18:33:17


When i try to set the type to input it doesn't work why not?

onEnterFrame = function(){
createTextField("something", 1, 200, 300, 300, 20);
with(something){
type = "Input";
}
}

Response to AS: Text Fields 2006-12-11 18:49:35


Anyone?

Response to AS: Text Fields 2006-12-13 18:30:08


Anyone?

Response to AS: Text Fields 2006-12-15 22:04:04


Anyone?

Response to AS: Text Fields 2007-11-16 11:25:43


lol gerbil don't spam.

yo how do i change the text's size??


Awesome turret game in the making, featuring 85 uniqe turrets: News post

BBS Signature