FLEXÈÝÆ÷µÄ²¼¾Ö¹æÔò
FLEXÖÐËùÓеIJ¼¾Ö¶¼ÐèÒªÈÝÆ÷¡£<mx:Application>±êǩʵ¼ÊÉϾÍÊÇÒ»¸öÈÝÆ÷¡£Ã¿¸öÈÝÆ÷¶¼ÓÐÒ»¶¨µÄ¹æÔòÀ´È·¶¨×ÓÔªËصÄÅÅÁз½Ê½£¬Ò²¾ÍÊDZ¾ÎÄÌÖÂÛµÄFLEXÈÝÆ÷²¼¾Ö¹æÔò¡£
VBox
×ÓÔªËØÑØ´¹Ö±·½ÏòÅÅÁС£Ã¿¸ö×ÓÔªËض¼»á»æÖÆÔÚÇ°Ò»¸ö×ÓÔªËصÄÏ·½¡£
HBox
×ÓÔªËØÑØˮƽ·½ÏòÅÅÁС£Ã¿¸ö×ÓÔªËض¼»á»æÖÆÔÚÇ°Ò»¸ö×ÓÔªËصÄÓÒ·½¡£
Canvas
°´¿ª·¢ÕßÖ¸¶¨µÄx×ø±êÓëy×ø±ê»æÖÆ×ÓÔªËØ¡£Èç¹ûûÓÐÖ¸¶¨×ø±ê£¬ÔòËùÓеÄ×ÓÔªËض¼»æÖÆÔÚÈÝÆ÷µÄ×óÉÏ·½¡£ÀýÈ磬Èç¹ûÔÚCanvasÖÐÌí¼ÓÒ»¸öButton¿Ø¼þ¶ø²»ÎªÆäÖ¸¶¨×ø±ê£¬ÄÇôButton¾Í±»³ÊÏÖÔÚCanvasµÄ×óÉϽǣ¬Ä¬ÈϵÄ(0,0)λÖá£
Application
ͨ¹ýʹÓÃlayoutÊôÐÔ£¬Application²¼¾ÖÄÜÉèÖóÉÀàËÆVBox¡¢HBox»òCanvasÈÝÆ÷ÖеÄÈκÎÒ»ÖÖ·½Ê½¡£
Tile
½«Æä×ÓÔªËØÅÅÁгÉÒ»¸ö»òÕ߶à¸öºáÐлòÕßÊúÁУ¬ÔÚÐèҪʱÔö¼ÓÐÂÐлòÕßÐÂÁС£ËùÓеÄTileÈÝÆ÷µ¥Ôª¸ñ´óС¶¼Ïàͬ¡£Flex½«TileÈÝÆ÷µÄµ¥Ôª¸ñÅÅÁÐÔÚÕý·½ÐÎÍø¸ñÖУ¬Ã¿Ò»¸öµ¥Ôª¸ñÄÚ·ÅÈëÒ»¸ö×ÓÔªËØ¡£²¼¾Ö·½Ê½ÓÉdirectionÊôÐÔ¾ö¶¨¡£
Pnael
BoxÈÝÆ÷µÄ×ÓÀà¡£PanelÈÝÆ÷¿ÉÒÔÏñVBox¡¢HBox»òÕßCanvasÈÝÆ÷Ö®ÖеÄÈκÎÒ»ÖÖÄÇÑù²¼¾Ö£¬ÕâÈ¡¾öÓÚÖ¸¶¨µÄlayoutÊôÐÔ£¨Ä¬ÈÏΪabsolute£¬ÓëCanvasÒ»Ñù£©¡£³ýÁË¿ÉÒÔ°üº¬×ÓÔªËØ£¬PanelÈÝÆ÷»¹ÌṩÁ˱êÌâÀ¸ÇøÓò£¬¿ÉÒÔ°üº¬ËüµÄ±êÌâºÍ״̬ÐÅÏ¢¡£
ControlBar
ControlBarÈÝÆ÷¿ÉÒÔÓÃÓÚ½«¹¤¾ßÀ¸Í£¿¿ÔÚPanelÈÝÆ÷»òÕßTitleWindowÈÝÆ÷µÄµ×²¿¡£ControlBarÈÝÆ÷ÄÜÒÔHBox»òÕßVBoxÈÝÆ÷µÄ·½Ê½²¼¾Ö£¬ÕâÈ¡¾öÓÚdirectionÊôÐÔµÄÉèÖÃÇé¿ö£¨Ä¬ÈÏΪhorizontal£¬Ë®Æ½·½Ê½²¼¾Ö£©¡£
ApplicationControlBar
ÄÜÒÔHBoxÈÝÆ÷»òÕßVBoxÈÝÆ÷µÄ·½Ê½²¼¾Ö£¬ÕâÈ¡¾öÓÚdirectionµÄÉèÖã¨Ä¬ÈÏhorizontal£©¡£ApplicationControlBarÓÃÓÚ·ÅÔÚÔÚÕû¸öÓ¦ÓÃÖж¼ÄÜ·ÃÎʵÄ×é¼þ¡£Èç¹ûApplicationControlBarÈÝÆ÷ÊÇ<mx:Application>µÄµÚÒ»¸ö×ÓÔªËØ£¬¶øÇÒdockÊôÐÔΪtrue£¬ÄÇôApplicationControlBarÈÝÆ÷»áÍ£¿¿ÔÚÓ¦ÓóÌÐò»æÖÆÇøÓòµÄ¶¥²¿£¬Õ¼ÂúÓ¦ÓóÌÐòµÄ×î´ó¿í¶È£¬¶øÇÒ²»ËæÓ¦ÓóÌÐòµÄ¹ö¶¯¶ø¹ö¶¯¡£
Ïà¹ØÎĵµ£º
ÒòΪmyeclipseµÄbugÎÊÌ⣬һʱ¾¹È»Ã»ÓÐÕÒµ½ÄÜÐ޸ĵĵط½£¬ÆäʵºÜ¼òµ¥£¬²½ÖèÈçÏ£º
myeclipse-->window-->Preference-->General-->Appearence-->Colors and Fonts-->Basic-->Text Font
È»ºóµã»÷change,Ð޸ijÉ×Ô¼ºÐèÒªµÄ×ÖÌå´óС£¬²»¹ýÐ޸ı£´æºó£¬·¢ÏÖÐÞ¸ÄʱÎÞЧµÄ£¬Ã»ÓÐÆð×÷Óá£
Õâʱ°ÑËüÔٸijÉ10º ......
1.Performace°üº¬4µã£º
£¨1£©Latency·´Ó¦Ê±¼ä£¨2£©Scalability:¿¹Ñ¹ÄÜÁ¦£¨3£©Reliablity£ºÎȶ¨ÐÔ£¨4£©Availability£º¿ÉÓÃÐÔ
2.ÔËÐÐʱÉúÃüÖÜÆÚ£º
FlexÖ»ÓÐÁ½Ö¡frames£ºPreload frame ºÍ application frame¡£
ÿһ¸öflex application ÊÇÒ»¸öMovieClip£¬ÒòΪÿ¸öflex application¶¼ÓÐSystemManager£¬ËûÊǼ̳Ð×Ô
flash.dis ......
ÎÒ¸öÈ˾õµÃÕâ¸ö×Ô¶¨Òåʱ¼ä·â×°ÐԺܺ㬵«ÊÇÓе㸴ÔÓ£¬²»½¨Òé¼òµ¥±à³ÌÖÐʹÓÃ
´´½¨Ò»¸öMXML×é¼þ£¬½¨×Ô¶¨Òåʼþ
<?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
<!--[CDATA[
private function clickHandler():void{
// var m ......
ÏÖÔÚÎÒÃÇÏÈ¿´¿´´úÂë,ÏÂÃæµÄ´úÂë×°ÔÚcreationCompleteʼþÖе÷ÓÃinit()À´Æô¶¯È«ÆÁ.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute"
creationComplete="init()"
>
<mx:Scri ......
¡¾±àÒë²ÎÊý¡¿
-default-background-color int
-default-frame-rate int
-default-size width height
ÉèÖÃSWFµÄ±³¾°É«£¬Ö¡ÆµÓë¿í¸ß£¬Õâ¸öÒ²¿ÉÒÔͨ¹ýÔª±êÇ©ÉèÖã¬ÖîÈç
[SWF(width="720",height="560",backgroundColor="#000000")]
-default-script-limits
-max-recursion-depth
-max-execution-time
¶¨ÒåÓ¦Óýű¾³ÌÐ ......