| <?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:fx="http://ns.adobe.com/mxml/2009" |
| xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark" |
| height="600" width="800" layoutDirection="rtl" direction="rtl"> |
| <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; |
| |
| } |
| |
| global{ |
| fontAntiAliasType: "normal"; |
| fontFamily: myArial; |
| fontSize: 12; |
| fontLookup: "embeddedCFF"; |
| } |
| |
| </fx:Style> |
| |
| <fx:Script> |
| <![CDATA[ |
| import mx.collections.ArrayCollection; |
| |
| public var stateInfo:ArrayCollection = new ArrayCollection(['Alabama', 'Alaska', 'Arizona', 'Arkansas', 'California']); |
| |
| public var holidayWords:ArrayCollection = new ArrayCollection(['Holiday', 'Snow', 'Kwanza', 'Red']); |
| |
| public var travelWords:ArrayCollection = new ArrayCollection(['Baggage', 'Ticket', 'Taxi', 'Flight', 'Gate', 'Airport']); |
| ]]> |
| </fx:Script> |
| |
| <s:VGroup x="20" y="20" gap="20"> |
| <s:Rect width="500" height="1"> |
| <s:fill> |
| <mx:SolidColor color="0x666666" /> |
| </s:fill> |
| </s:Rect> |
| <s:HGroup gap="12"> |
| <s:Button id="btn" label="Button" /> |
| <s:ToggleButton id="togBtn" label="Toggle Button" /> |
| <s:CheckBox id="ckBox" label="Check Box" /> |
| <s:RadioButton id="radBtn" label="RadioButton" /> |
| <s:HSlider id="hslide" /> |
| </s:HGroup> |
| <s:HGroup> |
| <s:HScrollBar id="hscroll" /> |
| <s:NumericStepper id="ns" /> |
| <s:Spinner id="spin" /> |
| <s:TextInput id="ti" height="24" text="Text Input" /> |
| <s:TextArea id="ta" height="155" text="Text Area" /> |
| </s:HGroup> |
| <s:HGroup> |
| <s:VSlider id="vslide" /> |
| <s:VScrollBar id="vscroll" /> |
| <s:List id="myList"> |
| </s:List> |
| </s:HGroup> |
| <s:HGroup> |
| <s:ButtonBar width="280" height="42" |
| id="buttonbar1" dataProvider="{new ArrayCollection(['Holiday', 'Snow', 'Kwanza', 'Red'])}" /> |
| <s:DropDownList id="myDDL" prompt="DropDownList"> |
| <mx:ArrayCollection> |
| <fx:String>One</fx:String> |
| <fx:String>Two</fx:String> |
| <fx:String>Three</fx:String> |
| <fx:String>Four</fx:String> |
| <fx:String>Five with a really long item</fx:String> |
| </mx:ArrayCollection> |
| </s:DropDownList> |
| <s:ComboBox id="comboBox1" /> |
| <s:TabBar width="280" height="42" |
| id="tabBar1" dataProvider="{new ArrayCollection(['Holiday', 'Snow', 'Kwanza', 'Red'])}" /> |
| </s:HGroup> |
| </s:VGroup> |
| </s:Application> |