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:"*", Profit:20, Expenses:15},
{Month:"**", Profit:10, Expenses:20},
{Month:"***", Profit:30, Expenses:40},
{Month:"****", Profit:15, Expenses:25},
{Month:"*****", 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) + "%";
}
// This method customizes the values of the axis labels.
// This signature (with 4 arguments) is for a CategoryAxis.
public function defineLabel(
cat:Object,
pcat:Object,
ax:CategoryAxis,
labelItem:Object):String
{
// Show contents of the labelItem:
for (var s:String in labelItem) {
trace(s + ":" + labelItem[s]);
}
// Return the customized categoryField value:
//return cat + "";
return '<font size="35"><font color="#ff0000">' + cat + '</font></font>';
//'<font color="#ff0000">'
Ïà¹ØÎĵµ£º
Ìáµ½web¼´Ê±Í¨ÐÅ£¬¿ÉÄÜ´ó¼ÒÁ¢¼´»áÏëµ½ajax¶¨Ê±ÇëÇó¡¢·þÎñÆ÷ÍÆµÈ½â¾ö·½°¸£¬µ«ÕâÀïÎÒҪ˵µÄÊÇÒ»ÖÖ×ۺϵĽâ¾ö·½°¸£¬Ê¹ÓÃAdobeµÄFlex XmlSocket¡¢javascriptÒÔ¼°·þÎñÆ÷¶Ë¼¼Êõ£¬½¨Á¢ÕæÕýµÄweb¼´Ê±Í¨ÐÅ¡£µ±È»Õ⻹ÊÜÒæÓÚflashµÄÆÕ¼°£¬´ó²¿·ÖÓû§µÄä¯ÀÀÆ÷¶¼°²×°ÁËFlash player²å¼þ£¬´Ó¶ø±£Ö¤´Ë·½°¸Î ......
Flex×é¼þÄÚÖÃÁË´¦ÀíÍÏקʼþµÄ½Ó¿Ú£¬ÓÐЩ¿Ø¼þÒѾʵÏÖÁËÍÏ×§¹¦ÄÜ£¬±ÈÈçList¡¢DataGrid¡¢Menu¡¢
HorizontalList¡¢ PrintDataGrid¡¢TileList¡¢Tree£¬ÔÚÉèÖÃÏà¹ØµÄÍÏ×§ÊôÐÔºó£¬ËüÃǶ¼¿ÉÒÔÔÚÏàͬÀàÐ͵Ä×é
¼þÖ®¼äÀûÓÃÊó±êÀ´ÊµÏÖÊý¾ÝµÄ×ªÒÆ¡£
allowDragSelection ......
Ò»¡¢×¼±¸¹¤×÷£º
ËùÐèÒªµÄÈí¼þ£º
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 ......
<?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.ser ......