You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by jm...@apache.org on 2014/08/09 04:17:23 UTC
[08/10] moved mx example files to mx directory
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/48f47e61/TourDeFlex/TourDeFlex3/src/controls/OLAPDataGridExample.mxml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/controls/OLAPDataGridExample.mxml b/TourDeFlex/TourDeFlex3/src/controls/OLAPDataGridExample.mxml
deleted file mode 100755
index 9879b83..0000000
--- a/TourDeFlex/TourDeFlex3/src/controls/OLAPDataGridExample.mxml
+++ /dev/null
@@ -1,205 +0,0 @@
-<?xml version="1.0"?>
-<!--
- 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 xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx"
- creationComplete="creationCompleteHandler();">
-
- <fx:Script>
- <![CDATA[
- import mx.rpc.AsyncResponder;
- import mx.rpc.AsyncToken;
- import mx.olap.OLAPQuery;
- import mx.olap.OLAPSet;
- import mx.olap.IOLAPQuery;
- import mx.olap.IOLAPQueryAxis;
- import mx.olap.IOLAPCube;
- import mx.olap.OLAPResult;
- import mx.events.CubeEvent;
- import mx.controls.Alert;
- import mx.collections.ArrayCollection;
-
-
- [Bindable]
- private var flatData:ArrayCollection = new ArrayCollection(
- [
- {customer:"AAA", product:"Flex SDK", quarter:"Q1", revenue:210, cost:25},
- {customer:"AAA", product:"Flex JS", quarter:"Q2", revenue:210, cost:25},
- {customer:"AAA", product:"Falcon", quarter:"Q3", revenue:250, cost:125},
- {customer:"AAA", product:"Falcon JX", quarter:"Q4", revenue:430, cost:75},
-
- {customer:"BBB", product:"Flex SDK", quarter:"Q2", revenue:125, cost:20},
- {customer:"BBB", product:"Flex JS", quarter:"Q3", revenue:210, cost:20},
- {customer:"BBB", product:"Falcon", quarter:"Q4", revenue:320, cost:120},
- {customer:"BBB", product:"Falcon JX", quarter:"Q1", revenue:280, cost:70},
-
- {customer:"CCC", product:"Flex SDK", quarter:"Q3", revenue:375, cost:120},
- {customer:"CCC", product:"Flex JS", quarter:"Q4", revenue:430, cost:120},
- {customer:"CCC", product:"Falcon", quarter:"Q1", revenue:470, cost:220},
- {customer:"CCC", product:"Falcon JX", quarter:"Q2", revenue:570, cost:170},
-
- {customer:"AAA", product:"Flex SDK", quarter:"Q4", revenue:215, cost:90},
- {customer:"AAA", product:"Flex JS", quarter:"Q1", revenue:210, cost:90},
- {customer:"AAA", product:"Falcon", quarter:"Q2", revenue:175, cost:190},
- {customer:"AAA", product:"Falcon JX", quarter:"Q3", revenue:670, cost:75},
-
- {customer:"BBB", product:"Flex SDK", quarter:"Q1", revenue:175, cost:20},
- {customer:"BBB", product:"Flex JS", quarter:"Q2", revenue:210, cost:20},
- {customer:"BBB", product:"Falcon",quarter:"Q3", revenue:120, cost:120},
- {customer:"BBB", product:"Falcon JX", quarter:"Q4", revenue:310, cost:70},
-
- {customer:"CCC", product:"Flex SDK", quarter:"Q1", revenue:385, cost:120},
- {customer:"CCC", product:"Flex JS", quarter:"Q2", revenue:340, cost:120},
- {customer:"CCC", product:"Falcon", quarter:"Q3", revenue:470, cost:220},
- {customer:"CCC", product:"Falcon JX", quarter:"Q4", revenue:270, cost:170},
-
- {customer:"AAA", product:"Flex SDK", quarter:"Q1", revenue:100, cost:25},
- {customer:"AAA", product:"Flex JS", quarter:"Q2", revenue:150, cost:25},
- {customer:"AAA", product:"Falcon", quarter:"Q3", revenue:200, cost:125},
- {customer:"AAA", product:"Falcon JX", quarter:"Q4", revenue:300, cost:75},
-
- {customer:"BBB", product:"Flex SDK", quarter:"Q2", revenue:175, cost:20},
- {customer:"BBB", product:"Flex JS", quarter:"Q3", revenue:100, cost:20},
- {customer:"BBB", product:"Falcon", quarter:"Q4", revenue:270, cost:120},
- {customer:"BBB", product:"Falcon JX", quarter:"Q1", revenue:370, cost:70},
-
- {customer:"CCC", product:"Flex SDK", quarter:"Q3", revenue:410, cost:120},
- {customer:"CCC", product:"Flex JS", quarter:"Q4", revenue:300, cost:320},
- {customer:"CCC", product:"Falcon", quarter:"Q1", revenue:510, cost:220},
- {customer:"CCC", product:"Falcon JX", quarter:"Q2", revenue:620, cost:170},
-
- {customer:"AAA", product:"Flex SDK", quarter:"Q4", revenue:215, cost:90},
- {customer:"AAA", product:"Flex JS", quarter:"Q1", revenue:210, cost:90},
- {customer:"AAA", product:"Falcon", quarter:"Q2", revenue:175, cost:190},
- {customer:"AAA", product:"Falcon JX", quarter:"Q3", revenue:420, cost:75},
-
- {customer:"BBB", product:"Flex SDK", quarter:"Q1", revenue:240, cost:20},
- {customer:"BBB", product:"Flex JS", quarter:"Q2", revenue:100, cost:20},
- {customer:"BBB", product:"Falcon", quarter:"Q3", revenue:270, cost:120},
- {customer:"BBB", product:"Falcon JX", quarter:"Q4", revenue:370, cost:70},
-
- {customer:"CCC", product:"Flex SDK", quarter:"Q1", revenue:375, cost:120},
- {customer:"CCC", product:"Flex JS", quarter:"Q2", revenue:420, cost:120},
- {customer:"CCC", product:"Falcon", quarter:"Q3", revenue:680, cost:220},
- {customer:"CCC", product:"Falcon JX", quarter:"Q4", revenue:570, cost:170}
- ]);
-
- private function creationCompleteHandler():void {
- // You must initialize the cube before you
- // can execute a query on it.
- myMXMLCube.refresh();
- }
-
- // Create the OLAP query.
- private function getQuery(cube:IOLAPCube):IOLAPQuery {
- // Create an instance of OLAPQuery to represent the query.
- var query:OLAPQuery = new OLAPQuery;
-
- // Get the row axis from the query instance.
- var rowQueryAxis:IOLAPQueryAxis =
- query.getAxis(OLAPQuery.ROW_AXIS);
- // Create an OLAPSet instance to configure the axis.
- var productSet:OLAPSet = new OLAPSet;
- // Add the Product to the row to aggregate data
- // by the Product dimension.
- productSet.addElements(
- cube.findDimension("ProductDim").findAttribute("Product").children);
- // Add the OLAPSet instance to the axis.
- rowQueryAxis.addSet(productSet);
-
- // Get the column axis from the query instance, and configure it
- // to aggregate the columns by the Quarter dimension.
- var colQueryAxis:IOLAPQueryAxis =
- query.getAxis(OLAPQuery.COLUMN_AXIS);
- var quarterSet:OLAPSet= new OLAPSet;
- quarterSet.addElements(
- cube.findDimension("QuarterDim").findAttribute("Quarter").children);
- colQueryAxis.addSet(quarterSet);
-
- return query;
- }
-
- // Event handler to execute the OLAP query
- // after the cube completes initialization.
- private function runQuery(event:CubeEvent):void {
- // Get cube.
- var cube:IOLAPCube = IOLAPCube(event.currentTarget);
- // Create a query instance.
- var query:IOLAPQuery = getQuery(cube);
- // Execute the query.
- var token:AsyncToken = cube.execute(query);
- // Setup handlers for the query results.
- token.addResponder(new AsyncResponder(showResult, showFault));
- }
-
- // Handle a query fault.
- private function showFault(result:Object, token:Object):void {
- Alert.show("Error in query.");
- }
-
- // Handle a successful query by passing the query results to
- // the OLAPDataGrid control..
- private function showResult(result:Object, token:Object):void {
- if (!result) {
- Alert.show("No results from query.");
- return;
- }
- myOLAPDG.dataProvider= result as OLAPResult;
- }
- ]]>
- </fx:Script>
-
- <fx:Declarations>
- <mx:OLAPCube name="FlatSchemaCube"
- dataProvider="{flatData}"
- id="myMXMLCube"
- complete="runQuery(event);">
-
- <mx:OLAPDimension name="CustomerDim">
- <mx:OLAPAttribute name="Customer" dataField="customer"/>
- <mx:OLAPHierarchy name="CustomerHier" hasAll="true">
- <mx:OLAPLevel attributeName="Customer"/>
- </mx:OLAPHierarchy>
- </mx:OLAPDimension>
-
- <mx:OLAPDimension name="ProductDim">
- <mx:OLAPAttribute name="Product" dataField="product"/>
- <mx:OLAPHierarchy name="ProductHier" hasAll="true">
- <mx:OLAPLevel attributeName="Product"/>
- </mx:OLAPHierarchy>
- </mx:OLAPDimension>
-
- <mx:OLAPDimension name="QuarterDim">
- <mx:OLAPAttribute name="Quarter" dataField="quarter"/>
- <mx:OLAPHierarchy name="QuarterHier" hasAll="true">
- <mx:OLAPLevel attributeName="Quarter"/>
- </mx:OLAPHierarchy>
- </mx:OLAPDimension>
-
- <mx:OLAPMeasure name="Revenue"
- dataField="revenue"
- aggregator="SUM"/>
- </mx:OLAPCube>
- </fx:Declarations>
-
- <mx:Panel title="OLAPCube Control Example"
- height="75%" width="75%" layout="horizontal"
- paddingTop="10" paddingBottom="10" paddingLeft="10" paddingRight="10">
-
- <mx:OLAPDataGrid id="myOLAPDG" width="100%" height="100%"/>
- </mx:Panel>
-</mx:Application>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/48f47e61/TourDeFlex/TourDeFlex3/src/controls/PopUpButtonExample.mxml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/controls/PopUpButtonExample.mxml b/TourDeFlex/TourDeFlex3/src/controls/PopUpButtonExample.mxml
deleted file mode 100755
index fe58768..0000000
--- a/TourDeFlex/TourDeFlex3/src/controls/PopUpButtonExample.mxml
+++ /dev/null
@@ -1,65 +0,0 @@
-<?xml version="1.0"?>
-<!--
- 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.
- -->
-
-<!-- Simple example to demonstrate the PopUpButton control. -->
-<mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx">
-
- <fx:Script>
- <![CDATA[
-
- import mx.controls.*;
- import mx.events.*;
-
- private var myMenu:Menu;
-
- // Initialize the Menu control, and specify it as the pop up object
- // of the PopUpButton control.
- private function initMenu():void {
- myMenu = new Menu();
- var dp:Object = [{label: "New Folder"}, {label: "Sent Items"}, {label: "Inbox"}];
- myMenu.dataProvider = dp;
- myMenu.selectedIndex = 0;
- myMenu.addEventListener("itemClick", itemClickHandler);
- popB.popUp = myMenu;
- popB.label = "Put in: " + myMenu.dataProvider[myMenu.selectedIndex].label;
- }
-
- // Define the event listener for the Menu control's itemClick event.
- private function itemClickHandler(event:MenuEvent):void {
- var label:String = event.item.label;
- popTypeB.text=String("Moved to " + label);
- popB.label = "Put in: " + label;
- popB.close();
- myMenu.selectedIndex = event.index;
- }
-
- ]]>
- </fx:Script>
-
- <mx:Panel title="PopUpButton Control Example" height="75%" width="75%"
- paddingTop="10" paddingBottom="10" paddingRight="10" paddingLeft="10">
-
- <mx:Label width="100%" color="blue"
- text="Button label contains the name of the last selected menu item." />
- <mx:PopUpButton id="popB" label="Edit" creationComplete="initMenu();" width="135" />
-
- <mx:Spacer height="50" />
- <mx:TextInput id="popTypeB" />
-
- </mx:Panel>
-</mx:Application>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/48f47e61/TourDeFlex/TourDeFlex3/src/controls/PopUpButtonMenuExample.mxml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/controls/PopUpButtonMenuExample.mxml b/TourDeFlex/TourDeFlex3/src/controls/PopUpButtonMenuExample.mxml
deleted file mode 100755
index 869de96..0000000
--- a/TourDeFlex/TourDeFlex3/src/controls/PopUpButtonMenuExample.mxml
+++ /dev/null
@@ -1,56 +0,0 @@
-<?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.
- -->
-
-<!-- PopUpMenuButton control example. -->
-<mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx">
-
- <fx:Script>
- <![CDATA[
- import mx.events.*;
- import mx.controls.*;
-
- //Event handler, invoked when you select from the menu.
- public function itemClickHandler(event:MenuEvent):void {
- Alert.show("Menu label: " + event.label
- + " \n menu item index within parent menu: " + event.index);
- }
- ]]>
- </fx:Script>
-
- <fx:Declarations>
- <!-- A an data provider in E4X format. -->
- <fx:XMLList id="treeDP2">
- <node label="Inbox"/>
- <node label="Calendar"/>
- <node label="Deleted Items"/>
- </fx:XMLList>
- </fx:Declarations>
-
- <mx:Panel title="PopUpMenuButton Control Example" height="100%" width="100%"
- paddingTop="10" paddingLeft="10" paddingRight="10">
-
- <mx:Label width="100%" color="blue"
- text="Click the down arrow to open the menu."/>
-
- <mx:PopUpMenuButton id="p2"
- dataProvider="{treeDP2}"
- labelField="@label"
- itemClick="itemClickHandler(event);"/>
-
- </mx:Panel>
-</mx:Application>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/48f47e61/TourDeFlex/TourDeFlex3/src/controls/RadioButtonExample.mxml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/controls/RadioButtonExample.mxml b/TourDeFlex/TourDeFlex3/src/controls/RadioButtonExample.mxml
deleted file mode 100755
index 6763717..0000000
--- a/TourDeFlex/TourDeFlex3/src/controls/RadioButtonExample.mxml
+++ /dev/null
@@ -1,41 +0,0 @@
-<?xml version="1.0"?>
-<!--
- 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.
- -->
-
-<!-- Simple example to demonstrate RadioButton control. -->
-<mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx">
-
- <fx:Script>
- import mx.controls.Alert;
- </fx:Script>
-
- <mx:Panel title="RadioButton Control Example" height="75%" width="75%"
- paddingTop="10" paddingLeft="10" paddingRight="10">
-
- <mx:Label width="100%" color="blue"
- text="What year were women first allowed to compete in the Boston Marathon?"/>
-
- <mx:RadioButton groupName="year" id="option1" label="1942"/>
- <mx:RadioButton groupName="year" id="option2" label="1952"/>
- <mx:RadioButton groupName="year" id="option3" label="1962"/>
- <mx:RadioButton groupName="year" id="option4" label="1972"/>
-
- <mx:Button label="Check Answer"
- click="Alert.show(option4.selected?'Correct Answer!':'Wrong Answer', 'Result')"/>
-
- </mx:Panel>
-</mx:Application>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/48f47e61/TourDeFlex/TourDeFlex3/src/controls/RadioButtonGroupExample.mxml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/controls/RadioButtonGroupExample.mxml b/TourDeFlex/TourDeFlex3/src/controls/RadioButtonGroupExample.mxml
deleted file mode 100755
index 95bcbd8..0000000
--- a/TourDeFlex/TourDeFlex3/src/controls/RadioButtonGroupExample.mxml
+++ /dev/null
@@ -1,61 +0,0 @@
-<?xml version="1.0"?>
-<!--
- 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.
- -->
-
-<!-- Simple example to demonstrate RadioButtonGroup control. -->
-<mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx">
-
- <fx:Script>
- <![CDATA[
-
- import mx.controls.Alert;
- import mx.events.ItemClickEvent;
-
- // Event handler function to display the selected button
- // in an Alert control.
- private function handleCard(event:ItemClickEvent):void {
- if (event.currentTarget.selectedValue == "AmEx") {
- Alert.show("You selected American Express")
- }
- else {
- if (event.currentTarget.selectedValue == "MC") {
- Alert.show("You selected MasterCard")
- }
- else {
- Alert.show("You selected Visa")
- }
- }
- }
- ]]>
- </fx:Script>
-
- <mx:Panel title="RadioButtonGroup Control Example" height="75%" width="75%"
- paddingTop="10" paddingLeft="10">
-
- <mx:Label width="100%" color="blue"
- text="Select a type of credit card."/>
-
- <mx:RadioButtonGroup id="cardtype" itemClick="handleCard(event);"/>
- <mx:RadioButton groupName="cardtype" id="americanExpress" value="AmEx"
- label="American Express" width="150" />
- <mx:RadioButton groupName="cardtype" id="masterCard" value="MC"
- label="MasterCard" width="150" />
- <mx:RadioButton groupName="cardtype" id="visa" value="Visa"
- label="Visa" width="150" />
-
- </mx:Panel>
-</mx:Application>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/48f47e61/TourDeFlex/TourDeFlex3/src/controls/RichTextEditorExample.mxml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/controls/RichTextEditorExample.mxml b/TourDeFlex/TourDeFlex3/src/controls/RichTextEditorExample.mxml
deleted file mode 100755
index 21bb12c..0000000
--- a/TourDeFlex/TourDeFlex3/src/controls/RichTextEditorExample.mxml
+++ /dev/null
@@ -1,32 +0,0 @@
-<?xml version="1.0" ?>
-<!--
- 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.
- -->
-
-<!-- Simple example to demonstrate the RichTextEditor control. -->
-<mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx"
- horizontalAlign="center" verticalAlign="middle">
-
- <mx:RichTextEditor id="rte" title="RichTextEditor" height="75%" text="Enter text into the RichTextEditor control, then click a button to display your text as plain text, or as HTML-formatted text."/>
-
- <mx:TextArea id="rteText" width="80%" height="25%"/>
-
- <mx:HBox>
- <mx:Button label="Show Plain Text" click="rteText.text=rte.text;"/>
- <mx:Button label="Show HTML Markup" click="rteText.text=rte.htmlText;"/>
- </mx:HBox>
-
-</mx:Application>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/48f47e61/TourDeFlex/TourDeFlex3/src/controls/SimpleAlert.mxml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/controls/SimpleAlert.mxml b/TourDeFlex/TourDeFlex3/src/controls/SimpleAlert.mxml
deleted file mode 100755
index b6f112d..0000000
--- a/TourDeFlex/TourDeFlex3/src/controls/SimpleAlert.mxml
+++ /dev/null
@@ -1,74 +0,0 @@
-<?xml version="1.0"?>
-<!--
- 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.
- -->
-
-<!-- Simple example to demonstrate the Alert control. -->
-<mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx">
-
- <fx:Script>
- <![CDATA[
- import mx.controls.Alert;
- import mx.events.CloseEvent;
-
- // Event handler function uses a static method to show
- // a pop-up window with the title, message, and requested buttons.
- private function clickHandler(event:Event):void {
- Alert.show("Do you want to save your changes?", "Save Changes", 3, this, alertClickHandler);
- }
-
- // Event handler function for displaying the selected Alert button.
- private function alertClickHandler(event:CloseEvent):void {
- if (event.detail==Alert.YES)
- status.text="You answered Yes";
- else
- status.text="You answered No";
- }
-
- // Event handler function changes the default Button labels and sets the
- // Button widths. If you later use an Alert with the default Buttons,
- // you must reset these values.
- private function secondClickHandler(event:Event):void {
- Alert.buttonWidth = 100;
- Alert.yesLabel = "Magenta";
- Alert.noLabel = "Blue";
- Alert.cancelLabel = "Green";
-
- Alert.show("Select a color:","Color Selection",1|2|8,this);
-
- // Set the labels back to normal:
- Alert.yesLabel = "Yes";
- Alert.noLabel = "No";
- }
- ]]>
- </fx:Script>
-
- <mx:Panel title="Alert Control Example" width="75%" horizontalAlign="center" paddingTop="10">
- <mx:Text width="100%" color="blue" textAlign="center"
- text="Click the button below to display a simple Alert window."/>
- <mx:Button label="Click Me" click="Alert.show('Hello World!', 'Message');"/>
-
- <mx:Text width="100%" color="blue" textAlign="center"
- text="Click the button below to display an Alert window and capture the button pressed by the user."/>
- <mx:Button label="Click Me" click="clickHandler(event);"/>
- <mx:Label id="status" fontWeight="bold"/>
-
- <mx:Text width="100%" color="blue" textAlign="center"
- text="Click the button below to display an Alert window that uses custom Button labels."/>
- <mx:Button label="Click Me" click="secondClickHandler(event);"/>
- </mx:Panel>
-
-</mx:Application>
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/48f47e61/TourDeFlex/TourDeFlex3/src/controls/SimpleComboBox.mxml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/controls/SimpleComboBox.mxml b/TourDeFlex/TourDeFlex3/src/controls/SimpleComboBox.mxml
deleted file mode 100755
index 82f95b0..0000000
--- a/TourDeFlex/TourDeFlex3/src/controls/SimpleComboBox.mxml
+++ /dev/null
@@ -1,53 +0,0 @@
-<?xml version="1.0"?>
-<!--
- 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.
- -->
-
-<!-- Simple example to demonstrate the ComboBox control. -->
-<mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx">
-
- <fx:Script>
- <![CDATA[
- import mx.collections.ArrayCollection;
-
- [Bindable]
- public var cards:ArrayCollection = new ArrayCollection(
- [ {label:"Visa", data:1},
- {label:"MasterCard", data:2},
- {label:"American Express", data:3} ]);
-
- private function closeHandler(event:Event):void {
- myLabel.text = "You selected: " + ComboBox(event.target).selectedItem.label;
- myData.text = "Data: " + ComboBox(event.target).selectedItem.data;
- }
- ]]>
- </fx:Script>
-
- <mx:Panel title="ComboBox Control Example"
- height="75%" width="75%" layout="horizontal"
- paddingTop="10" paddingBottom="10" paddingLeft="10" paddingRight="10">
-
- <mx:ComboBox dataProvider="{cards}" width="150"
- close="closeHandler(event);"/>
-
- <mx:VBox width="250">
- <mx:Text width="200" color="blue" text="Select a type of credit card."/>
- <mx:Label id="myLabel" text="You selected:"/>
- <mx:Label id="myData" text="Data:"/>
- </mx:VBox>
-
- </mx:Panel>
-</mx:Application>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/48f47e61/TourDeFlex/TourDeFlex3/src/controls/SimpleDataGrid.mxml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/controls/SimpleDataGrid.mxml b/TourDeFlex/TourDeFlex3/src/controls/SimpleDataGrid.mxml
deleted file mode 100755
index 72b42a6..0000000
--- a/TourDeFlex/TourDeFlex3/src/controls/SimpleDataGrid.mxml
+++ /dev/null
@@ -1,78 +0,0 @@
-<?xml version="1.0"?>
-<!--
- 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.
- -->
-
-<!-- DataGrid control example. -->
-<mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx">
-
- <fx:Declarations>
- <fx:XMLList id="employees">
- <employee>
- <name>Christina Coenraets</name>
- <phone>555-219-2270</phone>
- <email>ccoenraets@fictitious.com</email>
- <active>true</active>
- </employee>
- <employee>
- <name>Joanne Wall</name>
- <phone>555-219-2012</phone>
- <email>jwall@fictitious.com</email>
- <active>true</active>
- </employee>
- <employee>
- <name>Maurice Smith</name>
- <phone>555-219-2012</phone>
- <email>maurice@fictitious.com</email>
- <active>false</active>
- </employee>
- <employee>
- <name>Mary Jones</name>
- <phone>555-219-2000</phone>
- <email>mjones@fictitious.com</email>
- <active>true</active>
- </employee>
- </fx:XMLList>
- </fx:Declarations>
-
- <mx:Panel title="DataGrid Control Example" height="100%" width="100%"
- paddingTop="10" paddingLeft="10" paddingRight="10">
-
- <mx:Label width="100%" color="blue"
- text="Select a row in the DataGrid control."/>
-
- <mx:DataGrid id="dg" width="100%" height="100%" rowCount="5" dataProvider="{employees}">
- <mx:columns>
- <mx:DataGridColumn dataField="name" headerText="Name"/>
- <mx:DataGridColumn dataField="phone" headerText="Phone"/>
- <mx:DataGridColumn dataField="email" headerText="Email"/>
- </mx:columns>
- </mx:DataGrid>
-
- <mx:Form width="100%" height="100%">
- <mx:FormItem label="Name">
- <mx:Label text="{dg.selectedItem.name}"/>
- </mx:FormItem>
- <mx:FormItem label="Email">
- <mx:Label text="{dg.selectedItem.email}"/>
- </mx:FormItem>
- <mx:FormItem label="Phone">
- <mx:Label text="{dg.selectedItem.phone}"/>
- </mx:FormItem>
- </mx:Form>
-
- </mx:Panel>
-</mx:Application>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/48f47e61/TourDeFlex/TourDeFlex3/src/controls/SimpleHRule.mxml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/controls/SimpleHRule.mxml b/TourDeFlex/TourDeFlex3/src/controls/SimpleHRule.mxml
deleted file mode 100755
index c4a1a8a..0000000
--- a/TourDeFlex/TourDeFlex3/src/controls/SimpleHRule.mxml
+++ /dev/null
@@ -1,35 +0,0 @@
-<?xml version="1.0"?>
-<!--
- 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.
- -->
-
-<!-- Simple example to demonstrate the HRule control. -->
-<mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx">
-
- <fx:Declarations>
- <mx:WipeLeft id="myWL"/>
- </fx:Declarations>
-
- <mx:Panel title="HRule Control Example" id="myPanel"
- paddingTop="10" paddingBottom="10" paddingLeft="10" paddingRight="10">
-
- <mx:HRule rollOverEffect="{myWL}" width="100%" strokeWidth="1" strokeColor="red"/>
- <mx:Label width="100%" color="blue"
- text="Move mouse over HorizontalRule control to redraw it."/>
-
- </mx:Panel>
-</mx:Application>
-
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/48f47e61/TourDeFlex/TourDeFlex3/src/controls/SimpleImage.mxml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/controls/SimpleImage.mxml b/TourDeFlex/TourDeFlex3/src/controls/SimpleImage.mxml
deleted file mode 100755
index 7c25b36..0000000
--- a/TourDeFlex/TourDeFlex3/src/controls/SimpleImage.mxml
+++ /dev/null
@@ -1,30 +0,0 @@
-<?xml version="1.0"?>
-<!--
- 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.
- -->
-
-<!-- Simple example to demonstrate the Image control. -->
-<mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx">
-
- <mx:Panel id="myPanel" title="Image Control Example"
- height="75%" width="75%" horizontalAlign="center"
- paddingTop="10" paddingLeft="10">
-
- <mx:Label color="blue" text="Image embedded in the application."/>
- <mx:Image source="@Embed('assets/ApacheFlexLogo.png')"/>
-
- </mx:Panel>
-</mx:Application>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/48f47e61/TourDeFlex/TourDeFlex3/src/controls/SimpleImageHSlider.mxml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/controls/SimpleImageHSlider.mxml b/TourDeFlex/TourDeFlex3/src/controls/SimpleImageHSlider.mxml
deleted file mode 100755
index 212dafb..0000000
--- a/TourDeFlex/TourDeFlex3/src/controls/SimpleImageHSlider.mxml
+++ /dev/null
@@ -1,57 +0,0 @@
-<?xml version="1.0"?>
-<!--
- 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.
- -->
-
-<!-- Simple example to demonstrate the HSlider control. -->
-<mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx">
-
- <fx:Script>
- <![CDATA[
-
- private var imageWidth:Number=0;
- private var imageHeight:Number=0;
-
- // Event handler function to change the image size.
- private function changeSize():void
- {
- logo.width=uint(imageWidth*hSlider.value/100);
- logo.height=uint(imageHeight*hSlider.value/100);
- }
- ]]>
- </fx:Script>
-
- <mx:Panel id="panel" title="HSlider Control Example" height="100%" width="95%"
- paddingTop="10" paddingBottom="10" paddingLeft="10" paddingRight="10">
-
- <mx:HBox height="100%" width="100%">
- <mx:Image id="logo" source="@Embed('assets/ApacheFlexLogo.png')"
- creationComplete="imageWidth=logo.width; imageHeight=logo.height;" />
- </mx:HBox>
-
- <mx:Label color="blue" text="Drag the slider to resize the image."/>
-
- <mx:HSlider id="hSlider" minimum="0" maximum="100" value="100"
- dataTipPlacement="top"
- tickColor="black"
- snapInterval="1" tickInterval="10"
- labels="['0%','100%']"
- allowTrackClick="true"
- liveDragging="true"
- change="changeSize();"/>
- </mx:Panel>
-</mx:Application>
-
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/48f47e61/TourDeFlex/TourDeFlex3/src/controls/SimpleImageVSlider.mxml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/controls/SimpleImageVSlider.mxml b/TourDeFlex/TourDeFlex3/src/controls/SimpleImageVSlider.mxml
deleted file mode 100755
index c318597..0000000
--- a/TourDeFlex/TourDeFlex3/src/controls/SimpleImageVSlider.mxml
+++ /dev/null
@@ -1,63 +0,0 @@
-<?xml version="1.0"?>
-<!--
- 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.
- -->
-
-<!-- Simple example to demonstrate the VSlider control. -->
-<mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx">
-
- <fx:Script>
- <![CDATA[
-
- private var imageWidth:Number=0;
- private var imageHeight:Number=0;
-
- // Event handler function to change the image size.
- private function changeSize():void
- {
- logo.width=uint(imageWidth*hSlider.value/100);
- logo.height=uint(imageHeight*hSlider.value/100);
- }
- ]]>
- </fx:Script>
-
- <mx:Panel id="panel" title="VSlider Control Example"
- height="100%" width="100%"
- layout="horizontal"
- paddingTop="10" paddingBottom="10" paddingLeft="10" paddingRight="10">
-
- <mx:HBox width="50%">
- <mx:Image id="logo" source="@Embed('assets/ApacheFlexLogo.png')"
- creationComplete="imageWidth=logo.width; imageHeight=logo.height;" />
- </mx:HBox>
-
- <mx:VBox horizontalAlign="center">
- <mx:Label color="blue" text="Drag the slider to resize the image."/>
-
- <mx:VSlider id="hSlider"
- dataTipPlacement="top"
- minimum="0" maximum="100" value="100"
- tickColor="black"
- snapInterval="1" tickInterval="10"
- labels="['0%','100%']"
- allowTrackClick="true"
- liveDragging="true"
- change="changeSize();"/>
- </mx:VBox>
-
- </mx:Panel>
-</mx:Application>
-
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/48f47e61/TourDeFlex/TourDeFlex3/src/controls/SimpleList.mxml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/controls/SimpleList.mxml b/TourDeFlex/TourDeFlex3/src/controls/SimpleList.mxml
deleted file mode 100755
index 7185f2a..0000000
--- a/TourDeFlex/TourDeFlex3/src/controls/SimpleList.mxml
+++ /dev/null
@@ -1,59 +0,0 @@
-<?xml version="1.0"?>
-<!--
- 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.
- -->
-
-<!-- Simple example to demonstrate the List Control -->
-<mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx">
-
- <fx:Script>
- <![CDATA[
- [Bindable]
- public var selectedItem:Object;
- ]]>
- </fx:Script>
-
-
- <fx:Declarations>
- <fx:Model id="mystates">
- <states>
- <state label="Alabama" data="AL"/>
- <state label="Alaska" data="AK"/>
- <state label="Arizona" data="AZ"/>
- <state label="Arkansas" data="AR"/>
- <state label="California" data="CA"/>
- <state label="Colorado" data="CO"/>
- <state label="Connecticut" data="CT"/>
- </states>
- </fx:Model>
- </fx:Declarations>
-
- <mx:Panel title="List Control Example" height="75%" width="75%"
- paddingTop="10" paddingBottom="10" paddingLeft="10" paddingRight="10">
-
- <mx:Label text="Select a state to see its abbreviation."/>
-
- <mx:List id="source" width="100%" color="blue"
- dataProvider="{mystates.state}"
- change="this.selectedItem=List(event.target).selectedItem"/>
-
- <mx:VBox width="100%">
- <mx:Label text="Selected State: {selectedItem.label}"/>
- <mx:Label text="State abbreviation: {selectedItem.data}"/>
- </mx:VBox>
-
- </mx:Panel>
-</mx:Application>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/48f47e61/TourDeFlex/TourDeFlex3/src/controls/SimpleLoader.mxml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/controls/SimpleLoader.mxml b/TourDeFlex/TourDeFlex3/src/controls/SimpleLoader.mxml
deleted file mode 100755
index dfc26fa..0000000
--- a/TourDeFlex/TourDeFlex3/src/controls/SimpleLoader.mxml
+++ /dev/null
@@ -1,31 +0,0 @@
-<?xml version="1.0"?>
-<!--
- 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.
- -->
-
-<!-- Simple example to demonstrate the SWFLoader control. -->
-<mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx">
-
- <mx:Panel title="SWFLoader Control Example" height="90%" width="90%"
- paddingTop="10" paddingBottom="10" paddingLeft="10" paddingRight="10">
-
- <mx:Label text="The Label control of the outer application."/>
-
- <mx:SWFLoader id="Load" source="@Embed(source='Local.swf')" height="100" width="350"/>
-
- </mx:Panel>
-</mx:Application>
-
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/48f47e61/TourDeFlex/TourDeFlex3/src/controls/SimpleMenuExample.mxml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/controls/SimpleMenuExample.mxml b/TourDeFlex/TourDeFlex3/src/controls/SimpleMenuExample.mxml
deleted file mode 100755
index db10191..0000000
--- a/TourDeFlex/TourDeFlex3/src/controls/SimpleMenuExample.mxml
+++ /dev/null
@@ -1,72 +0,0 @@
-<?xml version="1.0"?>
-<!--
- 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.
- -->
-
-<!-- Simple example to demonstrate the Menu control. -->
-<mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx">
-
- <fx:Script>
- <![CDATA[
-
- import mx.controls.Menu;
- import mx.events.MenuEvent;
- import mx.controls.Alert;
- import flash.geom.Point;
-
- private var point1:Point = new Point();
- private var myMenu:Menu;
-
- // Create and display the Menu control.
- private function showMenu():void {
- myMenu= Menu.createMenu(panel, myMenuData, false);
- myMenu.labelField="@label"
- myMenu.addEventListener("itemClick", menuHandler);
-
- // Calculate position of Menu in Application's coordinates.
- point1.x=mybutton.x;
- point1.y=mybutton.y;
- point1=mybutton.localToGlobal(point1);
-
- myMenu.show(point1.x + 25, point1.y + 25);
- }
-
- // Event handler for the Menu control's change event.
- private function menuHandler(event:MenuEvent):void {
- Alert.show("Label: " + event.item.@label, "Clicked menu item");
- }
- ]]>
- </fx:Script>
-
- <fx:Declarations>
- <fx:XML id="myMenuData">
- <root>
- <menuitem label="MenuItem 1" eventName="copy"/>
- <menuitem label="MenuItem 2" eventName="paste"/>
- </root>
- </fx:XML>
- </fx:Declarations>
-
- <mx:Panel id="panel" title="Menu Control Example" height="75%" width="75%"
- paddingTop="10" paddingLeft="10">
-
- <mx:Label width="100%" color="blue"
- text="Click the button to open the Menu control."/>
-
- <mx:Button id="mybutton" label="Open Menu" click="showMenu();"/>
-
- </mx:Panel>
-</mx:Application>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/48f47e61/TourDeFlex/TourDeFlex3/src/controls/SimpleProgressBar.mxml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/controls/SimpleProgressBar.mxml b/TourDeFlex/TourDeFlex3/src/controls/SimpleProgressBar.mxml
deleted file mode 100755
index 58a3773..0000000
--- a/TourDeFlex/TourDeFlex3/src/controls/SimpleProgressBar.mxml
+++ /dev/null
@@ -1,57 +0,0 @@
-<?xml version="1.0"?>
-<!--
- 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.
- -->
-
-<!-- Simple example to demonstrate the ProgressBar control. -->
-<mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx">
-
- <fx:Script>
- <![CDATA[
-
- private var j:uint=10;
-
- // Event handler function to set the value of the
- // ProgressBar control.
- private function runit():void
- {
- if(j<=100)
- {
- bar.setProgress(j,100);
- bar.label= "CurrentProgress" + " " + j + "%";
- j+=10;
- }
- if(j>100)
- {
- j=0;
- }
- }
- ]]>
- </fx:Script>
-
- <mx:Panel title="ProgressBar Control Example" height="75%" width="75%"
- paddingTop="10" paddingBottom="10" paddingLeft="10" paddingRight="10">
-
- <mx:Label width="100%" color="blue"
- text="Click the button to increment the progress bar." />
- <mx:Button id="Speed" label="Run" click="runit();"/>
-
- <mx:ProgressBar id="bar" labelPlacement="bottom"
- minimum="0" visible="true" maximum="100" label="CurrentProgress 0%"
- direction="right" mode="manual" width="100%"/>
-
- </mx:Panel>
-</mx:Application>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/48f47e61/TourDeFlex/TourDeFlex3/src/controls/SimpleVRule.mxml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/controls/SimpleVRule.mxml b/TourDeFlex/TourDeFlex3/src/controls/SimpleVRule.mxml
deleted file mode 100755
index 2c00f4a..0000000
--- a/TourDeFlex/TourDeFlex3/src/controls/SimpleVRule.mxml
+++ /dev/null
@@ -1,31 +0,0 @@
-<?xml version="1.0"?>
-<!--
- 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.
- -->
-
-<!-- Simple example to demonstrate the VRule control. -->
-<mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx">
-
- <mx:Panel title="VRule Control Example" id="myPanel" horizontalAlign="center"
- paddingTop="10" paddingLeft="10" paddingRight="10" paddingBottom="10">
-
- <mx:VRule rollOverEffect="WipeUp" strokeWidth="1" strokeColor="red"/>
- <mx:Label width="100%" color="blue"
- text="Move mouse over VRule control to redraw it."/>
-
- </mx:Panel>
-</mx:Application>
-
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/48f47e61/TourDeFlex/TourDeFlex3/src/controls/SpacerExample.mxml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/controls/SpacerExample.mxml b/TourDeFlex/TourDeFlex3/src/controls/SpacerExample.mxml
deleted file mode 100755
index bd41a15..0000000
--- a/TourDeFlex/TourDeFlex3/src/controls/SpacerExample.mxml
+++ /dev/null
@@ -1,36 +0,0 @@
-<?xml version="1.0"?>
-<!--
- 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.
- -->
-
-<!-- Simple example to demonstrate the Spacer control. -->
-<mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx">
-
- <mx:Panel id="panel" title="Spacer Control Example" height="75%" width="75%"
- paddingTop="10" paddingBottom="10" paddingLeft="10" paddingRight="10">
-
- <mx:Text width="100%" color="blue"
- text="The Spacer control pushes the second image to the right edge of the HBox container."/>
-
- <mx:HBox width="100%">
- <mx:Image source="@Embed('assets/ApacheFlexLogo.png')"/>
- <mx:Spacer width="100%"/>
- <mx:Image source="@Embed('assets/ApacheFlexLogo.png')"/>
- </mx:HBox>
-
- </mx:Panel>
-</mx:Application>
-
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/48f47e61/TourDeFlex/TourDeFlex3/src/controls/TabBarExample.mxml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/controls/TabBarExample.mxml b/TourDeFlex/TourDeFlex3/src/controls/TabBarExample.mxml
deleted file mode 100755
index fdb9dd5..0000000
--- a/TourDeFlex/TourDeFlex3/src/controls/TabBarExample.mxml
+++ /dev/null
@@ -1,57 +0,0 @@
-<?xml version="1.0"?>
-<!--
- 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.
- -->
-
-<!-- Simple example to demonstrate the TabBar control. -->
-<mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx">
-
- <fx:Script>
- <![CDATA[
-
- import mx.events.ItemClickEvent;
- import mx.controls.TabBar;
-
- [Bindable]
- public var STATE_ARRAY:Array = [{label:"Alabama", data:"Montgomery"},
- {label:"Alaska", data:"Juneau"},
- {label:"Arkansas", data:"LittleRock"}
- ];
-
- private function clickEvt(event:ItemClickEvent):void {
- // Access target TabBar control.
- var targetComp:TabBar = TabBar(event.currentTarget);
- forClick.text="label is: " + event.label + ", index is: " +
- event.index + ", capital is: " +
- targetComp.dataProvider[event.index].data;
- }
- ]]>
- </fx:Script>
-
- <mx:Panel title="TabBar Control Example" height="75%" width="75%"
- paddingTop="10" paddingBottom="10" paddingLeft="10" paddingRight="10">
-
- <mx:Label width="100%" color="blue"
- text="Select a tab to change the current panel."/>
-
- <mx:TabBar itemClick="clickEvt(event);">
- <mx:dataProvider>{STATE_ARRAY}</mx:dataProvider>
- </mx:TabBar>
-
- <mx:TextArea id="forClick" height="100%" width="100%"/>
-
- </mx:Panel>
-</mx:Application>
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/48f47e61/TourDeFlex/TourDeFlex3/src/controls/TextAreaExample.mxml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/controls/TextAreaExample.mxml b/TourDeFlex/TourDeFlex3/src/controls/TextAreaExample.mxml
deleted file mode 100755
index 5d1729e..0000000
--- a/TourDeFlex/TourDeFlex3/src/controls/TextAreaExample.mxml
+++ /dev/null
@@ -1,37 +0,0 @@
-<?xml version="1.0"?>
-<!--
- 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.
- -->
-
-<!-- Simple example to demonstrate the TextArea control. -->
-<mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx">
-
- <mx:Panel title="TextArea Control Example" height="75%" width="75%"
- paddingTop="10" paddingBottom="10" paddingLeft="10" paddingRight="10">
-
- <mx:TextArea width="400" height="100">
- <mx:text>
- This is a multiline, editable TextArea control. If you need
- a non-editable multiline control, use the Text control.
- </mx:text>
- </mx:TextArea>
-
- <mx:TextArea width="400" height="100">
- <mx:htmlText><![CDATA[This is <font color="#FF0000">HTML text</font> in a <b>TextArea control</b>. Use the <u>htmlText property</u> of the <font color="#008800">TextArea control</font> to include basic HTML markup in your text.]]></mx:htmlText>
- </mx:TextArea>
-
- </mx:Panel>
-</mx:Application>
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/48f47e61/TourDeFlex/TourDeFlex3/src/controls/TextExample.mxml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/controls/TextExample.mxml b/TourDeFlex/TourDeFlex3/src/controls/TextExample.mxml
deleted file mode 100755
index 93c6df1..0000000
--- a/TourDeFlex/TourDeFlex3/src/controls/TextExample.mxml
+++ /dev/null
@@ -1,39 +0,0 @@
-<?xml version="1.0"?>
-<!--
- 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.
- -->
-
-<!-- Simple example to demonstrate the Text control. -->
-<mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx">
-
- <mx:Panel title="Text Control Example" height="75%" width="75%"
- paddingTop="10" paddingLeft="10" paddingRight="10">
-
- <mx:Text width="100%">
- <mx:text>
- This is a multiline, non-editable text component.
- If you need an editable multiline component, use TextArea.
- </mx:text>
- </mx:Text>
-
- <mx:Text width="100%">
- <mx:htmlText>
- <![CDATA[This is <font color="#FF0000">HTML text</font> in a <b>Text component</b>. Using the <u>htmlText attribute</u> of the <font color="#008800">Text component</font> you can use basic HTML markup.]]>
- </mx:htmlText>
- </mx:Text>
-
- </mx:Panel>
-</mx:Application>
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/48f47e61/TourDeFlex/TourDeFlex3/src/controls/TextInputExample.mxml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/controls/TextInputExample.mxml b/TourDeFlex/TourDeFlex3/src/controls/TextInputExample.mxml
deleted file mode 100755
index d881eef..0000000
--- a/TourDeFlex/TourDeFlex3/src/controls/TextInputExample.mxml
+++ /dev/null
@@ -1,32 +0,0 @@
-<?xml version="1.0"?>
-<!--
- 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.
- -->
-
-<!-- Simple example to demonstrate the TextInput control. -->
-<mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx">
-
- <mx:Panel title="TextInput Control Example" height="75%" width="75%"
- paddingTop="10" paddingLeft="10">
-
- <mx:TextInput id="src" text="Hello World!"/>
-
- <mx:Button label="Copy Text" click="dest.text = src.text"/>
-
- <mx:TextInput id="dest"/>
-
- </mx:Panel>
-</mx:Application>
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/48f47e61/TourDeFlex/TourDeFlex3/src/controls/TileListExample.mxml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/controls/TileListExample.mxml b/TourDeFlex/TourDeFlex3/src/controls/TileListExample.mxml
deleted file mode 100755
index 669f730..0000000
--- a/TourDeFlex/TourDeFlex3/src/controls/TileListExample.mxml
+++ /dev/null
@@ -1,68 +0,0 @@
-<?xml version="1.0"?>
-<!--
- 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.
- -->
-
-<!-- Simple example to demonstrate the TileList Control. -->
-<mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx">
-
- <fx:Script>
- <![CDATA[
-
- [Bindable]
- [Embed(source="assets/ApacheFlexLogo.png")]
- public var logo1:Class;
-
- [Bindable]
- [Embed(source="assets/ApacheFlexLogo.png")]
- public var logo2:Class;
-
- [Bindable]
- [Embed(source="assets/ApacheFlexLogo.png")]
- public var logo3:Class;
-
- [Bindable]
- [Embed(source="assets/ApacheFlexLogo.png")]
- public var logo4:Class;
-
- [Bindable]
- [Embed(source="assets/ApacheFlexLogo.png")]
- public var logo5:Class;
- ]]>
- </fx:Script>
-
- <mx:Panel title="TileList Control Example" height="100%" width="100%"
- paddingTop="10" paddingBottom="10" paddingLeft="10" paddingRight="10">
-
- <mx:Label width="100%" color="blue"
- text="A TileList control displays items in rows and columns."/>
-
- <mx:TileList id="CameraSelection" height="250" width="300"
- maxColumns="2" rowHeight="225" columnWidth="125">
- <mx:dataProvider>
- <fx:Array>
- <fx:Object label="Logo 1" icon="{logo1}"/>
- <fx:Object label="Logo 2" icon="{logo2}"/>
- <fx:Object label="Logo 3" icon="{logo3}"/>
- <fx:Object label="Logo 4" icon="{logo4}"/>
- <fx:Object label="Logo 5" icon="{logo5}"/>
- </fx:Array>
- </mx:dataProvider>
- </mx:TileList>
-
- </mx:Panel>
-</mx:Application>
-
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/48f47e61/TourDeFlex/TourDeFlex3/src/controls/ToggleButtonBarExample.mxml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/controls/ToggleButtonBarExample.mxml b/TourDeFlex/TourDeFlex3/src/controls/ToggleButtonBarExample.mxml
deleted file mode 100755
index 762abee..0000000
--- a/TourDeFlex/TourDeFlex3/src/controls/ToggleButtonBarExample.mxml
+++ /dev/null
@@ -1,55 +0,0 @@
-<?xml version="1.0"?>
-<!--
- 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.
- -->
-
-<!-- Simple example to demonstrate the ToggleButtonBar control. -->
-<mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx">
-
- <fx:Script>
- <![CDATA[
-
- import mx.events.ItemClickEvent;
-
- // Event handler function to print a message
- // describing the selected Button control.
- private function clickHandler(event:ItemClickEvent):void {
- myTA.text="Selected button index: " + String(event.index) +
- "\n" + "Selected button label: " + event.label;
- }
- ]]>
- </fx:Script>
-
- <mx:Panel title="ToggleButtonBar Control Example" height="75%" width="75%"
- paddingTop="10" paddingLeft="10" paddingRight="10" paddingBottom="10">
-
- <mx:Label width="100%" color="blue"
- text="Select a button in the ToggleButtonBar control."/>
-
- <mx:TextArea id="myTA" width="100%" height="100%"/>
-
- <mx:ToggleButtonBar itemClick="clickHandler(event);">
- <mx:dataProvider>
- <fx:Array>
- <fx:String>Flex SDK</fx:String>
- <fx:String>Flex JS</fx:String>
- <fx:String>Falcon</fx:String>
- <fx:String>Falcon JX</fx:String>
- </fx:Array>
- </mx:dataProvider>
- </mx:ToggleButtonBar>
- </mx:Panel>
-</mx:Application>
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/48f47e61/TourDeFlex/TourDeFlex3/src/controls/TreeExample.mxml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/controls/TreeExample.mxml b/TourDeFlex/TourDeFlex3/src/controls/TreeExample.mxml
deleted file mode 100755
index 95aeb61..0000000
--- a/TourDeFlex/TourDeFlex3/src/controls/TreeExample.mxml
+++ /dev/null
@@ -1,67 +0,0 @@
-<?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.
- -->
-
-<!-- Tree control example. -->
-<mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx">
-
- <fx:Script>
- <![CDATA[
-
- [Bindable]
- public var selectedNode:XML;
-
- // Event handler for the Tree control change event.
- public function treeChanged(event:Event):void {
- selectedNode=Tree(event.target).selectedItem as XML;
- }
- ]]>
- </fx:Script>
-
- <fx:Declarations>
- <fx:XMLList id="treeData">
- <node label="Mail Box">
- <node label="Inbox">
- <node label="Marketing"/>
- <node label="Product Management"/>
- <node label="Personal"/>
- </node>
- <node label="Outbox">
- <node label="Professional"/>
- <node label="Personal"/>
- </node>
- <node label="Spam"/>
- <node label="Sent"/>
- </node>
- </fx:XMLList>
- </fx:Declarations>
-
- <mx:Panel title="Tree Control Example" height="75%" width="75%"
- paddingTop="10" paddingLeft="10" paddingRight="10" paddingBottom="10">
-
- <mx:Label width="100%" color="blue"
- text="Select a node in the Tree control."/>
-
- <mx:HDividedBox width="100%" height="100%">
- <mx:Tree id="myTree" width="50%" height="100%" labelField="@label"
- showRoot="false" dataProvider="{treeData}" change="treeChanged(event)"/>
- <mx:TextArea height="100%" width="50%"
- text="Selected Item: {selectedNode.@label}"/>
- </mx:HDividedBox>
-
- </mx:Panel>
-</mx:Application>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/48f47e61/TourDeFlex/TourDeFlex3/src/controls/VScrollBarExample.mxml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/controls/VScrollBarExample.mxml b/TourDeFlex/TourDeFlex3/src/controls/VScrollBarExample.mxml
deleted file mode 100755
index 05709b4..0000000
--- a/TourDeFlex/TourDeFlex3/src/controls/VScrollBarExample.mxml
+++ /dev/null
@@ -1,55 +0,0 @@
-<?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.
- -->
-
-<!-- Simple example to demonstrate the VScrollBar control. -->
-<mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx">
-
- <fx:Script>
- <![CDATA[
-
- import mx.events.ScrollEvent;
-
- // Event handler function to display the scroll location
- // as you move the scroll thumb.
- private function myScroll(event:ScrollEvent):void
- {
- showPosition.text = "VScrollBar properties summary:" + '\n' +
- "------------------------------------" + '\n' +
- "Current scroll position: " + event.currentTarget.scrollPosition + '\n' +
- "The maximum scroll position: " + event.currentTarget.maxScrollPosition + '\n' +
- "The minimum scroll position: " + event.currentTarget.minScrollPosition ;
- }
- ]]>
- </fx:Script>
-
- <mx:Panel id="panel" title="VScrollBar Control Example" height="75%" width="75%"
- paddingTop="10" paddingLeft="10" paddingRight="10" paddingBottom="10">
-
- <mx:Label width="100%" color="blue"
- text="Click on the scroll bar to view its properties."/>
-
- <mx:VScrollBar id="bar" height="100%"
- minScrollPosition="0" maxScrollPosition="{panel.width - 20}"
- lineScrollSize="50" pageScrollSize="100"
- repeatDelay="1000" repeatInterval="500"
- scroll="myScroll(event);"/>
-
- <mx:TextArea height="100%" width="100%" id="showPosition" color="blue"/>
-
- </mx:Panel>
-</mx:Application>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/48f47e61/TourDeFlex/TourDeFlex3/src/controls/VideoDisplayExample.mxml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/controls/VideoDisplayExample.mxml b/TourDeFlex/TourDeFlex3/src/controls/VideoDisplayExample.mxml
deleted file mode 100755
index 2aca4b0..0000000
--- a/TourDeFlex/TourDeFlex3/src/controls/VideoDisplayExample.mxml
+++ /dev/null
@@ -1,38 +0,0 @@
-<?xml version="1.0"?>
-<!--
- 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.
- -->
-
-<!-- Simple example to demonstrate the VideoDisplay control. -->
-<mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx">
-
- <mx:Panel title="VideoDisplay Control Example" height="75%" width="75%"
- horizontalAlign="center"
- paddingTop="10" paddingLeft="10" paddingRight="10" paddingBottom="10">
-
- <mx:Text width="75%" color="blue"
- text="Use the buttons to control the video. The Stop button resets the video to the beginning."/>
-
- <mx:VideoDisplay id="myVid" height="158" width="211" source="assets/FlexInstaller.mp4" autoPlay="false"/>
-
- <mx:HBox>
- <mx:Button label="Play" click="myVid.play();"/>
- <mx:Button label="Pause" click="myVid.pause();"/>
- <mx:Button label="Stop" click="myVid.stop();"/>
- </mx:HBox>
-
- </mx:Panel>
-</mx:Application>
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/48f47e61/TourDeFlex/TourDeFlex3/src/controls/assets/ApacheFlexIcon.png
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/controls/assets/ApacheFlexIcon.png b/TourDeFlex/TourDeFlex3/src/controls/assets/ApacheFlexIcon.png
deleted file mode 100644
index e68d831..0000000
Binary files a/TourDeFlex/TourDeFlex3/src/controls/assets/ApacheFlexIcon.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/48f47e61/TourDeFlex/TourDeFlex3/src/controls/assets/ApacheFlexLogo.png
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/controls/assets/ApacheFlexLogo.png b/TourDeFlex/TourDeFlex3/src/controls/assets/ApacheFlexLogo.png
deleted file mode 100644
index 4ff037f..0000000
Binary files a/TourDeFlex/TourDeFlex3/src/controls/assets/ApacheFlexLogo.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/48f47e61/TourDeFlex/TourDeFlex3/src/controls/assets/buttonDisabled.gif
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/controls/assets/buttonDisabled.gif b/TourDeFlex/TourDeFlex3/src/controls/assets/buttonDisabled.gif
deleted file mode 100755
index 9a19d26..0000000
Binary files a/TourDeFlex/TourDeFlex3/src/controls/assets/buttonDisabled.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/48f47e61/TourDeFlex/TourDeFlex3/src/controls/assets/buttonDown.gif
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/controls/assets/buttonDown.gif b/TourDeFlex/TourDeFlex3/src/controls/assets/buttonDown.gif
deleted file mode 100755
index 18c0ea4..0000000
Binary files a/TourDeFlex/TourDeFlex3/src/controls/assets/buttonDown.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/48f47e61/TourDeFlex/TourDeFlex3/src/controls/assets/buttonOver.gif
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/controls/assets/buttonOver.gif b/TourDeFlex/TourDeFlex3/src/controls/assets/buttonOver.gif
deleted file mode 100755
index 9c66b81..0000000
Binary files a/TourDeFlex/TourDeFlex3/src/controls/assets/buttonOver.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/48f47e61/TourDeFlex/TourDeFlex3/src/controls/assets/buttonUp.gif
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/controls/assets/buttonUp.gif b/TourDeFlex/TourDeFlex3/src/controls/assets/buttonUp.gif
deleted file mode 100755
index 36dfb34..0000000
Binary files a/TourDeFlex/TourDeFlex3/src/controls/assets/buttonUp.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/48f47e61/TourDeFlex/TourDeFlex3/src/controls/assets/flexinstaller.mp4
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/controls/assets/flexinstaller.mp4 b/TourDeFlex/TourDeFlex3/src/controls/assets/flexinstaller.mp4
deleted file mode 100644
index 8c877c4..0000000
Binary files a/TourDeFlex/TourDeFlex3/src/controls/assets/flexinstaller.mp4 and /dev/null differ
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/48f47e61/TourDeFlex/TourDeFlex3/src/core/RepeaterExample.mxml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/core/RepeaterExample.mxml b/TourDeFlex/TourDeFlex3/src/core/RepeaterExample.mxml
deleted file mode 100755
index 2649e9d..0000000
--- a/TourDeFlex/TourDeFlex3/src/core/RepeaterExample.mxml
+++ /dev/null
@@ -1,51 +0,0 @@
-<?xml version="1.0"?>
-<!--
- 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.
- -->
-
-<!-- Simple example to demonstrate the Repeater class. -->
-<mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx">
-
- <fx:Script>
- <![CDATA[
-
- import mx.controls.Alert;
-
- [Bindable]
- private var dp:Array = [1, 2, 3, 4, 5, 6, 7, 8, 9];
-
- ]]>
- </fx:Script>
-
- <mx:Panel title="Repeater Example" width="75%" height="75%"
- paddingTop="10" paddingLeft="10" paddingRight="10" paddingBottom="10">
-
- <mx:Text width="100%" color="blue"
- text="Use the Repeater class to create 9 Button controls in a 3 by 3 Tile container."/>
-
- <mx:Tile direction="horizontal" borderStyle="inset"
- horizontalGap="10" verticalGap="15"
- paddingLeft="10" paddingTop="10" paddingBottom="10" paddingRight="10">
-
- <mx:Repeater id="rp" dataProvider="{dp}">
- <mx:Button height="49" width="50"
- label="{String(rp.currentItem)}"
- click="Alert.show(String(event.currentTarget.getRepeaterItem()) + ' pressed')"/>
- </mx:Repeater>
- </mx:Tile>
-
- </mx:Panel>
-</mx:Application>
\ No newline at end of file