Hi!
I wonder if there is a way to count characters visible in a textfield? I
have a text where not all characters are embeded in the textfield and I
want to check how many that are.. So it would be great if there was I
way to check the length of the text in the textfield and not the
original string.
I use this code, but it returns the same number of characters even
though the textfield displays less characters.
latin1 = "ÀÁÂÃÄÅ..";
trace("latin1 " + latin1.length);
txt_tf.text = latin1;
trace("txt_tf.text " + txt_tf.text.length);
Thanks in advance!
Ellen
--
Ellen Sundh
Flash Developer
Great Works
. . . . . . . . . . . .
Mobile: +46 73 200 40 73
Office: +46 8 528 077 73
Sveavägen 66
111 34 Stockholm
/|_
,' .\
,--' _,'
/ /
( -. |
| ) |
(`-. '--.)
`. )----' Mjau..
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com