2008-03-13
理解 flex component
关键字: flex component
component就是一个AS class 或者是MXML component文件在manifest文件中映射的标签.分可视和不可视
可视化component包括Containers 和 UI controls
Containers(Appliction, Panel...)
UI controls(Button, Label)
可以通过3种方式设置component的属性
1.tag attributers
2.nested tags
更典型的应用
3.AS ;)
几乎所有的component(所有的可视化component)都有id属性...(吗东东没有呢?),id 由数字,字母,下划线组成.可以由字母下划线开头,但不允许数字开头.
属性值都要用引号括住;)
不可视component
1.Data component(arrays and collections)
2.utility component(data binding component, repeater component)
可视化component包括Containers 和 UI controls
Containers(Appliction, Panel...)
UI controls(Button, Label)
可以通过3种方式设置component的属性
1.tag attributers
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> </mx:Application>中的layout="absolute"
2.nested tags
<mx:Button id="exampleButton"> <mx:label>Example Button</mx:label> </mx:Button>
更典型的应用
<mx:ComboBox id="exampleComboBox">
<mx:dataProvider>
<mx:ArrayCollection>
<mx:String>A</mx:String>
<mx:String>B</mx:String>
<mx:String>C</mx:String>
<mx:String>D</mx:String>
</mx:ArrayCollection>
</mx:dataProvider>
</mx:ComboBox>
3.AS ;)
几乎所有的component(所有的可视化component)都有id属性...(吗东东没有呢?),id 由数字,字母,下划线组成.可以由字母下划线开头,但不允许数字开头.
属性值都要用引号括住;)
不可视component
1.Data component(arrays and collections)
2.utility component(data binding component, repeater component)
发表评论
- 浏览: 10227 次
- 性别:

- 来自: 北京

- 详细资料
搜索本博客
链接
最新评论
-
Flex创建一个UI component ...
我一般的习惯介绍怎么做,就来一段代码将,这样估计容易理解,不知道flex的程序员 ...
-- by javaeyename -
flex collection 的特征
呵呵,受教了。针对引用而非collection 作为dataprovider 时 ...
-- by yimogod -
flex collection 的特征
Array是As3的基本类型,不支持事件,所以无法进行数据绑定。Collecti ...
-- by ltian -
Flex创建一个UI component ...
这么一些清晰很多, 强烈要求LZ画个图出来!!
-- by bruce.peng -
pyamf小实例
设计是网上找素材改的功能还一直在写,暂时只是一个页面
-- by yimogod






评论排行榜