home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
404 Jogos
/
CLJG.iso
/
Puzzle
/
filler.swf
/
scripts
/
mx
/
core
/
Singleton.as
< prev
next >
Wrap
Text File
|
2008-09-02
|
805b
|
37 lines
package mx.core
{
public class Singleton
{
private static var classMap:Object = {};
public function Singleton()
{
super();
}
public static function getClass(param1:String) : Class
{
return classMap[param1];
}
public static function getInstance(param1:String) : Object
{
var _loc2_:Class = null;
_loc2_ = classMap[param1];
return Object(_loc2_).getInstance();
}
public static function registerClass(param1:String, param2:Class) : void
{
var _loc3_:Class = null;
_loc3_ = classMap[param1];
if(!_loc3_)
{
classMap[param1] = param2;
}
}
}
}