A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Is it possible to update text through a .txt file?

  1. #1
    Senior Member
    Join Date
    Jun 2001
    Location
    South Africa
    Posts
    316

    Exclamation

    I have static text in my flash file that I want to update regularly. Does anyone know what is the simplist way to do this.

    Is there a way that I can save my paragraph of text as a .txt file and then just edit that file when the text changes? If this is possible (and I think it is) can you please take me through the process step by step?

    Or should I save my paragraph of text as a .swf on its own and then use the onClipEvent loadMovie command?

    Thank you very much.


  2. #2
    Senior Member
    Join Date
    Jul 2001
    Location
    Helsinki
    Posts
    229

    use dynamic text fields,

    use dynamic texts fields for making the updating easy.

    probaply you've heard done already this but anyway:

    make new .txt file and put there variable text like this:

    text=your text comes here..

    save it as source.txt and go to flash.
    in flash change the static field to dynamic and rename the variable to text.
    now put in the first frame of the movie loading code:

    loadVariablesNum ("source.txt",0);

    and now the text file you have shold be dynamicly updatable ..


  3. #3
    Senior Member
    Join Date
    Jun 2001
    Location
    South Africa
    Posts
    316
    Thanks very much for your help shacal_00.

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