Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Probably very easy actionscript problem...

Status
Not open for further replies.

seanmcdonough

Programmer
May 5, 2003
2
US
i have 2 dynamic text fields.

one will have either nine 1's in them, eight 1's in them,
etc etc, all the way to zero 1's.
something like this "111111111" or "11111111" etc.

i want the other text field to be able to tell me how
many 1's are in the other text field using a switch statement.

so, if there are 8 1's, the other dynamic text field will
show me an 8.

can anyone help?
 
textbox2.text = textbox1.length;

textbox1 and 2 instance names
 
Or with a variable in the textfields...

stop();

trace(length(test1.text));
trace(length(test1var));

test2.text = length(test1.text);
test2var = length(test1var);

Regards,

cubalibre2.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top