Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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 Builder 3.0 for Eclipse

ÕâÁ½Ìì×¼±¸Ñ§Ï°Flex,ÓÚÊÇÏÂÔØÁËFlex Builder 3.0 For Eclipse plugin×¼±¸°²×°.
µ«ÊÇ°²×°ºóÆô¶¯Eclipse,ÕÒÁË°ëÌìҲûÕÒµ½Flex.¶øÇÒFlex Builder»á°ÑJREÒ²°²×°.¾õµÃÕâÑùºÜ²»Ë¬.
ËùÒÔÎÒÏëµ½Äܲ»ÄÜÀ´¸öFlex BuilderÂÌÉ«°²×°·½·¨ÄØ.
Ïëµ½¾Í×ö.ÏÂÃæÊÇÎҵݲװ¹ý³Ì.(Ç°ÌáÊÇϵͳÒѾ­ÓÐJRE,ÇÒJAVA»·¾³±äÁ¿ÒѾ­ÅäÖÃOK,´Ë´¦ÂÔ¹ý¸ ......

flex ͼ±êÉèÖðٷֱȻòÕßÆäËü·ûºÅ

<?xml version="1.0"?>
<!-- charts/PredefinedAxisStyles.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">

<mx:Script>
<!--[CDATA[
//µ¼ÈëÏà¹Ø°ü
import mx.collections.ArrayCollection;
import mx.charts.*;
import mx.charts.ser ......

FlexÖÐImage¼ÓÔØͼƬ³ö´íʱÏÔʾĬÈÏͼƬµÄ¼¸ÖÖ·½·¨


FlexÖÐImage¼ÓÔØͼƬ³ö´íʱÏÔʾĬÈÏͼƬµÄ·½·¨Ö÷ÒªÓÐÒÔϼ¸ÖÖ£º
·½·¨Ò»£ºÀûÓà brokenImageSkin ·ç¸ñÏÔʾһ¸öĬÈϵÄͼ£¬Ö»ÐèÉèÖÃCSS¾ÍÐÐÁË£¬ÈçÏ£º
<mx:Style>
     Image {
         brokenImageSkin: Embed("assets/404.jpg");
     }
 </m ......

flex×ÊÔ´

Ò» ÍøÕ¾
1 ÔÚÏßͼƬ´¦Àí¹¤¾ßÍøÕ¾http://www.flauntr.com/
¡£
2 ¹Ù·½ÍøÕ¾µÄÀý×Ó http://examples.adobe.com/flex3/componentexplorer/explorer.html
3 ¹Ù·½AS3ѧϰ×ÊÁÏÍøÕ¾  http://www.adobe.com/devnet/actionscript/
4 Õâ¶ùÍƼöÒ»¸öÍøÖ·£¬²»½ö¿ÉÒÔ¶ÔÆäËüµÄÊý¾ÝÀàÐͽøÐÐѧϰ£¬»¹Óлù´¡µÄÓï·¨£¬·Ç³£²»´í£º
  ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ