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»ÄÜÏÔʾµÄ.
ÎÒÒ²¸Ð¾õÊÇͬһ¸ö¶ÔÏóÒýÓÃÔì³Éµ
Ïà¹ØÎÊ´ð£º
Flex AirÒ³ÃæÉÏ¿ª·¢ÊµÔÚÊÇûµÃ˵ºÜ¸ßЧ¡£ÒѾ×ö¹ý2¸öÕâ·½ÃæµÄÏîÄ¿ÁË£¬»¹ÏëÔÙÕÒ¸ö×ö×ö¡£
ÎíÓê´ó²¨Ãã¬ÄãÍÆ¼ö¸öÍøÕ¾ßÂ
ËýµÄ²¨²»ÏñÕæµÄ£¬¼à¶¨Íê±Ï
Â¥Ö÷£¬¶¼×öÁ½¸öÁË£¬¹«Ë¾ÂíÉÏ¿ªÊ¼×ö£¬ÒÔºóÂé·³¶àÖ¸½Ì
......
ÎÒÊǸãjavaµÄ£¨Ö®Ç°ÊÇjsp×÷Ϊ±íÏֲ㣩£¬ÏÖ¹«Ë¾ÊǸãflex¿ª·¢£¬Òò´ËҪѧϰflex£¬µ«ÊÇÎÒ²»ÖªµÀ´ÓºÎѧÆð£¬ÒªÑ§Ï°ÄÄЩ£¿Çë¸÷λ¸ßÊÖÖ¸µã¹þ£¬Ò²¿ÉÒÔ¸øµãСÏîÄ¿Àý×ÓÎÒѧϰ¹þ£¬ÏñflexÖÐÖµµÄ´«Èë´«³öÔÚµ½servlet ͨ¹ýHTTPSERVI ......
ÎÒÓÐÒ»¸öwsdlµÄÎļþ£¨xml¸ñʽµÄ£¬ÀïÃæÓÐЩ·½·¨£©£¬ÇëÎÊflexµ±ÖÐÈçºÎµ÷ÓÃÀïÃæµÄ·½·¨£¬
ÎÒÖ»ÖªµÀµ÷ÓÃnetдµÄwebservice,ÔÚ.netµ±ÖÐÊÇÕâÑùµÄ
JScript code:
<mx:WebService id="ConEd_GetDataProvide ......
ÒªÇ󿪷¢Èí¼þ£º Flex builder 3.
ÒªÇó£º×öÒ»¸öÖйú²ËÍâÂòµê¶©²ÍµÄÍøÕ¾¡£
Á÷³Ì£ºÍâ¹Û²»ÐèÒª×öµÄºÜºÃ¿´£¬ºÜÆÕͨ¾ÍÐС£
¹Ë¿Í´ò¿ªÍøÕ¾£¬ÍøÕ¾ÏÔʾ²Ëµ¥ºÍ¼Û¸ñ£¬Ñ¡ÔñÁËÒªµãµÄ²Ë£¬µã²ËµÄ½á¹û ......