开发者

Writing text to .txt files using actionscript

Writing text to .txt files using actionscript. how? i couldn't find开发者_如何学编程 anything about that in the internet. is that possible? for flash player.


The flash player (the one in browsers) is run through a sandbox which prevents it from accessing or creating files on the users computer (imagine the chaos if it wasn't!), among other things.

You can store persistent data using SharedObject (but this is not readily visible to the user, only useful for storing settings etc).

The other options is to send the data to a web service which in turn would allow the user to download it. Those are your only options really.

Adobe Air is a different runtime, designed to be used for desktop applications. Eg like any program on your computer. It can do a lot more, but has to be downloaded and possibly installed before you can run it (it will not run from within a HTML page).


Check out Adobe AIR: http://www.adobe.com/devnet/air/flash/quickstart/articles/building_text_editor.html


That's impossible from flash player, only from air.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜