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

Flex Æô¶¯»ù±¾Á÷³Ì


First, enough bytes for frame 1 are streamed down to the Flash
Player.
The Flash Player executes those bytes by creating a SystemManager
instance.
SystemManager instruct the Flash Player to stop at the end of frame
1.
SystemManager then goes on to create the Preloader which creates the
DownloadProgressBar control and pops that up on the client screen.
The Preloader then starts tracking the rest of the bytes streaming
in from the Flex SWF (or from external SWFs).
Once all the bytes for
the Flex framework and application code are in, the System Manager goes
on to frame 2 and instantiates the Application instance.
All RSLs and their associated classes are now loaded [into the
ApplicationDomain]; note that the load order is in the order defined
during app compile time.[3]

All class definitions used by the application (views, logic, etc)
must be loaded prior to Frame 2. It is here, in Frame1, that your
preloader code can even install patches to the Flex framework BEFORE the
framework classes themselves are loaded.
This technique is called "monkey-patching
"
and will be used later
when we are discussing the decryption
process.
Once the Application instance has been created, the SystemManager
sets Application.systemManager to itself. This is how you, the
application developer, can access the SystemManager at a later time.
The Application dispatches the preinitialize event at the beginning
of the initialization process.
Application goes on to create its children. The method
createChildren() is called on the application. At this point each of the
application’s components is being constructed, and each component’s
createChildren() will be also called. For detail, look at component
lifecycle section.
The Application dispatches the initialize event, which indicates
that all application’s components have been initialized. However, at
this state, all the components are not yet


Ïà¹ØÎĵµ£º

FLEX£¬×ÀÃ濪·¢³ÌÐòÔ±ÏòWEB¿ª·¢×ªÐ͵ÄÌæ´úÆ·

     ÎÒÒÔÇ°Ò»Ö±´ÓÊÂ×ÀÃ濪·¢£¬ÓÈÆäÊý¾Ý´¦ÀíµÄµÄϵͳ½Ï¶à¡£Ê¹Óý϶àµÄÊÇ¿ª·¢¹¤¾ßÊÇVFP£¬ËüÓÐ×Ô´øµÄÊý¾Ý¿â£¬Ò²¿ÉÒÔʹÓôóÐ͵ÄÊý¾Ý¿âϵͳ£¬¼È¿ÉÒÔ¿ª·¢ÏµÍ³Ò²¿ÉÒÔÓÃÃüÁîÐнøÐйÜÀíÊý¾Ý¡£µ«£¬ËüÔÚ²»¾ÃµÄ½«À´¾ÍMS²»ÔÙ¸§ÑøÕâ¸öÂòÀ´µÄ¶ù×ÓÁË£¬²Ù×÷µÄϵͳµÄ»»´úµÈµÈ¶àÖÖÒòËØÓ°Ï죬²»¹ÜËüÊÇ·ñ»áÏûÍü£¬µ«Ê¼ÖÕÒ²»á ......

FlexÀý×Ó Í¨¹ý¼Ì³ÐÔö¼ÓÐµĹ¦ÄÜ

FlexÖÐͨ¹ý¼Ì³Ð¿ÉÒÔΪÐÂ×é¼þÔö¼ÓÐµĹ¦ÄÜ£¬Èçͨ¹ý×¢Èë·½·¨£¬¸Ä±ä±³¾°É«£¬¸Ä±äλÖú͸߶ȵȡ£ÕâÀïÖ÷ÒªÕÆÎÕÔ­×é¼þµÄһЩÌØÐÔ£¬ÊôÐԺͷ½·¨£¬ÒÔ±ã¸ù¾ÝÐèÒªµÄ¹¦ÄܼÓÒÔ¸²Ð´£¨Ò²¿ÉÒÔ×Ô¼ºÀ©Õ¹£©£¬´ïµ½×Ô¼ºÏëÒªµÄЧ¹û¡£ÏÂÃæÊÇÒ»¸ö¼òµ¥µÄÀý×Ó
1¡¢Ð½¨MyDataGrid.as,¼Ì³ÐDataGrid,¸²Ð´drawRowBackground·½·¨£¬×¢ÈërowColorFunction·½ ......

flex ͼ±ícategoryFieldÉèÖà labelFunctionʹÓÃ

CategoryAxisÓÐÒ»¸ö½Ð×ölabelFunctionµÄÊôÐÔ£¬Õâ¸öÊôÐԵĶ¨Ò壺ָ¶¨Ò»¸öº¯Êý£¬ÓÃÓÚ¶¨ÒåΪCategoryAxisµÄdataProviderÖеĸ÷¸öÏîÄ¿Éú³ÉµÄ±êÇ©¡£
ËùÒÔÐ޸ĵÄÔ­Àí£º¿ÉÒÔÀûÓÃlabelFunctionµÃµ½Ã¿¸öLabel£¬È»ºóÔÙ¶ÔÆä½øÐÐÐ޸ġ£
Ƭ¶Î´úÂ룺
<mx:horizontalAxis>
  <mx:CategoryAxis id="ca"
  &nbs ......

flexͼ±í×ø±êÖáÑùʽÉèÖÃ

<?xml version="1.0"?>
<!-- Simple example to demonstrate the ColumnChart and BarChart controls. -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
creationComplete="initApp()"
backgroundColor="#FFFFFF" width="350" height="125"
layout="absolute">
<!- ......

¡¾Êղء¿FlexÊý¾ÝͨѶ

Flex/Flash Ö§³ÖµÄÊý¾ÝͨѶ·½Ê½ÓУº
http URLLoader
SOAP(webservice)
json
xml
flash remoting / AMF3
xmlsocket
socket(¶þ½øÖÆ)(×Ô¶¨ÒåЭÒé)
¸ß²¢·¢µÄÓ¦ÓÃÖÐÓû§×´Ì¬¿ÉÒÔÓÃcookie£¬²»ÓÃsession
Èç¹ûÊǶàÈËʵʱ½»»¥ÈçÁÄÌìϵͳ£¬¶àÈËÔÚÏß»¥¶¯µÈÓ¦ÓÃÄ£¿é¡¡ÐèÒªÓÃsocket½øÐÐͨѶ(Óë·þÎñÆ÷½¨Á¢³¤Á¬½Ó)£¬·þÎñÆ÷¶Ë¿ÉÒÔ× ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ