Skip to main content

FlxSharedObject

Kindclass
Packageflixel.util
Full nameflixel.util.FlxSharedObject
Sourcesource/source-haxelib-patches/flixel/util/FlxSave.hx
ExtendsSharedObject
Metadata@:access(openfl.net.SharedObject)

Public methods​

getLocal​

static inline function getLocal(name:String, ?localPath:String):SharedObject

Only compiled when #if android || ios || flash || air.

Use SharedObject as usual

ParameterTypeDefault
nameString—
localPath (optional)String—

View source

exists​

static inline function exists(name:String, ?path:String)

Only compiled when #if android || ios || flash || air.

ParameterTypeDefault
nameString—
path (optional)String—

View source

getLocal​

static function getLocal(name:String, ?localPath:String):SharedObject

Only compiled when #if !(android || ios || flash || air).

ParameterTypeDefault
nameString—
localPath (optional)String—

View source

exists​

static function exists(name:String, ?localPath:String)

Only compiled when #if !(android || ios || flash || air) + #if js && html5.

ParameterTypeDefault
nameString—
localPath (optional)String—

View source

exists​

static inline function exists(name:String, ?localPath:String)

Only compiled when #if !(android || ios || flash || air) + #if !(js && html5).

Whether the save exists, checks both the old and new path.

ParameterTypeDefault
nameString—
localPath (optional)String—

View source

Internals​

Private / internal members
FieldTypeStatic
allMap<String, FlxSharedObject>yes
Method
static function init()
static function onExit(_)
static function getDefaultLocalPath()
static function getData(name:String, ?localPath:String)
static function getData(name:String, ?localPath:String)
static function getPath(localPath:String, name:String):String
static inline function newExists(name:String, ?localPath:String)
static inline function getLegacyPath(localPath:String, name:String)
static inline function legacyExists(name:String, ?localPath:String)
override function flush(minDiskSpace:Int = 0)
override function clear()