Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 710925
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T04:40:38+00:00 2026-05-14T04:40:38+00:00

I’m trying to find a way to write to a text file from as2.

  • 0

I’m trying to find a way to write to a text file from as2. I don’t want to use any php or asp because my app needs to run without an internet connection. As3 has FileReference.save() and judging by the amount of searching I’ve done, as2 doesn’t have that simple of a solution. Does anyone have a way even if its hacky to write to a txt file from as2?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T04:40:39+00:00Added an answer on May 14, 2026 at 4:40 am

    Unfortunately, there are only limited options for writing to a local disk from AS2:

    • You can store data locally using the SharedObject class, but this has
      a limited size (basically it’s a cookie), and could be disabled by user preferences.

    • If you are running a local web service, you could conceivably use
      LoadVars() with PHP, but that’s very hack-y and you’d be limited as to where
      your PHP script could write files to. Ditto for running other local server services
      such as ColdFusion…

    • You could make a flash-based desktop app using something like Zinc or
      mProjector – I’ve not used either of these, but I’m guessing they have some
      support for local file I/O. They’re not free though (c.
      $400?). (EDIT: other alternatives are discussed here, especially HippoHX)

    • (EDIT) If you’re using OSX and are happy for a ‘manual’ (rather than automated) option, you could use PrintJob() and “Save as PDF…” to output a PDF file, but obviously that’s ‘human-readable text’, not really a ‘text file’ as such (OK, so it’s a bit of a stretch, but I thought I should include this for completeness :).

    That’s all I can think of – perhaps there are other solutions? I’d be interested to know.

    Hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want use html5's new tag to play a wav file (currently only supported
I am trying to understand how to use SyndicationItem to display feed which is
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am trying to render a haml file in a javascript response like so:
I have a text area in my form which accepts all possible characters from
i want to parse a xhtml file and display in UITableView. what is the
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.