prev | index | next

MX-Shared Objects
6
20
441 bytes
847 bytes
2002-06-04 00:00:00
2002-06-04 09:54:40
oldes (oliva.david@seznam.cz)


To show how to store variables in the user's machine

For more info look at this document:
Flash TechNotes What is a local Shared Object.

(mx-sharedobject.rswf)
background 152.174.149
fnt_Courier: Font [name "Courier New" bold]
txt_test: EditText x 310x20 [ReadOnly Font [fnt_Courier 12]]
place txt_test
doAction [
    constantPool [myLocal_so data visits]   
    myLocal_so: sharedobject.getLocal("flashcookie")
    myLocal_so.data.visits++ ;increment visits
    myLocal_so.flush() ;writes the data immediately
    x: "You have been here " + myLocal_so.data.visits + " times."
]
showFrame
end