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

Flex±àÒëCSS×ÊÔ´Óë¹ú¼Ê»¯

1)      ±àÒëCSS×ÊÔ´
 
Îļþä¯ÀÀÆ÷£¨Navigator£©ÖУ¬ÔÚ±ê×¼µÄFlex CSSÎļþÉϵã»÷ÓÒ¼ü£¬µã»÷Compile CSS to SWF¼´¿ÉÍê³É±àÒëCSSµÄÈÎÎñ¡£
ÔÚ³ÌÐòÖпÉÒÔÓÃStyleManager.loadStyleDeclarations()À´¶Á³öÒѱàÒëºÃµÄCSSÎļþÖеÄÄÚÈÝ¡£
¾ßÌå²Ù×÷ÈçÏÂ:
              // ¶ÁÈ¡Style
                        private function loadStyle():void
              {
                              var eventDispatcher:IEventDispatcher = StyleManager.loadStyleDeclarations("xxx.swf");
                    eventDispatcher.addEventListener(StyleEvent.COMPLETE, completeHandler);
}
È»ºó£¬
              // ¶ÁÈ¡Íê±ÏµÄ´¦Àí
                        private function completeHandler(event:StyleEvent):void
                        {
                              // ¾ßÌåµÄ´¦ÀíÄÚÈÝ
                              ………………
                &nbs


Ïà¹ØÎĵµ£º

CSS½ÒÃØ(1)

     Õâ¸öϵÁпÉÄÜÐÂÊÖ¶ÁÆðÀ´±È½ÏÂý£¬µ«ÎÒ¾¡Á¿ÓÃÒ׶®µÄ·½Ê½½²½â£¬ÒòΪÎÒÔø¾­ÊdzõѧÕߣ¬ÎÒÖªµÀ´ó¼ÒÏëÖªµÀʲô¡£Ò»ÕÅÍøÃæÆäʵҳÃæÄÚÈÝÊDZȽÏÖØÒªµÄ£¬Í¼ÏñÊÇÊôÓÚ½õÉÏÌí»¨£¬µ±È»ÍøÒ³µÄÅÅ°æÒ²ºÜÖØÒª¡£ÔÚCSS½ÒÃØѧϰµÄµÚÒ»Õ¾£¬Ê×ÏÈҪѧϰһÏÂÎÄ×ÖºÍÎı¾£¬Èôó¼Ò¶ÔcssÓиö³õ²½µÄÈÏʶ¡£
   &nb ......

flex RESULT_FORMAT_E4X¶ÔÏóת»¯ÎªArrayCollection

¸Õ½Ó´¥flex. ÔÚÓÃHTTPService»ñÈ¡XML¸ñʽÊý¾ÝÔٰ󶨸øDataGridʱ.Óöµ½Ò»¸öºÜ"Ææ¹Ö"µÄÎÊÌâ ¾ÍÊǵ±xmlµÄÌõĿСÓÚµÈÓÚ1ʱ,¾Í»á³ö´í. ºÜÊÇÓôÃÆÁËÒ»¶Îʱ¼ä ºóÀ´²Å·¢ÏÖ. ÎÊÌâ¼´²»ÊdzöÔÚHTTPServiceÉÏ,Ò²²»ÊdzöÔÚDataGridÉÏ. ¶øÊdzöÔÚ RESULT_FORMAT_E4X ÐÍÊý¾ÝÀàÐÍת»¯ÎªArrayCollectionÉÏ Ô­À´ event.result  ·µ»ØµÄÊÇob ......

Àí½â Flex itemRenderer µÚ 1 ²¿·Ö: ÄÚÁªäÖȾÆ÷

Ô­ÎĵØÖ·£ºhttp://www.adobe.com/cn/devnet/flex/articles/itemrenderers_pt1.html
Flex ÌṩÐí¶à¿ØÖÆ, ËüÃÇ¿ÉÒÔ°´²»Í¬·½Ê½ÏÔʾ´óÁ¿Êý¾Ý¡£List ¿ØÖÆ×Ô¼º¡¢DataGrid¡¢Tree ÒÔ¼°°üÀ¨Í¼±íºÍ AdvancedDataGrid ÔÚÄڵĿÉÊÓÀࡣĬÈÏÇé¿öÏÂ, Flex Áбí¿ØÖƽ«ÌṩµÄÊý¾ÝÏÔʾΪ¼òµ¥Îı¾¡£µ« Flex µÄÄÜÄÍÔ¶²»Ö¹´Ë, Áбí¿ØÖÆÌṩÁËÒ»Ö ......

div+cssÍøÒ³Éè¼Æ¼¼ÇÉ»ã×Ü

½ñÌìÎÒÃÇ»ã×ÜÁËÐí¶àdiv+cssÍøÒ³Éè¼ÆÖо­³£Óõ½µÄ¾­ÑéºÍ¼¼ÇÉ£¬´ó¼Ò¿ÉÒÔ¶à¶à²Î¿¼£¬¶ÔÄãµÄÒ³ÃæÉè¼ÆÒ»¶¨ÓкܴóµÄ°ïÖú!
Èç¹ûÎÄ×Ö¹ý³¤£¬Ôò½«¹ý³¤µÄ²¿·Ö±ä³ÉÊ¡ÂÔºÅÏÔʾ£ºIE5£¬FFÎÞЧ£¬µ«¿ÉÒÔÒþ²Ø£¬IE6ÓÐЧDIV STYLE=“width£º120px£»height£º50px£»border£º1px solid blue£»overflow£ºhidden£»text-overflow£ºellipsis&rdquo ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ