Note that there are some explanatory texts on larger screens.

plurals
  1. POAmChart component is not rendering (AIR app)
    primarykey
    data
    text
    <p>Our AIR app consists from multiple modules. Each module extends MovieClip class. But when I am adding AmChart component to one of these modules, it is not rendering. Here the sample (PieChart.mxml):</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;s:SkinnableContainer xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:amcharts="http://www.amcharts.com/com_internal" width="100%" height="100%"&gt; &lt;fx:Declarations&gt; &lt;!-- Place non-visual elements (e.g., services, value objects) here --&gt; &lt;/fx:Declarations&gt; &lt;fx:Script&gt; &lt;![CDATA[ import mx.collections.ArrayCollection; [Bindable] private var chartData:ArrayCollection = new ArrayCollection([ {country:"Czech Republic",litres:156.90}, {country:"Ireland",litres:131.10}, {country:"Germany",litres:115.80}, {country:"Australia",litres:109.90}, {country:"Austria",litres:108.30}, {country:"UK",litres:99.00}, {country:"Belgium",litres:93.00}]); ]]&gt; &lt;/fx:Script&gt; &lt;amcharts:AmPieChart width="100%" height="100%" dataProvider="{chartData}" titleField="country" valueField="litres"/&gt; &lt;/s:SkinnableContainer&gt; </code></pre> <p>And this is a sample usage: var chart:PieChart = new PieChart();<br> cContainer.addChild(chart);</p> <pre><code>cContainer - is instance of MovieClip. </code></pre> <p>Can you suggest why this is not rendering? Maybe this seems a silly question, but I am a quite newbie to Flex. Please, help.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload