| <?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:Window xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" |
| xmlns:mx="library://ns.adobe.com/flex/mx" |
| width="400" height="300" direction="rtl" layoutDirection="rtl" |
| > |
| <fx:Script> |
| <![CDATA[ |
| import flash.events.Event; |
| import mx.collections.ArrayCollection; |
| [Bindable] |
| private var d:ArrayCollection=new ArrayCollection([{slno:"1",name:"Joseph",age:"23"},{slno:"2",name:"Jeena",age:"21"},{slno:"3",name:"Jerry",age:"4"} |
| ,{slno:"4",name:"Tom",age:"1"},{slno:"5",name:"Rick",age:"12"},{slno:"6",name:"John",age:"52"}]); |
| |
| |
| ]]> |
| </fx:Script> |
| <s:CheckBox id="checkBox1" label="available" y="10" /> |
| <s:Button id="button1" y="35" label="test Button" name="childButton" /> |
| |
| <mx:Label id="label1" y="60" name="childLabel" text="test labe in myWindow with content" fontSize="16" visible="false" /> |
| <s:TextArea id="ta" width="150" height="40" y="75" text="this is a test"/> |
| <mx:DataGrid y="120" name="datagrid1" id="dg1" dataProvider="{d}" /> |
| |
| </s:Window> |