易截截图软件、单文件、免安装、纯绿色、仅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 画虚线矩形算法

选定矩形的一个顶点为起点,开始画
x0:顶点横坐标
y0:顶点纵坐标
x1:水平线上另一顶点的横坐标
y1:水平线上另一丁点的纵坐标
 private function drawDottenRect(g:Graphics,
                   x0:Number,
&nbs ......

关于flex和spring+hibernate整合web.xml的错误

flex和spring+hibernate整合完成后web.XML出现如下错误
The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,reso ......

flex 优化技巧 收集[提升性能]

1、当创建一个数组的时候避免用new操作符,用 var a:Array = [];而不用var a:Array = new Array();
2、快速的复制一个数组:
var copy : Array = sourceArray.concat ();
3、设置一个数组的值是非常忙的:
employees.push ( employee ); employees[2] = employee;
4、从一个数组中取得值的速度是设置一个数组值的两倍 ......

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号