Hi,
thanks for your reply! I've done it strict with event handling and onLoad, like you do. But the objects are undefined.
Setup:
Code:
SharedObject.addListener(REGISTRATION_SO, onLoadSharedObject);
registrationSO = SharedObject.getLocal(REGISTRATION_SO);
private function onLoadSharedObject() : Void {
Debug.finest('registrationSO.getSize(): ' + registrationSO.getSize(), this);
if(registrationSO.getSize() > 0) {
userName = registrationSO.data.userName;
password = registrationSO.data.password;
}
Debug.info('onLoadSharedObject: userName=' + userName + ', password=' + password, this);
}
Write:
Code:
registrationSO = SharedObject.getLocal(REGISTRATION_SO);
registrationSO.data.userName = event.getUserName();
registrationSO.data.password = event.getPassword();
registrationSO.flush();
My swf is located in /Others/trusted/
Tested on n95 8GB
Florian