This is an automated email from the ASF dual-hosted git repository. yishayw pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit 798f6fad41d88c5798247b0ee31a97fbf371fceb Author: Yishay Weiss <[email protected]> AuthorDate: Tue Oct 27 10:57:59 2020 +0000 Adding some extra events and other emulation stubs --- .../MXRoyale/src/main/royale/mx/states/State.as | 25 ++++++++++++++++ .../src/main/royale/spark/components/Image.as | 34 ++++++++++++---------- .../components/supportClasses/DropDownListBase.as | 10 +++---- 3 files changed, 48 insertions(+), 21 deletions(-) diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/states/State.as b/frameworks/projects/MXRoyale/src/main/royale/mx/states/State.as index b63734d..78214ae 100644 --- a/frameworks/projects/MXRoyale/src/main/royale/mx/states/State.as +++ b/frameworks/projects/MXRoyale/src/main/royale/mx/states/State.as @@ -41,6 +41,31 @@ use namespace mx_internal; [Event(name="exitState", type="mx.events.FlexEvent")] /** + * Dispatched after a view state has been entered. + * + * @eventType mx.events.FlexEvent.ENTER_STATE + * + * @langversion 3.0 + * @playerversion Flash 9 + * @playerversion AIR 1.1 + * @productversion Flex 3 + */ +[Event(name="enterState", type="mx.events.FlexEvent")] // not implemented + +/** + * Dispatched just before a view state is exited. + * This event is dispatched before the changes + * to the default view state have been removed. + * + * @eventType mx.events.FlexEvent.EXIT_STATE + * + * @langversion 3.0 + * @playerversion Flash 9 + * @playerversion AIR 1.1 + * @productversion Flex 3 + */ +[Event(name="exitState", type="mx.events.FlexEvent")] // not implemented +/** * The State class defines a view state, a particular view of a component. * For example, a product thumbnail could have two view states; * a base view state with minimal information, and a rich view state with diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Image.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Image.as index 0bb9c5b..1c2b6a1 100644 --- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Image.as +++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Image.as @@ -794,29 +794,31 @@ public class Image extends SkinnableComponent implements IImage * @playerversion Flash 10 * @playerversion AIR 2.5 * @productversion Flex 4.5 - public function get horizontalAlign():String + **/ + public function get horizontalAlign():String // not implemented { - if (imageDisplay) - return imageDisplay.horizontalAlign; - else - return imageDisplayProperties.horizontalAlign; + //if (imageDisplay) + //return imageDisplay.horizontalAlign; + //else + //return imageDisplayProperties.horizontalAlign; + return "center"; } - */ /** * @private - public function set horizontalAlign(value:String):void + */ + public function set horizontalAlign(value:String):void // not implemented { - if (imageDisplay) - { - imageDisplay.horizontalAlign = value; - imageDisplayProperties = BitFlagUtil.update(imageDisplayProperties as uint, - HORIZONTAL_ALIGN_PROPERTY_FLAG, value != null); - } - else - imageDisplayProperties.horizontalAlign = value; + //if (imageDisplay) + //{ + //imageDisplay.horizontalAlign = value; + //imageDisplayProperties = BitFlagUtil.update(imageDisplayProperties as uint, + //HORIZONTAL_ALIGN_PROPERTY_FLAG, value != null); + //} + //else + //imageDisplayProperties.horizontalAlign = value; } - */ + //---------------------------------- // preliminaryHeight diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/DropDownListBase.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/DropDownListBase.as index 1d632cc..288d5d8 100644 --- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/DropDownListBase.as +++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/DropDownListBase.as @@ -512,13 +512,13 @@ public class DropDownListBase extends List * @playerversion AIR 1.5 * @productversion Royale 0.9.4 */ - /* public function get isDropDownOpen():Boolean + public function get isDropDownOpen():Boolean // not implemented { - if (dropDownController) - return dropDownController.isOpen; - else + //if (dropDownController) + //return dropDownController.isOpen; + //else return false; - } */ + } //---------------------------------- // closeDropDownOnResize
