Flex 书籍选择
上面是一个flex做的选择,主要学习数据 Model跟DateGrid的用法 哈,源码如下:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" fontSize="12">
<mx:Model id="books">
<datas>
<book>
<name>Flex</name>
<author>cju</author>
<date>2010-01-16</date>
</book>
<book>
<name>Java</name>
<author>cana</author>
<date>2010-01-17</date>
</book>
<book>
<name>Jsp</name>
<author>cju</author>
<date>2010-01-16</date>
</book>
<book>
<name>SSH</name>
<author>cju</author>
<date>2009-11-16</date>
</book>
</datas>
</mx:Model>
<mx:Label width="500" color="#004080" text="选择要买的书"/>
<mx:DataGrid id="book_DG" width="500" height="156" rowCount="5" dataProvider="{books.book}">
<mx:columns>
<mx:DataGridColumn dataField="name" headerText="书名"/>
<mx:DataGridColumn dataField="author" headerText="作者"/>
<mx:DataGridColumn dataField="date" headerText="时间"/>
</mx:columns>
</mx:DataGrid>
<mx:Canvas height="150" width="500" backgroundColor="#ffffff">
<mx:Label text="书名:{book_DG.selectedItem.name}"/>
<mx:Label text="书名:{book_DG.selectedItem.author}" y="44"/>
<mx:Label text="书名:{book_DG.selectedItem.date}" y="90"/>
&
相关文档:
MyEclipse Flex的配置之初我们看看缘由:一开始学习使用Flex的时候,我是用的单独的FlexBuilder3,做些纯Flex的应用程序还可以.但是如果要和Java结合在一起使用,即利用FLEX充当一个完整的J2EE系统的WEB层的话,那么单独使用FlexBuilder3和MYECLIPSE是很不方便的,大大影响了开发效率,因此做了下MyEclipse+Flex的配置,达到直接在 ......
First, enough bytes for frame 1 are streamed down to the Flash
Player.
The Flash Player executes those bytes by creating a SystemManager
instance.
SystemManager instruct the Flash Player to stop at the end of frame
1.
SystemManager then goes on to create the Preloader which creates the ......
<mx:TextInput id="userName" maxChars="4" restrict="a-zA-Z" />
restrict属性确实可以输入正则表达式,进行输入的验证。
但是在程序执行的时候如果为userName.text = "999"还是可以成功的。
待续。。。。学习中。。。 ......
上次听朋友提起现在再用Flex做项目,闲暇之余在自己的电脑上配置了Flex + myeclipse的开发环境。虽然开发环境搭建花了不少的时间,也遇到了不少问题。再解决这些问题的时候,也找了不少的资料,学到了不少东西。呵呵
继续研究学习................... ......
一位Flex和JavaFX的RIA开发者在本篇文章中对Flex,JavaFX和Silverlight的功能和优缺点各自做出了评论。JavaFX1.1于今年2月发布,2.0版的发布也正在计划中。
Flex, JavaFX, Silverlight…
坦白来说,在开发这个应用期间,我在内心一直在比较用JavaFX做与用Adobe Flex做同样的事情。
简单说来,在今天, Flex比Jav ......