1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" creationComplete="onCreationComplete()" width="100%" height="100%">
<fx:Declarations>
<!-- Placer ici les éléments non visuels (services et objets de valeur, par exemple). -->
</fx:Declarations>
<fx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
private var listDB:ArrayCollection=new ArrayCollection([
{label: "Formulaire1", photo: "images/form1.png", title: "Formulaire1", module: "modules/Formulaire1.swf"},
{label: "Formulaire2", photo: "images/form2.png", title: "Formulaire2", module: "modules/Formmulaire2.swf"},
{label: "Formulaire3", photo: "images/form3.png", title: "Formulaire3", module: "modules/Formulaire3.swf"}
]);
]]>
</fx:Script>
<s:VGroup width="100%" height="100%">
<s:List x="0" y="0" dataProvider="{listDB}"
itemRenderer="HListItem"
width="100%" id="hMenu" height="75" selectedIndex="0">
<s:layout>
<s:HorizontalLayout columnWidth="88"
gap="0"/>
</s:layout>
</s:List>
<s:Group width="100%" height="100%">
<mx:ModuleLoader id="mod" width="100%" height="100%" url="{hMenu.selectedItem.module}" applicationDomain="{ApplicationDomain.currentDomain}"/>
</s:Group>
</s:VGroup>
</s:Application> |