This content has been marked as final. Show 5 replies
Have you enabled the ignoreWhite (true) for XML ?
And also, make the entire text field content as single empty string and assign the original. like,
youTextFeild.text = yourText;
And what scroller component you are using now ??
Is it a flash inbuilt component ?
The blank field could be caused by the previous text being longer and the textField and scrollbar not being reset. Try this:
yourTextField.scroll = 0; before loading new text.
Hi, THX both of you guys
arunbe, I do have enabled the IgnoreWhite and I'm not using a flash inbuilt scroll component. I modified the scroll bar from kirupa.com and it's working fine (i'm using it also with the menu).
I tried both suggestions and here's the result. It still doesn't show the whole content (is there a limit of characters in Flash text fields???). If I move scroll bar to the bottom and then click other button in menu, it looks like the scrollbar is including the previous scrolled content and starts with the new loaded content from there so I can't see new loaded content from start. If I don't scroll then the new loaded content starts from the top. THX fro your help so far.
if possible , give us link for your source !
Put yourTextField.scroll = 0; in the buttons before you load new text, make sure the path to your textFiled is correct.