[Getting Started with Flash Lite 2.x] > [Tutorial: Creating a Flash Lite Application] > [Create the application] > [Create the menu for the home screen]
http://livedocs.macromedia.com/labs/1/flashlite2_flash8updater/00000017.html
// Define Shared Object listener function:
function so_listener (the_so:SharedObject) {
if (the_so.getSize () == 0) {
// The shared object doesn't exist, so the user
// hasn't set a preference yet.
}
the_so.removeListener ("location");
}
// Create shared object:
location_so = SharedObject.getLocal ("location");
// Add SharedObject listener object:
SharedObject.addListener ("location", this, "so_listener");