Class com.sekati.core.KeyFactory

Description

Give flash runtime objects a unique ID.

See Also

Method Index

getKey(), getNextName(), inject(), isSameObject(), previewNextKey()

Method Detail

inject

static public function inject(o:Object):Number

Return the RUID key injected into an object - used as both getter and setter.

Parameters

o(Object) Object to inject RUID key in to

Return

(Number) Runtime Unique ID

getKey

static public function getKey(o:Object):Number

Injection wrapper to provide saner syntactical getter functionality.

getNextName

static public function getNextName():String

Returns next RUID as String to generate unique name for an object.

Return

String

previewNextKey

static public function previewNextKey():Number

Preview the next object RUID to be assigned.

Return

Number

isSameObject

static public function isSameObject(a:Object, b:Object):Boolean

Debugging method to check if two objects are equal.

Parameters

a(Object)
b(Object)

Return

Boolean