0

Is there a way of writing data into a text file without using AIR components in AS3 using flash. The save method of fileReference class opens up a file selection dialog box. Cant that method directly write data into some file withot opening he dialog ? Thanks in Advance

1 Answer 1

1

There are 3 ways to save file from Flash :

In AIR : use File class , You can manipulate files without user intervention .

In FlashPlayer : you can use FileReference class but for this user much choose in browse window where to save data

or You can use some proxy application and connect it via socket or local connection .

Sign up to request clarification or add additional context in comments.

3 Comments

Sir, If i use AIR , i am unable to write by running the swf. This error pops up. VerifyError: Error #1014: Class flash.filesystem::File could not be found. Is there a way to solve this?
You cannot run single SWF and use this class , You have to compile AIR application file . Single SWF cannot execute native classes from AIR .
FlashDevelop includes a Run.bat which runs the swf in the AIR player giving it required AIR privileges like file access, w/o the install process.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.