A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Very long dynamic text field

  1. #1
    Member
    Join Date
    May 2002
    Posts
    42

    Very long dynamic text field

    Hi,

    I'm loading info from an XML file into a dynamic text field. At first, I did this by placing the text field on the stage and giving it a variable name. This worked fine except that I don't want to have to scroll this text field. I just want a very long list that would be scrolled using the browser scroll bar.

    The stage area isn't big enough to accommodate a text box that will display all of the dynamic text, so I created a text box with AS. My text still displays, but I still have to define the height of the AS text box, so I'm right back where I started.

    How do I create a text box that will display all of my data (without scrolling) regardless of the length.

    Using Flash MX,
    Thanks a bunch,
    Debbie
    Last edited by debbieg; 08-30-2006 at 04:02 PM.

  2. #2
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    mytextfield.multiline = true;
    mytextfield.autoSize = true;

    hth

  3. #3
    Member
    Join Date
    May 2002
    Posts
    42
    Hi a_modified_dog,
    Thanks so much for taking the time to reply, but I had already tried that. I should have included my code before. My entire movie is only two frames with AS assigned to each of them. I have the code to parse the xml file to the variable list, and I have the code below to display it. Everything works perfectly, but the display always gets truncated. The document property options will only allow me to make the movie 2880px, so the height that I specify for my faqlisting text box doesn't matter.

    Code:
    function makeText(myText) {
    createTextfield("faqListing", 0, 4, 3, 650, 2880);
    faqListing.background = false;
    faqListing.border = false;
    faqListing.wordWrap = true;
    faqListing.multiline = true;
    faqListing.autoSize = true;
    faqlisting.html = true;
    faqListing.htmlText = myText;
    
    // format
    listformat = new TextFormat();
    listformat.color = 0x000000;
    listformat.font = "verdana";
    listformat.size = 10;
    
    faqlisting.setTextFormat(listformat);
    }
    
    makeText(list);
    I can't believe that I figured out the hard part, the xml; and now can't get it to display. I feel like I'm missing something obvious.

    Thanks again for any help,
    Debbie

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