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
Ïà¹ØÎĵµ£º
£¨1£©Event Listeners
Listening to parent objects does cause memory leaks
e.g.
& ......
java¿ª·¢µÄ×ÜÏ뾡¿ì°ÑflexºÍjava½áºÏÆðÀ´,ÎÒÒ²ÊÇ,µ«ÕâÈÝÒ׺öÊÓһЩ»ù´¡µÄ¶«Î÷,¸Õ°ÑflexºÍjavaÕûºÏµÄµÚÒ»²½×öÍê,ºöÈ»ÏëÔÚflexÒ³ÃæÖе¯³ö¸ö¶Ô»°¿ò,²»ÖªµÀÔõôдÁË,ÍøÉϲéÁË°ëÌì²Å³öÀ´.
ÔÀ´ÕâÒ»¾ä»°¾Í¸ã¶¨ÁË
Alert.show(content,title,flags,parent,closeHandle,iconClass,defaultButtonFlag);
ÒÔÏÂÊÇÍøÉÏÕÒµ½×ÊÁÏ,¹©²Î¿¼. ......
¸ü¶à Flex 4 ʾÀý£¬Çëµ½ http://www.slsay.com
ÏÖÓгÉÊì³£ÓõÄFlex¿ò¼Ü£º
Cairngorm (Adobe Open Source) - MVC framework
PureMVC (Open Source) - MVC framework
Mate (Open Source) - tag-based, event-driven
Swiz (Open Source) - Metadata-based Dependency Injection ......
<?xml version="1.0" encoding="utf-8"?>
<!-- http://yecon.blog.hexun.com/31030831_d.html -->
<!-- http://www.slsay.com -->
<Application name="FileReference_load_test"
xmlns="http://ns.adobe.com/mxml/2009"
xmlns:mx="library:adobe/flex/halo"
xmlns:net= ......
1.ÎÒµÄÅäÖû·¾³Îª:
flexBuilder3,LCDS251,MyEclipse 5.5.1
GA+
2.°²×°lcds2.5.1£¬´ò¿ªÄ¿Â¼£¬ÀïÃæÓÐÒ»¸öflex
.war
3.¹Ø±Õtomcat(Èç¹û´ò¿ªÔڵĻ°)
4.½«flex
.war¿½ÈëtomcatµÄwebappsĿ¼
5.ÖØÆôtomcat,¿ÉÒÔ¿´µ½webappsÀï¶àÁËÒ»¸öĿ¼flex
£¬Õâ±ãÊÇÎÒÃÇÒªµÄ¶«Î÷
6.¿ÉÒÔ½«flex
.warɾ³ý
7.½«flex
Îļ ......