// create TextFields(label | ? | Y | x_position | length | height )
this.createTextField(“big mac”, 0, 0,x_position , 80, 16);
// set text format
big mac.setNewTextFormat(new TextFormat(“Verdana”, 10));
// set TextField type to input
big mac.type = “dynamic”;
// admit characters only from 0 to 9 and .
big mac.restrict = “0-9.”;
// show TextField border
big mac.border = true;
// call function
big mac.onChanged = addition;
x_position = x_position + 10;
}
[/AS]
oh, and what is the ? section in the
TextFields(label | ? | Y | X | length | height )
You mean depth right?
He sets each textfield on an unique depth level otherwise the second will replace the first one.
this.createTextField("a_txt", **0**, 0, 0, 80, 16);
this.createTextField("b_txt", **0**, 100, 0, 80, 16);//"b_txt" will replace "a_txt" since im creating both on same depth level