-
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.
-
Senior Moderator Defender of the Faith
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.
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|