Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem using the fileIO xtra when publishing my program 1

Status
Not open for further replies.

greenboy

Programmer
Jul 7, 2001
1
US
Okay, I'm creating a small game in director which requires file read/writing. I take a look at the example file in the learning/lingo_examples folder that came with my copy of director, and then look at it. I copy most of the text and tweak it so I can implement it into my program. Within Director, it WORKS PERFECTLY. It creates the files, writes exactly what I need, and reads them nicely and translates into game terms perfectly. Problem is, as soon as I publish the .dir into an embedded html object or a projector, whenever I hit a button that either reads or writes, I get the error "Script Error: Continue? (Yes/No)" Clicking either option doesn't do anything as to getting the program to work correctly. Does anyone have any idea why something which works perfectly WITHIN DIRECTOR doesn't work as soon as it is PUBLISHED or COMPILED into an html or exe file, respectively? This is a serious problem for me, as I need to be able to publish it in order to distribute it. Anyone got an idea? I have noticed one thing- the example read/write file I mentioned earlier located in the lingo examples folder WORKS PERFECTLY even after it's compiled/published. I notice that when publishing MY program, it only "includes" 16 files, whatever that means, and the other one "includes" like 23 or something like that. Maybe these extra "files" or whatever they are hold the key to making my program right. If that's what it is, then how do I "include" those "files"?

Please help,
GreenBoy
 
FileIO does not work in dcr.
since it accesses HD files it can be a security problem
on the web
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top