flex图表坐标轴样式设置
<?xml version="1.0"?>
<!-- Simple example to demonstrate the ColumnChart and BarChart controls. -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
creationComplete="initApp()"
backgroundColor="#FFFFFF" width="350" height="125"
layout="absolute">
<!-- 鼠标指中时候弹出提示框的样式,可根据个人情况而修改 -->
<mx:Style>
*{
fontFamily:”Verdana”,”宋体”;
fontSize: 12;
}
</mx:Style>
<mx:Script>
<!--[CDATA[
//导入相关包
import mx.collections.ArrayCollection;
import mx.charts.*;
import mx.charts.series.ColumnSeries;
import mx.charts.series.BarSeries;
import mx.charts.chartClasses.Series;
import mx.collections.ArrayCollection;
import mx.graphics.IFill;
import mx.charts.ChartItem;
import mx.charts.series.items.ColumnSeriesItem;
import mx.charts.series.items.BarSeriesItem;
import mx.charts.CategoryAxis;
import mx.graphics.SolidColor;
//颜色集合
private var arrayColor:Array=["#FF8000", "#00FFFF"];
private static var cnt:int=0;
//定义生成柱状图的数组
[Bindable]
private var medalsAC:ArrayCollection=new ArrayCollection([{date: "重复信息", close: 28, open: 0}, {date: "全部信息", close: 0, open: 100}]);
private var obj2:Array=[{xField: "close", displayName: "left"}, {xField: "open", displayName: "right"}];
/**
* 初始化方法
*/
internal function initApp():void
{
//var aryDailyVoucher:Array=[{date: "type1", close: 41.71}, {date: "type12", close: 44},];
// var obj2:Array=[{xField: "close", displayName: "left"}, {xField: "open", displayName: "right"}];
// bar.dataProvider=medalsAC;
// bar.verticalAxis=setCategoryAxis("date");
// bar.series=setColumnSeries(obj2, "date");
// bar.setStyle("barWidthRatio", 0.5);
}
// /**
// *设置颜色
// */
public functi
相关文档:
由于本人最近忙于找工作和毕业设计,没有时间来继续这个系列, 只写了第一篇,自己也深感惭愧,这一篇介绍一下这个demo的整体架构吧,先贴下下载地址。http://download.csdn.net/source/2118707
目前服务端已完成登陆注册模块,使用Socket编程,TCP协议。等服务端完成将完整的编写一个系列的教程。~~
......
这样的一种情况:
使用Loader去load一个swf:
var fileURL:String = “assets/test.swf”
var swfLoader:Loader = new Loader();
swfLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, swfLoaded);
swfLoader.load(new URLRequest(fileURL));
function swfLoaded(evt:Event):void{
&n ......
Flex DataGrid组件
实际上,DataGrid组件是属于列表组件的,之所以单独拿出来讲解,主要是因为 DataGrid组件有着很强大的功能,也有很多扩展的应用是在开发中经常用到的。DataGrid组件是按照行和列的形式显示数据的。有几个类是只有 DataGrid组件才能使用的,包括DataGridCellEditor类、DataGridColumn类和HeaderRendere ......
我以前一直从事桌面开发,尤其数据处理的的系统较多。使用较多的是开发工具是VFP,它有自带的数据库,也可以使用大型的数据库系统,既可以开发系统也可以用命令行进行管理数据。但,它在不久的将来就MS不再抚养这个买来的儿子了,操作的系统的换代等等多种因素影响,不管它是否会消忘,但始终也会 ......
Are you running your Flex Application and continually getting the error below?
"Flex Builder cannot locate the required version of the Flash Player. You might need to install Flash Player 9 or reinstall Flex Builder. Do you want to try to run your application with the current version?"
Description ......