rf-web/vendor/bundle/gems/rouge-3.12.0/lib/rouge/demos/mxml
2019-10-21 10:18:17 +02:00

23 lines
611 B
XML

<?xml version="1.0"?>
<s:ComboBox xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">
<fx:Script>
<![CDATA[
[Bindable]
private var buttonLabel:String = "Click me!";
private var clicks:int = 0;
function button_clicked():void {
clicks++;
buttonLabel = clicks.toString();
}
]]>
</fx:Script>
<s:Button id="button"
label="{buttonLabel}"
click="{button_clicked()}" />
</s:ComboBox>