At 04:23 AM 10/13/00, junaid alam wrote:
>is it possible to work on an external txt file during
>runtime (in projector mode) and save the changes to
>that external file...i have tried importing as linked
>file also but it didnt work..

getPref/setPref can work well in some environments, but if your project is 
running from a projector on a CD, you may want to look into using the 
fileIO Xtra that comes with Director.

There is a readme file for this xtra that describes all its functions at:
http://www.macromedia.com/support/director/ts/documents/tn3177.html
This is for the 5.01 version, but as far as I know, it is still current.

A search for fileio returns lots of good info at Macromedia's support site too:
http://www.macromedia.com/support/director/

There's an article called "Fun with FileIO" on the DOUG site at:
http://www.director-online.com/accessArticle2.cfm?id=320

"Text Files and the FileIO Xtra"
http://www.director-online.com/accessArticle.cfm?id=896

There are several fileIO related behaviors posted at MediaMacros at:
http://www.mediamacros.com

For an INI approach, here's an article that covers both projector and Shockwave
environments:
"INI and preferences file reader/writer"
http://www.updatestage.com/previous/000201.html#item3

I'm sure I've missed several other resources out there, but basically, any site
related to Director most likely has information on fileIO.

You didn't mention whether this will be run from a projector or a browser. If
it's for a Shockwave movie run from a browser, check the docs for setPref() and
getPref() for saving to a local drive. If you need to save to the server,
perhaps postNetText() and getNetText() are what you need. Some of the URLs
listed above may have more information on these methods.



--
Mark A. Boyd
Keep-On-Learnin' :)


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to