This is an automated email from the ASF dual-hosted git repository.

pent pushed a commit to branch feature/MXRoyale
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/feature/MXRoyale by this push:
     new fa0fee1  Replaced Flex [Event] with Royale ones.
fa0fee1 is described below

commit fa0fee17eac791ff48555012effc8aec08f14136
Author: Peter Ent <p...@apache.org>
AuthorDate: Tue Mar 6 13:44:49 2018 -0500

    Replaced Flex [Event] with Royale ones.
---
 .../MXRoyale/src/main/royale/mx/controls/Button.as | 126 ++++++++++++++++-----
 1 file changed, 96 insertions(+), 30 deletions(-)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/Button.as 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/Button.as
index 7f7b628..e8450aa 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/Button.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/Button.as
@@ -70,55 +70,121 @@ use namespace mx_internal;
 //--------------------------------------
 
 /**
- *  Dispatched when the user presses the Button control.
- *  If the <code>autoRepeat</code> property is <code>true</code>,
- *  this event is dispatched repeatedly as long as the button stays down.
+ *  Dispatched when the user clicks on a button.
  *
- *  @eventType mx.events.FlexEvent.BUTTON_DOWN
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion Royale 0.0
+ */
+[Event(name="click", type="org.apache.royale.events.MouseEvent")]
+
+/**
+ *  Set a different class for rollOver events so that
+ *  there aren't dependencies on the flash classes
+ *  on the JS side.
  *
  *  @langversion 3.0
- *  @playerversion Flash 9
- *  @playerversion AIR 1.1
- *  @productversion Flex 3
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion Royale 0.0
  */
-[Event(name="buttonDown", type="mx.events.FlexEvent")]
+[Event(name="rollOver", type="org.apache.royale.events.MouseEvent")]
 
 /**
- *  Dispatched when the <code>selected</code> property
- *  changes for a toggle Button control. A toggle Button control means that the
- *  <code>toggle</code> property is set to <code>true</code>.
+ *  Set a different class for rollOut events so that
+ *  there aren't dependencies on the flash classes
+ *  on the JS side.
  *
- *  For the RadioButton controls, this event is dispatched when the 
<code>selected</code>
- *  property changes.
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion Royale 0.0
+ */
+[Event(name="rollOut", type="org.apache.royale.events.MouseEvent")]
+
+/**
+ *  Set a different class for mouseDown events so that
+ *  there aren't dependencies on the flash classes
+ *  on the JS side.
  *
- *  For the CheckBox controls, this event is dispatched only when the
- *  user interacts with the control by using the mouse.
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion Royale 0.0
+ */
+[Event(name="mouseDown", type="org.apache.royale.events.MouseEvent")]
+
+/**
+ *  Set a different class for mouseUp events so that
+ *  there aren't dependencies on the flash classes
+ *  on the JS side.
  *
- *  @eventType flash.events.Event.CHANGE
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion Royale 0.0
+ */
+[Event(name="mouseUp", type="org.apache.royale.events.MouseEvent")]
+
+/**
+ *  Set a different class for mouseMove events so that
+ *  there aren't dependencies on the flash classes
+ *  on the JS side.
  *
  *  @langversion 3.0
- *  @playerversion Flash 9
- *  @playerversion AIR 1.1
- *  @productversion Flex 3
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion Royale 0.0
  */
-[Event(name="change", type="flash.events.Event")]
+[Event(name="mouseMove", type="org.apache.royale.events.MouseEvent")]
 
 /**
- *  Dispatched when the <code>data</code> property changes.
+ *  Set a different class for mouseOut events so that
+ *  there aren't dependencies on the flash classes
+ *  on the JS side.
  *
- *  <p>When you use a component as an item renderer,
- *  the <code>data</code> property contains the data to display.
- *  You can listen for this event and update the component
- *  when the <code>data</code> property changes.</p>
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion Royale 0.0
+ */
+[Event(name="mouseOut", type="org.apache.royale.events.MouseEvent")]
+
+/**
+ *  Set a different class for mouseOver events so that
+ *  there aren't dependencies on the flash classes
+ *  on the JS side.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion Royale 0.0
+ */
+[Event(name="mouseOver", type="org.apache.royale.events.MouseEvent")]
+/**
+ *  Set a different class for mouseWheel events so that
+ *  there aren't dependencies on the flash classes
+ *  on the JS side.
  *
- *  @eventType mx.events.FlexEvent.DATA_CHANGE
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion Royale 0.0
+ */
+[Event(name="mouseWheel", type="org.apache.royale.events.MouseEvent")]
+
+/**
+ *  Set a different class for doubleClick events so that
+ *  there aren't dependencies on the flash classes
+ *  on the JS side.
  *
  *  @langversion 3.0
- *  @playerversion Flash 9
- *  @playerversion AIR 1.1
- *  @productversion Flex 3
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion Royale 0.0
  */
-[Event(name="dataChange", type="mx.events.FlexEvent")]
+[Event(name="doubleClick", type="org.apache.royale.events.MouseEvent")]
 
 
 

-- 
To stop receiving notification emails like this one, please contact
p...@apache.org.

Reply via email to