Over 10 years of community discussion and knowledge are maintained here as a read-only archive.
<?xml version="1.0" encoding="utf-8"?><mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" > <mx:Script> <![CDATA[ public var enUS:XML = <labels locale="en_US"> <PanelTitle text="Blow up the universe?"/> <PanelText>The night sky over the planet Krikkit is the least interesting sight in the Universe. But the people of Krikkit are planning to do something about it - destroy the rest of the Universe. </PanelText> <CancelButton text="Cancel"/> <SubmitButton text="Submit"/> </labels>; public var frFR:XML = <labels locale="en_US"> <PanelTitle text="Faites sauter l'univers?"/> <PanelText>Le ciel de nuit au-dessus de la planète Krikkit est la moindre vue intéressante dans l'univers. Mais les personnes de Krikkit prévoient de faire quelque chose à son sujet - détruisez le reste de l'univers. </PanelText> <CancelButton text="Annulation"/> <SubmitButton text="Soumettez"/> </labels>; [Bindable] public var labels:XML; ]]> </mx:Script> <mx:Panel id="pnlTest" title="{labels.PanelTitle.@text}" horizontalAlign="center" verticalAlign="center" width="50%" height="25%" layout="vertical"> <mx:HBox width="100%" horizontalAlign="right"> <mx:LinkButton click="labels=enUS" label="English"/> <mx:LinkButton click="labels=frFR" label="Français"/> </mx:HBox> <mx:Text text="{labels.PanelText}"/> <mx:ControlBar horizontalAlign="right"> <mx:Button id="btnCancel" label="{labels.CancelButton.@text}"/> <mx:Button id="btnSubmit" label="{labels.SubmitButton.@text}"/> </mx:ControlBar> </mx:Panel></mx:Application>