易截截图软件、单文件、免安装、纯绿色、仅160KB

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"/>
&


相关文档:

flex图表坐标轴样式设置

<?xml version="1.0"?>
<!-- Simple example to demonstrate the ColumnChart and BarChart controls. -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
creationComplete="initApp()"
backgroundColor="#FFFFFF" width="350" height="125"
layout="absolute">
<!- ......

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 ......

Flex 校验 文本框

 <mx:TextInput id="userName" maxChars="4" restrict="a-zA-Z" />
restrict属性确实可以输入正则表达式,进行输入的验证。
但是在程序执行的时候如果为userName.text = "999"还是可以成功的。
待续。。。。学习中。。。 ......

JavaFX,Flex和Silverlight横向对比


一位Flex和JavaFX的RIA开发者在本篇文章中对Flex,JavaFX和Silverlight的功能和优缺点各自做出了评论。JavaFX1.1于今年2月发布,2.0版的发布也正在计划中。
Flex, JavaFX, Silverlight…
坦白来说,在开发这个应用期间,我在内心一直在比较用JavaFX做与用Adobe Flex做同样的事情。
简单说来,在今天, Flex比Jav ......

关于flex 中event 被触发的问题

  strategyMarketsOfCurrentStrategy.addEventListener(CollectionEvent.COLLECTION_CHANGE,          strategyMarketsDataChangedHandler);
          strategyMarketsOfCurrentStrategy.removeAll();   &nbs ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号