SymbolRegistry.hx

Summary
SymbolRegistry.hx
SymbolRegistryKeeps track of symbol class names generated by import modules.
Functions
symbolExistsCheck if a given symbol exists in the registry.
addSymbolAdds a symbol to the registry.
getSymbolCidReturns the character ID for a symbol.
getCidSymbolReturns the symbol name for a character ID.

SymbolRegistry

Keeps track of symbol class names generated by import modules.

Summary
Functions
symbolExistsCheck if a given symbol exists in the registry.
addSymbolAdds a symbol to the registry.
getSymbolCidReturns the character ID for a symbol.
getCidSymbolReturns the symbol name for a character ID.

Functions

symbolExists

function symbolExists(symbol: String): Bool

Check if a given symbol exists in the registry.

Parameters

symbolThe symbol name to check

Retirns

falseif the symbol doesn’t exist in the registry
trueif the symbol already exists in the registry

addSymbol

function addSymbol(cid: Int,  
symbol: String,  
?store Bool =  true): Void

Adds a symbol to the registry.

Parameters

cidthe character ID assigned to the symbol
symbolthe symbol name
storeif true then store symbol class in SWF

getSymbolCid

function getSymbolCid(symbol: String): Int

Returns the character ID for a symbol.

Parameters

symbolthe symbol name

Returns

The character ID for the given symbol.

getCidSymbol

function getCidSymbol(cid: Int): Null<String>

Returns the symbol name for a character ID.

Parameters

cidthe character ID

Returns

The symbol name.

function symbolExists(symbol: String): Bool
Check if a given symbol exists in the registry.
function addSymbol(cid: Int,  
symbol: String,  
?store Bool =  true): Void
Adds a symbol to the registry.
function getSymbolCid(symbol: String): Int
Returns the character ID for a symbol.
function getCidSymbol(cid: Int): Null<String>
Returns the symbol name for a character ID.
Close