| <?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:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%" backgroundColor="0xFFCCCD"> |
| <mx:Script> |
| <![CDATA[ |
| |
| [Bindable] |
| private var menubarXML:XMLList = |
| <> |
| <menuitem label="Menu1" data="top"> |
| <menuitem label="MenuItem 1-A" data="1A"/> |
| <menuitem label="MenuItem 1-B" data="1B"/> |
| </menuitem> |
| <menuitem label="Menu2" data="top"> |
| <menuitem label="MenuItem 2-A" type="check" data="2A"/> |
| <menuitem type="separator"/> |
| <menuitem label="MenuItem 2-B" > |
| <menuitem label="SubMenuItem 3-A" type="radio" |
| groupName="one" data="3A"/> |
| <menuitem label="SubMenuItem 3-B" type="radio" |
| groupName="one" data="3B"/> |
| </menuitem> |
| </menuitem> |
| </>; |
| |
| ]]> |
| </mx:Script> |
| |
| <mx:constraintColumns> |
| <mx:ConstraintColumn id="col1" width="100" /> |
| <mx:ConstraintColumn id="col2" width="100" /> |
| </mx:constraintColumns> |
| <mx:constraintRows> |
| <mx:ConstraintRow id="row1" height="100" /> |
| <mx:ConstraintRow id="row2" height="100" /> |
| </mx:constraintRows> |
| |
| <mx:Button id="btn" /> |
| <mx:Button id="btn2" x="4" baseline="row1:20" label="Make a bunny appear." /> |
| <mx:Label id="label1" x="90" baseline="row1:20" text="I found Easter eggs." /> |
| <mx:LinkButton id="link1" x="190" baseline="row2:20" label="Peeps, peeps, peeps." /> |
| <mx:MenuBar id="menu1" showRoot="false" labelField="@label" |
| dataProvider="{menubarXML}" baseline="row2:20" x="340" /> |
| <mx:TextInput id="text1" baseline="row2:20" x="540" /> |
| <mx:DateChooser id="date1" baseline="row1:20" /> |
| </mx:Canvas> |