A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: (*)LoadVariables: text formatting?

  1. #1
    Detachment is Balance.
    Join Date
    Feb 2002
    Posts
    46
    Hi everyone!

    Quick question: I know I can load variable values from external txt files by using LoadVariables().

    I know the syntax for it.

    What I don't know is, how to format the text in the text file?

    are there any special ways to start the file, like some identifying tag?

    How do I list variable in the text file?

    How do I insert line breaks, non-breaking spaces, etc?

    How do i put double quotes?

    When will the questions stop?

    Danke
    (*)BlackZer0

  2. #2
    The world goes - hm.. TheCaramella's Avatar
    Join Date
    Dec 2001
    Location
    Second door on the right, next to the ice bear
    Posts
    642

    What I don't know is, how to format the text in the text file?
    Use HTML in the text file, like <font color="#ff0000">. Push the dynamic text button: Render text as HTML.

    are there any special ways to start the file, like some identifying tag?
    No, but if you want it to be able to show special characters you need to save it in Unicode format.

    How do I list variable in the text file?
    & tells Flash that here comes a variable name. =" tells Flash that here comes this variable's contents"

    How do I insert line breaks, non-breaking spaces, etc?
    Like always in HTML. (<BR>, ect)

    How do i put double quotes?
    THat's a tricky one, because Flash reads & as a signal for a variable name. You would type ", but you can't do that. I don't know, in other words.

    When will the questions stop?
    How would I know? ;)

  3. #3
    The world goes - hm.. TheCaramella's Avatar
    Join Date
    Dec 2001
    Location
    Second door on the right, next to the ice bear
    Posts
    642

    sorry, wrong board...

    Sorry, I missed the Flash MX-board. Maybe this works in Flash 5 as well?

  4. #4
    MJA Studio 2003-04 (MX ReaLM)
    Join Date
    Jan 2002
    Posts
    154
    yeah .. this seems to be clear ...
    but hay ... can you send an example i mean .. a movie( fla file and the external text file ) with the whole text formats .. am really not gettint his right

  5. #5
    Detachment is Balance.
    Join Date
    Feb 2002
    Posts
    46

    Thank you so much!

    Thanks, Caramella. I'm sure these work in Flash 5. Your answer was somplete.

  6. #6
    Detachment is Balance.
    Join Date
    Feb 2002
    Posts
    46

    wait a second... unicode?

    What is Unicode? i've heard of it before. How do I activate it?

    I know my questions are extensive, but it's just that I like extensive answers...

  7. #7
    The world goes - hm.. TheCaramella's Avatar
    Join Date
    Dec 2001
    Location
    Second door on the right, next to the ice bear
    Posts
    642

    Re: wait a second... unicode?

    What is Unicode?... How do I activate it?
    Unicode is a character encoding format, like Ansi is one. I can't give you a better answer, because I don't know :)
    But - activating it: on Windows 2000 I use Notepad for saving file with encoding. I just checked, because I don't get this option on Win Me, 98 and so on, and found: you can use Word (2000) for saving textfiles! Mine is in Norwegian, but I think it's save as "Encoded text". Then you get the options, among a whole lot of others (this was fun!) there's Unicode. But this is not an issue in Flash 5, I know from experience. So this is just for your curiosity ;)

  8. #8
    MJA Studio 2003-04 (MX ReaLM)
    Join Date
    Jan 2002
    Posts
    154
    i guess TheCaramella ... has forgot to say that the incodin part can be activatin in the notepad of windows XP ...
    and there's many other programs ... that incode and decode texts ...
    is that clear ...
    search ... for it ...

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