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

推荐订阅源

D
Darknet – Hacking Tools, Hacker News & Cyber Security
V
Vulnerabilities – Threatpost
Cloudbric
Cloudbric
G
GRAHAM CLULEY
S
Securelist
Schneier on Security
Schneier on Security
Help Net Security
Help Net Security
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Project Zero
Project Zero
Spread Privacy
Spread Privacy
P
Privacy International News Feed
C
Cyber Attacks, Cyber Crime and Cyber Security
Cisco Talos Blog
Cisco Talos Blog
T
Tailwind CSS Blog
博客园_首页
有赞技术团队
有赞技术团队
Simon Willison's Weblog
Simon Willison's Weblog
Stack Overflow Blog
Stack Overflow Blog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Latest news
Latest news
T
Tor Project blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Attack and Defense Labs
Attack and Defense Labs
www.infosecurity-magazine.com
www.infosecurity-magazine.com
O
OpenAI News
J
Java Code Geeks
T
Tenable Blog
K
Kaspersky official blog
AWS News Blog
AWS News Blog
S
Security @ Cisco Blogs
The GitHub Blog
The GitHub Blog
T
Threatpost
月光博客
月光博客
H
Heimdal Security Blog
Security Latest
Security Latest
The Hacker News
The Hacker News
Y
Y Combinator Blog
A
Arctic Wolf
Apple Machine Learning Research
Apple Machine Learning Research
C
Cisco Blogs
美团技术团队
Microsoft Security Blog
Microsoft Security Blog
Hugging Face - Blog
Hugging Face - Blog
T
The Blog of Author Tim Ferriss
C
CERT Recently Published Vulnerability Notes
D
Docker
Google Online Security Blog
Google Online Security Blog
D
DataBreaches.Net
V
Visual Studio Blog
H
Help Net Security

博客园 - aixia

好久不更新了 Flex图片过度增强版 Flex加载图片的常用的几种方式 - aixia - 博客园 组件Event新写法 - aixia - 博客园 遍历flex和flash对象的属性和方法 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不编译的问题
自定义组件继承自定义组件
aixia · 2007-10-26 · via 博客园 - aixia

搞了一段时间的flex 了 一直迷茫这个问题

自定义组件的继承 可以用  implements 这个前面的blog中已经说明的

但是继承要怎么弄呢?

原来也很简单

假设 我们新建了一个component   名字叫 Abcd   里面放了一些按钮 等控件

那新建一个componet 继承这个组件叫extendAbcd 其实也简单 就是直接
<Abcd

xmlns="*.*" xmlns:mx="http://www.adobe.com/2006/mxml" width="166" height="300">
</Abcd>

当然最简单的方法 就是在新建compoent的时候 直接选择base 类 为 Abcd

不过里面有一个问题  就是继承以后 无法再往界面上加控件  , 可能有些地方没弄对 虽然无法直接手动脱控件上去
但是在init的时候 可以动态加控件 比如  var l:label = new label(); this.addChild(l); 这样没有任何问题