Hi!
Im wondering if there is a way to make the dynamic textboxes automatically resize themselves to the size of the text that it finds in a textfile?
The way it seems to work now is that the rest of the text get hidden in the bottom…
Hi!
Im wondering if there is a way to make the dynamic textboxes automatically resize themselves to the size of the text that it finds in a textfile?
The way it seems to work now is that the rest of the text get hidden in the bottom…
You can use the scrollbar componant. It would be easier and cleaner.
Yes, I guess that would look better.
Still, Id like to get rid of those scrollbars.
You can change the colors of scrollbars if that is what you are worried about.
If not, then try this…
_root.createTextField("myBox", 1, 275, 200, 100, 100);
myformat = new TextFormat();
myformat.font = "Verdana";
myformat.size = 10;
myformat.color = 0x000000;
_root.myBox.selectable = false;
_root.myBox.autoSize = "left";
_root.myBox.border = true;
_root.myBox.text = "This is in Line 1
This is in Line 2";
_root.myBox.setTextFormat(myformat);
Change the text in _root.myBox.text to see it resize.
EDIT: Another way to add lines…
_root.createTextField("myBox", 1, 275, 200, 100, 100);
myformat = new TextFormat();
myformat.font = "Verdana";
myformat.size = 10;
myformat.color = 0x000000;
_root.myBox.selectable = false;
_root.myBox.autoSize = "left";
_root.myBox.border = true;
_root.myBox.text += "This is in Line 1
This is in Line 2
";
_root.myBox.text += "This is in Line 1
This is in Line 2
";
_root.myBox.text += "This is in Line 1
This is in Line 2
";
_root.myBox.text += "This is in Line 1
This is in Line 2
";
_root.myBox.setTextFormat(myformat);
Hey, thats great Thanx alot!
No problem:)
If you have any questions, just post 'em
I sure will
Best flasher-forum Ive been to so far, thats why Im hogging it
We try:)
:: Copyright KIRUPA 2024 //--