dcsimg
A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Loading text and formatting

  1. #1
    Senior Member
    Join Date
    Nov 2000
    Posts
    259

    Loading text and formatting

    Hi!

    I know how to load external TXT files into flash.

    What I need now is, to load it and format certain parts of it automatically.

    For example, I have a blog with lots of posts, and the posts are:

    ---------begin-------
    TITLE
    DATE

    Content
    ----------end--------

    And so, I need the title and the date to be one font, with different colors between them, and the content is another font, on a third color.

    I have to do this because I've been putting the posts directly inside flash, and they got so long after a while, that I can't have all of them on my screen at any one time, they exceeded flash's height limit...so, to edit the older ones, I need to keep scrolling everything up, which is a pain...

    Anyone?
    Up the Irons!!

  2. #2
    Member
    Join Date
    Apr 2003
    Location
    Sydney
    Posts
    66
    Can you have a different text field for each of the title, date and content in your flash document.
    You can give them each a variable name.

    Then have scroll bars just for the content field.


    ETA.
    Sorry, just thought of something even simpler....
    Can't you just put <font color="red">Title</FONT>
    <font color="blue">Date</FONT>
    <font color="black">Content ..</FONT>

    in the actual text file?
    Last edited by holliebelle; 09-21-2009 at 01:14 AM.

  3. #3
    Senior Member
    Join Date
    Nov 2000
    Posts
    259
    Hmmm

    I can't do that, each post has its title and its content...
    Also I have another problem, they all need to be equally spaced, so if I throw the text fields in there, and they all have different lenghts of content, which they do, they're gonna start overlapping each other...

    I need to do it in one text field, that way I can control all the spacing in the TXT file, that way it's uniform.
    Up the Irons!!

  4. #4
    Senior Member
    Join Date
    Nov 2000
    Posts
    259
    LOL, I fail.

    I was gonna try and delete the duplicate post, but alas. Serves as a bump!
    Last edited by Baterax; 09-21-2009 at 09:35 AM. Reason: duplicated

  5. #5
    Senior Member
    Join Date
    Nov 2000
    Posts
    259
    Hmmm

    I just read your edit, will try that and get back here. Thanks already!
    Up the Irons!!

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