<?xml version="1.0" encoding="utf-8"?>
<!-- Simple example to demonstrate the DateTimeAxis class. -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
import mx.collections.ArrayCollection;
import mx.charts.chartClasses.IAxis;
import mx.logging.*;
import mx.logging.targets.*;
[Bindable]
public var stockDataAC:ArrayCollection = new ArrayCollection( [
{date: "2005,1,27", close: 41.71, next: 41.71},
{date: "2005,2,28", close: 42.21, next: 42.71},
{date: "2005,3,29", close: 42.11, next: 43.71},
{date: "2005,4,1", close: 42.71, next: 44.71},
{date: "2005,5,2", close: 42.99, next: 45.71},
{date: "2005,6,3", close: 44, next: 47.71},
{date: "2005,6,27", close: 41.71, next: 41.71},
{date: "2005,7,28", close: 42.21, next: 42.71},
{date: "2005,8,29", close: 42.11, next: 43.71},
{date: "2005,10,1", close: 42.71, next: 44.71},
{date: "2005,11,2", close: 42.99, next: 45.71},
{date: "2005,12,3", close: 44, next: 47.71} ,
{date: "2006,1,27", close: 41.71, next: 41.71},
{date: "2006,2,28", close: 42.21, next: 42.71},
{date: "2006,3,29", close: 42.11, next: 43.71},
{date: "2006,4,1", close: 42.71, next: 44.71},
{date: "2006,5,2", close: 42.99, next: 45.71},
{date: "2006,6,3", close: 44, next: 47.71},
{date: "2006,6,27", close: 41.71, next: 41.71},
最近几天,一直在研究flex,说句实在的,其中的苦恼不是一句话两句话能说清楚的.没有接触过啊!不过现在总算是把数据库连上了,做出了自己想要的东西.废话少说,现在呢,我就把我做的代码贴出来,给大家看看,多提宝贵意见.
我用的是jdbc的连接方式(hibernate的连接方式我看网上有,所以就不贴出来了)
1.flex代码
<?xml version ......