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">'
Ïà¹ØÎĵµ£º
·ÏÂÃæ½éÉÜFlexÓë.NETµÄWebServiceµÄÊý¾ÝͨÐÅ֪ʶµã;°üÀ¨Á¬½ÓWebService£¬Ô¶³Ìµ÷ÓÃWebService·½·¨£¬¸øWebService·½·¨´«µÝ²ÎÊýµÈÏà¹Ø֪ʶµã¡£
¡¡¡¡<mx:WebServiceid="dataService"
¡¡¡¡¡¡¡¡wsdl="http://localhost/FlashFlex/DataWebService.asmx?wsdl"
¡¡¡¡¡¡¡¡useProxy="false">
¡¡¡¡¡¡¡¡<mx:ope ......
½ñÌì¸Õ½Ó´¥Flex£¬µ«Êǵ±ÎÒ°Ñ´úÂë±àдÍê³ÉÔËÐеÄʱºò±¨ÏÂÁËÈçÏ´íÎó£º
C:\WINDOWS\system32\Macromed\Flash\Flash10e.ocx
Flex Builder cannot locate the required debugger version of Flash Player.
You might need to install the debugger version of Flash Player 9 or
reinstall Flex Builder.
Do you want to ......
ÕâÁ½Ìì×¼±¸Ñ§Ï°Flex,ÓÚÊÇÏÂÔØÁËFlex Builder 3.0 For Eclipse plugin×¼±¸°²×°.
µ«ÊÇ°²×°ºóÆô¶¯Eclipse,ÕÒÁË°ëÌìҲûÕÒµ½Flex.¶øÇÒFlex Builder»á°ÑJREÒ²°²×°.¾õµÃÕâÑùºÜ²»Ë¬.
ËùÒÔÎÒÏëµ½Äܲ»ÄÜÀ´¸öFlex BuilderÂÌÉ«°²×°·½·¨ÄØ.
Ïëµ½¾Í×ö.ÏÂÃæÊÇÎҵݲװ¹ý³Ì.(Ç°ÌáÊÇϵͳÒѾÓÐJRE,ÇÒJAVA»·¾³±äÁ¿ÒѾÅäÖÃOK,´Ë´¦ÂÔ¹ý¸ ......