如何使用AS3在运行时列出库对象 [英] How to list objects in library using as3 at runtime

查看:193
本文介绍了如何使用AS3在运行时列出库对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想,不知为什么,我的图书馆互动..我有导出类的特定文件夹到库对象很多(接近100),我想获得它的属性。我怎样才能做到这一点? 有一些可以列表导出的对象类AS3方法?

i would like to, somehow, interact with my library.. I have a lot (near 100) of objects exported as classes at specific folder into library, and i would like to get its properties. How can i do it? there is some AS3 method that can list exported object classes?

推荐答案

在运行时,试试这个:

trace(ApplicationDomain.currentDomain.getQualifiedDefinitionNames());

11.3版使用这个库前:

before version 11.3 use this library :

http://etcs.ru/$p$p/getDefinitionNamesSource/

这篇关于如何使用AS3在运行时列出库对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆