I'm changing my code to create my column chart entirely via AS3, rather
than using MXML tags. Everything works fine except I can't figure out
how to access my linear and category axis at runtime. When built using
mxml tags, these have id's that I can use to, for example, change the
labelFunction:
AS3:
ca1.labelFunction=myNewLabelFunction;
MXML:
<mx:horizontalAxis>
<mx:CategoryAxis id="ca1" labelFunction="myFirstLabelFunction"/>
</mx:horizontalAxis>
However, when creating the Axis objects in AS3, you can't set id's to
the Category (or linear, etc) Axis. So, once they're created, I'm not
seeing how to then access these objects. Probably simple, but I can't
seem to find anything helpful in the docs (I'm using Flex 3 Beta 3).
Can anyone point me to the correct method?
Thanks in advance,
Ed