Shared objects have been used for years in browser-based Flash applications. They are sometimes referred to as "Flash Cookies" or "Super Cookies" and do provide much of the same functionality as normal browser-based cookies, but are tailored more to the Flash environment. Normally explicit permissions are needed to save such data using a Flash application on the web; however, using AIR frees us of many of these restrictions.
Create a local
SharedObject to preserve specific application data across sessions. We will use an interactive
Sprite to illustrate this visually:
import flash.display.Sprite; import flash.display.StageAlign; ...