I
I
intTosha2016-05-07 18:13:49
ActionScript
intTosha, 2016-05-07 18:13:49

How can you implement data persistence when using Action script 3.0?

Let's say there is some application with an empty text field in the center. I'll put my name in it: "intTosha". When you close and then open the program, you will have to enter your name there again ... And then I begin to think about the need to allow the application to remember the entered data. But I don't know how...
How to implement it?...
Of course, the application is imaginary and hardly anyone will need it, but it is simple enough for a good example for young minds.
I will accept any pieces of code, at least somehow related to this issue.
Thanks to all.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
illuzor, 2016-05-08
@iLLuzor

If under flash player, SharedObject, if under AIR - you can save any files in any form via File/FileStream or sqlite database.

A
Andrew, 2015-06-18
@pashulke

Loop
- Changed links counter = 0
- Loop over all vertices
- - If a link enters a vertex and a link goes out (it owes it and owes it at the same time), then replace it with two (or one) direct links, breaking the chain and increasing the counter of changed links .
Loop exit if changed links count = 0

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question