This is an automated email from the ASF dual-hosted git repository. aharui pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit a62a8535aac8cb21debc32983b330b5d5a4c5bbb Author: Alex Harui <[email protected]> AuthorDate: Mon Sep 10 14:28:56 2018 -0700 comment out APIs Alina's app isn't using so the compile is successful --- examples/mxroyale/tourdeflexmodules/build.xml | 32 ++++++++++--- .../mxroyale/tourdeflexmodules/src/explorer.xml | 52 ++++++++++++++++------ .../src/spark/containers/TileGroupExample.mxml | 3 +- .../src/spark/controls/ButtonExample.mxml | 4 +- .../src/spark/controls/CheckboxExample.mxml | 4 +- .../src/spark/controls/DataGroupExample.mxml | 3 +- .../src/spark/controls/DropdownExample.mxml | 11 +++-- .../src/spark/controls/ListExample.mxml | 8 ++-- .../src/spark/controls/NumericStepperExample.mxml | 9 ++-- .../spark/controls/RichEditableTextExample.mxml | 14 +++--- .../src/spark/controls/TextAreaExample.mxml | 6 ++- .../src/spark/controls/TextInputExample.mxml | 8 +++- .../src/spark/controls/TextLayout1Example.mxml | 33 +++++++------- .../spark/itemRenderers/ItemRenderer1Example.mxml | 4 +- 14 files changed, 131 insertions(+), 60 deletions(-) diff --git a/examples/mxroyale/tourdeflexmodules/build.xml b/examples/mxroyale/tourdeflexmodules/build.xml index 49b08bb..8102215 100644 --- a/examples/mxroyale/tourdeflexmodules/build.xml +++ b/examples/mxroyale/tourdeflexmodules/build.xml @@ -303,31 +303,38 @@ <compile-mxml example="/spark/controls/AccordionExample"/> --> <compile-mxml example="/spark/controls/AdvancedDatagridExample"/> + <!-- <compile-mxml example="/spark/controls/ColorPickerExample"/> + --> <compile-mxml example="/spark/controls/ComboBoxExample"/> <compile-mxml example="/spark/controls/DataGridExample"/> <compile-mxml example="/spark/controls/DataGroupExample"/> + <!-- <compile-mxml example="/spark/controls/MenuExample"/> + --> <compile-mxml example="/spark/controls/RichEditableTextExample"/> + <!-- <compile-mxml example="/spark/controls/DateChooserExample"/> <compile-mxml example="/spark/controls/DateFieldExample"/> <compile-mxml example="/spark/controls/FormExample"/> <compile-mxml example="/spark/controls/ImageExample"/> <compile-mxml example="/spark/controls/LinkBarExample"/> <compile-mxml example="/spark/controls/LinkButtonExample"/> - <!-- <compile-mxml example="/spark/controls/OLAPDataGridExample"/> <compile-mxml example="/spark/controls/PopupButtonExample"/> - --> <compile-mxml example="/spark/controls/ProgressBarExample"/> + --> <!-- Currently broken <compile-mxml example="/spark/controls/SWFLoaderExample"/> --> <compile-mxml example="/spark/controls/TitleWindowExample"/> <compile-mxml example="/spark/controls/ToggleButtonBarExample"/> + <!-- <compile-mxml example="/spark/controls/ToolTipExample"/> <compile-mxml example="/spark/controls/TreeExample"/> <compile-mxml example="/spark/controls/ViewStackExample"/> + --> <compile-mxml example="/spark/controls/TextAreaExample"/> <compile-mxml example="/spark/controls/TextInputExample"/> + <!-- <compile-mxml example="/spark/controls/TextLayout1Example"/> <compile-mxml example="/spark/controls/TextLayout2Example"/> <compile-mxml example="/spark/controls/TextLayout3Example"/> @@ -341,26 +348,31 @@ <compile-mxml example="/spark/layouts/CustomLayoutFlickrWheelExample"/> <compile-mxml example="/spark/layouts/CustomLayoutFlowExample"/> <compile-mxml example="/spark/layouts/CustomLayoutHBaselineExample"/> + --> <compile-mxml example="/spark/itemRenderers/ItemRenderer1Example"/> <compile-mxml example="/spark/itemRenderers/ItemRenderer2Example"/> + <!-- <compile-mxml example="/spark/fxg/BitmapImageExample"/> <compile-mxml example="/spark/fxg/EclipseExample"/> <compile-mxml example="/spark/fxg/LineExample"/> <compile-mxml example="/spark/fxg/RectExample"/> <compile-mxml example="/spark/fxg/RichTextExample"/> + --> <compile-mxml example="/spark/containers/SampleHGroup"/> <compile-mxml example="/spark/containers/SampleVGroup"/> + <!-- <compile-mxml example="/spark/containers/SampleVerticalHorizontalAlign"/> <compile-mxml example="/spark/containers/SkinnableDataContainerExample"/> + --> <compile-mxml example="/spark/containers/TileGroupExample"/> + <!-- <compile-mxml example="/spark/effects/Move3DExample"/> <compile-mxml example="/spark/effects/WipeExample"/> - <!-- <compile-mxml example="/spark/charts/AreaChartExample"/> <compile-mxml example="/spark/charts/BarChartExample"/> <compile-mxml example="/spark/charts/BubbleChartExample"/> @@ -373,7 +385,6 @@ <compile-mxml example="/spark/charts/SeriesInterpolateExample"/> <compile-mxml example="/spark/charts/SeriesSlideExample"/> <compile-mxml example="/spark/charts/SeriesZoomExample"/> - --> <compile-mxml example="/spark/components/SearchExample"/> <compile-mxml example="/spark/components/VideoPlayerExample"/> @@ -414,11 +425,13 @@ <compile-mxml example="/spark/modules/ModuleExample"/> <compile-mxml example="/spark/modules/Module1"/> <compile-mxml example="/spark/modules/Module2"/> + --> <!-- currently broken <compile-mxml example="/spark/tlf/TextLayoutEditorSample"/> --> </target> <target name="compile-spark2" description="compile second set of spark examples"> + <!-- <compile-mxml example="/spark/i18n/SparkCollatorExample"/> <compile-mxml example="/spark/i18n/SparkCollator2Example"/> <compile-mxml example="/spark/i18n/SparkCurrencyValidatorExample"/> @@ -452,9 +465,11 @@ <compile-mxml example="/spark/controls/SampleStackedFormExample"/> <compile-mxml example="/spark/controls/OSMFExample"/> + --> </target> <target name="compile-spark3" description="compile third set of spark examples"> + <!-- <compile-mxml example="/spark/other/BidirectionalBinding1Example"/> <compile-mxml example="/spark/other/BidirectionalBinding2Example"/> <compile-mxml example="/spark/other/ControllingViewportExample"/> @@ -480,36 +495,42 @@ <compile-mxml example="/spark/skinning/SkinningApplication3Example"/> <compile-mxml example="/spark/skinning/SkinningContainerExample"/> <compile-mxml example="/spark/css/CSSIDSelectorExample"/> + --> <compile-mxml example="/spark/controls/ButtonExample"/> <!-- <compile-mxml example="/spark/controls/ButtonBarExample"/> - --> <compile-mxml example="/spark/controls/PopUpAnchor1Example"/> <compile-mxml example="/spark/controls/PopUpAnchor2Example"/> + --> <compile-mxml example="/spark/controls/ToggleButtonExample"/> <compile-mxml example="/spark/controls/CheckboxExample"/> <compile-mxml example="/spark/controls/DropdownExample"/> <compile-mxml example="/spark/controls/NumericStepperExample"/> <compile-mxml example="/spark/controls/RadioButtonExample"/> <compile-mxml example="/spark/controls/ToggleButton2Example"/> + <!-- <compile-mxml example="/spark/controls/ScrollBarExample"/> <compile-mxml example="/spark/controls/Scroller1Example"/> <compile-mxml example="/spark/controls/Scroller2Example"/> <compile-mxml example="/spark/controls/SliderExample"/> <compile-mxml example="/spark/controls/SpinnerExample"/> <compile-mxml example="/spark/controls/VideoPlayerExample"/> + --> <compile-mxml example="/spark/controls/ListExample"/> </target> <target name="compile-apache" description="compile apache examples"> + <!-- <compile-mxml example="/apache/ApacheFlex4_8_0"/> <compile-mxml example="/apache/ApacheFlex4_9_0"/> <compile-mxml example="/apache/ApacheFlex4_10_0"/> <compile-mxml example="/apache/ApacheFlex4_11_0"/> <compile-mxml example="/apache/ApacheFlex4_12_1"/> <compile-mxml example="/apache/ApacheFlex4_13_0"/> + --> <!-- <compile-mxml example="/apache/ApacheFlex4_13_0"/> --> + <!-- <compile-mxml example="/apache/formatters/PostCodeFormatterExample"/> <compile-mxml example="/apache/validators/PostCodeValidatorExample"/> <compile-mxml-locales example="/apache/i18n/LocaleExample"/> @@ -520,6 +541,7 @@ <compile-mxml example="/apache/i18n/NumericStepperExample"/> <compile-mxml example="/apache/containers/CalloutExample"/> <compile-mxml example="/apache/controls/MaskedTextInputExample"/> + --> <!-- Uncomment when Flex 4.14 is released --> <!-- compile-mxml example="/apache/controls/SparkRichTextEditorExample"/--> diff --git a/examples/mxroyale/tourdeflexmodules/src/explorer.xml b/examples/mxroyale/tourdeflexmodules/src/explorer.xml index 03ef158..959872a 100755 --- a/examples/mxroyale/tourdeflexmodules/src/explorer.xml +++ b/examples/mxroyale/tourdeflexmodules/src/explorer.xml @@ -248,6 +248,7 @@ </node> <node label="Spark Framework Components"> <node label="Techniques and Examples"> + <!-- <node label="Advanced CSS"> <node label="Descendant Selector" module="spark/css/CSSDescendantSelectorExample" /> <node label="ID Selector" module="spark/css/CSSIDSelectorExample" /> @@ -261,6 +262,7 @@ <node label="Busy Cursor" module="spark/other/Cursor1Example" /> <node label="Custom Cursor" module="spark/other/Cursor2Example" /> </node> + --> <!-- Require remote service to work <node label="DataGrid"> <node label="DataGrid" module="spark/controls/DataGridExample2"/> @@ -275,6 +277,7 @@ <node label="Data Paging" module="spark/controls/ListDataPagingExample" /> </node> --> + <!-- <node label="Drag and Drop"> <node label="List to List" module="spark/other/DragAndDrop1Example" /> <node label="List to Panel" module="spark/other/DragAndDrop2Example" /> @@ -301,11 +304,13 @@ <node label="String Tools" module="spark/i18n/SparkStringToolsExample"/> <node label="Formatters" module="spark/i18n/SparkFormatterExample"/> </node> + --> <node label="Item Renderers"> <node label="List" module="spark/itemRenderers/ListItemRendererExample" src="spark/itemRenderers/MyListItemRenderer.mxml"/> <node label="Scale Image" module="spark/itemRenderers/ItemRenderer1Example" src="spark/itemRenderers/renderers/ImageRenderer1.mxml" /> <node label="3D Rotate" module="spark/itemRenderers/ItemRenderer2Example" src="spark/itemRenderers/renderers/ImageRenderer2.mxml" /> </node> + <!-- <node label="Events"> <node label="Inline property" module="spark/events/EventExample1" /> <node label="Inline block" module="spark/events/EventExample2" /> @@ -323,14 +328,12 @@ <node label="Modules"> <node label="Load" module="spark/modules/ModuleExample" /> </node> - <!-- <node label="Repeater"> <node label="Repeater" module="spark/other/RepeaterExample" /> </node> <node label="ScrollBars"> <node label="ScrollBars" module="spark/other/ScrollBarsExample" /> </node> - --> <node label="Skinning"> <node label="Button With Icon" module="spark/skinning/ButtonWithIconExample" src="spark/skinning/skins/CloseButtonSkin.mxml&spark/skinning/skins/AddButtonSkin.mxml&spark/skinning/skins/IconTextButtonSkin.mxml" /> <node label="Gradient Skin" module="spark/skinning/SkinningApplication1Example" src="spark/skinning/skins/GradientBackgroundAppSkin.mxml"/> @@ -341,7 +344,9 @@ <node label="Viewport"> <node label="Controlling Viewport" module="spark/other/ControllingViewportExample" /> </node> + --> </node> + <!-- <node label="Effects and Filters"> <node label="Move 3D" module="spark/effects/Move3DExample" /> <node label="Filter" module="spark/other/FilterExample" /> @@ -355,26 +360,34 @@ <node label="Rotate 3D" module="spark/effects/Rotate3DExample" /> <node label="Scale 3D" module="spark/effects/Scale3DExample" /> </node> + --> <node label="Visual Components"> <node label="Containers"> <!-- <node label="Accordion" module="spark/controls/AccordionExample" /> - --> <node label="Border" module="spark/containers/BorderExample"/> + --> <node label="DataGroup" module="spark/controls/DataGroupExample" /> <node label="Form" module="spark/controls/FormExample" /> <node label="HGroup" module="spark/containers/SampleHGroup" /> <node label="Group" module="spark/containers/GroupExample"/> <node label="Panel" module="spark/containers/PanelExample"/> + <!-- <node label="SkinnableDataContainer" module="spark/containers/SkinnableDataContainerExample" /> <node label="TabNavigator" module="spark/containers/TabNavigator1Example" /> <node label="TabNavigator" module="spark/containers/TabNavigator2Example" /> + --> <node label="TileGroup" module="spark/containers/TileGroupExample" /> <node label="TitleWindow" module="spark/controls/TitleWindowExample" /> + <!-- <node label="ViewStack" module="spark/controls/ViewStackExample" /> + --> <node label="VGroup" module="spark/containers/SampleVGroup" /> + <!-- <node label="Vertical Horizontal Align" module="spark/containers/SampleVerticalHorizontalAlign" /> + --> </node> + <!-- <node label="Graphics and FXG"> <node label="Drop Shadow" module="spark/fxg/DropShadowGraphicExample" /> <node label="Image" module="spark/fxg/BitmapImageExample" /> @@ -386,73 +399,90 @@ <node label="RichText" module="spark/fxg/RichTextExample" /> <node label="Static FXG" module="spark/fxg/StaticFXGExample" /> </node> + --> <node label="General Controls"> + <!-- <node label="AdvancedDataGrid" module="spark/controls/AdvancedDatagridExample" /> + --> <node label="Checkbox" module="spark/controls/CheckboxExample"/> + <!-- <node label="ColorPicker" module="spark/controls/ColorPickerExample" /> + --> <node label="ComboBox" module="spark/controls/ComboBoxExample" /> <node label="DropDown" module="spark/controls/DropdownExample"/> <node label="DataGrid" module="spark/controls/DataGridExample" /> <node label="Image" module="spark/controls/ImageExample" /> <node label="List" module="spark/controls/ListExample" /> + <!-- <node label="Menu" module="spark/controls/MenuExample" /> <node label="NumericStepper" module="spark/controls/NumericStepperExample"/> <node label="OLAPDataGrid" module="spark/controls/OLAPDataGridExample" /> <node label="ProgressBar" module="spark/controls/ProgressBarExample" /> + --> <node label="RadioButton" module="spark/controls/RadioButtonExample"/> <!-- <node label="ScrollBar" module="spark/controls/ScrollBarExample" /> <node label="Scroller" module="spark/controls/Scroller1Example"/> <node label="Scroller and Tabbing" module="spark/controls/Scroller2Example"/> - --> <node label="Slider" module="spark/controls/SliderExample"/> <node label="Spinner" module="spark/controls/SpinnerExample"/> + --> <!-- Removed to avoid putting swf in repo <node label="SWFloader" module="spark/controls/SWFLoaderExample" /> --> + <!-- <node label="ToolTip" module="spark/controls/ToolTipExample" /> <node label="Tree" module="spark/controls/TreeExample" /> <node label="VideoDisplay" module="spark/controls/VideoDisplayExample" /> + --> <!-- Removed as it's using an external asset they may not work any more <node label="VideoDisplay" module="spark/controls/OSMFExample" /> --> + <!-- <node label="VideoPlayer" module="spark/controls/VideoPlayerExample" /> - </node> + --> + </node> <node label="Button Controls"> <node label="Button" module="spark/controls/ButtonExample"/> <!-- <node label="ButtonBar" module="spark/controls/ButtonBarExample"/> - --> <node label="LinkBar" module="spark/controls/LinkBarExample" /> <node label="LinkButton" module="spark/controls/LinkButtonExample" /> <node label="PopUpButton" module="spark/controls/PopupButtonExample" /> <node label="PopUpAnchor" module="spark/controls/PopUpAnchor1Example"/> <node label="PopUpAnchor" module="spark/controls/PopUpAnchor2Example"/> <node label="ToggleButton" module="spark/controls/ToggleButtonExample"/> + --> <node label="ToggleButtonBar" module="spark/controls/ToggleButtonBarExample" /> </node> + <!-- <node label="Date Controls"> <node label="DateChooser" module="spark/controls/DateChooserExample" /> <node label="DateField" module="spark/controls/DateFieldExample" /> </node> + --> <node label="Text Controls"> <node label="RichEditableText" module="spark/controls/RichEditableTextExample" /> <node label="TextArea" module="spark/controls/TextAreaExample" /> <node label="TextInput" module="spark/controls/TextInputExample" /> + <!-- <node label="Sample Layout" module="spark/controls/TextLayout1Example" /> <node label="News Layout" module="spark/controls/TextLayout2Example" /> <node label="Text Controls" module="spark/controls/TextLayout3Example" /> <node label="Import Format Types" module="spark/controls/TextLayout4Example" /> + --> <!-- Doesn't comile with current version of TLF <node label="Text Layout Editor" module="spark/tlf/TextLayoutEditorSample" /> --> </node> + <!-- <node label="Layouts"> <node label="Animated" module="spark/layouts/CustomLayoutAnimatedExample" /> <node label="Baseline" module="spark/layouts/CustomLayoutHBaselineExample" /> <node label="Image Wheel" module="spark/layouts/CustomLayoutFlickrWheelExample" /> <node label="Text Flow" module="spark/layouts/CustomLayoutFlowExample" /> </node> + --> </node> <!-- <node label="Charts"> @@ -469,7 +499,6 @@ <node label="SeriesSlide" module="spark/charts/SeriesSlideExample" /> <node label="SeriesZoom" module="spark/charts/SeriesZoomExample" /> </node> - --> <node label="Validators and Formatters"> <node label="Validators"> <node label="CreditCardValidator" module="spark/validators/CreditCardValidatorExample" /> @@ -492,19 +521,18 @@ <node label="ZipCodeFormatter" module="spark/formatters/ZipCodeFormatterExample" /> </node> </node> + --> </node> + <!-- <node label="Apache Flex Components and Features"> <node label="Apache Flex 4.8" module="apache/ApacheFlex4_8_0"> - <!-- Do we habe any examples here? --> </node> <node label="Apache Flex 4.9" module="apache/ApacheFlex4_9_0"> - <!-- Add more examples here --> <node label="PostCodeFormatter" module="apache/formatters/PostCodeFormatterExample"/> <node label="PostCodeValidator" module="apache/validators/PostCodeValidatorExample"/> <node label="New SDK locales" module="apache/i18n/LocaleExample"/> </node> <node label="Apache Flex 4.10" module="apache/ApacheFlex4_10_0"> - <!-- Add more examples here --> <node label="International Dates" module="apache/i18n/DateExample"/> <node label="Millisecond Formatting" module="apache/i18n/MillisecondExample"/> <node label="NumberStepper" module="apache/i18n/NumericStepperExample"/> @@ -512,15 +540,12 @@ <node label="Timezone Formatting" module="apache/i18n/TimeZoneExample"/> </node> <node label="Apache Flex 4.11" module="apache/ApacheFlex4_11_0"> - <!-- Add more examples here --> <node label="Callout" module="apache/containers/CalloutExample"/> </node> <node label="Apache Flex 4.12" module="apache/ApacheFlex4_12_1"> - <!-- Add more examples here --> <node label="MaskedTextInput" module="apache/controls/MaskedTextInputExample"/> </node> <node label="Apache Flex 4.13" module="apache/ApacheFlex4_13_0"> - <!-- Add examples here --> </node> <node label="Apache Flex 4.14" module="apache/ApacheFlex4_14_0"> <node label="MaskedTextInput" module="apache/controls/SparkRichTextEditorExample"/> @@ -530,5 +555,6 @@ <node label="Spark Spelling Example" module="apache/squiggly/SpellingExExample"/> </node> </node> + --> </node> </compTree> diff --git a/examples/mxroyale/tourdeflexmodules/src/spark/containers/TileGroupExample.mxml b/examples/mxroyale/tourdeflexmodules/src/spark/containers/TileGroupExample.mxml index 17a512a..04450dd 100644 --- a/examples/mxroyale/tourdeflexmodules/src/spark/containers/TileGroupExample.mxml +++ b/examples/mxroyale/tourdeflexmodules/src/spark/containers/TileGroupExample.mxml @@ -65,7 +65,8 @@ <s:VGroup top="10" left="10"> <s:HGroup verticalAlign="middle"> <s:Label text="Orientation:"/> - <s:DropDownList id="orientation" dataProvider="{new ArrayList(orientArray)}" prompt="columns"/> + <!--<s:DropDownList id="orientation" dataProvider="{new ArrayList(orientArray)}" prompt="columns"/>--> + <s:DropDownList id="orientation" dataProvider="{new ArrayList(orientArray)}"/> </s:HGroup> <s:HGroup verticalAlign="middle"> diff --git a/examples/mxroyale/tourdeflexmodules/src/spark/controls/ButtonExample.mxml b/examples/mxroyale/tourdeflexmodules/src/spark/controls/ButtonExample.mxml index 553270c..a3e254a 100644 --- a/examples/mxroyale/tourdeflexmodules/src/spark/controls/ButtonExample.mxml +++ b/examples/mxroyale/tourdeflexmodules/src/spark/controls/ButtonExample.mxml @@ -23,7 +23,7 @@ <fx:Script> <![CDATA[ - import flash.events.Event; + import org.apache.royale.events.Event; protected function buttonClickHandler(event:Event):void { @@ -49,9 +49,11 @@ component looks like it can be pressed. The default skin has a text label."/> click="buttonClickHandler(event)" fontWeight="normal"/> <s:Button id="disabledBtn" label="Disabled Button" enabled="false"/> + <!-- <s:Button id="repeatBtn" label="Repeat Button" buttonDown="buttonClickHandler(event)" autoRepeat="true"/> + --> <s:Label verticalAlign="justify" text="Hold down on repeat button to see autoRepeat behavior."/> diff --git a/examples/mxroyale/tourdeflexmodules/src/spark/controls/CheckboxExample.mxml b/examples/mxroyale/tourdeflexmodules/src/spark/controls/CheckboxExample.mxml index b0a9449..9712698 100644 --- a/examples/mxroyale/tourdeflexmodules/src/spark/controls/CheckboxExample.mxml +++ b/examples/mxroyale/tourdeflexmodules/src/spark/controls/CheckboxExample.mxml @@ -36,15 +36,17 @@ totalCost -= 0.25; } // Format the totalCost and then display it in a label. - totalString.text = usdFormatter.format(totalCost); + totalString.text = /*usdFormatter.format(*/totalCost/*);*/.toString(); } ]]> </fx:Script> <fx:Declarations> + <!-- <mx:CurrencyFormatter id="usdFormatter" precision="2" currencySymbol="$" decimalSeparatorFrom="." decimalSeparatorTo="." useNegativeSign="true" useThousandsSeparator="true" alignSymbol="left"/> + --> </fx:Declarations> <s:Panel title="CheckBox Sample" width="100%" height="100%"> diff --git a/examples/mxroyale/tourdeflexmodules/src/spark/controls/DataGroupExample.mxml b/examples/mxroyale/tourdeflexmodules/src/spark/controls/DataGroupExample.mxml index e5f3386..bcd4633 100644 --- a/examples/mxroyale/tourdeflexmodules/src/spark/controls/DataGroupExample.mxml +++ b/examples/mxroyale/tourdeflexmodules/src/spark/controls/DataGroupExample.mxml @@ -88,6 +88,7 @@ ]]> </fx:Script> + <!-- <s:transitions> <mx:Transition fromState="normal" toState="hovered"> <s:Animate target="{flightPlan}" duration="200"> @@ -100,7 +101,7 @@ </s:Animate> </mx:Transition> </s:transitions> - + --> <s:Rect left="0" right="0" top="0" bottom="0" radiusX="5" radiusY="5"> <s:fill> <s:SolidColor color="#E1ECF4" /> diff --git a/examples/mxroyale/tourdeflexmodules/src/spark/controls/DropdownExample.mxml b/examples/mxroyale/tourdeflexmodules/src/spark/controls/DropdownExample.mxml index 1433965..b4158f9 100644 --- a/examples/mxroyale/tourdeflexmodules/src/spark/controls/DropdownExample.mxml +++ b/examples/mxroyale/tourdeflexmodules/src/spark/controls/DropdownExample.mxml @@ -52,7 +52,7 @@ private function handleDepartmentSelected(event:IndexChangeEvent):void { - list2.prompt="Select Item"; + //list2.prompt="Select Item"; list2.selectedIndex=-1; // reset so prompt shows if (list1.selectedIndex==0) list2.dataProvider=elecItems; @@ -70,11 +70,14 @@ <s:VGroup width="100%" height="100%" left="120" top="5"> <s:Label text="RJ's Warehouse Price Checker" fontSize="18" /> - <s:DropDownList id="list1" width="50%" dataProvider="{depts}" labelField="label" + <!--<s:DropDownList id="list1" width="50%" dataProvider="{depts}" labelField="label" prompt="Select Category" - change="handleDepartmentSelected(event)"/> + change="handleDepartmentSelected(event)"/>--> + <s:DropDownList id="list1" width="50%" dataProvider="{depts}" labelField="label" + change="handleDepartmentSelected(event)"/> <s:Label id="text2"/> - <s:DropDownList id="list2" width="50%" labelField="label" prompt="None"/> + <!--<s:DropDownList id="list2" width="50%" labelField="label" prompt="None"/>--> + <s:DropDownList id="list2" width="50%" labelField="label"/> <mx:Spacer height="10"/> <s:Label fontSize="14" color="0x336699" text="The price of item: {list2.selectedItem.label} is: ${list1.selectedItem.data}" verticalAlign="bottom"/> </s:VGroup> diff --git a/examples/mxroyale/tourdeflexmodules/src/spark/controls/ListExample.mxml b/examples/mxroyale/tourdeflexmodules/src/spark/controls/ListExample.mxml index ab492dd..997eef5 100644 --- a/examples/mxroyale/tourdeflexmodules/src/spark/controls/ListExample.mxml +++ b/examples/mxroyale/tourdeflexmodules/src/spark/controls/ListExample.mxml @@ -37,15 +37,16 @@ } protected function buyBtn_clickHandler(event:MouseEvent):void { - txtResponse.text="Thank you for your order totaling: " + usdFormatter.format(totalPrice) + "\nItems will ship in 3 days."; + txtResponse.text="Thank you for your order totaling: " + /*usdFormatter.format(totalPrice)*/totalPrice.toString() + "\nItems will ship in 3 days."; } ]]> </fx:Script> <fx:Declarations> + <!-- <mx:CurrencyFormatter id="usdFormatter" precision="2" currencySymbol="$" decimalSeparatorFrom="." decimalSeparatorTo="." useNegativeSign="true" - useThousandsSeparator="true" alignSymbol="left"/> + useThousandsSeparator="true" alignSymbol="left"/>--> </fx:Declarations> <fx:Style> @namespace "library://ns.apache.org/royale/spark"; @@ -84,7 +85,8 @@ color="0xAE0A0A" fontWeight="bold"/> <s:VGroup> <mx:Spacer height="10"/> - <s:Label text="Total of Items selected: {usdFormatter.format(this.totalPrice)}"/> + <!--<s:Label text="Total of Items selected: {usdFormatter.format(this.totalPrice)}"/>--> + <s:Label text="Total of Items selected: {totalPrice}"/> <s:Button id="buyBtn" horizontalCenter="0" bottom="30" label="Buy Now!" fontWeight="bold" click="buyBtn_clickHandler(event)"/> diff --git a/examples/mxroyale/tourdeflexmodules/src/spark/controls/NumericStepperExample.mxml b/examples/mxroyale/tourdeflexmodules/src/spark/controls/NumericStepperExample.mxml index 7a831c5..d8aa032 100644 --- a/examples/mxroyale/tourdeflexmodules/src/spark/controls/NumericStepperExample.mxml +++ b/examples/mxroyale/tourdeflexmodules/src/spark/controls/NumericStepperExample.mxml @@ -60,13 +60,16 @@ for stepping through the valid values. You can use the Up Arrow and Down arrow k <mx:Form> <mx:FormHeading id="formHead" label="Welcome to Ticket Grabber!"/> <mx:FormItem label="Name:"> - <s:TextInput id="nameTxt" widthInChars="20"/> + <!--<s:TextInput id="nameTxt" widthInChars="20"/>--> + <s:TextInput id="nameTxt" /> </mx:FormItem> <mx:FormItem label="Address:"> - <s:TextArea widthInChars="20" heightInLines="2"/> + <!--<s:TextArea widthInChars="20" heightInLines="2"/>--> + <s:TextArea /> </mx:FormItem> <mx:FormItem label="Phone:"> - <s:TextInput id="phoneTxt" widthInChars="20"/> + <!--<s:TextInput id="phoneTxt" widthInChars="20"/>--> + <s:TextInput id="phoneTxt"/> </mx:FormItem> <mx:FormItem label="Select # of tickets:"> <s:NumericStepper id="numStepper" width="55" diff --git a/examples/mxroyale/tourdeflexmodules/src/spark/controls/RichEditableTextExample.mxml b/examples/mxroyale/tourdeflexmodules/src/spark/controls/RichEditableTextExample.mxml index 0f02b85..260234f 100644 --- a/examples/mxroyale/tourdeflexmodules/src/spark/controls/RichEditableTextExample.mxml +++ b/examples/mxroyale/tourdeflexmodules/src/spark/controls/RichEditableTextExample.mxml @@ -20,15 +20,15 @@ <s:Module xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.apache.org/royale/spark" xmlns:mx="library://ns.apache.org/royale/mx" - preinitialize="init()"> + initialize="init()"> <!-- Based on samples from Peter DeHaan's blog: http://blog.flexexamples.com/ --> <fx:Script> - import flashx.textLayout.elements.Configuration; - import flashx.textLayout.elements.TextFlow; - import flashx.textLayout.formats.TextDecoration; - import flashx.textLayout.formats.TextLayoutFormat; + import org.apache.royale.textLayout.elements.Configuration; + import org.apache.royale.textLayout.elements.TextFlow; + import org.apache.royale.textLayout.formats.TextDecoration; + import org.apache.royale.textLayout.formats.TextLayoutFormat; import spark.events.TextOperationEvent; @@ -36,11 +36,14 @@ protected static var lineCount:uint = 0; protected function richEdTxt_changeHandler(evt:TextOperationEvent):void { + /* lineCount = richEdTxt.mx_internal::textContainerManager.numLines; lineCnt.text = lineCount.toString(); + */ } protected function init():void { + /* var cfg:Configuration = TextFlow.defaultConfiguration; var normalTLF:TextLayoutFormat = new TextLayoutFormat(cfg.defaultLinkNormalFormat); @@ -57,6 +60,7 @@ cfg.defaultLinkHoverFormat = hoverTLF; cfg.defaultLinkActiveFormat = activeTLF; TextFlow.defaultConfiguration = cfg; + */ } </fx:Script> diff --git a/examples/mxroyale/tourdeflexmodules/src/spark/controls/TextAreaExample.mxml b/examples/mxroyale/tourdeflexmodules/src/spark/controls/TextAreaExample.mxml index ccadd30..56b699c 100644 --- a/examples/mxroyale/tourdeflexmodules/src/spark/controls/TextAreaExample.mxml +++ b/examples/mxroyale/tourdeflexmodules/src/spark/controls/TextAreaExample.mxml @@ -45,7 +45,8 @@ </s:HGroup> <s:HGroup verticalAlign="middle"> <s:Label text="Specify Text Alignment:"/> - <s:DropDownList id="alignVal" prompt="left" change="this.changeHandler()"> + <!--<s:DropDownList id="alignVal" prompt="left" change="this.changeHandler()">--> + <s:DropDownList id="alignVal" change="this.changeHandler()"> <s:dataProvider> <mx:ArrayList> <fx:String>left</fx:String> @@ -60,7 +61,8 @@ </s:HGroup> <s:HGroup verticalAlign="middle"> <s:Label text="Direction:"/> - <s:DropDownList id="direction" prompt="ltr" change="this.changeHandler()"> + <!--<s:DropDownList id="direction" prompt="ltr" change="this.changeHandler()">--> + <s:DropDownList id="direction" change="this.changeHandler()"> <s:dataProvider> <mx:ArrayList> <fx:String>ltr</fx:String> diff --git a/examples/mxroyale/tourdeflexmodules/src/spark/controls/TextInputExample.mxml b/examples/mxroyale/tourdeflexmodules/src/spark/controls/TextInputExample.mxml index 5a443b5..2bf5613 100644 --- a/examples/mxroyale/tourdeflexmodules/src/spark/controls/TextInputExample.mxml +++ b/examples/mxroyale/tourdeflexmodules/src/spark/controls/TextInputExample.mxml @@ -36,8 +36,10 @@ { txt.maxChars = this.maxChars.value; txt.restrict = this.restrictStr.text; + /* RichEditableText(txt.textDisplay).textFlow.textAlign = alignVal.selectedItem; RichEditableText(txt.textDisplay).textFlow.direction = direction.selectedItem; + */ } ]]> @@ -55,7 +57,8 @@ </s:HGroup> <s:HGroup verticalAlign="middle"> <s:Label text="Specify Text Alignment:"/> - <s:DropDownList id="alignVal" prompt="left" change="this.changeHandler(null)"> + <!--<s:DropDownList id="alignVal" prompt="left" change="this.changeHandler(null)">--> + <s:DropDownList id="alignVal" change="this.changeHandler(null)"> <s:dataProvider> <mx:ArrayList> <fx:String>left</fx:String> @@ -70,7 +73,8 @@ </s:HGroup> <s:HGroup verticalAlign="middle"> <s:Label text="Direction:"/> - <s:DropDownList id="direction" prompt="ltr" change="this.changeHandler(null)"> + <!--<s:DropDownList id="direction" prompt="ltr" change="this.changeHandler(null)">--> + <s:DropDownList id="direction" change="this.changeHandler(null)"> <s:dataProvider> <mx:ArrayList> <fx:String>rtl</fx:String> diff --git a/examples/mxroyale/tourdeflexmodules/src/spark/controls/TextLayout1Example.mxml b/examples/mxroyale/tourdeflexmodules/src/spark/controls/TextLayout1Example.mxml index 243e136..b93ec04 100644 --- a/examples/mxroyale/tourdeflexmodules/src/spark/controls/TextLayout1Example.mxml +++ b/examples/mxroyale/tourdeflexmodules/src/spark/controls/TextLayout1Example.mxml @@ -28,20 +28,20 @@ <fx:Script> <![CDATA[ - import flashx.textLayout.container.ContainerController; - import flashx.textLayout.conversion.ITextImporter; - import flashx.textLayout.conversion.TextConverter; - import flashx.textLayout.edit.EditManager; - import flashx.textLayout.edit.ISelectionManager; - import flashx.textLayout.edit.SelectionState; - import flashx.textLayout.elements.InlineGraphicElement; - import flashx.textLayout.elements.ParagraphElement; - import flashx.textLayout.elements.TextFlow; - import flashx.textLayout.events.SelectionEvent; - import flashx.textLayout.events.StatusChangeEvent; - import flashx.textLayout.formats.Direction; - import flashx.textLayout.formats.TextLayoutFormat; - import flashx.undo.UndoManager; + import org.apache.royale.textLayout.container.ContainerController; + import org.apache.royale.textLayout.conversion.ITextImporter; + import org.apache.royale.textLayout.conversion.TextConverter; + import org.apache.royale.textLayout.edit.EditManager; + import org.apache.royale.textLayout.edit.ISelectionManager; + import org.apache.royale.textLayout.edit.SelectionState; + import org.apache.royale.textLayout.elements.InlineGraphicElement; + import org.apache.royale.textLayout.elements.ParagraphElement; + import org.apache.royale.textLayout.elements.TextFlow; + import org.apache.royale.textLayout.events.SelectionEvent; + import org.apache.royale.textLayout.events.StatusChangeEvent; + import org.apache.royale.textLayout.formats.Direction; + import org.apache.royale.textLayout.formats.TextLayoutFormat; + //import flashx.undo.UndoManager; import mx.collections.ArrayCollection; import mx.controls.CheckBox; @@ -59,9 +59,8 @@ ] ); - [Embed(source="assets/ApacheFlexLogo.png")] [Bindable] - static public var imgClass:Class; + static public var imgClass:String = "assets/ApacheFlexLogo.png"; private var _textContainer:SpriteVisualElement = null; @@ -98,7 +97,7 @@ _textFlow.addChild(p); //adding Select/Edit/Copy/Paste/Undo features - _textFlow.interactionManager = new EditManager(new UndoManager()); + _textFlow.interactionManager = new EditManager(/*new UndoManager()*/); // initialize with a selection before the first character _textFlow.interactionManager.selectRange(0,0); diff --git a/examples/mxroyale/tourdeflexmodules/src/spark/itemRenderers/ItemRenderer1Example.mxml b/examples/mxroyale/tourdeflexmodules/src/spark/itemRenderers/ItemRenderer1Example.mxml index 6d49691..d2f8c8b 100644 --- a/examples/mxroyale/tourdeflexmodules/src/spark/itemRenderers/ItemRenderer1Example.mxml +++ b/examples/mxroyale/tourdeflexmodules/src/spark/itemRenderers/ItemRenderer1Example.mxml @@ -30,8 +30,8 @@ [Bindable] private var employees:XMLListCollection; - [Embed(source="data/list.xml", mimeType="application/octet-stream")] - private var XMLData:Class; + [Embed(source="data/list.xml", mimeType="text/plain")] + private var XMLData:String; private function init():void {
