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ÏîÄ¿ºÍ×é¼þµÈ
open-source project : Flex
Adobe APIs
Ö÷Òª°üº¬corelib, mappr, flickr, youtube¼°¼ÓÃܵÈÀà¿â.
http://labs.adobe.com/wiki/index.php/ActionScript_3:resources:apis:libraries
as3awss3lib
Óë Amazon S3 ½»»¥µÄ ActionScript 3.0 Àà¿â
http://code.google.com/p/as3 ......
¹¹½¨¸ßÐÔÄܵÄJ2EEÓ¦Óò»µ«ÐèÒªÁ˽ⳣÓõÄʵʩ¼¼ÇÉ¡£ÏÂÃæ½éÉÜ×î³£ÓõÄ10ÖÖÓÐЧ·½·¨£¬¿É°ïÖú¼Ü¹¹Éè¼ÆʦÃÇ¿ìËÙ³ÉΪÕâ·½ÃæµÄר¼Ò¡£
JavaÐÔÄܵĻù´¡—ÄÚ´æ¹ÜÀí
ÈκÎJavaÓ¦Ó㬵¥»úµÄ»òJ2EEµÄÐÔÄÜ»ù´¡¶¼¿É¹é½áµ½ÄãµÄÓ¦ÓÃÊÇÈçºÎ¹ÜÀíÄÚ´æµÄÎÊÌâ¡£JavaµÄÄÚ´æ¹ÜÀí°üÀ¨Á½¸öÖØÒªÈÎÎñ£ºÄÚ´æµÄ·ÖÅäºÍÄÚ´æµÄ»ØÊÕ¡£ÔÚÄÚ´æµÄ·ÖÅäÖУ¬Ä ......
Main.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" xmlns:file="file.*">
<mx:Script>
<!--[CDATA[
import simPager.PagerEvent;
import mx.collections.ArrayCollection;
[Bindable]
priv ......