- 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;
}