Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

flex¼ÓÔØÍⲿswfÎļþ£¬²¢ÇÒ»¥ÏàͨѶ

´ÓÍøÉÏתÔصģ¬»¹Ã»Ê±¼ä¼ø¶¨£¬ÔݼǼÔÚÕâÀï
http://blog.csdn.net/zyjasp/archive/2008/05/16/2452175.aspx
µÚÒ»²½:½¨Á¢¼ÓÔØÀà[CtmObjLoader],´ËÀà¿ÉÒÔ¼ÓÔØÎļþÀàÐÍ [ͼƬÎļþ»òswfÎļþ]
package
{
import flash.display.DisplayObject;
import flash.display.Loader;
import flash.events.*;
import flash.net.URLRequest;
import mx.core.UIComponent;
public class CtmObjLoader extends UIComponent
{
  private var ProgressHandle:Function=null;
  public var loader:Loader;
  public var _bLoaded:Boolean=false;
  public var _bShow:Boolean=true;
  //@UrlRequest  ¼ÓÔصĵØÖ·
  //@progressHandle ¼ÓÔØÖеĴ¦Àí¹ý³Ì
  //bShow  ¼ÓÔغóÊÇ·ñÏÔʾ³öÀ´ 
  public function CtmObjLoader(UrlRequest:String=null,progressHandle:Function=null,bShow:Boolean=true)
  {
   super();
   if(UrlRequest)LoadThis(UrlRequest,progressHandle,bShow);
  }
  public function LoadThis(UrlRequest:String,progressHandle:Function=null,bShow:Boolean=true):void{
   RemoveChild();
            loader = new Loader();
            _bShow=bShow;
            ProgressHandle=progressHandle;
            configureListeners(loader.contentLoaderInfo);
            if(_bShow)addChild(loader);//Èç¹ûÐèÒªÏÔʾ£¬Ôòaddchild
            var request:URLRequest = new URLRequest(UrlRequest);
            loader.load(request);   
  }
  public function UnLoadThis():void{
   try{
    RemoveChild();
    this.parent.removeChild(this);
   }catch(e:Err


Ïà¹ØÎĵµ£º

FLEXµÄcheckbox¸´Ñ¡¿ò

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
 <mx:Script>
  <![CDATA[
  function chkbox():void
  {
   var menssage:String = "";
   if (c ......

flex¡¢bison´úÂëÔÚvisual studio ±àÒë

ÔÚcygwinÏÂ×Ô¼ºÐ´Á˸ö»ã±àÆ÷£¬Ê¹ÓÃflexºÍbison·Ö±ð×ö´Ê·¨ºÍºÍÓï·¨·ÖÎö¡£ÔÚcygwinÏ¿ÉÒÔÔËÐУ¬µ«ÊÇ»ã±àÆ÷Òª×÷ΪÕû¸ö¹¦ÄܵÄÒ»²¿·Ö£¬¾Í²»µÃ²»°ÑËü·â×°ÆðÀ´£¬¸øÍⲿÌṩ½Ó¿Ú¡£Ï±ߴó¸Å½²Ò»ÏÂÒÆÖ²µÄ¹ý³Ì¼°Óöµ½µÄÎÊÌâ¡£
ÔÚvcÏÂн¨win32¿ØÖÆ̨ӦÓóÌÐò£¬Èç¹ûÄãµÄbisonÔ´´úÂëÖаüº¬mainº¯Êý½¨Ò»¸ö¿Õ¹¤³Ì¾ÍÐÐÁË£»
ÒªÔÚWindows϶ ......

Flex ApplicationÀïµÄaddChild()

ת×Ô:http://www.cnblogs.com/jiahuafu/archive/2009/03/20/1417679.html
ÔÚFlex ApplicationÀÊDz»ÄÜÖ±½ÓÓÃaddChildÌí¼ÓSprite£¬MovieClipµÈÀ´×Ôflash.display°üÀïµÄÀàµÄ¡£Æ©ÈçÒÔÏ´úÂë¾Í»á±¨´í£º
private function init():void
{
var sp:Sprite = new Sprite();
addChild(sp);
}
TypeEr ......

Àí½â Flex itemRenderer µÚ 3 ²¿·Ö: ͨÐÅ

Ô­ÎĵØÖ·£ºhttp://www.adobe.com/cn/devnet/flex/articles/itemrenderers_pt3.html
ÔÚ±¾ÏµÁÐµÄµÚ 2 ²¿·ÖÖÐ, ÎÒÏòÄúչʾÁËÈçºÎʹÓà MXML ºÍ ActionScript ´´½¨Íⲿ itemRenderer¡£ÔÚÎÒÓùýµÄʾÀýÖÐ, ÓÐÒ»¸öµ÷¶È×Ô¶¨Ê¼þ BuyBookEvent µÄ Button£­ÕâÑùÓ¦ÓóÌÐò¿ÉÒÔ¶ÔËü×÷³öÏìÓ¦¡£±¾ÎĽøÒ»²½ÌÖÂÛÓë itemRenderer µÄͨÐÅ¡£
ÎÒ ......

FlexÊÇʲô

FlexÊÇ RIA(rich internet applications,¼´¸»¿Í»§¶Ë)µÄÒ»ÖÖ¼¼ÊõʵÏÖ,ÏÂÃæÎÒÃÇ°ÑËü¼°ÆäÏà¹ØµÄ֪ʶÓëjava×ö¸ö¼òµ¥µÄ¶ÔÕÕ,ÓÉÓÚ¸öÈËˮƽÓÐÏÞ,ÏÂÃæµÄ±È½Ï½ö¹©²Î¿¼:
1.RIA     vs   ¿çƽ̨µÄ±à³Ì¼¼Êõ
2.Flex    vs   java
3.flex framework  vs jdk
4.flex buil ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ