Skip to content

Instantly share code, notes, and snippets.

@olafkrueger
Last active December 25, 2017 22:33
Show Gist options
  • Save olafkrueger/f521e91fe95bf5b3b03eddcc48e87f40 to your computer and use it in GitHub Desktop.
Save olafkrueger/f521e91fe95bf5b3b03eddcc48e87f40 to your computer and use it in GitHub Desktop.
States doesn't work for me...
<?xml version="1.0" encoding="utf-8"?>
<js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:js="library://ns.apache.org/royale/basic"
xmlns:local="*"
pageTitle="HelloWorld">
<js:valuesImpl>
<js:SimpleCSSValuesImpl />
</js:valuesImpl>
<js:initialView>
<js:View id="myView" width="100%" height="100%" currentState="default">
<js:states>
<js:State name="default"/>
<js:State name="busy"/>
</js:states>
<js:TextButton id="txtBtn" text.default="Hello World" text.busy="Busy... just for you" width="200" height="50" click="{myView.currentState='busy'}" />
</js:View>
</js:initialView>
</js:Application>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment