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

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

CategoryAxisÓÐÒ»¸ö½Ð×ölabelFunctionµÄÊôÐÔ£¬Õâ¸öÊôÐԵĶ¨Ò壺ָ¶¨Ò»¸öº¯Êý£¬ÓÃÓÚ¶¨ÒåΪCategoryAxisµÄdataProviderÖеĸ÷¸öÏîÄ¿Éú³ÉµÄ±êÇ©¡£
ËùÒÔÐ޸ĵÄÔ­Àí£º¿ÉÒÔÀûÓÃlabelFunctionµÃµ½Ã¿¸öLabel£¬È»ºóÔÙ¶ÔÆä½øÐÐÐ޸ġ£
Ƭ¶Î´úÂ룺
<mx:horizontalAxis>
  <mx:CategoryAxis id="ca"
         categoryField="@date" title="August 2007" labelFunction="categoryAxisLabelFun" />
</mx:horizontalAxis>
 
private function categoryAxisLabelFun( item : Object, prevValue : Object, axis : CategoryAxis, categoryItem : Object) : String {
      var temp : String = item as String;
      return temp;
}
ÆäÖÐcategoryAxisLabelFunµÄ²ÎÊý£º
1¡¢item£º±£´æµÄ¾ÍÊÇLabelÀïÃæÎÄ×ÖÐÅÏ¢¡£
2¡¢prevValue£º×ø±êÖáÉÏÃ棬ǰһ¸öÀà±ðµÄÖµ¡£
3¡¢axis£ºCategoryAxisµÄʵÀý»¯¶ÔÏó¡£
4¡¢categoryItem£ºÊǽ«Òª³ÊÏÖµÄdataProviderÖеÄÏîÄ¿¡£
ËùÒÔÓë±êÇ©ÓйØϵµÄÖ»ÓеÚÒ»¸ö²ÎÊý£ºitem¡£
 
ÒÔÏ´úÂë·Ö±ðÊǶÔCategoryAxisµÄ±êÇ©½øÐÐÐ޸ĵĴúÂ룺
 
1¡¢¸Ä±ä×ÖÌå´óС£º
private function categoryAxisLabelFun( item : Object, prevValue : Object, axis : CategoryAxis, categoryItem : Object) : String {
      var temp : String = item as String;
      return  '<font size="20">' + temp + </font>';
}
2¡¢¸Ä±ä×ÖÌå´Öϸ£º
private function categoryAxisLabelFun( item : Object, prevValue : Object, axis : CategoryAxis, categoryItem : Object) : String {
      var temp : String = item as String;
      return  '<B>' + temp + </B>';
}
3¡¢¸Ä±ä×ÖÌåÏ»®Ïߣº
private function categoryAxisLabelFun( item : Object, prevValue : Object, axis : CategoryAxis, categoryItem : Object) : String {
      var temp : String = item as String;
      return  '<U>' + temp + </U>';
}
4¡¢¸Ä±ä×ÖÌåбÌ壺
private function categoryAxisLabelFun( item :


Ïà¹ØÎĵµ£º

FlexÖÐÓ¦ÓóÌÐò¡¢Ä£¿éÖ®¼ä²ÎÊý´«µÝ

·   FlexÖÐÓ¦ÓóÌÐò¡¢Ä£¿éÖ®¼ä²ÎÊý´«µÝÒ»°ãÓÐÈýÖÖ·½Ê½:
·   1.ͨ¹ýURLЯ´ø²ÎÊý½øÐд«µÝ
·   2.ͨ¹ýʼþ½øÐд«µÝ
·   3.ʵÏÖ½Ó¿Ú½øÐд«µÝ
·   ÆäÖÐURL´«µÝ²ÎÊýʱ£º
·   ApplicationÖ®¼äºÍModuleÖ®¼äÊÇÓÐÇø±ðµÄ ......

web¼´Ê±Í¨ÐŵÄFlex½â¾ö·½°¸

      Ìáµ½web¼´Ê±Í¨ÐÅ£¬¿ÉÄÜ´ó¼ÒÁ¢¼´»áÏëµ½ajax¶¨Ê±ÇëÇó¡¢·þÎñÆ÷ÍƵȽâ¾ö·½°¸£¬µ«ÕâÀïÎÒҪ˵µÄÊÇÒ»ÖÖ×ۺϵĽâ¾ö·½°¸£¬Ê¹ÓÃAdobeµÄFlex XmlSocket¡¢javascriptÒÔ¼°·þÎñÆ÷¶Ë¼¼Êõ£¬½¨Á¢ÕæÕýµÄweb¼´Ê±Í¨ÐÅ¡£µ±È»Õ⻹ÊÜÒæÓÚflashµÄÆÕ¼°£¬´ó²¿·ÖÓû§µÄä¯ÀÀÆ÷¶¼°²×°ÁËFlash player²å¼þ£¬´Ó¶ø±£Ö¤´Ë·½°¸Î ......

Flex——Flash Player Not Found

Are you running your Flex Application and continually getting the error below?
"Flex Builder cannot locate the required version of the Flash Player. You might need to install Flash Player 9 or reinstall Flex Builder. Do you want to try to run your application with the current version?"
Description ......

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

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