import mx.controls.Alert;
[Bindable]
public var user:SharedObject = SharedObject.getLocal("user");
private function setSharedObject():void{
if(this.rememberMe.selected){
user.data.firstname = this.firstname.text;
user.flush();
Alert.show("saved", "Alert");
}
}
private function clearSharedObject():void{
this.rememberMe.selected = false;
user.clear();
Alert.show("Your information has been cleared.", "Alert");
}