PDA

View Full Version : textfield small problem


FarFeTTu
09-27-2004, 02:51 PM
i have this small problem with a dynamic text field, and i still can't figure out why..

I have created a dynamic text field on stage with a variable name "mytext". Also i have made its autosize property true so that its height would be dynamic according to the text in the textfield.

The problem is that the last line of the text to be shown in the textfield is not showing, don't know why.. I have tried everything i could to get to know why, but all in vain.. I really would appreciate if somebody would help me..

the piece of code is very simple --

//mytext_txt is the name of the dynamic text field
mytext_txt.autoSize = true;
mytext = "This text is not completely showing.. parts are missing.. do you know why?? This text is not completely showing.. parts are missing.. do you know why??"
trace(mytext_txt.text);

also i've attached a small test file which i've made to show you the problem and that not all of the text is showing in the textfield..

nebody knows why??

jwopitz
09-27-2004, 02:56 PM
Did you check the option on the text field for either single line or multiline or multiline no wrap? That may be it.

FarFeTTu
09-28-2004, 07:59 AM
yes sure, it is a multiline text field..

you can check out the example from the flash file i've attached, it seems that the last line of the text field is not showing for some reason i can't figure out .. :(

Jozzle
09-28-2004, 09:13 AM
is there a restriction for not just making it bigger?

FarFeTTu
09-30-2004, 07:36 AM
the attached file isn't the case that i'm using it but it is just an example to show you the problem

Yes, in the case where i have this problem, i need to calculate its position according to its height, and the height may vary according to the text shown in the textbox..

I have found a solution to the problem, one solution to the problem is that i have created the textbox with the CreateTextField command and it works fine and all the text is shown,

but still i can't figure out why when using a dynamic textbox, and setting the autoSize property to true and multiline true, so that it expands at the bottom, the last line doesn't get shown.. any body knows why??

Jozzle
10-07-2004, 10:46 AM
Hi,

It works fine now... I did two things:

Doubleclick the little square used to resize the textfield. (the size should now be minimal again and the square changed to a circle).

Select single line or multiline no wrap, not multi-line.



Greetz