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

flex µÄÒ»¸öºÜÓÐȤµÄÎÊÌâ

[Bindable]
[Embed(source="../assets/add-row.gif")]
private var vcls:Class;

private function createcompletehandler(event:Event):void{
var img:Image=new Image();
img.source=vcls;
this.titleIcon=vcls;
this.addChild(img); //1
this.titleBar.addChild(img);//2
}
±¾Àà¼Ì³Ð×Ôpanel¡£
×¢ÊÍ1ÊÇÔÚpanelÀïÃæÌí¼ÓͼƬ
×¢ÊÍ2ÊÇÔÚ±êÌâÀ¸Ìí¼ÓͼƬ

ÎÊÌâÊÇ
°Ñ 2 ÐÐÈ¥µô£¬Ôò 1 ÐÐÉúЧ¡£2 ÐмÓÉÏ£¬1 ÐÐÎÞЧ¡£

¼´£ºÔÚ±êÌâÀ¸¼ÓÒ»¸öͼƬ£¬²»Äܳɹ¦£¬¶øÇÒÓ°Ïìµ½±ðµÄµØ·½µÄͼƬ¶¼Ò»ÆðʧЧ¡£




²Ù×÷µÄͬһ¸ö¶ÔÏóµ¼Ö£¬new Á½¸öImageÊÔÊÔ

¸úͬһ¸ö¶ÔÏó Ó¦¸ÃûÓРûÓйØÏµ.

this.titleBar.addChild(img);//2  

titleBar ¼Ó¿Ø¼þ¾ÍÏÔʾ²»³öÀ´.

Â¥Ö÷°ÑÄÇÁ½ÐÐλÖõߵ¹Ò»Ï¾ͿÉÒÔÁË.

this.titleBar.addChild(img);//2 
this.addChild(img); //1 

1 ÄÜÏÔʾ, 2 Ôõô¶¼²»ÏÔʾ.

ÊÂʵÉϸÃÎÊÌâÓ¦¸ÃÊÇ ÎªÊ²Ã´ this.titleBar.addChild(img);//2 ²»ÄÜÔÚtitle À¸Õý³£ÏÔʾµÄÎÊÌâ.

panel ±¾ÉíÊÇÒ»¸öÈÝÆ÷, ¶ø TitleBar 

  ÏÔʾ Panel ÈÝÆ÷±êÌâÀ¸µÄ TitleBar ×ӿؼþ¡£

¾ÍÊÇ˵ titleBar ÊÇpanel ÖеÄÒ»¸ö×ӿؼþ,¶ø²»ÊÇ×÷Ϊһ¸öÈÝÆ÷´æÔÚµÄ.

ûÓÐÀíÓÉÔÚaddChild.
  Button Ò²ÓÐ addChild ,ÊÔÊÔÒ²ÊDz»ÄÜÏÔʾµÄ.





ÒýÓÃ
²Ù×÷µÄͬһ¸ö¶ÔÏóµ¼Ö£¬new Á½¸öImageÊÔÊÔ

ÎÒÒ²¸Ð¾õÊÇͬһ¸ö¶ÔÏóÒýÓÃÔì³Éµ


Ïà¹ØÎÊ´ð£º

ºÃÏñ×ö¸öFlexµÄAIRÏîÄ¿£¬Óеϰ½éÉܸøÎÒ¡£

Flex AirÒ³ÃæÉÏ¿ª·¢ÊµÔÚÊÇûµÃ˵ºÜ¸ßЧ¡£ÒѾ­×ö¹ý2¸öÕâ·½ÃæµÄÏîÄ¿ÁË£¬»¹ÏëÔÙÕÒ¸ö×ö×ö¡£

ÎíÓê´ó²¨Ãã¬ÄãÍÆ¼ö¸öÍøÕ¾ßÂ

ËýµÄ²¨²»ÏñÕæµÄ£¬¼à¶¨Íê±Ï

Â¥Ö÷£¬¶¼×öÁ½¸öÁË£¬¹«Ë¾ÂíÉÏ¿ªÊ¼×ö£¬ÒÔºóÂé·³¶àÖ¸½Ì
......

flex ¹ýÀ´ÈËÇë½ø

ÎÒÊǸãjavaµÄ£¨Ö®Ç°ÊÇjsp×÷Ϊ±íÏֲ㣩£¬ÏÖ¹«Ë¾ÊǸãflex¿ª·¢£¬Òò´ËҪѧϰflex£¬µ«ÊÇÎÒ²»ÖªµÀ´ÓºÎѧÆð£¬ÒªÑ§Ï°ÄÄЩ£¿Çë¸÷λ¸ßÊÖÖ¸µã¹þ£¬Ò²¿ÉÒÔ¸øµãСÏîÄ¿Àý×ÓÎÒѧϰ¹þ£¬ÏñflexÖÐÖµµÄ´«Èë´«³öÔÚµ½servlet ͨ¹ýHTTPSERVI ......

flexÈçºÎµ÷ÓÃwsdl½áβµÄÎļþ

ÎÒÓÐÒ»¸öwsdlµÄÎļþ£¨xml¸ñʽµÄ£¬ÀïÃæÓÐЩ·½·¨£©£¬ÇëÎÊflexµ±ÖÐÈçºÎµ÷ÓÃÀïÃæµÄ·½·¨£¬
ÎÒÖ»ÖªµÀµ÷ÓÃnetдµÄwebservice,ÔÚ.netµ±ÖÐÊÇÕâÑùµÄ
JScript code:

<mx:WebService id="ConEd_GetDataProvide ......

ÕÒÈËÓÃFlex×öÒ»¸öÍâÂòµê¶©²ÍµÄÍøÕ¾

ÒªÇ󿪷¢Èí¼þ£º Flex builder 3.
ÒªÇó£º×öÒ»¸öÖйú²ËÍâÂòµê¶©²ÍµÄÍøÕ¾¡£
  Á÷³Ì£ºÍâ¹Û²»ÐèÒª×öµÄºÜºÃ¿´£¬ºÜÆÕͨ¾ÍÐС£
  ¹Ë¿Í´ò¿ªÍøÕ¾£¬ÍøÕ¾ÏÔʾ²Ëµ¥ºÍ¼Û¸ñ£¬Ñ¡ÔñÁËÒªµãµÄ²Ë£¬µã²ËµÄ½á¹û ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ