Also, check out the storage library which contains classes such as 
LocalStorage, AMFStorage, and more.
________________________________
From: Josh Tynjala <[email protected]>
Sent: Monday, September 29, 2025 6:43 PM
To: [email protected] <[email protected]>
Subject: Re: Using "cookies"

Hi Jorge,

It looks like an emulated SharedObject class is implemented in the MXRoyaleBase 
library. This library isn't included by default, so you need to add it to your 
project's library-path compiler option (or js-library-path, if you are 
targeting JavaScript).

I don't know which editor you are using. However, if you are using Visual 
Studio Code, you should be able to add it to your asconfig.json under 
compilerOptions.

"js-library-path": [
    "${royalelib}/js/libs/MXRoyaleBaseJS.swc"
]

--
Josh Tynjala
Bowler Hat LLC
https://bowlerhat.dev/


On Mon, Sep 29, 2025 at 8:17 AM <[email protected]<mailto:[email protected]>> 
wrote:

Hi,

I am try to use the example in the docs:



You use the same static method getLocal() to create a new Local Shared Object 
or to retrieve an existing one.

public static function getLocal(name:String, localPath:String = null, 
secure:Boolean = false):SharedObject

Then call the method and save the referrence in a variable:

var myNewLocalSharedObject:SharedObject = 
SharedObject.getLocal("myNewLocalSharedObject");

Royale looks for an existing myNewLocalSharedObject.sol file in the local 
directory on the user’s computer. If it does not find one, Royale creates a new 
.sol file with that name. It then returns a reference to the file.







But I can not found the SharedObject object.



Thanks for your help.



Jorge Valeze

Reply via email to