You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2018/08/31 05:40:55 UTC

[GitHub] alinakazi closed pull request #278: new changes on 30-8-2018

alinakazi closed pull request #278: new changes on 30-8-2018
URL: https://github.com/apache/royale-asjs/pull/278
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/frameworks/projects/Core/src/main/royale/org/apache/royale/events/Event.as b/frameworks/projects/Core/src/main/royale/org/apache/royale/events/Event.as
index fd9bb9bae..0c9ebbb7e 100644
--- a/frameworks/projects/Core/src/main/royale/org/apache/royale/events/Event.as
+++ b/frameworks/projects/Core/src/main/royale/org/apache/royale/events/Event.as
@@ -51,6 +51,7 @@ package org.apache.royale.events
 
 		public static const CHANGE:String = "change";
 		public static const COMPLETE:String = "complete";
+		public static const SELECT:String = "select";
 		//--------------------------------------
 		//   Constructor
 		//--------------------------------------
@@ -156,6 +157,7 @@ package org.apache.royale.events
 
 		public static const CHANGE:String = "change";
 		public static const COMPLETE:String = "complete";
+		public static const SELECT:String = "select";
 
         public function Event(type:String, bubbles:Boolean = false, cancelable:Boolean = false) {
             super(type);
diff --git a/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as b/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
index d35ef7ede..caafd0c8e 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
@@ -141,7 +141,10 @@ internal class MXRoyaleClasses
 	import mx.controls.RichTextEditor; RichTextEditor;
 	import mx.events.SecurityErrorEvent; SecurityErrorEvent;
 	import mx.events.IOErrorEvent; IOErrorEvent;
-	import mx.events.HTTPStatusEvent; HTTPStatusEvent
+	import mx.events.HTTPStatusEvent; HTTPStatusEvent;
+	import mx.net.FileReference; FileReference;
+	import mx.net.FileFilter; FileFilter;
+	
 	COMPILE::JS
     	{
 		import mx.utils.TextEncoderLiteWrapper; TextEncoderLiteWrapper;
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/effects/Effect.as b/frameworks/projects/MXRoyale/src/main/royale/mx/effects/Effect.as
index df65525dd..83d988daa 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/effects/Effect.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/effects/Effect.as
@@ -74,8 +74,24 @@ public class Effect extends org.apache.royale.effects.Effect
     {
     }
     
+
+    
+   //--------------------------------------------------------------------------
+   //  duration
+   //--------------------------------------------------------------------------
+	 
+  override public function get duration():Number
+	  {
+	  return super.duration();
+	  }
+  override public function set duration(value:Number):void
+	  {
+	  super.duration(value);
+	  } 
+
   
 
+
 	
 }
 
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/net/FileFilter.as b/frameworks/projects/MXRoyale/src/main/royale/mx/net/FileFilter.as
new file mode 100644
index 000000000..d86758b8f
--- /dev/null
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/net/FileFilter.as
@@ -0,0 +1,63 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.net
+{
+
+
+   public class FileFilter 
+   {
+      public function FileFilter(description:String, extension:String, macType:String = null)
+	  {
+	  
+	  }
+	    public function get description():String
+		{
+		   return "";
+		}
+        public function set description(value:String):void
+		{
+		
+		}
+
+		
+	    public function get extension():String
+		{
+		   return "";
+		}
+        public function set extension(value:String):void
+		{
+		
+		}
+		
+		
+	    public function get macType():String
+		{
+		   return "";
+		}
+        public function set macType(value:String):void
+		{
+		
+		}
+        
+   }
+
+              
+
+}
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/net/FileReference.as b/frameworks/projects/MXRoyale/src/main/royale/mx/net/FileReference.as
new file mode 100644
index 000000000..ea665b3f6
--- /dev/null
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/net/FileReference.as
@@ -0,0 +1,65 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.net
+{
+
+ import org.apache.royale.events.EventDispatcher;
+ import mx.utils.ByteArray;
+ 
+   COMPILE::SWF{
+       import flash.net.FileFilter;
+               }
+
+   COMPILE::JS{
+       import mx.net.FileFilter;
+              }
+
+   public class FileReference extends org.apache.royale.events.EventDispatcher
+   {
+      
+      public function FileReference()
+      {
+	  }
+  
+      
+      public function browse(typeFilter:Array = null):Boolean
+      {
+         return true;
+      }
+		 
+	  public function load():void
+	  {
+	  }
+	  
+	  public function get name():String
+	  {
+	    return "";
+	  }
+	  
+	  public function get data():ByteArray
+	  {
+	    return null;
+	  }
+      
+   }
+
+            
+
+}


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services