A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: Flash MX: text getting cut short in dynamic text box

  1. #1
    Senior Member bismark65's Avatar
    Join Date
    Jul 2002
    Location
    not really sure......
    Posts
    331

    Flash MX: text getting cut short in dynamic text box

    I have two dynamic text boxes. They load fine when I call them and the external text files load. However, only about half of the text is actually showing. I am able to scroll fine, but the text ends prematurely. Is there a limit on how much text it can hold? I have it set to "multiline"

    Thanks for any help. I have searched the forums for this, but am unable to narrow it down enough to come up with less than 5000 posts regarding dynamic text. LOL
    Kerry

    A pessimist complains about the wind;
    an optimist expects the wind to change;
    a leader adjusts his sails.

    (anonymous)
    info@bizmoxsystems.com
    http://www.bizmox-systems.com

  2. #2
    Senior Member Shotsy247's Avatar
    Join Date
    Apr 2001
    Location
    Be there in a minute!
    Posts
    1,386
    Is there something in the text that may cause them to stop showing it, such as quotes?

    _t

  3. #3
    Senior Member bismark65's Avatar
    Join Date
    Jul 2002
    Location
    not really sure......
    Posts
    331
    No. I just checked the files and they are just straight text at the point that it stops.
    Kerry

    A pessimist complains about the wind;
    an optimist expects the wind to change;
    a leader adjusts his sails.

    (anonymous)
    info@bizmoxsystems.com
    http://www.bizmox-systems.com

  4. #4
    Member
    Join Date
    Dec 2003
    Posts
    58
    Hi there,

    setting multiline=true ain't enough. You should also set "autoSize" to make the TextField expand beyond the size you have specified.
    And if you want the field to expand vertically instead of horizontally, you should set "wordWrap" to "true" as well - otherwise only hard line breaks will expand the field vertically.
    Last edited by pecoes; 12-15-2003 at 03:05 PM.

  5. #5
    Senior Member bismark65's Avatar
    Join Date
    Jul 2002
    Location
    not really sure......
    Posts
    331
    OK. I set the autosize to "left" and now the scrollbar stopped working. I am using the scrollbar component that comes with Flash
    Kerry

    A pessimist complains about the wind;
    an optimist expects the wind to change;
    a leader adjusts his sails.

    (anonymous)
    info@bizmoxsystems.com
    http://www.bizmox-systems.com

  6. #6
    Senior Member Shotsy247's Avatar
    Join Date
    Apr 2001
    Location
    Be there in a minute!
    Posts
    1,386
    Is the text html formatted?

    _t

  7. #7
    Member
    Join Date
    Dec 2003
    Posts
    58
    Right, forget my post, I was not aware of the fact that you're using the scrollbar component.
    You can't have both - of course - an auto-expanding field and scrollbars.

    A question: Have you tried to attach the scrollbars after filling in the text?

  8. #8
    Senior Member bismark65's Avatar
    Join Date
    Jul 2002
    Location
    not really sure......
    Posts
    331

    I sussed it!

    The whole damn problem was an unescaped ampersand! Hate those stupid things. LOL. I just substituted %26 and everything is working fine now. Thanks a lot for all the suggestions.
    Kerry

    A pessimist complains about the wind;
    an optimist expects the wind to change;
    a leader adjusts his sails.

    (anonymous)
    info@bizmoxsystems.com
    http://www.bizmox-systems.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center