Repository: flex-asjs
Updated Branches:
  refs/heads/develop 298d2041f -> ac7b50537


This should fix the build


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/ac7b5053
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/ac7b5053
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/ac7b5053

Branch: refs/heads/develop
Commit: ac7b505377a2ea7784a5eb36780ddd491af79b7a
Parents: 298d204
Author: Harbs <[email protected]>
Authored: Tue Jul 5 17:13:39 2016 +0300
Committer: Harbs <[email protected]>
Committed: Tue Jul 5 17:13:39 2016 +0300

----------------------------------------------------------------------
 .../projects/Core/src/main/flex/CoreClasses.as  |  1 +
 .../main/flex/org/apache/flex/utils/Endian.as   | 52 ++++++++++++++++++++
 .../flex/org/apache/flex/net/URLBinaryLoader.as | 24 ++++++++-
 .../main/flex/org/apache/flex/net/URLStream.as  | 14 +++++-
 4 files changed, 89 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/ac7b5053/frameworks/projects/Core/src/main/flex/CoreClasses.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/CoreClasses.as 
b/frameworks/projects/Core/src/main/flex/CoreClasses.as
index 49c813e..aac3cd3 100644
--- a/frameworks/projects/Core/src/main/flex/CoreClasses.as
+++ b/frameworks/projects/Core/src/main/flex/CoreClasses.as
@@ -126,6 +126,7 @@ internal class CoreClasses
            import org.apache.flex.utils.StringTrimmer; StringTrimmer;
                import org.apache.flex.utils.HTMLLoader; HTMLLoader;
 }
+       import org.apache.flex.utils.Endian; Endian;
        import org.apache.flex.utils.Timer; Timer;
        import org.apache.flex.utils.UIUtils; UIUtils;
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/ac7b5053/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/Endian.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/Endian.as 
b/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/Endian.as
new file mode 100644
index 0000000..8950426
--- /dev/null
+++ b/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/Endian.as
@@ -0,0 +1,52 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 org.apache.flex.utils
+{
+       /**
+        *  The endianness of the byte data.
+        *  
+        *  @langversion 3.0
+        *  @playerversion Flash 10.2
+        *  @playerversion AIR 2.6
+        *  @productversion FlexJS 0.7.0
+        */
+       public class Endian
+       {
+               /**
+                *  Indicates the most significant byte of the multibyte number 
appears first in the sequence of bytes.
+                *  
+                *  @langversion 3.0
+                *  @playerversion Flash 10.2
+                *  @playerversion AIR 2.6
+                *  @productversion FlexJS 0.7.0
+                */
+               public static const BIG_ENDIAN:String = "bigEndian";
+
+               /**
+                *  Indicates the least significant byte of the multibyte 
number appears first in the sequence of bytes.
+                *  
+                *  @langversion 3.0
+                *  @playerversion Flash 10.2
+                *  @playerversion AIR 2.6
+                *  @productversion FlexJS 0.7.0
+                */
+               public static const LITTLE_ENDIAN:String = "littleEndian";
+               
+       }
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/ac7b5053/frameworks/projects/Network/src/main/flex/org/apache/flex/net/URLBinaryLoader.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/Network/src/main/flex/org/apache/flex/net/URLBinaryLoader.as
 
b/frameworks/projects/Network/src/main/flex/org/apache/flex/net/URLBinaryLoader.as
index ff9121b..34751db 100644
--- 
a/frameworks/projects/Network/src/main/flex/org/apache/flex/net/URLBinaryLoader.as
+++ 
b/frameworks/projects/Network/src/main/flex/org/apache/flex/net/URLBinaryLoader.as
@@ -22,6 +22,7 @@ package org.apache.flex.net
     import org.apache.flex.events.Event;
     import org.apache.flex.events.ProgressEvent;
     import org.apache.flex.utils.BinaryData;
+    import org.apache.flex.utils.Endian;
 
 
        /**
@@ -45,7 +46,28 @@ package org.apache.flex.net
                *  @productversion FlexJS 0.7.0
                */        
         public var data:BinaryData;
-        
+
+               /**
+                *  The status of the request.
+                *  
+                *  @langversion 3.0
+                *  @playerversion Flash 10.2
+                *  @playerversion AIR 2.6
+                *  @productversion FlexJS 0.7.0
+                */        
+               public var status:String;
+               
+               /**
+                *  Indicates the byte order for the data.
+                *  
+                *  @langversion 3.0
+                *  @playerversion Flash 10.2
+                *  @playerversion AIR 2.6
+                *  @productversion FlexJS 0.7.0
+                */        
+               public var endian:String = Endian.BIG_ENDIAN;
+               
+
         private var stream:URLStream;
         
                /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/ac7b5053/frameworks/projects/Network/src/main/flex/org/apache/flex/net/URLStream.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/Network/src/main/flex/org/apache/flex/net/URLStream.as 
b/frameworks/projects/Network/src/main/flex/org/apache/flex/net/URLStream.as
index e2b1654..397b336 100644
--- a/frameworks/projects/Network/src/main/flex/org/apache/flex/net/URLStream.as
+++ b/frameworks/projects/Network/src/main/flex/org/apache/flex/net/URLStream.as
@@ -25,6 +25,7 @@ package org.apache.flex.net
     import org.apache.flex.events.EventDispatcher;
     import org.apache.flex.events.ProgressEvent;
     import org.apache.flex.utils.BinaryData;
+    import org.apache.flex.utils.Endian;
 
     COMPILE::SWF
     {
@@ -134,7 +135,7 @@ package org.apache.flex.net
                 dispatchEvent(new 
org.apache.flex.events.Event(HTTPConstants.COMPLETE));
                                if(onComplete)
                                        onComplete();
-                               cleanupHandlers();
+                               cleanupCallbacks();
             }else if (xhr.readyState==4&&xhr.status==404){
                 //                    dispatchEvent(new 
IOErrorEvent(IOErrorEvent.IO_ERROR));
             }
@@ -156,6 +157,17 @@ package org.apache.flex.net
                        cleanupCallbacks();
 
         }
+               
+               /**
+                *  Indicates the byte order for the data.
+                *  
+                *  @langversion 3.0
+                *  @playerversion Flash 10.2
+                *  @playerversion AIR 2.6
+                *  @productversion FlexJS 0.7.0
+                */        
+               public var endian:String = Endian.LITTLE_ENDIAN;
+
                private function cleanupCallbacks():void
                {
                        onComplete = null;

Reply via email to