易截截图软件、单文件、免安装、纯绿色、仅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 Panel的Title上添加控件实例

一、自定义Panel组件
package test
{
    import mx.containers.Panel;
    import mx.core.UIComponent;
   
    /**
    * 自定义Panel
    * **/
    public class MyPanel extends Panel
  ......

flex 画虚线矩形算法

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

flex 保存成pdf 文件格式

<?xml version="1.0" encoding="utf-8"?>
<mx:Application  xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%"
     viewSourceURL="srcview/index.html" backgroundColor="0x000000" layout="absolute">
 
    <mx:Script>
&nb ......

flex小错误(常记多做)2

   ArrayCollection经常做ComboBox控件的集合还有DataGrid的集合,要注意它的格式。data的属性里面如果是数字不需要双引号,若是字符串就必须加,而且需要提前作var定义     
           public var outgoing:String;
        ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号