| <?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" |
| xmlns:local="*" |
| height="500" |
| width="600" |
| xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark" > |
| |
| <s:layout> |
| <s:VerticalLayout/> |
| </s:layout> |
| |
| <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-Italic.ttf"); |
| fontFamily: MyArial; |
| embedAsCFF: true; |
| } |
| |
| @font-face { |
| src: url("../../../../../Assets/Fonts/PT_Serif/PT_Serif-Web-Bold.ttf"); |
| fontFamily: MyArial; |
| embedAsCFF: true; |
| } |
| |
| @font-face { |
| src: url("../../../../../Assets/Fonts/PT_Serif/PT_Serif-Web-Regular.ttf"); |
| fontFamily: MyArialHalo; |
| embedAsCFF: false; |
| } |
| |
| @font-face { |
| src: url("../../../../../Assets/Fonts/PT_Serif/PT_Serif-Web-Italic.ttf"); |
| fontFamily: MyArialHalo; |
| embedAsCFF: false; |
| } |
| |
| @font-face { |
| src: url("../../../../../Assets/Fonts/PT_Serif/PT_Serif-Web-Bold.ttf"); |
| fontFamily: MyArialHalo; |
| embedAsCFF: false; |
| } |
| |
| mx|Label{ |
| fontAntiAliasType: "normal"; |
| fontFamily: MyArialHalo; |
| fontSize: 12; |
| } |
| |
| global{ |
| fontAntiAliasType: "normal"; |
| fontFamily: MyArial; |
| fontSize: 12; |
| fontLookup: "embeddedCFF"; |
| } |
| |
| </fx:Style> |
| |
| <fx:Script> |
| <![CDATA[ |
| |
| public function checkHSliderVal():Boolean |
| { |
| if(myHSlider.value == 10) |
| return true; |
| else |
| return false; |
| } |
| |
| public function checkVSliderVal():Boolean |
| { |
| if(myVSlider.value == 10) |
| return true; |
| else |
| return false; |
| } |
| |
| ]]> |
| </fx:Script> |
| |
| <mx:Spacer height="10" /> |
| |
| <mx:Box id="HSbox" paddingTop="40" paddingBottom="5" paddingRight="5" paddingLeft="10"> |
| <s:HSlider id="myHSlider" /> |
| </mx:Box> |
| |
| <mx:Box id="VSbox" paddingTop="5" paddingBottom="5" paddingRight="70" paddingLeft="5"> |
| <mx:Spacer width="10" /> |
| <s:VSlider id="myVSlider" /> |
| </mx:Box> |
| |
| <mx:HBox> |
| <mx:Spacer width="10" /> |
| <s:Group> |
| <s:layout> |
| <s:VerticalLayout/> |
| </s:layout> |
| <s:HSlider id="myGroupHSlider" /> |
| <s:VSlider id="myGroupVSlider" /> |
| </s:Group> |
| </mx:HBox> |
| |
| <mx:HBox> |
| <mx:Spacer width="10" /> |
| <local:mySkinHSliderComp id="mySkinHSlider" /> |
| |
| <mx:Spacer width="10" /> |
| <local:mySkinVSliderComp id="mySkinVSlider" /> |
| </mx:HBox> |
| <mx:Canvas width="595" height="55" y="55"> |
| <mx:Box paddingLeft="5" paddingRight="5" paddingTop="5" paddingBottom="5" id="focusColor_hslider_box" > |
| <s:HSlider x="3" id="focusColor_hslider" focusColor="0xCC0033" /> |
| </mx:Box> |
| <s:HSlider x="273" id="baseColor_hslider" chromeColor="0xFFFF00" /> |
| </mx:Canvas> |
| </s:Application> |