惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

MyScale Blog
MyScale Blog
A
About on SuperTechFans
G
Google Developers Blog
B
Blog RSS Feed
F
Fortinet All Blogs
WordPress大学
WordPress大学
Recent Announcements
Recent Announcements
Hugging Face - Blog
Hugging Face - Blog
Y
Y Combinator Blog
MongoDB | Blog
MongoDB | Blog
小众软件
小众软件
人人都是产品经理
人人都是产品经理
博客园 - 叶小钗
T
The Blog of Author Tim Ferriss
Jina AI
Jina AI
IT之家
IT之家
P
Proofpoint News Feed
美团技术团队
量子位
Microsoft Azure Blog
Microsoft Azure Blog
Engineering at Meta
Engineering at Meta
B
Blog
有赞技术团队
有赞技术团队
U
Unit 42

博客园 - aixia

好久不更新了 Flex图片过度增强版 Flex加载图片的常用的几种方式 - aixia - 博客园 组件Event新写法 - aixia - 博客园 as3访问对象属性和方法的经典用法 - aixia - 博客园 一个蛮有用的event BitmapData中不明白的问题 Array为什么这样会有错? - aixia - 博客园 flex图片过度 AS3图片特效 自定义ToolTip flex采集证券数据 flash cs3 安装程序数据库损坏无法安装的解决方法 run-time debugger for adobe flex components DataGrid通过webService和数据库绑定 flex使用外部参数详细版 给DateField和DateChooser进行汉化 flex module不编译的问题 自定义组件继承自定义组件
遍历flex和flash对象的属性和方法
aixia · 2007-12-24 · via 博客园 - aixia

var xml:XML = flash.utils.describeType(this);

这里的this 可以换成其他的对象 什么button  canvas 自己定义的类  自己去尝试

for example

package
{
 
public class testClass
 
{
  
private var _className:String;
  
public function get className():String{
   
return _className;
  }

  
public function set className(value:String):void{
   _className 
= value;
  }

 }

}

var obj:testClass = new testClass();
            var xml:XML 
= flash.utils.describeType(obj);
            trace(xml.toXMLString());


输出结果

<type name="textClass" base="Object" isDynamic="false" isFinal="false" isStatic="false">
  
<extendsClass type="Object"/>
  
<accessor name="className" access="readwrite" type="String" declaredBy="textClass"/>
</type>