Reputation: 365
I have no idea why i am getting this error can somebody please tell me.. what causes this error and how to fix it...
Upvotes: 0
Views: 526
Reputation: 2254
It sounds like you're using new SharedObject()
, but Shared Objects are a bit different from normal. Instead of trying to create a new instance yourself, you should be using SharedObject.getLocal
like this:
private var mySo:SharedObject = SharedObject.getLocal("application-name");
But obviously change "application-name" to be something specific to your project.
There is a more detailed example in the documentation here: Shared Object Examples
Upvotes: 4