flex2专题

Flex2 Chart - Notes

最近写了一点点Flex2 Chart的代码, 记录下一些东西: 1. chart界面各组成部分一般都是可以自定义的, 对应各自的render. 2. 改变PlotSeries中点的颜色, 没有直接的color属性, 需要设置它的style实现. 如下面代码改变点的颜色为0xeec500:<mx:PlotSeries id="plot1" xField="day" yField="price"

Flex2 z-order问题解决

在flex2中, 一个容器的子控件相互重叠(如Canvas), 由z-order决定. swapChildren, swapChildrenAt用来交换两个子控件的z-order, 但有时会抛如下异常: can1.swapChildrenAt(1, 0);RangeError: Error #2006: The supplied index is out of bounds. can1.swa