flex ͼ±êÉèÖðٷֱȻòÕßÆäËü·ûºÅ
<?xml version="1.0"?>
<!-- charts/PredefinedAxisStyles.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
<!--[CDATA[
//µ¼ÈëÏà¹Ø°ü
import mx.collections.ArrayCollection;
import mx.charts.*;
import mx.charts.series.items.ColumnSeriesItem;
import mx.charts.ChartItem;
import mx.charts.chartClasses.Series;
import mx.charts.chartClasses.IAxis;
import mx.utils.ObjectUtil;
[Bindable]
public var expenses:ArrayCollection = new ArrayCollection([
{Month:"Jan", Profit:20, Expenses:15},
{Month:"Feb", Profit:10, Expenses:20},
{Month:"Jun", Profit:30, Expenses:40},
{Month:"Aug", Profit:15, Expenses:25},
{Month:"Set", Profit:40, Expenses:45}
]);
public function myLabelFormat(obj:Object,pcat:Object,ax:LinearAxis):String
{
return numForm.format(obj)+"%";
}
private function setCustomLabel(element:ChartItem, series:Series):String {
// Get a refereence to the current data element.
var data:ColumnSeriesItem = ColumnSeriesItem(element);
// Get a reference to the current series.
var currentSeries:ColumnSeries = ColumnSeries(series);
// Create a return String and format the number.
return numForm.format(data.yNumber) + "%";
}
public function myLabelDisplay(hd:HitData):String{
//return hd.displayText + "%";
// var curObj:Object = hd.item;
// var curSeries:BarSeries = BarSeries(hd.chartItem.element); // »ñµÃµ±Ç°µÄBarSeries
// return curObj.qual + "-" + curSeries.displayName + "\n"
// + uqStatistics.getUQAs(curSeries.xField, curObj.qualObj).length
// + RM.getString(BUNDLE_DASHBOARD, "label.piece");
var curObj:Object = hd.item;
var curSeries:ColumnSeries = ColumnSeries(hd.chartItem.element);
if(curSeries.yField == "Profit")
return curSeries.yField + ":" + hd.item
Ïà¹ØÎĵµ£º
1. ÕûÌåµÄ½á¹¹·Ö²¼£º
¸÷Ä£¿éʹÓÃModuleÀ´»®·Ö£¬Ã¿¸öÄ£¿éµÄÒ³Ãæ¼°ÆäÏà¹ØµÄ×é¼þÔªËض¼ÊÇʹÓÃComponentÀ´»®·Ö£»
Ä£¿éµÄÇл»Ê¹ÓüÓÔصķ½Ê½£¬Ä£¿éÄÚ²¿µÄÇл»Ê¹ÓÃÒ³ÃæÌøתµÄ·½Ê½£»
¼¼ÊõÎÊÌ⣺ģ¿éµÄÇл»ÓëÒ³ÃæµÄÇл»µÄ¹ý³Ì£¡
ModuleLoaderÓëModuleManagerÖ®¼äµÄÈ¡ÉᣬѡÔñÁ˺óÕߣ¬¿É¿ØµÄ¸ü¶à£¬µ«ÊÇÄ¿Ç°µÄÓ°Ïì²¢²»´ó£¡
¹ØÓÚM ......
FlexÖÐAsµ÷ÓÃJsµÄ·½·¨ÊÇ£º
1¡¢µ¼Èë°ü £¨import flash.external.ExternalInterface;£©
2¡¢Ê¹ÓÃExternalInterface.call("Jsº¯ÊýÃû³Æ",²ÎÊý)½øÐе÷Óã¬Æä·µ»ØµÄÖµ¾ÍÊÇJsº¯ÊýËù·µ»ØµÄÖµ
Jsµ÷ÓÃAsµÄ·½·¨ÊÇ£º
1¡¢µ¼Èë°ü £¨import flash.exte ......
Ìáµ½web¼´Ê±Í¨ÐÅ£¬¿ÉÄÜ´ó¼ÒÁ¢¼´»áÏëµ½ajax¶¨Ê±ÇëÇó¡¢·þÎñÆ÷ÍƵȽâ¾ö·½°¸£¬µ«ÕâÀïÎÒҪ˵µÄÊÇÒ»ÖÖ×ۺϵĽâ¾ö·½°¸£¬Ê¹ÓÃAdobeµÄFlex XmlSocket¡¢javascriptÒÔ¼°·þÎñÆ÷¶Ë¼¼Êõ£¬½¨Á¢ÕæÕýµÄweb¼´Ê±Í¨ÐÅ¡£µ±È»Õ⻹ÊÜÒæÓÚflashµÄÆÕ¼°£¬´ó²¿·ÖÓû§µÄä¯ÀÀÆ÷¶¼°²×°ÁËFlash player²å¼þ£¬´Ó¶ø±£Ö¤´Ë·½°¸Î ......
Ò»¡¢×¼±¸¹¤×÷£º
ËùÐèÒªµÄÈí¼þ£º
Tomcat 5£º http://tomcat.apache.org/
FlexBuilder3 beta2 ²å¼þ°æ: FB3_WWEJ_Plugin
Eclipse 3.3 : www.eclipse.org
»òÕß
MyEclipse 6.0£ºhttp://www.myeclipseide.com/
Blazeds.war£ºhttp://flexorg.wip3.adobe.com/blazeds/3.0.x/milestone/3978/blazeds-bin-3.2.0.39 ......
Flex DataGrid×é¼þ
ʵ¼ÊÉÏ£¬DataGrid×é¼þÊÇÊôÓÚÁбí×é¼þµÄ£¬Ö®ËùÒÔµ¥¶ÀÄóöÀ´½²½â£¬Ö÷ÒªÊÇÒòΪ DataGrid×é¼þÓÐןÜÇ¿´óµÄ¹¦ÄÜ£¬Ò²ÓкܶàÀ©Õ¹µÄÓ¦ÓÃÊÇÔÚ¿ª·¢Öо³£Óõ½µÄ¡£DataGrid×é¼þÊÇ°´ÕÕÐкÍÁеÄÐÎʽÏÔʾÊý¾ÝµÄ¡£Óм¸¸öÀàÊÇÖ»ÓÐ DataGrid×é¼þ²ÅÄÜʹÓõģ¬°üÀ¨DataGridCellEditorÀà¡¢DataGridColumnÀàºÍHeaderRendere ......