registerClassAlias is a great way for SharedObject to recognise the class type that you’re storing rather than just a random object. However – something that seems to be undocumented – I’ve discovered that the constructor of the class you’re registering either has to have NO parameters OR default values for all parameters.
So: for example, if you’re trying to store a class and its constructor looks like this:
function user(userName:String,userID:String):void {
it won’t work until you give the parameters defaults, for example:
function user(userName:String='',userID:String=''):void {
Leave a Reply