- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
public static function isDynamicObject(obj:Object):Boolean
{
try
{
// this test for checking whether an object is dynamic or not is
// pretty hacky, but it assumes that no-one actually has a
// property defined called "wootHackwoot"
obj["wootHackwoot"];
}
catch (e:Error)
{
// our object isn't from a dynamic class
return false;
}
return true;
}
loststy 16.03.2012 12:41 # 0
function isDynamic(object) : Boolean
{
var type:XML = describeType(object);
return [email protected]() == "true";
}
aquahawk 16.03.2012 12:45 # 0
aquahawk 16.03.2012 20:35 # 0
TheHamstertamer 16.03.2012 14:27 # 0
Надо было не "wootHackwoot", а "ILOVEBUTTSEX", чтоб наверняка.
roman-kashitsyn 16.03.2012 15:06 # +4
guest 04.10.2014 13:10 # 0