A Flash Developer Resource Site

Results 1 to 15 of 15

Thread: How do you Import Text

  1. #1
    Junior Member
    Join Date
    Jul 2002
    Posts
    21

    Cool

    I really need to know how to import text into flash.
    My other post may have been more than what I really need help with.

    I'm just trying to get text into flash from an external source.
    Any thoughs or ideas would be very helpful.

  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    A couple of links that might help you out with scrolling or not text...

    http://www.macromedia.com/support/fl...ng_text_mx.htm

    http://www.macromedia.com/support/fl...t_scrollmx.htm

  3. #3
    Junior Member
    Join Date
    Jun 2002
    Posts
    21

  4. #4
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    The new LoadVars() function is much better!

  5. #5
    Junior Member
    Join Date
    Jul 2002
    Posts
    21

    Thanks

    Thanks for all of the help but i am just not getting it. I'm sorry I don't understand what is going on. I'm not that familier with actionscripting.

  6. #6
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Can't you even follow a tutorial?

  7. #7
    Junior Member
    Join Date
    Jul 2002
    Posts
    21

    Thanks!

    Yeah I can follw a tutorial but I haven't found one yet.
    Have you got one?
    All I have recieved thus far is a description of a couple of script but no real definition or explanation of what I'm looking for.
    What crawled up your butt?
    You don't have to put me down.

  8. #8
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    The 2 links I gave you explain how (guess I'd called those tutorials!) to create a textfield and how to import a text file into it. If that's not part of your problem, then I must be selling land in Florida!

  9. #9
    Junior Member
    Join Date
    Jul 2002
    Posts
    21

    thanks again

    I am figuring that out now,
    Thank you.
    i'm just getting frustrated.

  10. #10
    Member of the Flashist Party
    Join Date
    Nov 2001
    Posts
    146
    You would have a text file called say textFile.txt located in the same folder as your swf.

    Inside this file you could have something like:
    description="Here is the text that will appear in the desired place."

    In your fla, you could create a dynamic text field and assign it the variable name: description.

    Then your action script of a frame or a button could read:
    Code:
    on(release){
    loadVariables("textFile.txt",0);
    }
    And that should do the trick.

  11. #11
    Junior Member
    Join Date
    Jul 2002
    Posts
    9

    With HTML

    hey thanx for those tutorial links i have been having problem with fscrollbar and it wouldn't work with dynamic text but i will have a go at the tutorials and see how i go.
    do you know if the scrollbar works when you use a html text?

    thanx,
    l8r,
    Peace,
    Nokturnl

    Originally posted by oldnewbie
    The 2 links I gave you explain how (guess I'd called those tutorials!) to create a textfield and how to import a text file into it. If that's not part of your problem, then I must be selling land in Florida!

  12. #12
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397

  13. #13
    Although the first link solved my problem it also caused one. The scroll bar now works like it's supposed to (yay!) but the content updates a lot slower, and I can't have that, the whole idea around my application is that it's faster than all others, but now it's not since using that method. :-\ It used to take less than a second to update the content box, now it takes a second or more, any ideas?

  14. #14
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Curious are people can jump in a thread, use what they think will help them out, and then come down on somebody who's proposed a solution to the thread starter, forgetting that their own problem may be completely different.
    What first link are you talking about? And what's your problem? If you're hoping to load a thousand words text file (how am I to now?) in less than a second and on-line with a user with a 486 machine, good luck!

    And hey... If the proposed solution is not good enough, just don't use it, and start another thread! Then maybe somebody can address your specific problem!

  15. #15
    Junior Member
    Join Date
    Jul 2002
    Posts
    21

    thanks for everyones help

    It works!!
    that's always such a good feeling.
    Thank you all.
    Peace

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