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 :
Ïà¹ØÎĵµ£º
Ç°ÑÔ£º
±¾ÏîÄ¿Ö÷ÒªÊÇͨ¹ý°ÑµØͼÇÐƬǶÈëswf£¬°ÑÇÐƬ×ø±êÓÃJavaÊý¾Ý´ò°ü£¬È»ºó ÔÚFlexÏîÄ¿ÄÚͨ¹ýJava¶ÁÈ¡´ò°üÊý¾Ý£¬Í¨Ñ¶¸øFlex£¬×îºó°ÑswfÄÚµÄͼƬ°²·ÅÔÚ¶ÔӦλÖÃÀ´Êµ´óµØͼ ²ð·Ö->´ò°ü->ÔÙÏֵĹý³Ì¡£
1. swfͼƬ´ò°ü´úÂë BitMapClass.as
package
{
import flash.display.Sprite;
public class BitM ......
²»¿É·ñÈÏMyEclipseÏÖÔÚÔ½×öԽǿ´ó£¨±Ï¾¹ÊÇÊշѵÄÂ£¬Ç¿´óµ½¿ªÊ¼ÅųâµÚÈý·½²å¼þ£¬ÕâÓÐЩ²»·ûºÏEclipseµÄ³õÖÔ£¬Eclipse¾ÍÊÇ¿¿Á¼ºÃµÄÀ©Õ¹ÐÔ·¢Õ¹ÆðÀ´µÄ¡£
MyEclipse´Ó7.5¿ªÊ¼£¨7.0ûÓùý£¬²»ÖªµÀ£©£¬ÍêÈ«¸Ä±äÁ˳ÌÐò½á¹¹£¬ÏÖÔÚÀ©Õ¹µÚÈý·½²å¼þ ÔÙҲûÓÐÒÔÇ°ÄÇô·½±ãÁË£¬ÌرðÊÇlink·½Ê½£¬Õâ¶Ô³ÌÐòÔ±À´ËµÊÇÖÂÃüµÄ¡£Flex Plugin ° ......
flex¹ö¶¯ÌõËäÈ»ºÜºÃÓ㬵«×ÜÊÇ»á³öÏÖÒâÏë²»µ½µÄÎÊÌ⡣ǰ¼¸Ìì˵ÁË£¬Í϶¯ºó»¨ÆÁµÄÎÊÌ⣬½ñÌìÓÖ·¢ÏÖÁ˸ü¶ñÐĵÄÎÊÌâ¡£µ±Äã°ÑÈÝÆ÷µÄ¿í¶Èµ÷Ϊ100%ºó £¬verticalScrollbarPolicy ÓÃĬÈϵÄauto¡£ÕâÊÇÈç¹ûÄãËõ·Å´°¿Ú»á³öÏÖ¹ö¶¯Ìõ£¬µ«ÎÊÌâÕâÊǾͳöÏÖÁË£¬Ö»Òª³öÏÖÁË´¹Ö±¹ö¶¯Ìõ£¬Ë®Æ½¹ö¶¯Ìõ¾ÍÊDZ»ÆȳöÏÖ¡£
<?xml version="1.0" enco ......
ÓÉÓÚ±¾ÈË×î½üæÓÚÕÒ¹¤×÷ºÍ±ÏÒµÉè¼Æ£¬Ã»ÓÐʱ¼äÀ´¼ÌÐøÕâ¸öϵÁУ¬ ֻдÁ˵Úһƪ£¬×Ô¼ºÒ²Éî¸Ð²ÑÀ¢£¬Õâһƪ½éÉÜÒ»ÏÂÕâ¸ödemoµÄÕûÌå¼Ü¹¹°É£¬ÏÈÌùÏÂÏÂÔصØÖ·¡£http://download.csdn.net/source/2118707
Ä¿Ç°·þÎñ¶ËÒÑÍê³ÉµÇ½ע²áÄ£¿é£¬Ê¹ÓÃSocket±à³Ì£¬TCPÐÒé¡£µÈ·þÎñ¶ËÍê³É½«ÍêÕûµÄ±àдһ¸öϵÁеĽ̡̳£~~
......
*****************************************************
1-0. °²×°ÅäÖù¤×÷»·¾³
*****************************************************
1.°²×°jdk1.6
ÉèÖû·¾³±äÁ¿:java_home,ÄÚÈÝΪjdk°²×°ºójdkËùÔÚĿ¼£¬²»ÊÇjreĿ¼
2.°²×°tomcal 6.0µ½d:\
3.°²×°myeclipse 6.5
4.°²×°firefox¼°²å¼þ
°²×°firefox
&nbs ......