Save data to text file locally using AS3

Hi all,

Hope you can help me here.
I need to Save data to text file locally using AS3 or AS2.
I don't need this to work online so I suppose no PHP require here.
I've been googling but cannot find it and I was told that it can do done with AS if it's locally.

Here is the code:

Hope someone can help!

Thanks

ST3VO



wall.addEventListener(Wall3DEvent.ELEMENT_SELECTED, saveText);
function saveText(e:Wall3DEvent):void {
// I need to find some code and insert it here!
// I just need to save to a txt file, no need to read later, just save.
}

Open in new window

ST3VOAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

blue-genieCommented:
Hi, i disagree with whoever told you it's possible.
flash has no capabilities to write to the hard drive with exception to shared objects.

ST3VOAuthor Commented:
Is there ANYWAY at all to do this without using PHP or ASP please?
blue-genieCommented:
nope. flash resides within the dreaded "Sandbox" - it cannot have access to the harddrive.
what exactly do you want to do with the text after it's saved.
how is this running if it's not online? projector? desktop application?
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

ST3VOAuthor Commented:
I've got a html file with flash embedded in it.
It's basically an image gallery which uses xml.
I've got an external application that reads this txt file which I want flash to write on so my application
know the name of the image that has been selected.

blue-genieCommented:
i'm shaking my head violently.

ST3VOAuthor Commented:
Please don't tell me that's there's no way in this world that this can be done :(
blue-genieCommented:
i'm 100% sure that flash on its very own, can't and will never be able to do it. but !!!
ooh maybe maybe.

me thinks  you have 2 options, not sure never tried it before.

1. as mentioned depending on how much data you have, use a sharedObject and get your application to read that.
2. JSFL - i did some googling for you, this might well be doable - not sure what the restrictions are on JSFL, but if this works (gonna try it out tonight myself) - you're sorted and you can now jump around in joy.
http://www.peachpit.com/articles/article.aspx?p=170506&seqNum=1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ST3VOAuthor Commented:
Thanks very very much!
Looking forward to jumping around :o)
ST3VOAuthor Commented:
Thanks for your help!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Flash

From novice to tech pro — start learning today.