/// <summary> /// Returns instance that stores reflection data for API builtin in target player (AVM, Flash, AIR). /// </summary> /// <returns></returns> private AbcInstance DefineReflectionInstance() { if (_instanceReflection != null) { return(_instanceReflection); } var name = Abc.DefineName(QName.PfxPackage("PlayerReflectionData")); _instanceReflection = Abc.DefineEmptyInstance(name, true); Abc.DefineScript(_instanceReflection); return(_instanceReflection); }
private AbcInstance BuildInstance(IAssembly assembly) { var name = Abc.DefineName(QName.PfxPackage(assembly.Name + "$runtime")); var instance = Abc.Instances[name]; if (instance != null) { return(instance); } instance = Abc.DefineEmptyInstance(name, true); Abc.DefineScript(instance); return(instance); }