[flex] 用as动态添加一条Y轴,不能使用LinearAxis.id属性么?

jrunner 2011-03-04
la.id="first";部分为什么会报错呢?如果id不能用,那么如何管理这条y轴呢
var arsarr:Array=new Array();                        
function clickfunc(){

arsarr=myChart.verticalAxisRenderers;

var ar:AxisRenderer=new AxisRenderer();

ar.placement="right";

var la:LinearAxis=new LinearAxis();

la.id="first";

ar.axis=la;

arsarr.push(ar);

myChart.verticalAxisRenderers=arsarr;

}
Global site tag (gtag.js) - Google Analytics