| <?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. |
| |
| --> |
| <mx:Application height="700" width="750" |
| 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.*" layout="absolute" |
| backgroundColor="0xFFFFFF" > |
| |
| <fx:Style> |
| @namespace s "library://ns.adobe.com/flex/spark"; |
| @namespace mx "library://ns.adobe.com/flex/mx"; |
| @font-face |
| { |
| src: url("../../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf"); |
| fontFamily: EmbeddedVerdana; |
| embedAsCFF: false; |
| } |
| |
| @font-face |
| { |
| src: url("../../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf"); |
| fontWeight: bold; |
| fontFamily: EmbeddedVerdana; |
| embedAsCFF: false; |
| } |
| |
| @font-face |
| { |
| src: url("../../../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf"); |
| fontStyle: italic; |
| fontFamily: EmbeddedVerdana; |
| embedAsCFF: false; |
| } |
| |
| global |
| { |
| fontFamily: EmbeddedVerdana; |
| fontAntiAliasType: normal; |
| } |
| |
| mx|Accordion mx|VBox { |
| backgroundColor: #536343; |
| } |
| |
| mx|VBox mx|Panel { |
| cornerRadius: 20; |
| color: #FF00FF; |
| } |
| |
| mx|HBox, mx|VBox mx|Canvas { |
| backgroundColor: #993399; |
| } |
| |
| mx|ButtonBar mx|Button { |
| color: #00AA22; |
| } |
| |
| mx|Accordion.redHeader mx|Button { |
| fillColors: #FF0000, #FF0000; |
| } |
| |
| mx|Module s|Button { |
| chromeColor: #FF9933; |
| } |
| |
| mx|Module mx|Button { |
| color: #DD0000; |
| } |
| |
| s|SkinnableContainer s|NumericStepper { |
| symbolColor: #9900DD; |
| } |
| |
| mx|VBox .importantText { |
| fontWeight: "bold"; |
| textDecoration: "underline"; |
| } |
| |
| s|ButtonBar s|ToggleButton:upAndSelected, |
| s|ButtonBar s|ToggleButton.blueSelected:overAndSelected, |
| s|ButtonBar s|ToggleButton.blueSelected:downAndSelected, |
| s|ButtonBar s|ToggleButton.blueSelected:disabledAndSelected { |
| chromeColor: #0099FF; |
| } |
| |
| </fx:Style> |
| |
| <fx:Script> |
| <![CDATA[ |
| import mx.managers.PopUpManager; |
| import mx.core.IFlexDisplayObject; |
| import mx.modules.*; |
| |
| public var iPopUp:IFlexDisplayObject; |
| |
| public function openWindow(modalSetting:Boolean):void |
| { |
| iPopUp = PopUpManager.createPopUp(vbox1, comps.PanelComp, modalSetting, "popup"); |
| } |
| |
| public function closeWindow():void |
| { |
| PopUpManager.removePopUp(iPopUp); |
| } |
| |
| [Bindable] |
| public var myDP:Array=[{label:"Europe", data:"EUROPE"},{label:"Italy", data:"ITALY"},{label:"England", data:"ENGLAND"},{label:"Slovenia", data:"SLOVENIA"}]; |
| |
| |
| public function loadMyModule(): void |
| { |
| moduleLoader1.url="assets/ModuleComp.swf" |
| moduleLoader1.loadModule(); |
| } |
| |
| ]]> |
| </fx:Script> |
| |
| <comps:AccordionComp id="accordionComp" /> |
| <comps:AccordionComp id="accordionComp2" x="310" /> |
| |
| <mx:VBox y="140" backgroundColor="0x000000" id="vbox1" width="20" height="20"/> |
| <s:Button id="openButton" label="openWindow()" click="openWindow(false)" x="40" y="140" /> |
| <mx:HBox y="140" x="200" id="hbox1" width="20" height="20" /> |
| <mx:VBox y="140" x="240" id="vbox2" width="20" height="20" /> |
| <mx:VBox y="140" x="270" id="vbox3" width="50" height="50" > |
| <mx:Canvas width="20" height="20" id="canvas1" /> |
| </mx:VBox> |
| <mx:Accordion y="350" styleName="redHeader" id="accordion1" width="100" height="80"> |
| <mx:Box label="first"> |
| <mx:Canvas width="40" height="40" backgroundColor="0x0000FF" /> |
| </mx:Box> |
| </mx:Accordion> |
| <mx:ButtonBar y="350" x="150" id="buttonbar1" dataProvider="{myDP}" /> |
| <mx:ModuleLoader id="moduleLoader1" y="440" /> |
| <s:ButtonBar id="btnBar" requireSelection="true" y="220" > |
| <s:dataProvider> |
| <mx:ArrayCollection source="[Red,Orange,Yellow,Green,Blue]" /> |
| </s:dataProvider> |
| </s:ButtonBar> |
| </mx:Application> |