| <?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="475" 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" xmlns:comps="comps.*" initialize="loadCSS()"> |
| |
| <s:layout> |
| <s:VerticalLayout/> |
| </s:layout> |
| |
| <fx:Script> |
| <![CDATA[ |
| |
| import mx.core.IFlexDisplayObject; |
| import mx.managers.PopUpManager; |
| import mx.styles.StyleManager; |
| |
| public var iPopUp:IFlexDisplayObject; |
| |
| public var eventDispatcher:IEventDispatcher; |
| |
| public function loadCSS(): void |
| { |
| eventDispatcher = StyleManager.loadStyleDeclarations("assets/pseudoStyles.swf"); |
| } |
| ]]> |
| </fx:Script> |
| |
| <s:Button id="firstButton" label="FxButton" /> |
| <s:ToggleButton id="firstToggle" label="FxToggleButton" /> |
| <s:NumericStepper id="firstNS" /> |
| |
| <s:Panel title="my panel" > |
| <s:layout> |
| <s:HorizontalLayout /> |
| </s:layout> |
| <s:NumericStepper id="secondNS" /> |
| <s:HScrollBar id="firstBar" /> |
| <s:HScrollBar id="secondBar" /> |
| </s:Panel> |
| <s:HGroup> |
| <s:TextInput id="firstTextInput" /> |
| <s:TextArea id="firstTextArea" /> |
| <s:TextInput id="secondTextInput" /> |
| </s:HGroup> |
| <s:HGroup id="hgroup1"> |
| <s:Button id="secondButton" label="Group FxButton" /> |
| </s:HGroup> |
| <comps:FxListComp id="firstList" /> |
| <comps:GroupBasic id="group1" /> |
| <comps:TextBasic id="text1" /> |
| </s:Application> |