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

Flex¿ØÖÆÍⲿ¼ÓÔصÄswfÎļþ[ÍⲿswfÎļþflex°æ]

1-Ê×ÏÈдһ¸ö¼ÓÔØÍⲿswfÎļþµÄÀà
package Package
{
 import flash.display.DisplayObject;
 import flash.display.Loader;
 import flash.events.*;
 import flash.net.URLRequest;
 
 import mx.core.UIComponent;
 import mx.events.FlexEvent;
 public class CtmObjLoader extends UIComponent
 {
  private var loader:Loader;
  private var ProgressHandle:Function=null;
  public var _bLoaded:Boolean=false;
  public function CtmObjLoader(UrlRequest:String=null,progressHandle:Function=null)
  {
   super();
   if(UrlRequest)LoadThis(UrlRequest,progressHandle);
  }
  public function LoadThis(UrlRequest:String,progressHandle:Function=null):void{
   RemoveChild();
            loader = new Loader();
            ProgressHandle=progressHandle;
            //DeleteListeners(loader.contentLoaderInfo);
            configureListeners(loader.contentLoaderInfo);
            addChild(loader);
            var request:URLRequest = new URLRequest(UrlRequest);
            loader.load(request);   
  }
  public function UnLoadThis():void{
   try{
    RemoveChild();
    this.parent.removeChild(this);
   }catch(e:Error){}
   //this=null; 
  }
  public function get content():DisplayObject{
   if(!_bLoaded)return null;
   return loader.content;
  }
  private function RemoveChild():void{
            i


Ïà¹ØÎĵµ£º

flex ²¼¾ÖµÄÎÊÌâ È¥µô±ß¿ò

commpent
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas   xmlns:mx="http://www.adobe.com/2006/mxml" 
     creationComplete="initApp()" backgroundDisabledColor="#EEC6C6"
     bord ......

Flex DataGrid Scrollbar¹ö¶¯Ìõx£¬yÆðʼλÖÃÉèÖÃ

¶Ôflex datagrid scrollbarλÖÃÉèÖÃÐèҪһЩÌØÊâ´¦Àí£¬¼ûÈçϽØͼ£º
¹Ø¼üµãÔÚÓÚDataGridÓµÓÐprotectedµÄ horizontalScrollBar ºÍ verticalScrollBar ÊôÐÔ£¬¶ÔÆäÉèÖü´¿ÉʵÏÖÈçÉϽØͼµÄЧ¹û¡£´úÂëÈçÏ£º package com.util.component
{
import mx.controls.DataGrid;
import mx.events.DataGridEvent;
import mx ......

Flex ѧϰÖÐÊý¾ÝÀàÐͱØÐë×¢ÒâµÄ¼¸µã

ÔÚ×Ö·û´®×ª»»ÎªintÀàÐͱØÐëʹÓà ×îºÃÈçÏ£º
var a:int=int(str);
ÉÏÃæת»»Èç¹û²ÉÓÃÈçÏÂÇ¿ÖÆת»»Ôò
 var a:int =str as int;
µÃµ½Êý¾ÝΪ0 Ϊ´íÎóÊý¾Ý¡£
ÔÚÏîÄ¿ÖÐÁ½¸öintÏà¼Ó½á¹û³¬¹ýÒ»¸öintµÄ·¶Î§Ê±³öÏÖ´íÎó£¡
¾­¹ý×Ô¼ºbug²éÕÒµ½´íÎóÔ­ÒòÊÇÒòΪintÊý¾ÝÀàÐÍ·¶Î§Ì«Ð¡°Â£¡Ö»ºÃ¸ÄΪNumberÀàÐÍ¡£½á¹û²ÅÕýÈ·£¡ÔÎËÀ£¡
Ô ......

Flex 4 DropDownList

Flex 4 DropDownList:
<?xml version="1.0" encoding="utf-8"?>
<!-- Simple example to demonstrate the Spark DropDownList control -->
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ