Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I believe it should look something like this:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;s:BorderContainer 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:components="com.fusionwidgets.components.*" creationComplete="init();"&gt; &lt;fx:Script&gt; &lt;![CDATA[ import flash.events.Event; import flash.net.URLLoader; import flash.net.URLRequest; import mx.collections.ArrayCollection; protected var xmlLoader:URLLoader; [Bindable] protected var xml:XML; /** * */ protected function init():void { xmlLoader = new URLLoader(); xmlLoader.addEventListener(Event.COMPLETE, parse); xmlLoader.load(new URLRequest("data.xml")); }; /** * * @param event */ protected function parse(event:Event):void { xml = event.target.data; xml.ignoreWhitespace = true; xml.ignoreComments = true; xml.chart.@upperLimit = 100; xml.chart.dials.dial.@value = 0; xml.chart.colorRange.color.@maxValue = 100; fw.dataProvider = new ArrayCollection(xml); }; ]]&gt; &lt;/fx:Script&gt; &lt;components:FusionWidgets id="fw" FCChartType="AngularGauge" /&gt; &lt;/s:BorderContainer&gt; </code></pre> <p>I think you should check the component's documentation for more details about how it handles the data provider.</p> <p>Good luck, Rob</p> <p>////////////////////////////////////</p> <p>Hi,</p> <p>after you loaded the XML file in to an XML object you can set the attributes' and elements' values.</p> <p>For instance:</p> <pre><code>xml.chart.@upperLimit = 100; xml.chart.dials.dial.@value = 0; xml.chart.colorRange.color.@maxValue = 100; </code></pre> <p>I hope this is what you need, Rob</p>
    singulars
    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. VO
      singulars
      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