You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by yi...@apache.org on 2017/03/07 09:57:54 UTC

git commit: [flex-asjs] [refs/heads/develop] - Introduce ByteArrayAsset for embedding.

Repository: flex-asjs
Updated Branches:
  refs/heads/develop 5652ccc2a -> 9657c4e9a


Introduce ByteArrayAsset for embedding.


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

Branch: refs/heads/develop
Commit: 9657c4e9a90a060b95299b34df305fd08e3ce8b3
Parents: 5652ccc
Author: yishayw <yi...@hotmail.com>
Authored: Tue Mar 7 11:57:35 2017 +0200
Committer: yishayw <yi...@hotmail.com>
Committed: Tue Mar 7 11:57:35 2017 +0200

----------------------------------------------------------------------
 .../projects/Core/src/main/flex/CoreClasses.as  |  1 +
 .../flex/org/apache/flex/core/ByteArrayAsset.as | 49 ++++++++++++++++++++
 2 files changed, 50 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9657c4e9/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 9f3db99..018a180 100644
--- a/frameworks/projects/Core/src/main/flex/CoreClasses.as
+++ b/frameworks/projects/Core/src/main/flex/CoreClasses.as
@@ -42,6 +42,7 @@ internal class CoreClasses
 		import org.apache.flex.core.WrappedSimpleButton; WrappedSimpleButton;
 		import org.apache.flex.core.WrappedSprite; WrappedSprite;
 		import org.apache.flex.core.WrappedTextField; WrappedTextField;
+		import org.apache.flex.core.ByteArrayAsset; ByteArrayAsset;
 	}
 	import org.apache.flex.core.IBinaryImageLoader; IBinaryImageLoader;
     import org.apache.flex.core.ItemRendererClassFactory; ItemRendererClassFactory;

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9657c4e9/frameworks/projects/Core/src/main/flex/org/apache/flex/core/ByteArrayAsset.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/org/apache/flex/core/ByteArrayAsset.as b/frameworks/projects/Core/src/main/flex/org/apache/flex/core/ByteArrayAsset.as
new file mode 100644
index 0000000..17b810f
--- /dev/null
+++ b/frameworks/projects/Core/src/main/flex/org/apache/flex/core/ByteArrayAsset.as
@@ -0,0 +1,49 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.core
+{
+	import flash.utils.ByteArray;
+	
+    /**
+     *  The ByteArrayAsset represents an arbitrary sequence of byte data
+	 *  that can be embedded in a FlexJS swf class.
+     * 
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.6
+     *  @productversion FlexJS 0.0
+     */
+	public class ByteArrayAsset extends ByteArray
+	{
+		
+        /**
+         *  Constructor.
+         *  
+         *  @langversion 3.0
+         *  @playerversion Flash 9
+         *  @playerversion AIR 1.1
+         *  @productversion Flex 3
+         */
+		public function ByteArrayAsset()
+		{
+			super();
+		}
+	}
+}
+