blob: bdc194a46aedaa782545061678823f3e409031e6 [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<s:Application
backgroundColor="0xFFFFFF"
height="375" width="500"
xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark">
<fx:Script>
<![CDATA[
import mx.core.UIComponent;
import mx.events.StateChangeEvent;
public function doManualReset():void{
if(currentState == "defaultState"){
dispatchEvent(new Event("manualResetComplete"));
}else{
addEventListener("currentStateChange", handleCurrentStateChange);
currentState = "defaultState";
}
}
// This is the listener, set above.
private function handleCurrentStateChange(e:StateChangeEvent):void{
dispatchEvent(new Event("manualResetComplete"));
}
]]>
</fx:Script>
<fx:Style>
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/mx";
@font-face{
src: url("../../../../../Assets/Fonts/PT_Serif/PT_Serif-Web-Regular.ttf");
fontFamily: myArial;
embedAsCFF: true;
}
@font-face{
src: url("../../../../../Assets/Fonts/PT_Serif/PT_Serif-Web-Bold.ttf");
fontWeight: bold;
fontFamily: myArial;
embedAsCFF: true;
}
@font-face{
src: url("../../../../../Assets/Fonts/PT_Serif/PT_Serif-Web-Italic.ttf");
fontStyle: italic;
fontFamily: myArial;
embedAsCFF: true;
}
s|CheckBox{
fontAntiAliasType: "normal";
fontFamily: myArial;
fontSize: 12;
fontLookup: "embeddedCFF";
}
</fx:Style>
<s:states>
<s:State name="defaultState" />
<s:State name="state02" />
</s:states>
<s:layout>
<s:VerticalLayout/>
</s:layout>
<s:CheckBox id="stateCB1" label="CB1 No state specified" color.defaultState="0xFF0000" color.state02="0x00FF00"/>
<s:CheckBox id="stateCB2" label="CB2 includeIn S1" includeIn="defaultState"/>
<s:CheckBox id="stateCB3" label="CB3 excludeFrom S1" excludeFrom="defaultState"/>
<s:CheckBox id="stateCB4" label="CB4 includeIn S2" includeIn="state02"/>
<s:CheckBox id="stateCB5" label="CB5 includeIn S1 S2" includeIn="defaultState, state02"/>
<s:CheckBox id="stateCB6" label.defaultState="CB6 Default Label" label.state02="CB6 S2 Label" includeIn="defaultState, state02"/>
</s:Application>