A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Reading from TEXT files

  1. #1
    Senior Member
    Join Date
    Apr 2000
    Posts
    106

    Question

    I'm trying to use a text file to control the properties of items on a webpage. Is there a way to read values from a .txt file to control the visibility, text, color, etc. of items such as buttons?

    I also need to learn how to WRITE to a text file. ie. the user enters values in a text filed, clicks a "store" button, and the value typed is stored to a .txt file.

    If you are familiar with doing this, please help, as this is an important task in me completing my next assigment.

    Thanks in advance.

  2. #2
    Senior Moderator
    Defender of the Faith
    Pope de Flash's Avatar
    Join Date
    Feb 2000
    Posts
    3,429

    Cool

    All of what you said can be done through generator either Macromedias solution or swiff (which is free) You could do the text saved to a file through asp. If I were you I would post this in the actionscript forum so you will get the best help and others may have the same question. Regards, Bill

    ------------------
    Macromedians 1:1

    In the beginning the web was without shape and color, and the hype covered the darkness of the net. Then there was a Flash and life came to the web and vision became reality.

  3. #3
    Senior Member
    Join Date
    Apr 2000
    Location
    Northern Ireland
    Posts
    2,146

    Thumbs down

    I seem to be writing this all the time to people, so I guess you could say I make a lot of people miserable(!). If you want to write variables (user input) to a file, you'll have to learn CGI. That's a pain in the ass. You can't save user input directly to a file.

    As for reading from a text file, I know you can read variables from TXT format, but it has to be laid out pretty precisely ...

    e.g. variable1=value&variable2=value&...

    That will read a bunch of variables which you can then use in your movie. If you want to just bring in a big chunk of text, put the name of the TXT file in the NAME area of a textfield's property box.

    I'm currently working on stuff which requires variables (times and scores) being recorded, sorted and displayed in a table, and I can tell you, it's a pain in the ass. Because the functionality is unique I can't even get a free CGI script from the web - I have to write the damn script too!! So you could throw PERL on to the list of things you have to know as well.

    So there you have it - CGI rules the world. *sigh*

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