This is an automated email from the ASF dual-hosted git repository.
alinakazi pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/develop by this push:
new 2b652be DataEvent added
2b652be is described below
commit 2b652beaf627f68149ca88a8c7493c6e69b40acf
Author: alinakazi <[email protected]>
AuthorDate: Mon Jan 11 17:45:07 2021 +0500
DataEvent added
---
.../MXRoyale/src/main/royale/MXRoyaleClasses.as | 1 +
.../src/main/royale/mx/events/DataEvent.as | 124 +++++++++++++++++++++
2 files changed, 125 insertions(+)
diff --git a/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
b/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
index 34361b7..c926d97 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
@@ -77,6 +77,7 @@ internal class MXRoyaleClasses
import mx.containers.gridClasses.GridColumnInfo; GridColumnInfo;
import mx.containers.gridClasses.GridRowInfo; GridRowInfo;
import mx.events.CloseEvent; CloseEvent;
+ import mx.events.DataEvent; DataEvent;
import mx.controls.HRule; HRule;
import mx.events.ListEvent; ListEvent;
import mx.events.SliderEvent; SliderEvent;
diff --git
a/frameworks/projects/MXRoyale/src/main/royale/mx/events/DataEvent.as
b/frameworks/projects/MXRoyale/src/main/royale/mx/events/DataEvent.as
new file mode 100644
index 0000000..47484b0
--- /dev/null
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/events/DataEvent.as
@@ -0,0 +1,124 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.events
+{
+COMPILE::SWF
+{
+import flash.events.TextEvent;
+import flash.display.InteractiveObject;
+}
+/* import mx.events.Event;*/
+COMPILE::JS
+{
+import goog.events.BrowserEvent;
+import org.apache.royale.core.WrappedHTMLElement;
+ import org.apache.royale.events.getTargetWrapper;
+}
+
+import org.apache.royale.events.Event;
+import org.apache.royale.events.IRoyaleEvent;
+
+/**
+ * An object dispatches a DataEvent object when raw data has completed
loading.
+ *
+ * @see mx.core.UIComponent
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Royale 0.9.3
+ * @royalesuppresspublicvarwarning
+ */
+COMPILE::SWF
+public class DataEvent extends flash.events.TextEvent
+{
+ public static const DATA:String = "data";
+ public static const UPLOAD_COMPLETE_DATA:String = "uploadCompleteData";
+ public function DataEvent(type:String, bubbles:Boolean = false,
cancelable:Boolean = false, data:String = "")
+ {
+ super(type/*, bubbles,
cancelable,relatedObject,shiftKey,keyCode,direction*/);
+ }
+}
+
+/**
+ * An object dispatches a DataEvent object when raw data has completed
loading.
+ *
+ * @see mx.core.UIComponent
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Royale 0.9.3
+ * @royalesuppresspublicvarwarning
+ */
+COMPILE::JS
+public class DataEvent extends mx.events.TextEvent
+{
+ /* include "../core/Version.as"; */
+ public static const DATA:String = "data";
+ public static const UPLOAD_COMPLETE_DATA:String = "uploadCompleteData";
+
+
//--------------------------------------------------------------------------
+ //
+ // Class constants
+ //
+
//--------------------------------------------------------------------------
+
+
+
//--------------------------------------------------------------------------
+ //
+ // Constructor
+ //
+
//--------------------------------------------------------------------------
+
+ /**
+ * Constructor.
+ *
+ * @param type The event type; indicates the action that caused the
event.
+ *
+ * @param bubbles Specifies whether the event can bubble
+ * up the display list hierarchy.
+ *
+ * @param cancelable Specifies whether the behavior
+ * associated with the event can be prevented.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Royale 0.9.3
+ */
+ public function DataEvent(type:String, bubbles:Boolean = false,
cancelable:Boolean = false, data:String = "")
+
+ {
+ super(type, bubbles, cancelable);
+ }
+ private var _data:String = "";
+ public function get data():String
+ {
+ return _data;
+ }
+ public function set data(value:String):void{
+ _data = value;
+ }
+
+
+}
+
+}