/ Published in: ActionScript 3
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?xml version="1.0" encoding="utf-8"?> <components:View xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:components="spark.components.*" xmlns:banks="services.banks.*" title="Singapore Bank Opening Hours" creationComplete="srv.send()"> <fx:Declarations> <s:HTTPService id="srv" url="assets/banks.xml"/> </fx:Declarations> <s:List id="list" left="0" right="0" top="0" bottom="0" dataProvider="{srv.lastResult.list.bank}" enabled="true" labelField="name"/> </components:View>