| <?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="300" |
| width="300" |
| xmlns:fx="http://ns.adobe.com/mxml/2009" |
| xmlns:mx="library://ns.adobe.com/flex/mx" |
| xmlns:s="library://ns.adobe.com/flex/spark" |
| xmlns:comps="comps.*"> |
| |
| <fx:Style> |
| @namespace s "library://ns.adobe.com/flex/spark"; |
| @namespace mx "library://ns.adobe.com/flex/mx"; |
| @namespace c "comps.*"; |
| |
| @font-face { |
| src: url("../../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf"); |
| fontFamily: MyArial; |
| embedAsCFF: true; |
| } |
| |
| @font-face { |
| src: url("../../../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf"); |
| fontFamily: MyArial; |
| fontStyle: italic; |
| embedAsCFF: true; |
| } |
| |
| @font-face { |
| src: url("../../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf"); |
| fontFamily: MyArial; |
| fontWeight: bold; |
| embedAsCFF: true; |
| } |
| |
| @font-face { |
| src: url("../../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf"); |
| fontFamily: MyArialHalo; |
| embedAsCFF: false; |
| } |
| |
| @font-face { |
| src: url("../../../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf"); |
| fontFamily: MyArialHalo; |
| embedAsCFF: false; |
| } |
| |
| @font-face { |
| src: url("../../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf"); |
| fontFamily: MyArialHalo; |
| embedAsCFF: false; |
| } |
| |
| s|NumericStepper{ |
| fontAntiAliasType: "normal"; |
| fontFamily: MyArial; |
| fontSize: 12; |
| fontLookup: "embeddedCFF"; |
| } |
| |
| c|mySkinComp |
| { |
| skinClass: ClassReference("skins.myNumericStepperSkin"); |
| } |
| |
| mx|Label{ |
| fontAntiAliasType: "normal"; |
| fontFamily: MyArialHalo; |
| fontSize: 12; |
| } |
| </fx:Style> |
| |
| <s:layout><s:VerticalLayout/></s:layout> |
| |
| <mx:VBox id="myVbox"> |
| |
| <mx:Spacer height="10" /> |
| |
| <mx:HBox> |
| <mx:Spacer width="10" /> |
| <comps:myCustomNS id="myNS" height="23"/> |
| <mx:Spacer width="10" /> |
| </mx:HBox> |
| |
| <mx:Spacer height="10" /> |
| |
| <mx:Label |
| id="myLabel" |
| text="Value = {myNS.value}" /> |
| |
| </mx:VBox> |
| |
| <comps:myComp2 id="myNS_dff" /> |
| <mx:Label id="myNS_eff_label" text="Value = {myNS_dff.value}"/> |
| |
| <comps:mySkinComp id="myNS_skinned" /> |
| |
| </s:Application> |