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

Flex Alert


<?xml version="1.0"?>  
<!-- Simple example to demonstrate the Alert control. -->  
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">  
  
    <mx:Script>  
        <![CDATA[  
            import mx.controls.Alert;  
            import mx.events.CloseEvent;  
          
            // Event handler function uses a static method to show  
            // a pop-up window with the title, message, and requested buttons.          
            private function clickHandler(event:Event):void {  
                Alert.show("Do you want to save your changes?", "Save Changes", 3, this, alertClickHandler);  
            }  
          
            // Event handler function for displaying the selected Alert button.  
            private function alertClickHandler(event:CloseEvent):void {  
    


相关文档:

Flex基本原理

了解Flex程序的生命周期
Flex程序从本质上讲,就是使用了(由AS编写的)Flex框架的Flash程序。
但在Flex程序中可以忽略timeline这个概念,所有的内容都集于一帧。
事实上Flex程序中的根,是继承flash.display.MovieClip的mx.managers.SystemManager。
SystemManager有两帧。第一帧是预加载程序,第二帧是主程序。
因此 ......

flex 实现全文检索中的高亮显示代码

<mx:DataGrid id="dg" click="select()" dataProvider= "{modelLocator.resultList}" borderStyle="none"
verticalGridLines="false" horizontalGridLines="false" verticalScrollPolicy="off" rowCount="10"
fontSize="16" fontStyle="normal" fontThickness="0" width="100%" height="100%">
<mx:columns& ......

Flex 创建一个自定义风格的HRule或VRule

Flex中如何通过strokeWidth, strokeColor和shadowColor样式,创建一个自定义风格的HRule或VRule
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    layout="vertical"
    verticalAlign="middle"
 &nbs ......

flex小错误(常记多做)

1、假如一个自定义控件被用在一个主控件里,在自定义控件里的方法可以转换为主控件的方法,完成调用。
userRulesCanvas.mxml 和 editRulesCanvas.mxml
compent控件代码如下:
private function submitClick():void
            {
        ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号