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
Ïà¹ØÎĵµ£º
Õâ¸öϵÁпÉÄÜÐÂÊÖ¶ÁÆðÀ´±È½ÏÂý£¬µ«ÎÒ¾¡Á¿ÓÃÒ׶®µÄ·½Ê½½²½â£¬ÒòΪÎÒÔø¾ÊdzõѧÕߣ¬ÎÒÖªµÀ´ó¼ÒÏëÖªµÀʲô¡£Ò»ÕÅÍøÃæÆäʵҳÃæÄÚÈÝÊDZȽÏÖØÒªµÄ£¬Í¼ÏñÊÇÊôÓÚ½õÉÏÌí»¨£¬µ±È»ÍøÒ³µÄÅÅ°æÒ²ºÜÖØÒª¡£ÔÚCSS½ÒÃØѧϰµÄµÚÒ»Õ¾£¬Ê×ÏÈҪѧϰһÏÂÎÄ×ÖºÍÎı¾£¬Èôó¼Ò¶ÔcssÓиö³õ²½µÄÈÏʶ¡£
&nb ......
¸Õ½Ó´¥flex. ÔÚÓÃHTTPService»ñÈ¡XML¸ñʽÊý¾ÝÔٰ󶨸øDataGridʱ.Óöµ½Ò»¸öºÜ"Ææ¹Ö"µÄÎÊÌâ ¾ÍÊǵ±xmlµÄÌõĿСÓÚµÈÓÚ1ʱ,¾Í»á³ö´í. ºÜÊÇÓôÃÆÁËÒ»¶Îʱ¼ä ºóÀ´²Å·¢ÏÖ. ÎÊÌâ¼´²»ÊdzöÔÚHTTPServiceÉÏ,Ò²²»ÊdzöÔÚDataGridÉÏ. ¶øÊdzöÔÚ RESULT_FORMAT_E4X ÐÍÊý¾ÝÀàÐÍת»¯ÎªArrayCollectionÉÏ ÔÀ´ event.result ·µ»ØµÄÊÇob ......
ÔÎĵØÖ·£ºhttp://www.adobe.com/cn/devnet/flex/articles/itemrenderers_pt1.html
Flex ÌṩÐí¶à¿ØÖÆ, ËüÃÇ¿ÉÒÔ°´²»Í¬·½Ê½ÏÔʾ´óÁ¿Êý¾Ý¡£List ¿ØÖÆ×Ô¼º¡¢DataGrid¡¢Tree ÒÔ¼°°üÀ¨Í¼±íºÍ AdvancedDataGrid ÔÚÄڵĿÉÊÓÀࡣĬÈÏÇé¿öÏÂ, Flex Áбí¿ØÖƽ«ÌṩµÄÊý¾ÝÏÔʾΪ¼òµ¥Îı¾¡£µ« Flex µÄÄÜÄÍÔ¶²»Ö¹´Ë, Áбí¿ØÖÆÌṩÁËÒ»Ö ......
½ñÌìÎÒÃÇ»ã×ÜÁËÐí¶àdiv+cssÍøÒ³Éè¼ÆÖо³£Óõ½µÄ¾ÑéºÍ¼¼ÇÉ£¬´ó¼Ò¿ÉÒÔ¶à¶à²Î¿¼£¬¶ÔÄãµÄÒ³ÃæÉè¼ÆÒ»¶¨ÓкܴóµÄ°ïÖú!
Èç¹ûÎÄ×Ö¹ý³¤£¬Ôò½«¹ý³¤µÄ²¿·Ö±ä³ÉÊ¡ÂÔºÅÏÔʾ£ºIE5£¬FFÎÞЧ£¬µ«¿ÉÒÔÒþ²Ø£¬IE6ÓÐЧDIV STYLE=“width£º120px£»height£º50px£»border£º1px solid blue£»overflow£ºhidden£»text-overflow£ºellipsis&rdquo ......