Sign in to follow this  

Actionscript 3.0, writing to file.

This topic is 2061 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm trying to write to a file in actionscript 3. The only way to do this I think is by using AIR. I'm using the flex-sdk 4.6 to compile the actionscript into the swf file and then following the guidelines on the adobe website [url="http://help.adobe.com/en_US/air/build/WS144092a96ffef7cc4c0afd1212601c9a36f-8000.html"]http://help.adobe.co...9a36f-8000.html[/url] to get this working but everytime I execute the adl.exe (or ./adl on linux) it just comes back with an error saying: "error while loading initial content". I've been at this all day and cant find a solution, ive trying changing the versions in the -app.xml files but this doesn't work either.

I'm using the flash.filesystem.*; package to read and write to files; if I execute the swf on a browser or on flashplayer it seems to just come to a stand still right after I declare the file object like so:

var file:File =File.desktopDirectory.resolvePath("out.txt");

I'm totally stuck as to what to do, is this the only way to write to a file in actionscript 3?


SOLVED:

Never realized that the version number specified in the -app.xml was the current AIR version

Share this post


Link to post
Share on other sites

This topic is 2061 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this