Thanks, but didn't really help.
I did find the solution, though.
It appears that there is a bug that swf modules that are loaded cannot display
text using embedded fonts unless you include a reference to the control that
uses it in the module's parent application.
<!-- code in parent --->
<mx:Script>
<![CDATA[
import mx.charts.ColumnChart;
private var columnChartRef:ColumnChart;
]]>
</mx:Script>
<mx:Style>
@font-face{
src: url("arial.ttf");
fontFamily: Arial;
}
ColumnChart {
fontFamily: Arial;
fontSize: 10;
}
</mx:Style>
<!-- /code in parent --->
<!-- code in module --->
<mx:ColumnChart id="myChart" dataProvider="{weeks}"
showDataTips="true" width="5000" itemClick="myHandler(event);">
<mx:horizontalAxis>
<mx:CategoryAxis
dataProvider="{weeks}"
categoryField="Timeline"
id="a1"
/>
</mx:horizontalAxis>
<mx:horizontalAxisRenderers>
<mx:AxisRenderer labelRotation="45"
axis="{a1}"/>
</mx:horizontalAxisRenderers>
<mx:series>
<mx:ColumnSeries
columnWidthRatio=".9"
xField="Timeline"
yField="Count"
displayName="Count"
>
<mx:fill>
<mx:SolidColor
color="0x336699"/>
</mx:fill>
</mx:ColumnSeries>
</mx:series>
</mx:ColumnChart>
<!-- /code in module --->
--- In [email protected], Alex Harui <aha...@...> wrote:
>
> You may need to use contextualclassfactory. See the most recent post on my
> blog
>
> --
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
>
> On 4/19/10 7:03 AM, "BillF" <bill.frank...@...> wrote:
>
>
>
>
>
>
> During troubleshooting, I noticed that the labels will appear if I use a
> ModuleLoader on a MXML page, instead of using the ModuleManager via
> ActionScript...however, the embedded fonts (that rotate the label text 45
> degrees for the x-axis) no longer rotate the text...I am not sure if that is
> because the font is embedded in the module and not the application...
>
> However, I don't think the ModuleLoader is the solution, as this application
> needs to be more dynamic in nature.
>
> Thoughts?
>
> --- In [email protected] <mailto:flexcoders%40yahoogroups.com> ,
> "BillF" <bill.franklin@> wrote:
> >
> > Hello, I am having a weird issue when trying to display a chart inside a
> > Module. The horizontal and vertical axis labels do not show up. However,
> > the exact same chart, when displayed inside a standalone Application,
> > displays the labels correctly.
> >
> > Has anyone run into this? Can anyone point me in the right direction?
> >
> > Thanks!
> >
>