开发者

How to create and write data into a file using flex3?

I want to create a file and write some data (userid) into the file at first run of my appl开发者_如何学Pythonication, during the second run all the operation (will go to the next state) based on the file data, is it possible? How to create and write data into file?


It depends if you're working on a pure-Flex or an AIR project.

  • If you are making an AIR application, you can access local files using the File class (more informations can be found here and here) ;
  • If not, you'll have to use a server-side script (PHP, ColdFusion, Java EE...) to do the job, calling it using a HTTPService object for instance.


If you are not concerned about file's location and max content of file is less than 100 KB then you may make use of Shared Objects in flash.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜