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

flex中,带最小化,最大化,关闭的Panel

package
{
import mx.containers.Panel;
import mx.controls.Button;
import flash.events.Event;
import mx.events.FlexEvent;
import flash.events.MouseEvent;
import mx.controls.Alert;
/**
* This class is used to create a Custom Panel
* with Maximum, Minimum, close
* and also drag properties.
*/
[Event( name="min",type="mx.events.FlexEvent" )]
[Event( name="max",type="mx.events.FlexEvent" )]
[Event( name="close",type="mx.events.FlexEvent" )]
/**
*
* @author Administrator
*
*/
public class DPanel extends Panel
{
//--------------------------------------
// Styles
//--------------------------------------
[Embed( source="/assets/close_over.gif" )]
public static const closeOverIco:Class;
[Embed( source="/assets/close.gif" )]
public static const closeIco:Class;
[Embed( source="/assets/max.gif" )]
public static const maxIco:Class;
[Embed( source="/assets/max_over.gif" )]
public static const maxOverIco:Class;
[Embed( source="/assets/min1.gif" )]
public static const max1Ico:Class;
[Embed( source="/assets/min1_over.gif" )]
public static const max1OverIco:Class;
[Embed( source="/assets/min.gif" )]
public static const minIco:Class;
[Embed( source="/assets/min_over.gif" )]
public static const minOverIco:Class;
[Embed( source="/assets/min1.gif" )]
public static const min1Ico:Class;
[Embed( source="/assets/min1_over.gif" )]
public static const min1OverIco:Class;
//--------------------------------------------------------------------------
//
// Variables
//
//--------------------------------------------------------------------------
private var _showBtn:Boolean = true;
//define if DPanel is Maximum.
private var isMax:Boolean = false;
//define if DPanel is Minimum.
private var isMin:Boolean = false;
//var buttons
private var minBtn:Button;
private var maxBtn:Button;
private var closeBtn:Button;
//Storage for the panel's old property.
private


相关文档:

flex时序图示例

<?xml version="1.0" encoding="utf-8"?>
<!-- Simple example to demonstrate the DateTimeAxis class. -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>

import mx.collections.ArrayCollection;
......

flex内存泄露解决之道

(1)Event Listeners
                Listening to parent objects does cause memory leaks
                e.g.
      & ......

flex 中GML转换

package org.openscales.core.format
{
 import flash.utils.getQualifiedClassName;
 import flash.xml.XMLNode;
 import org.openscales.core.Util;
 import org.openscales.core.feature.Feature;
 import org.openscales.core.geometry.Collection;
 import org.openscales.core. ......

Flex Java Object对应关系

Flex Java Object对应关系
目前LCDS只能与J2EE的服务端进行通信,所以目前只是ActionScript 3.0数据类型和Java数据类型的转换。ActionScript 3.0与Java数据类型转换是不对称的。
ActionScript3.0向Java转换时数据类型的对应关系
ActionScript数据类型 -------------------Java数据类型
null -------------------null ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号