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

flex ÈÕÆÚ´¦Àí¹¤¾ßÀà

 ¸ù¾Ý±ðÈËдÁËÀ࣬×Ô¼ºÓÖÔö¼ÓÁËÒ»²¿·Ö£¬Ìù³öÀ´·ÖÏí
 /*»ñµÃÁ½¸öÈÕÆÚÖ®²î */
public static function getDateDiff(startDate:Date, endDate:Date):int
{
var diff:Number = (Number(endDate) - Number(startDate))/(3600000*24);
return diff;
}
/* »ñµÃÏÖÔÚÈÕÆÚ */
public static function getDate():Number
{
return new Date();
}
/* »ñµÃÏÖÔÚÈÕÆÚµÄÔÂ·Ý */
public static function getMonth():Number
{
return new Date().getMonth() + 1;
}
public static function getFullYear():Number
{
return new Date().getFullYear();
}
/* »ñµÃ¸ø¶¨ÄêµÄÌìÊý */
public static function getDaysOfYear(year:int):int
{
var startDate:Date = new Date(year, 0, 1);
var endDate:Date = new Date(year+1, 0, 1);
return (getDateDiff(startDate, endDate));
}
/* »ñµÃ¸ø¶¨Äê¡¢ÔµÄÌìÊý */
public static function getDaysOfMonth(year:int, month:int):int
{
var startDate:Date = new Date(year, month, 1);
var endDate:Date = new Date(year, month + 1, 1);
return (getDateDiff(startDate, endDate));

}
//»ñµÃ¸ø¶¨Äê È«ÄêÔ·ݵÄÌìÊý
public static function getMonthlyDayCounts(year:int):Array
{
var result:Array = [];
var startDate:Date;
var endDate:Date;
var monthlyDayCount:int;
for (var i:int = 0; i < 12; i++)
{
startDate = new Date(year, i, 1);
endDate = new Date(year, i +1, 1);
monthlyDayCount = getDateDiff(startDate, endDate);
result.push(monthlyDayCount);
}
return result;
}
/* ±È½ÏÁ½¸öÈÕÆÚ´óС */
public static function compare(date1:Date, date2:Date):int
{
if (Number(date1) < Number(date2))
{
return -1
}
if (Number(date1) == Number(date2))
{
return 0;
}
return 1;
}
//°ÑdateÈÕÆÚת»¯ÎªString
public static function convertToDateString(date:Date):String
{
var year:String = date.getFullYear().toString();
var month:String = Number(date.getMonth() + 1) < 10 ? "0" + String(date.getMonth() + 1): String(date.getMonth() + 1);
var dates:String = Number(date.getDate()) < 10 ? "0" + String(date.getDate()): String(date.getDa


Ïà¹ØÎĵµ£º

FlexǶÌ×ÈÝÆ÷µÄÉú³É´ÎÐò

֮ǰһֱûÔÚÒ⸸ÈÝÆ÷ºÍ×ÓÈÝÆ÷¸÷×ÔµÄÉú³É´ÎÐò£¬ÖªµÀÔÚÏîÄ¿ÖÐÓöµ½Ò»ÖÖcase:³õʼ»¯½çÃæʱ¸¸ÈÝÆ÷³õʼ»¯µÄÄÚÈÝÓÉ×ÓÈÝÆ÷Ïȳõʼ»¯ÔÙ´¥·¢£¬µ«ÊǸ¸ÈÝÆ÷±ØÐëÔÚ³õʼ»¯Ê±¾ÍÒѾ­¼ÓÉÏÁ˶Ô×ÓÈÝÆ÷µÄ¼à¿Ø¡£Õâ¾ÍÔì³ÉÒ»¶Ôì¶Ü£¬¼ÈÏëÏÈÉú³É×ÓÈÝÆ÷ÓÖÏëÏÈÉú³É¸¸ÈÝÆ÷¡£
ÏÈ×Ô¼ºÐ´¶Î´úÂë²âÊÔÒ»ÏÂÉú³É˳Ðò£¬¸¸ÈÝÆ÷
<?xml version="1.0" ......

heatMap ÈÈͼ £¬·þÎñ¶Ë\flex\silverlight

ÕâÁ½Ìì¿´Á˹«Ë¾ÀÏ×ÜÑÝʾµÄÒ»¸öЧ¹û£¬ÈÈͼ·Ö²¼Çé¿ö£¬¸Ð¾õºÜÖ±¹Û¡£¹úÄÚµØͼÉϺÜÉÙÓÐÕâÖÖ±íÏÖ·½Ê½µÄ¡£
gÁËһϷ¢ÏÖÒÔÏ£º·¢ÏÖflexÏÂÓÐ IBM ILOG Elixir ¿ÉÒÔÓ㬲»¹ýÕâÒª»¨Ç®¡£
https://www.adobe.com/cn/products/flex/ibmilogelixir/
»¹ÓÐÒ»¸öHeat API£¬¿ÉÒÔÔÙgooglemapÉϵþ¼ÓÈÈͼ¡£
http://www.heatmapapi.com/ £¬ ......

Flex Êý¾ÝÒ×·¸´íÎó: ³£¼ûÎóÓúʹíÎó

Íü¼Ç½â³ýºÍ³Ðµ£ÄÚ²éй©·çÏÕ
Äã¿ÉÒÔÔÚ MXML ÖÐʹÓà ±ê¼Ç»ò´óÀ¨ºÅÒÔ±ãʵÏְ󶨹¦ÄÜ£¬È»¶øÕâЩ·½·¨½«»á²úÉú¿ªÏú¡£´ËÍ⣬Äã²»Äܹ»Ê¹ÓÃÕâЩ¼¼ÊõÈ¥³ý°ó¶¨¡£Èç¹ûÄãÏ£Íû¶Ô¸ßÐÔÄÜÓ¦ÓóÌÐò½øÐÐÓÅ»¯£¬Äã¿ÉÒÔʹÓà BindingUtils ÀàÀ´°ó¶¨ÄãµÄ¶ÔÏó¡£ BindingUtils ÀàµÄʹÓ÷½Ê½ÓÐÁ½ÖÖ£º
bindProperty() ·½·¨ÊÇÓÃÓڰ󶨹²ÓÐÊôÐԵľ²Ì¬·½ ......

Flex LogÄ£¿éÈëÃż°À©Õ¹

£¨Ò»£©ÈëÃÅ
Flex¼¯³ÉÒ»¸öLog¿ò¼Ü£¬¿ÉÒÔÍê³ÉºÜ¶àÓÃtrace()×ödebugʱÍê³É²»Á˵ŦÄÜ
Êä³ölogʱ¿ÉÒÔʵÏֵַȼ¶£¨¹²5+1¼¶£©£¬ÓùýÂËÆ÷Ö¸¶¨Êä³öµÄÀ࣬ÒÔ¼°Êä³ö·½Ê½£¨Ä¬ÈÏΪtrace£©
ÐèÒªÓõ½µÄÀà
¸ÃÀàλÓÚmx.logging°üÖУ¬
¹²ÐèÒªÈý¸öÀàºÍÒ»¸ö½Ó¿Ú
mx.logging.Log – Ö÷À࣬Óм¸¸ö¾²Ì¬·½·¨£¬Ìí¼Ó/ÒƳýTraceTargetºÍ»ñÈ ......

ÐÞ¸Äflex chartÖÐLegendµÄ×ÖÌåÑùʽ

×î½üÔÚŪFLEXµÄͼ±í, ·¢ÏÖCHART ÖеÄLegend µÄ×ÖÌåͨ¹ýÖ±½ÓÉèÖÃStyle ²¢Ã»Óа취¸Ä±ä×ÖÌå´óС.
google ÁËÏÂ, ·¢ÏÖÁËÕâ¸ö·½·¨: ͨ¹ýÅÉÉúLegendItemÀ࣬²¢ÉèÖÃLegendµÄItemClassÊôÐÔÀ´ÊµÏÖ¡£
LegendItem ÊÇLengend µÄÔªËØ, ¾ÍÊÇÀïÃæÒ»¸öÒ»¸öµÄͼʾ. ͨ¹ýÅÉÉúÕâ¸öÀà, ¾Í¿ÉÒÔÐÞ¸ÄÆäÏàÓ¦µÄÑùʽ.
 
ÅÉÉúLegendItem Àà, ² ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ