You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ha...@apache.org on 2016/04/08 13:19:04 UTC

[01/43] git commit: [flex-asjs] [refs/heads/e4x] - Added IArrayList interface and updated associated classes.

Repository: flex-asjs
Updated Branches:
  refs/heads/e4x 51bbbac84 -> e2c462a07


Added IArrayList interface and updated associated classes.


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

Branch: refs/heads/e4x
Commit: 60670e866344799df480021d87d38a0a842c2c87
Parents: 59b8e43
Author: Peter Ent <pe...@apache.org>
Authored: Thu Feb 18 13:24:06 2016 -0500
Committer: Peter Ent <pe...@apache.org>
Committed: Thu Feb 18 13:24:06 2016 -0500

----------------------------------------------------------------------
 .../org/apache/flex/collections/ArrayList.as    | 114 ++++++------
 .../org/apache/flex/collections/IArrayList.as   | 178 +++++++++++++++++++
 .../DataItemRendererFactoryForArrayList.as      |  27 ++-
 .../beads/models/ArrayListSelectionModel.as     |  64 +++----
 4 files changed, 286 insertions(+), 97 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/60670e86/frameworks/projects/Collections/src/main/flex/org/apache/flex/collections/ArrayList.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Collections/src/main/flex/org/apache/flex/collections/ArrayList.as b/frameworks/projects/Collections/src/main/flex/org/apache/flex/collections/ArrayList.as
index 58d44e8..6f26e25 100644
--- a/frameworks/projects/Collections/src/main/flex/org/apache/flex/collections/ArrayList.as
+++ b/frameworks/projects/Collections/src/main/flex/org/apache/flex/collections/ArrayList.as
@@ -17,7 +17,7 @@
 //
 ////////////////////////////////////////////////////////////////////////////////
 package org.apache.flex.collections
-{	
+{
 	import org.apache.flex.core.IBead;
 	import org.apache.flex.core.IStrand;
 	import org.apache.flex.events.Event;
@@ -25,67 +25,67 @@ package org.apache.flex.collections
 	import org.apache.flex.events.IEventDispatcher;
     import org.apache.flex.collections.parsers.IInputParser;
     import org.apache.flex.collections.converters.IItemConverter;
-    
+
     //--------------------------------------
     //  Events
     //--------------------------------------
-	
+
 	/**
 	 *  Dispatched when the collection's underlying source array
 	 *  is changed.
-	 *  
+	 *
 	 *  @langversion 3.0
 	 *  @playerversion Flash 10.2
 	 *  @playerversion AIR 2.6
 	 *  @productversion FlexJS 0.0
 	 */
 	[Event(name="collectionChanged", type="org.apache.flex.events.Event")]
-	
+
 	/**
 	 *  Dispatched when the collection has added an item.
-	 *  
+	 *
 	 *  @langversion 3.0
 	 *  @playerversion Flash 10.2
 	 *  @playerversion AIR 2.6
 	 *  @productversion FlexJS 0.0
 	 */
 	[Event(name="itemAdded", type="org.apache.flex.events.Event")]
-	
+
 	/**
 	 *  Dispatched when the collection has removed an item.
-	 *  
+	 *
 	 *  @langversion 3.0
 	 *  @playerversion Flash 10.2
 	 *  @playerversion AIR 2.6
 	 *  @productversion FlexJS 0.0
 	 */
 	[Event(name="itemRemoved", type="org.apache.flex.events.Event")]
-	
+
 	/**
 	 *  Dispatched when the collection has updated an item.
-	 *  
+	 *
 	 *  @langversion 3.0
 	 *  @playerversion Flash 10.2
 	 *  @playerversion AIR 2.6
 	 *  @productversion FlexJS 0.0
 	 */
 	[Event(name="itemUpdated", type="org.apache.flex.events.Event")]
-    
+
     /**
      *  The ArrayList class provides an event-driven wrapper for the
 	 *  standard Array. Events are dispatched when items are added, removed,
 	 *  or changed.
-     * 
+     *
      *  @langversion 3.0
      *  @playerversion Flash 10.2
      *  @playerversion AIR 2.6
      *  @productversion FlexJS 0.0
      */
-	public class ArrayList extends EventDispatcher implements IBead, ICollection
+	public class ArrayList extends EventDispatcher implements IBead, ICollection, IArrayList
 	{
         /**
          *  Constructor.
-         *  
+         *
          *  @langversion 3.0
          *  @playerversion Flash 10.2
          *  @playerversion AIR 2.6
@@ -99,10 +99,10 @@ package org.apache.flex.collections
 		}
 
         private var _id:String;
-        
+
         /**
          *  @copy org.apache.flex.core.UIBase#id
-         *  
+         *
          *  @langversion 3.0
          *  @playerversion Flash 10.2
          *  @playerversion AIR 2.6
@@ -124,12 +124,12 @@ package org.apache.flex.collections
 				dispatchEvent(new Event("idChanged"));
 			}
 		}
-		
+
         private var _strand:IStrand;
-        
+
         /**
          *  @copy org.apache.flex.core.UIBase#strand
-         *  
+         *
          *  @langversion 3.0
          *  @playerversion Flash 10.2
          *  @playerversion AIR 2.6
@@ -140,12 +140,12 @@ package org.apache.flex.collections
             _strand = value;
 			_source = new Array();
         }
-		
+
 		private var _source:Array;
-        
+
         /**
          *  The array of raw data needing conversion.
-         *  
+         *
          *  @langversion 3.0
          *  @playerversion Flash 10.2
          *  @playerversion AIR 2.6
@@ -155,7 +155,7 @@ package org.apache.flex.collections
 		{
 			return _source;
 		}
-		
+
 		public function set source(value:Array):void
 		{
 			if (_source != value) {
@@ -164,10 +164,10 @@ package org.apache.flex.collections
 				dispatchEvent(new Event("collectionChanged"));
 			}
 		}
-		
+
 		/**
 		 * Returns a copy of the source array.
-         *  
+         *
          *  @langversion 3.0
          *  @playerversion Flash 10.2
          *  @playerversion AIR 2.6
@@ -177,10 +177,10 @@ package org.apache.flex.collections
 		{
 			return _source.concat();
 		}
-        
+
         /**
          *  Fetches an item from the collection
-         *  
+         *
          *  @langversion 3.0
          *  @playerversion Flash 10.2
          *  @playerversion AIR 2.6
@@ -189,11 +189,11 @@ package org.apache.flex.collections
         public function getItemAt(index:int):Object
         {
             return _source[index];
-        } 
-		
+        }
+
 		/**
 		 *  Fetches an item from the collection given an index.
-		 *  
+		 *
 		 *  @langversion 3.0
 		 *  @playerversion Flash 10.2
 		 *  @playerversion AIR 2.6
@@ -208,10 +208,10 @@ package org.apache.flex.collections
 			}
 			return -1;
 		}
-		
+
 		/**
 		 *  Adds an item to the end of the array.
-		 *  
+		 *
 		 *  @langversion 3.0
 		 *  @playerversion Flash 10.2
 		 *  @playerversion AIR 2.6
@@ -221,10 +221,10 @@ package org.apache.flex.collections
 		{
 			addItemAt(item, length);
 		}
-		
+
 		/**
 		 *  Inserts an item to a specific location within the array.
-		 *  
+		 *
 		 *  @langversion 3.0
 		 *  @playerversion Flash 10.2
 		 *  @playerversion AIR 2.6
@@ -233,7 +233,7 @@ package org.apache.flex.collections
 		public function addItemAt(item:Object, index:int):void
 		{
 			const spliceUpperBound:int = length;
-			
+
 			if (index < spliceUpperBound && index > 0)
 			{
 				source.splice(index, 0, item);
@@ -246,19 +246,19 @@ package org.apache.flex.collections
 			{
 				source.unshift(item);
 			}
-			else 
+			else
 			{
 				// error
 				return;
 			}
-			
+
 			dispatchEvent(new Event("itemAdded"));
 		}
-		
+
 		/**
 		 *  Replaces the item at the given index with a new item and
 		 *  returns the old item.
-		 *  
+		 *
 		 *  @langversion 3.0
 		 *  @playerversion Flash 10.2
 		 *  @playerversion AIR 2.6
@@ -268,7 +268,7 @@ package org.apache.flex.collections
 		{
 			const spliceUpperBound:int = length;
 			var oldItem:Object;
-			
+
 			if (index >= 0 && index < spliceUpperBound) {
 				oldItem = source[index];
 				source[index] = item;
@@ -277,13 +277,13 @@ package org.apache.flex.collections
 			else {
 				// error
 			}
-			
+
 			return oldItem;
 		}
-		
+
 		/**
 		 *  Removed an item from the array and returns it.
-		 *  
+		 *
 		 *  @langversion 3.0
 		 *  @playerversion Flash 10.2
 		 *  @playerversion AIR 2.6
@@ -298,11 +298,11 @@ package org.apache.flex.collections
 			}
 			return result;
 		}
-		
+
 		/**
 		 *  Removes an item from a specific location within the array and
 		 *  returns it.
-		 *  
+		 *
 		 *  @langversion 3.0
 		 *  @playerversion Flash 10.2
 		 *  @playerversion AIR 2.6
@@ -312,7 +312,7 @@ package org.apache.flex.collections
 		{
 			const spliceUpperBound:int = length - 1;
 			var removed:Object;
-			
+
 			if (index > 0 && index < spliceUpperBound)
 			{
 				removed = source.splice(index, 1)[0];
@@ -329,14 +329,14 @@ package org.apache.flex.collections
 				// error
 				return null;
 			}
-			
+
 			dispatchEvent(new Event("itemRemoved"));
 			return removed;
 		}
-		
+
 		/**
 		 *  Removes all of the items from the array.
-		 *  
+		 *
 		 *  @langversion 3.0
 		 *  @playerversion Flash 10.2
 		 *  @playerversion AIR 2.6
@@ -349,10 +349,10 @@ package org.apache.flex.collections
 				dispatchEvent(new Event("itemRemoved"));
 			}
 		}
-		
+
 		/**
 		 *  Signals that an item in the array has been updated.
-		 *  
+		 *
 		 *  @langversion 3.0
 		 *  @playerversion Flash 10.2
 		 *  @playerversion AIR 2.6
@@ -365,10 +365,10 @@ package org.apache.flex.collections
 				dispatchEvent(new Event("itemUpdated"));
 			}
 		}
-		
+
 		/**
 		 *  Signals that an item in the array has been updated.
-		 *  
+		 *
 		 *  @langversion 3.0
 		 *  @playerversion Flash 10.2
 		 *  @playerversion AIR 2.6
@@ -378,10 +378,10 @@ package org.apache.flex.collections
 		{
 			dispatchEvent(new Event("itemUpdated"));
 		}
-        
+
         /**
          *  The number of items.
-         *  
+         *
          *  @langversion 3.0
          *  @playerversion Flash 10.2
          *  @playerversion AIR 2.6
@@ -389,8 +389,8 @@ package org.apache.flex.collections
          */
         public function get length():int
         {
-            return _source ? _source.length : 0;   
+            return _source ? _source.length : 0;
         }
 
 	}
-}
\ No newline at end of file
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/60670e86/frameworks/projects/Collections/src/main/flex/org/apache/flex/collections/IArrayList.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Collections/src/main/flex/org/apache/flex/collections/IArrayList.as b/frameworks/projects/Collections/src/main/flex/org/apache/flex/collections/IArrayList.as
new file mode 100644
index 0000000..fbe8ed5
--- /dev/null
+++ b/frameworks/projects/Collections/src/main/flex/org/apache/flex/collections/IArrayList.as
@@ -0,0 +1,178 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.collections
+{
+	import org.apache.flex.core.IBead;
+	import org.apache.flex.core.IStrand;
+	import org.apache.flex.events.Event;
+	import org.apache.flex.events.EventDispatcher;
+	import org.apache.flex.events.IEventDispatcher;
+    import org.apache.flex.collections.parsers.IInputParser;
+    import org.apache.flex.collections.converters.IItemConverter;
+
+    //--------------------------------------
+
+
+    /**
+     *  The ArrayList class provides an event-driven wrapper for the
+	 *  standard Array. Events are dispatched when items are added, removed,
+	 *  or changed.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.6
+     *  @productversion FlexJS 0.0
+     */
+	public interface IArrayList
+	{
+        /**
+         *  The array of raw data needing conversion.
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion FlexJS 0.0
+         */
+		function get source():Array;
+		function set source(value:Array):void;
+
+		/**
+		 * Returns a copy of the source array.
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion FlexJS 0.0
+		 */
+		function toArray():Array;
+
+        /**
+         *  Fetches an item from the collection
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion FlexJS 0.0
+         */
+        function getItemAt(index:int):Object;
+
+		/**
+		 *  Fetches an item from the collection given an index.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		function getItemIndex(item:Object):int;
+
+		/**
+		 *  Adds an item to the end of the array.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		function addItem(item:Object):void;
+
+		/**
+		 *  Inserts an item to a specific location within the array.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		function addItemAt(item:Object, index:int):void;
+
+		/**
+		 *  Replaces the item at the given index with a new item and
+		 *  returns the old item.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		function setItemAt(item:Object, index:int):Object;
+
+		/**
+		 *  Removed an item from the array and returns it.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		function removeItem(item:Object):Boolean;
+
+		/**
+		 *  Removes an item from a specific location within the array and
+		 *  returns it.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		function removeItemAt(index:int):Object;
+
+		/**
+		 *  Removes all of the items from the array.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		function removeAll():void;
+
+		/**
+		 *  Signals that an item in the array has been updated.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		function itemUpdated(item:Object):void;
+
+		/**
+		 *  Signals that an item in the array has been updated.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		function itemUpdatedAt(index:int):void;
+
+        /**
+         *  The number of items.
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion FlexJS 0.0
+         */
+        function get length():int;
+
+	}
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/60670e86/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/DataItemRendererFactoryForArrayList.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/DataItemRendererFactoryForArrayList.as b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/DataItemRendererFactoryForArrayList.as
index 9895394..901b5f3 100644
--- a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/DataItemRendererFactoryForArrayList.as
+++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/DataItemRendererFactoryForArrayList.as
@@ -18,7 +18,7 @@
 ////////////////////////////////////////////////////////////////////////////////
 package org.apache.flex.html.beads
 {
-	import org.apache.flex.collections.ArrayList;
+	import org.apache.flex.collections.IArrayList;
 	import org.apache.flex.core.IBead;
 	import org.apache.flex.core.IDataProviderItemRendererMapper;
 	import org.apache.flex.core.IItemRendererClassFactory;
@@ -61,9 +61,9 @@ package org.apache.flex.html.beads
 		{
 		}
 		
-		private var selectionModel:ISelectionModel;
+		protected var selectionModel:ISelectionModel;
 		
-		private var labelField:String;
+		protected var labelField:String;
 		
 		private var _strand:IStrand;
 		
@@ -138,9 +138,22 @@ package org.apache.flex.html.beads
          */
 		protected var dataGroup:IItemRendererParent;
 		
-		private function dataProviderChangeHandler(event:Event):void
+		/**
+		 * @private
+		 */
+		protected function setData(ir:ISelectableItemRenderer, data:Object, index:int):void
 		{
-			var dp:ArrayList = selectionModel.dataProvider as ArrayList;
+			ir.index = index;
+			ir.labelField = labelField;
+			ir.data = data;
+		}
+		
+		/**
+		 * @private
+		 */
+		protected function dataProviderChangeHandler(event:Event):void
+		{
+			var dp:IArrayList = selectionModel.dataProvider as IArrayList;
 			if (!dp)
 				return;
 			
@@ -153,8 +166,6 @@ package org.apache.flex.html.beads
 			for (var i:int = 0; i < n; i++)
 			{				
 				var ir:ISelectableItemRenderer = itemRendererFactory.createItemRenderer(dataGroup) as ISelectableItemRenderer;
-				ir.index = i;
-				ir.labelField = labelField;
 				if (presentationModel) {
 					UIBase(ir).height = presentationModel.rowHeight;
 					
@@ -165,7 +176,7 @@ package org.apache.flex.html.beads
 					UIBase(ir).style = style;
 				}
 				dataGroup.addElement(ir);
-				ir.data = dp.getItemAt(i);
+				setData(ir, dp.getItemAt(i), i);
 			}
 			
 			IEventDispatcher(_strand).dispatchEvent(new Event("itemsCreated"));

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/60670e86/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/models/ArrayListSelectionModel.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/models/ArrayListSelectionModel.as b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/models/ArrayListSelectionModel.as
index 7366677..5c8a188 100644
--- a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/models/ArrayListSelectionModel.as
+++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/models/ArrayListSelectionModel.as
@@ -18,18 +18,18 @@
 ////////////////////////////////////////////////////////////////////////////////
 package org.apache.flex.html.beads.models
 {
-	import org.apache.flex.collections.ArrayList;
+	import org.apache.flex.collections.IArrayList;
 	import org.apache.flex.core.IRollOverModel;
 	import org.apache.flex.core.ISelectionModel;
 	import org.apache.flex.core.IStrand;
 	import org.apache.flex.events.Event;
 	import org.apache.flex.events.EventDispatcher;
-			
+
     /**
      *  The ArrayListSelectionModel class is a selection model for
      *  a dataProvider that is an ArrayList. It assumes that items
      *  can be fetched from the dataProvider using dataProvider.getItemAt(index).
-     *  
+     *
      *  @langversion 3.0
      *  @playerversion Flash 10.2
      *  @playerversion AIR 2.6
@@ -39,7 +39,7 @@ package org.apache.flex.html.beads.models
 	{
         /**
          *  Constructor.
-         *  
+         *
          *  @langversion 3.0
          *  @playerversion Flash 10.2
          *  @playerversion AIR 2.6
@@ -50,10 +50,10 @@ package org.apache.flex.html.beads.models
 		}
 
 		private var _strand:IStrand;
-		
+
         /**
          *  @copy org.apache.flex.core.IBead#strand
-         *  
+         *
          *  @langversion 3.0
          *  @playerversion Flash 10.2
          *  @playerversion AIR 2.6
@@ -63,12 +63,12 @@ package org.apache.flex.html.beads.models
 		{
 			_strand = value;
 		}
-		
-		private var _dataProvider:ArrayList;
-        
+
+		private var _dataProvider:IArrayList;
+
         /**
          *  @copy org.apache.flex.core.ISelectionModel#dataProvider
-         *  
+         *
          *  @langversion 3.0
          *  @playerversion Flash 10.2
          *  @playerversion AIR 2.6
@@ -85,10 +85,10 @@ package org.apache.flex.html.beads.models
 		public function set dataProvider(value:Object):void
 		{
             if (value === _dataProvider) return;
-            
-            _dataProvider = value as ArrayList;
+
+            _dataProvider = value as IArrayList;
             if (_selectedIndex != -1)
-                _selectedItem = (_dataProvider == null || _selectedIndex >= _dataProvider.length) ? null : 
+                _selectedItem = (_dataProvider == null || _selectedIndex >= _dataProvider.length) ? null :
                     _dataProvider.getItemAt(_selectedIndex);
 			dispatchEvent(new Event("dataProviderChanged"));
 		}
@@ -96,10 +96,10 @@ package org.apache.flex.html.beads.models
 		private var _selectedIndex:int = -1;
 		private var _rollOverIndex:int = -1;
 		private var _labelField:String = null;
-		
+
         /**
          *  @copy org.apache.flex.core.ISelectionModel#labelField
-         *  
+         *
          *  @langversion 3.0
          *  @playerversion Flash 10.2
          *  @playerversion AIR 2.6
@@ -120,10 +120,10 @@ package org.apache.flex.html.beads.models
 				dispatchEvent(new Event("labelFieldChanged"));
 			}
 		}
-		
+
         /**
          *  @copy org.apache.flex.core.ISelectionModel#selectedIndex
-         *  
+         *
          *  @langversion 3.0
          *  @playerversion Flash 10.2
          *  @playerversion AIR 2.6
@@ -140,15 +140,15 @@ package org.apache.flex.html.beads.models
 		public function set selectedIndex(value:int):void
 		{
             if (value === _selectedIndex) return;
-            
+
 			_selectedIndex = value;
 			_selectedItem = (value == -1 || _dataProvider == null) ? null : (value < _dataProvider.length) ? _dataProvider.getItemAt(value) : null;
-			dispatchEvent(new Event("selectedIndexChanged"));			
+			dispatchEvent(new Event("selectedIndexChanged"));
 		}
-		
+
         /**
          *  @copy org.apache.flex.core.IRollOverModel#rollOverIndex
-         *  
+         *
          *  @langversion 3.0
          *  @playerversion Flash 10.2
          *  @playerversion AIR 2.6
@@ -169,12 +169,12 @@ package org.apache.flex.html.beads.models
 				dispatchEvent(new Event("rollOverIndexChanged"));
 			}
 		}
-		
+
 		private var _selectedItem:Object;
-		
+
         /**
          *  @copy org.apache.flex.core.ISelectionModel#selectedItem
-         *  
+         *
          *  @langversion 3.0
          *  @playerversion Flash 10.2
          *  @playerversion AIR 2.6
@@ -191,8 +191,8 @@ package org.apache.flex.html.beads.models
 		public function set selectedItem(value:Object):void
 		{
             if (value === _selectedItem) return;
-            
-			_selectedItem = value;	
+
+			_selectedItem = value;
 			var n:int = _dataProvider.length;
 			for (var i:int = 0; i < n; i++)
 			{
@@ -202,16 +202,16 @@ package org.apache.flex.html.beads.models
 					break;
 				}
 			}
-			dispatchEvent(new Event("selectedItemChanged"));			
+			dispatchEvent(new Event("selectedItemChanged"));
 			dispatchEvent(new Event("selectedIndexChanged"));
 		}
-		
+
 		private var _selectedString:String;
-		
+
         /**
          *  An alternative to selectedItem for strongly typing the
          *  the selectedItem if the Array is an Array of Strings.
-         *  
+         *
          *  @langversion 3.0
          *  @playerversion Flash 10.2
          *  @playerversion AIR 2.6
@@ -237,8 +237,8 @@ package org.apache.flex.html.beads.models
 					break;
 				}
 			}
-			dispatchEvent(new Event("selectedItemChanged"));			
-			dispatchEvent(new Event("selectedIndexChanged"));			
+			dispatchEvent(new Event("selectedItemChanged"));
+			dispatchEvent(new Event("selectedIndexChanged"));
 		}
 	}
 }


[03/43] git commit: [flex-asjs] [refs/heads/e4x] - Added Tree component to FlexJS. Includes HierarchicalData collection.

Posted by ha...@apache.org.
Added Tree component to FlexJS. Includes HierarchicalData collection.


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

Branch: refs/heads/e4x
Commit: d0dddc1f7184ed840873a6fb094312fc42f2f9bc
Parents: d75af20
Author: Peter Ent <pe...@apache.org>
Authored: Thu Feb 18 13:53:40 2016 -0500
Committer: Peter Ent <pe...@apache.org>
Committed: Thu Feb 18 13:53:40 2016 -0500

----------------------------------------------------------------------
 examples/build.xml                              |   2 +
 .../src/productsView/ProductListItem.mxml       |  10 +
 examples/flexjs/TreeExample/build.xml           |  44 +++
 examples/flexjs/TreeExample/pom.xml             |  50 ++++
 .../flexjs/TreeExample/src/MyInitialView.mxml   |  37 +++
 .../flexjs/TreeExample/src/TreeExample.mxml     |  36 +++
 .../flexjs/TreeExample/src/models/MyModel.as    |  72 +++++
 .../src/main/flex/CollectionsClasses.as         |   2 +
 .../apache/flex/collections/FlattenedList.as    | 203 ++++++++++++++
 .../apache/flex/collections/HierarchicalData.as | 269 +++++++++++++++++++
 .../flex/collections/IHierarchicalData.as       | 119 ++++++++
 .../src/main/resources/basic-manifest.xml       |   1 +
 .../projects/HTML/src/main/flex/HTMLClasses.as  |   6 +-
 .../src/main/flex/org/apache/flex/html/Tree.as  |  73 +++++
 ...ataItemRendererFactoryForHierarchicalData.as | 109 ++++++++
 .../ListSingleSelectionMouseController.as       |  10 +-
 .../TreeSingleSelectionMouseController.as       |  82 ++++++
 .../html/supportClasses/StringItemRenderer.as   |   3 -
 .../html/supportClasses/TreeItemRenderer.as     |  59 ++++
 .../flex/html/supportClasses/TreeListData.as    |  76 ++++++
 .../HTML/src/main/resources/basic-manifest.xml  |   2 +
 .../HTML/src/main/resources/defaults.css        |  22 ++
 22 files changed, 1277 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d0dddc1f/examples/build.xml
----------------------------------------------------------------------
diff --git a/examples/build.xml b/examples/build.xml
index 894573e..7efccfc 100644
--- a/examples/build.xml
+++ b/examples/build.xml
@@ -86,6 +86,7 @@
         <ant dir="${basedir}/flexjs/MobileTrader"/>
         <ant dir="${basedir}/flexjs/ChartExample"/>
         <ant dir="${basedir}/flexjs/TodoListSampleApp"/>
+        <ant dir="${basedir}/flexjs/TreeExample"/>
         <ant dir="${basedir}/native/ButtonExample"/>
         <ant dir="${basedir}/native/USStatesMap"/>
     </target>
@@ -113,6 +114,7 @@
         <ant dir="${basedir}/flexjs/MobileTrader" target="clean"/>
         <ant dir="${basedir}/flexjs/ChartExample" target="clean"/>
         <ant dir="${basedir}/flexjs/TodoListSampleApp" target="clean"/>
+        <ant dir="${basedir}/flexjs/TreeExample" target="clean"/>
         <ant dir="${basedir}/native/ButtonExample" target="clean"/>
         <ant dir="${basedir}/native/USStatesMap" target="clean"/>
     </target>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d0dddc1f/examples/flexjs/FlexJSStore/src/productsView/ProductListItem.mxml
----------------------------------------------------------------------
diff --git a/examples/flexjs/FlexJSStore/src/productsView/ProductListItem.mxml b/examples/flexjs/FlexJSStore/src/productsView/ProductListItem.mxml
index 2864cca..8e98c3b 100755
--- a/examples/flexjs/FlexJSStore/src/productsView/ProductListItem.mxml
+++ b/examples/flexjs/FlexJSStore/src/productsView/ProductListItem.mxml
@@ -60,6 +60,16 @@ limitations under the License.
         {
             _data = value;
         }
+        
+        public function get listData():Object
+        {
+        	return null;
+        }
+        
+        public function set listData(value:Object):void
+        {
+        	// not used
+        }
 
         private var _itemRendererParent:Object;
         

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d0dddc1f/examples/flexjs/TreeExample/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/TreeExample/build.xml b/examples/flexjs/TreeExample/build.xml
new file mode 100644
index 0000000..c2fcd0d
--- /dev/null
+++ b/examples/flexjs/TreeExample/build.xml
@@ -0,0 +1,44 @@
+<?xml version="1.0"?>
+<!--
+
+  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.
+
+-->
+
+
+<project name="treeexample" default="main" basedir=".">
+    <property name="FLEXJS_HOME" location="../../.."/>
+    <property name="example" value="TreeExample" />
+    
+    <property file="${FLEXJS_HOME}/env.properties"/>
+    <property environment="env"/>
+    <property file="${FLEXJS_HOME}/build.properties"/>
+    <property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
+    
+    <include file="${basedir}/../../build_example.xml" />
+
+    <property name="extlib_arg" value="-external-library-path=${FALCONJX_HOME}/../externs/js/out/bin/js.swc"/>
+
+    <target name="main" depends="clean,build_example.compile,build_example.compilejs" description="Clean build of ${example}">
+    </target>
+    
+    <target name="clean">
+        <delete dir="${basedir}/bin" failonerror="false" />
+        <delete dir="${basedir}/bin-debug" failonerror="false" />
+        <delete dir="${basedir}/bin-release" failonerror="false" />
+    </target>    
+    
+</project>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d0dddc1f/examples/flexjs/TreeExample/pom.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/TreeExample/pom.xml b/examples/flexjs/TreeExample/pom.xml
new file mode 100644
index 0000000..1cf03f8
--- /dev/null
+++ b/examples/flexjs/TreeExample/pom.xml
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+  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.
+
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.flex.examples.flexjs</groupId>
+        <artifactId>examples</artifactId>
+        <version>1.0.0-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>TreeExample</artifactId>
+    <version>1.0.0-SNAPSHOT</version>
+    <packaging>swf</packaging>
+
+    <build>
+        <sourceDirectory>src</sourceDirectory>
+        <plugins>
+            <plugin>
+                <groupId>net.flexmojos.oss</groupId>
+                <artifactId>flexmojos-maven-plugin</artifactId>
+                <version>7.1.0-SNAPSHOT</version>
+                <extensions>true</extensions>
+                <configuration>
+                    <sourceFile>TreeExample.mxml</sourceFile>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d0dddc1f/examples/flexjs/TreeExample/src/MyInitialView.mxml
----------------------------------------------------------------------
diff --git a/examples/flexjs/TreeExample/src/MyInitialView.mxml b/examples/flexjs/TreeExample/src/MyInitialView.mxml
new file mode 100644
index 0000000..d7fa22f
--- /dev/null
+++ b/examples/flexjs/TreeExample/src/MyInitialView.mxml
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+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.
+
+-->
+<js:ViewBase xmlns:fx="http://ns.adobe.com/mxml/2009"
+				xmlns:js="library://ns.apache.org/flexjs/basic">
+    
+    <js:beads>
+        <js:ViewBaseDataBinding />
+    </js:beads>
+	
+	<js:Tree id="tree" x="30" y="30" width="400" height="300" 
+			 labelField="title">
+		<js:beads>
+			<js:ConstantBinding
+				sourceID="applicationModel"
+				sourcePropertyName="treeData"
+				destinationPropertyName="dataProvider" />
+		</js:beads>
+	</js:Tree>
+
+</js:ViewBase>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d0dddc1f/examples/flexjs/TreeExample/src/TreeExample.mxml
----------------------------------------------------------------------
diff --git a/examples/flexjs/TreeExample/src/TreeExample.mxml b/examples/flexjs/TreeExample/src/TreeExample.mxml
new file mode 100644
index 0000000..e969146
--- /dev/null
+++ b/examples/flexjs/TreeExample/src/TreeExample.mxml
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!---
+//
+//  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.
+//
+////////////////////////////////////////////////////////////////////////////////
+-->
+<js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
+				   xmlns:local="*"
+				   xmlns:models="models.*"
+				   xmlns:js="library://ns.apache.org/flexjs/basic" 
+				   >
+	
+	<js:valuesImpl>
+		<js:SimpleCSSValuesImpl />
+	</js:valuesImpl>
+	<js:model>
+		<models:MyModel />
+	</js:model>
+	<js:initialView>
+		<local:MyInitialView />
+	</js:initialView>
+</js:Application>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d0dddc1f/examples/flexjs/TreeExample/src/models/MyModel.as
----------------------------------------------------------------------
diff --git a/examples/flexjs/TreeExample/src/models/MyModel.as b/examples/flexjs/TreeExample/src/models/MyModel.as
new file mode 100644
index 0000000..d224293
--- /dev/null
+++ b/examples/flexjs/TreeExample/src/models/MyModel.as
@@ -0,0 +1,72 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 models
+{
+	import org.apache.flex.events.Event;
+	import org.apache.flex.events.EventDispatcher;
+	import org.apache.flex.collections.HierarchicalData;
+
+	public class MyModel extends EventDispatcher
+	{
+		public function MyModel()
+		{
+			treeData = new HierarchicalData(store);
+			treeData.childrenField = "children";
+		}
+
+		public var treeData:HierarchicalData;
+
+		private var store:Object = { title:"That's Entertainment",
+        		children:[
+        			{title:"My Music",
+        				children:[
+        					{title:"Language and Perspective", artist:"Bad Suns",
+        					    children:[
+        					    	{title:"Matthew James", length:"3:24"},
+        					    	{title:"We Move Like the Ocean", length:"3:56"},
+        					    	{title:"Cardiac Arrest", length:"3:15"}
+        					    ]},
+        					{title:"Strange Desire", artist:"Bleachers",
+        						children:[
+        							{title:"Wild Heart", length:"4:15"},
+        							{title:"Rollercoaster", length:"3:39"},
+        							{title:"Shadow", length:"3:46"},
+        							{title:"I Wanna Get Better", length:"4:23"}
+        						]}
+        				]},
+        			{title:"My Books",
+        				children:[
+        					{title:"Wizard of Oz",
+        						children:[
+        							{title:"So this is Kansas?", length:"82"},
+        							{title:"A Might Dusty Here", length:"63"},
+        							{title:"Is that a Tornado?", length:"103"}
+        						]},
+        					{title:"Favorite Book #2",
+        						children:[
+        							{title:"Chapter 1", length:"15"},
+        							{title:"Chapter 2", length:"86"},
+        							{title:"Chapter 3", length:"104"},
+        							{title:"Chapter 4", length:"99"}
+        						]}
+        				]}
+        		]};
+
+	}
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d0dddc1f/frameworks/projects/Collections/src/main/flex/CollectionsClasses.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Collections/src/main/flex/CollectionsClasses.as b/frameworks/projects/Collections/src/main/flex/CollectionsClasses.as
index 5112c5c..58e601f 100644
--- a/frameworks/projects/Collections/src/main/flex/CollectionsClasses.as
+++ b/frameworks/projects/Collections/src/main/flex/CollectionsClasses.as
@@ -28,6 +28,8 @@ package
 internal class CollectionsClasses
 {
     import org.apache.flex.collections.ArrayList; ArrayList;
+	import org.apache.flex.collections.FlattenedList; FlattenedList;
+	import org.apache.flex.collections.HierarchicalData; HierarchicalData;
 	import org.apache.flex.collections.LazyCollection; LazyCollection;
 }
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d0dddc1f/frameworks/projects/Collections/src/main/flex/org/apache/flex/collections/FlattenedList.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Collections/src/main/flex/org/apache/flex/collections/FlattenedList.as b/frameworks/projects/Collections/src/main/flex/org/apache/flex/collections/FlattenedList.as
new file mode 100644
index 0000000..3fd98be
--- /dev/null
+++ b/frameworks/projects/Collections/src/main/flex/org/apache/flex/collections/FlattenedList.as
@@ -0,0 +1,203 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.collections
+{	
+	import org.apache.flex.core.IBead;
+	import org.apache.flex.core.IStrand;
+	import org.apache.flex.events.Event;
+	import org.apache.flex.events.EventDispatcher;
+	import org.apache.flex.events.IEventDispatcher;
+    import org.apache.flex.collections.parsers.IInputParser;
+    import org.apache.flex.collections.converters.IItemConverter;
+    
+    
+    /**
+     *  The FlattenedList class takes a HierarchicalData object and "flattens" it
+	 *  using all of the open members.
+     * 
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.6
+     *  @productversion FlexJS 0.0
+     */
+	public class FlattenedList extends ArrayList
+	{
+		public var hdata:HierarchicalData;
+		public var openNodes:Array;
+		
+        /**
+         *  Constructor.
+         *  
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion FlexJS 0.0
+         */
+		public function FlattenedList(hdata:HierarchicalData)
+		{
+			super();
+			this.hdata = hdata;
+			this.openNodes = [];
+			reset();
+		}
+		
+		/**
+		 * Resets the list so that only the top root node is open.
+         *  
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion FlexJS 0.0
+		 */
+		public function reset():void
+		{
+			var arr:Array = [];
+			addChildren(hdata.getRoot(), arr);
+			source = arr;
+		}
+		
+		/**
+		 * @private
+		 */
+		protected function addChildren(node:Object, arr:Array):void
+		{
+			var children:Array = hdata.getChildren(node) as Array;
+			var n:int = children.length;
+			
+			for (var i:int=0; i < n; i++) {
+				arr.push(children[i]);
+				if (isOpen(children[i])) {
+					addChildren(children[i], arr);
+				}
+			}
+		}
+		
+		/**
+		 * Returns true if the node has children nodes.
+         *  
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion FlexJS 0.0
+		 */
+		public function hasChildren(node:Object):Boolean
+		{
+			return hdata.hasChildren(node);
+		}
+		
+		/**
+		 * Returns true if the node is currently open.
+         *  
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion FlexJS 0.0
+		 */
+		public function isOpen(node:Object):Boolean
+		{
+			return openNodes.indexOf(node) != -1;
+		}
+		
+		/**
+		 * Opens the given node. The array data now contains more elements.
+         *  
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion FlexJS 0.0
+		 */
+		public function openNode(node:Object):void
+		{
+			if (hdata.hasChildren(node)) {
+				openNodes.push(node);
+				var arr:Array = [];
+				addChildren(node, arr);
+				var i:int = getItemIndex(node);
+				while (arr.length) {
+					addItemAt(arr.shift(), ++i);
+				}
+			}
+		}
+		
+		/**
+		 * Closes the given node. The array data now contains fewer elements.
+         *  
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion FlexJS 0.0
+		 */
+		public function closeNode(node:Object):void
+		{
+			var i:int = openNodes.indexOf(node);
+			if (i != -1) {
+				
+				if (hdata.hasChildren(node)) {
+					var children:Array = hdata.getChildren(node) as Array;
+					var n:int = children.length;
+					for (var j:int=0; j < n; j++) {
+						closeNode(children[j]);
+					}
+				}
+				
+				openNodes.splice(i, 1);
+				var arr:Array = [];
+				addChildren(node, arr);
+				i = getItemIndex(node) + 1;
+				while (arr.length) {
+					removeItemAt(i);
+					arr.shift();
+				}
+			}
+		}
+		
+		/**
+		 * Returns the depth of the node with the root being zero.
+         *  
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion FlexJS 0.0
+		 */
+		public function getDepth(node:Object):int
+		{
+			var depth:int = godeep(node, hdata.getRoot(), 0);
+			return depth;
+		}
+		
+		/**
+		 * @private
+		 */
+		private function godeep(seeking:Object, node:Object, depth:int):int
+		{
+			if (seeking == node) return depth;
+			
+			if (hdata.hasChildren(node)) {
+				var children:Array = hdata.getChildren(node) as Array;
+				for (var i:int=0; i < children.length; i++) {
+					var newDepth:int = godeep(seeking, children[i], depth+1)
+					if (newDepth > 0) return newDepth;
+				}
+			}
+			
+			return -1;
+		}
+
+	}
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d0dddc1f/frameworks/projects/Collections/src/main/flex/org/apache/flex/collections/HierarchicalData.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Collections/src/main/flex/org/apache/flex/collections/HierarchicalData.as b/frameworks/projects/Collections/src/main/flex/org/apache/flex/collections/HierarchicalData.as
new file mode 100644
index 0000000..fb4b607
--- /dev/null
+++ b/frameworks/projects/Collections/src/main/flex/org/apache/flex/collections/HierarchicalData.as
@@ -0,0 +1,269 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.collections
+{
+
+import org.apache.flex.events.Event;
+import org.apache.flex.events.EventDispatcher;
+
+
+/**
+ *  Hierarchical data is data already in a structure of parent and child data items.
+ *  The HierarchicalData class provides a default implementation for
+ *  accessing and manipulating data.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion FlexJS 0.0
+ */
+public class HierarchicalData  extends EventDispatcher implements IHierarchicalData
+{
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     *
+     *  @param value The data used to populate the HierarchicalData instance.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.6
+     *  @productversion FlexJS 0.0
+     */
+    public function HierarchicalData(value:Object = null)
+    {
+        super();
+
+        source = value;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //--------------------------------------------------------------------------
+    // childrenField
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     *  The field name to be used to detect children field.
+     */
+    private var _childrenField:String = "children";
+
+    /**
+     *  Indicates the field name to be used to detect children objects in
+     *  a data item.
+     *  By default, all subnodes are considered as children for
+     *  XML data, and the <code>children</code> property is used for the Object data type.
+     *
+     *  This is helpful in adapting to a data format that uses custom data fields
+     *  to represent children.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.6
+     *  @productversion FlexJS 0.0
+     */
+    public function get childrenField():String
+    {
+        return _childrenField;
+    }
+
+    /**
+     *  @private
+     */
+    public function set childrenField(value:String):void
+    {
+        _childrenField = value;
+    }
+
+    //--------------------------------------------------------------------------
+    // source
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     *  The source collection.
+     */
+    private var _source:Object;
+
+    /**
+     *  The source collection.
+     *  The collection should implement the IList interface
+     *  to facilitate operation like the addition and removal of items.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.6
+     *  @productversion FlexJS 0.0
+     */
+    public function get source():Object
+    {
+        return _source;
+    }
+
+    /**
+     *  @private
+     */
+    public function set source(value:Object):void
+    {
+        _source = value;
+
+        dispatchEvent(new Event("collectionChanged"));
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     * @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.6
+     *  @productversion FlexJS 0.0
+     */
+    public function canHaveChildren(node:Object):Boolean
+    {
+        if (node == null)
+            return false;
+
+        var branch:Boolean = false;
+
+        if (node is Object)
+        {
+            try
+            {
+                if (node[childrenField] != undefined)
+                {
+                    branch = true;
+                }
+            }
+            catch (e:Error)
+            {
+            }
+        }
+        return branch;
+    }
+
+    /**
+     *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.6
+     *  @productversion FlexJS 0.0
+     */
+    public function getChildren(node:Object):Object
+    {
+        if (node == null)
+            return null;
+
+        var children:*;
+
+        //first get the children based on the type of node.
+        if (node is Object)
+        {
+            //we'll try the default children property
+            try
+            {
+                children = node[childrenField];
+            }
+            catch (e:Error)
+            {
+            }
+        }
+
+        //no children exist for this node
+        if(children === undefined)
+            return null;
+
+        return children;
+    }
+
+    /**
+     *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.6
+     *  @productversion FlexJS 0.0
+     */
+    public function hasChildren(node:Object):Boolean
+    {
+        if (node == null)
+            return false;
+
+        //This default impl can't optimize this call to getChildren
+        //since we can't make any assumptions by type.  Custom impl's
+        //can probably avoid this call and reduce the number of calls to
+        //getChildren if need be.
+        var children:Object = getChildren(node);
+        try
+        {
+            if (children.length > 0)
+                return true;
+        }
+        catch (e:Error)
+        {
+        }
+        return false;
+    }
+
+    /**
+     *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.6
+     *  @productversion FlexJS 0.0
+     */
+    public function getData(node:Object):Object
+    {
+        return Object(node);
+    }
+
+    /**
+     * @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.6
+     *  @productversion FlexJS 0.0
+     */
+    public function getRoot():Object
+    {
+        return source;
+    }
+
+}
+
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d0dddc1f/frameworks/projects/Collections/src/main/flex/org/apache/flex/collections/IHierarchicalData.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Collections/src/main/flex/org/apache/flex/collections/IHierarchicalData.as b/frameworks/projects/Collections/src/main/flex/org/apache/flex/collections/IHierarchicalData.as
new file mode 100644
index 0000000..5ff2b65
--- /dev/null
+++ b/frameworks/projects/Collections/src/main/flex/org/apache/flex/collections/IHierarchicalData.as
@@ -0,0 +1,119 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.collections
+{
+import org.apache.flex.events.IEventDispatcher;
+
+/**
+ *  The IHierarchicalData interface defines the interface
+ *  used to represent hierarchical data as the data provider for
+ *  a FlexJS component.
+ *  Hierarchical data is data in a structure of parent
+ *  and child data items.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion FlexJS 0.0
+ */
+public interface IHierarchicalData extends IEventDispatcher
+{
+	//--------------------------------------------------------------------------
+	//
+	//  Methods
+	//
+	//--------------------------------------------------------------------------
+
+    /**
+     *  Returns <code>true</code> if the node can contain children.
+     *
+     *  <p>Nodes do not have to contain children for the method
+     *  to return <code>true</code>.
+     *  This method is useful in determining whether other
+     *  nodes can be appended as children to the specified node.</p>
+     *
+     *  @param node The Object that defines the node.
+     *
+     *  @return <code>true</code> if the node can contain children.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.6
+     *  @productversion FlexJS 0.0
+     */
+    function canHaveChildren(node:Object):Boolean;
+
+    /**
+     *  Returns <code>true</code> if the node has children.
+     *
+     *  @param node The Object that defines the node.
+     *
+     *  @return <code>true</code> if the node has children.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.6
+     *  @productversion FlexJS 0.0
+     */
+    function hasChildren(node:Object):Boolean;
+
+    /**
+     *  Returns an Object representing the node's children.
+     *
+     *  @param node The Object that defines the node.
+     *  If <code>null</code>, return a collection of top-level nodes.
+     *
+     *  @return An Object containing the children nodes.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.6
+     *  @productversion FlexJS 0.0
+     */
+    function getChildren(node:Object):Object;
+
+    /**
+     *  Returns data from a node.
+     *
+     *  @param node The node Object from which to get the data.
+     *
+     *  @return The requested data.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.6
+     *  @productversion FlexJS 0.0
+     */
+    function getData(node:Object):Object;
+
+    /**
+     * Returns the root data item.
+     *
+     * @return The Object containing the root data item.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.6
+     *  @productversion FlexJS 0.0
+     */
+    function getRoot():Object;
+}
+
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d0dddc1f/frameworks/projects/Collections/src/main/resources/basic-manifest.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Collections/src/main/resources/basic-manifest.xml b/frameworks/projects/Collections/src/main/resources/basic-manifest.xml
index 5ea77b7..dd1c47f 100644
--- a/frameworks/projects/Collections/src/main/resources/basic-manifest.xml
+++ b/frameworks/projects/Collections/src/main/resources/basic-manifest.xml
@@ -22,6 +22,7 @@
 <componentPackage>
 
     <component id="ArrayList" class="org.apache.flex.collections.ArrayList"/>
+    <component id="HierarchicalData" class="org.apache.flex.collections.HierarchicalData"/>
     <component id="LazyCollection" class="org.apache.flex.collections.LazyCollection"/>
     <component id="JSONInputParser" class="org.apache.flex.collections.parsers.JSONInputParser"/>
     <component id="JSONItemConverter" class="org.apache.flex.collections.converters.JSONItemConverter"/>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d0dddc1f/frameworks/projects/HTML/src/main/flex/HTMLClasses.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/flex/HTMLClasses.as b/frameworks/projects/HTML/src/main/flex/HTMLClasses.as
index 80073e7..e5171d4 100644
--- a/frameworks/projects/HTML/src/main/flex/HTMLClasses.as
+++ b/frameworks/projects/HTML/src/main/flex/HTMLClasses.as
@@ -89,7 +89,7 @@ internal class HTMLClasses
 	    import org.apache.flex.html.beads.TextInputWithBorderView; TextInputWithBorderView;
 	    import org.apache.flex.html.beads.models.AlertModel; AlertModel;
 	}
-    import org.apache.flex.html.beads.models.ArraySelectionModel; ArraySelectionModel;
+	import org.apache.flex.html.beads.models.ArraySelectionModel; ArraySelectionModel;
     import org.apache.flex.html.beads.models.RangeModel; RangeModel;
 	COMPILE::AS3
 	{
@@ -122,6 +122,7 @@ internal class HTMLClasses
 	}
     import org.apache.flex.html.beads.controllers.ItemRendererMouseController; ItemRendererMouseController;
     import org.apache.flex.html.beads.controllers.ListSingleSelectionMouseController; ListSingleSelectionMouseController;
+	import org.apache.flex.html.beads.controllers.TreeSingleSelectionMouseController; TreeSingleSelectionMouseController;
 	COMPILE::AS3
 	{
 		import org.apache.flex.html.beads.controllers.SliderMouseController; SliderMouseController;
@@ -142,6 +143,7 @@ internal class HTMLClasses
     import org.apache.flex.html.beads.TextItemRendererFactoryForArrayData; TextItemRendererFactoryForArrayData;
 	import org.apache.flex.html.beads.DataItemRendererFactoryForArrayData; DataItemRendererFactoryForArrayData;
 	import org.apache.flex.html.beads.DataItemRendererFactoryForArrayList; DataItemRendererFactoryForArrayList;
+	import org.apache.flex.html.beads.DataItemRendererFactoryForHierarchicalData; DataItemRendererFactoryForHierarchicalData;
 	import org.apache.flex.html.supportClasses.DataGroup; DataGroup;
 	import org.apache.flex.html.supportClasses.Viewport; Viewport;
 	import org.apache.flex.html.supportClasses.ScrollingViewport; ScrollingViewport;
@@ -163,7 +165,7 @@ internal class HTMLClasses
     import org.apache.flex.html.MXMLBeadViewBase; MXMLBeadViewBase;
     import org.apache.flex.html.beads.TitleBarView; TitleBarView;
     import org.apache.flex.html.beads.TitleBarMeasurementBead; TitleBarMeasurementBead;
-	
+
 	import org.apache.flex.html.beads.WebBrowserView; WebBrowserView;
 	import org.apache.flex.html.beads.models.WebBrowserModel; WebBrowserModel;
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d0dddc1f/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/Tree.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/Tree.as b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/Tree.as
new file mode 100644
index 0000000..c23e7f9
--- /dev/null
+++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/Tree.as
@@ -0,0 +1,73 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.html
+{
+	import org.apache.flex.collections.FlattenedList;
+	import org.apache.flex.collections.HierarchicalData;
+
+	/**
+	 *  The Tree component displays structured data. The Tree uses a HierarchicalData
+	 *  object as its data provider. 
+	 * 
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.6
+	 *  @productversion FlexJS 0.0
+	 */
+	public class Tree extends List
+	{
+		/**
+		 * Constructor.
+		 * 
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		public function Tree()
+		{
+			super();
+		}
+
+		private var _hierarchicalData:HierarchicalData;
+		private var _flatList:FlattenedList;
+
+		/**
+		 * The dataProvider should be of type HierarchicalData.
+		 * 
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 *  @see org.apache.flex.collections.HierarchicalData.
+		 */
+		override public function get dataProvider():Object
+		{
+			return _hierarchicalData;
+		}
+		override public function set dataProvider(value:Object):void
+		{
+			_hierarchicalData = value as HierarchicalData;
+
+			_flatList = new FlattenedList(_hierarchicalData);
+
+			super.dataProvider = _flatList;
+		}
+	}
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d0dddc1f/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/DataItemRendererFactoryForHierarchicalData.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/DataItemRendererFactoryForHierarchicalData.as b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/DataItemRendererFactoryForHierarchicalData.as
new file mode 100644
index 0000000..58bfd21
--- /dev/null
+++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/DataItemRendererFactoryForHierarchicalData.as
@@ -0,0 +1,109 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.html.beads
+{
+	import org.apache.flex.core.IBead;
+	import org.apache.flex.core.IDataProviderItemRendererMapper;
+	import org.apache.flex.core.IItemRendererClassFactory;
+	import org.apache.flex.core.IItemRendererParent;
+	import org.apache.flex.core.IListPresentationModel;
+	import org.apache.flex.core.ISelectableItemRenderer;
+	import org.apache.flex.core.ISelectionModel;
+	import org.apache.flex.core.IStrand;
+	import org.apache.flex.core.IUIBase;
+	import org.apache.flex.core.SimpleCSSStyles;
+	import org.apache.flex.core.UIBase;
+	import org.apache.flex.core.ValuesManager;
+	import org.apache.flex.events.Event;
+	import org.apache.flex.events.IEventDispatcher;
+	import org.apache.flex.html.List;
+	import org.apache.flex.html.supportClasses.TreeListData;
+	import org.apache.flex.collections.FlattenedList;
+
+    /**
+     *  The DataItemRendererFactoryForHierarchicalData class reads a
+     *  HierarchicalData object and creates an item renderer for every
+     *  item in the array.  Other implementations of
+     *  IDataProviderItemRendererMapper map different data
+     *  structures or manage a virtual set of renderers.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.6
+     *  @productversion FlexJS 0.0
+     */
+	public class DataItemRendererFactoryForHierarchicalData extends DataItemRendererFactoryForArrayList
+	{
+        /**
+         *  Constructor.
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion FlexJS 0.0
+         */
+		public function DataItemRendererFactoryForHierarchicalData()
+		{
+			super();
+		}
+
+		private var _strand:IStrand;
+
+        /**
+         *  @copy org.apache.flex.core.IBead#strand
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion FlexJS 0.0
+         */
+		override public function set strand(value:IStrand):void
+		{
+			_strand = value;
+			
+			super.strand = value;
+		}
+		
+		/**
+		 * Sets the itemRenderer's data with additional tree-related data.
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion FlexJS 0.0
+		 */
+		override protected function setData(ir:ISelectableItemRenderer, data:Object, index:int):void
+		{
+			// Set the listData with the depth of this item
+			var flatList:FlattenedList = selectionModel.dataProvider as FlattenedList;
+			var depth:int = flatList.getDepth(data);
+			var isOpen:Boolean = flatList.isOpen(data);
+			var hasChildren:Boolean = flatList.hasChildren(data);
+			
+			var treeData:TreeListData = new TreeListData();
+			treeData.depth = depth;
+			treeData.isOpen = isOpen;
+			treeData.hasChildren = hasChildren;
+			
+			ir.listData = treeData;
+			
+			super.setData(ir, data, index);
+		}
+	}
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d0dddc1f/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.as b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.as
index e8a1f1f..dbeac6b 100644
--- a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.as
+++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.as
@@ -111,27 +111,27 @@ package org.apache.flex.html.beads.controllers
 			IEventDispatcher(_strand).addEventListener("itemRemoved", handleItemRemoved);
 		}
 		
-		private function handleItemAdded(event:ItemAddedEvent):void
+		protected function handleItemAdded(event:ItemAddedEvent):void
 		{
 			IEventDispatcher(event.item).addEventListener("itemClicked", selectedHandler);
 			IEventDispatcher(event.item).addEventListener("itemRollOver", rolloverHandler);
 			IEventDispatcher(event.item).addEventListener("itemRollOut", rolloutHandler);
 		}
 		
-		private function handleItemRemoved(event:ItemAddedEvent):void
+		protected function handleItemRemoved(event:ItemAddedEvent):void
 		{
 			IEventDispatcher(event.item).removeEventListener("itemClicked", selectedHandler);
 			IEventDispatcher(event.item).removeEventListener("itemRollOver", rolloverHandler);
 			IEventDispatcher(event.item).removeEventListener("itemRollOut", rolloutHandler);
 		}
 		
-        private function selectedHandler(event:ItemClickedEvent):void
+		protected function selectedHandler(event:ItemClickedEvent):void
         {
             listModel.selectedIndex = event.index;
             listView.host.dispatchEvent(new Event("change"));
         }
 		
-		private function rolloverHandler(event:Event):void
+		protected function rolloverHandler(event:Event):void
 		{
 			var renderer:ISelectableItemRenderer = event.currentTarget as ISelectableItemRenderer;
 			if (renderer) {
@@ -140,7 +140,7 @@ package org.apache.flex.html.beads.controllers
 			}
 		}
 		
-		private function rolloutHandler(event:Event):void
+		protected function rolloutHandler(event:Event):void
 		{
 			var renderer:ISelectableItemRenderer = event.currentTarget as ISelectableItemRenderer;
 			if (renderer) {

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d0dddc1f/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/controllers/TreeSingleSelectionMouseController.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/controllers/TreeSingleSelectionMouseController.as b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/controllers/TreeSingleSelectionMouseController.as
new file mode 100644
index 0000000..a668fa4
--- /dev/null
+++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/controllers/TreeSingleSelectionMouseController.as
@@ -0,0 +1,82 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.html.beads.controllers
+{
+	import org.apache.flex.collections.FlattenedList;
+	import org.apache.flex.html.Tree
+	import org.apache.flex.events.ItemClickedEvent;
+	import org.apache.flex.core.IStrand;
+	import org.apache.flex.events.Event;
+
+	/**
+	 *  The TreeSingleSelectionMouseController class is a controller for 
+	 *  org.apache.flex.html.Tree. This controller watches for selection
+	 *  events on the tree item renderers and uses those events to open
+	 *  or close nodes of the tree.
+	 *  
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.6
+	 *  @productversion FlexJS 0.0
+	 */
+	public class TreeSingleSelectionMouseController extends ListSingleSelectionMouseController
+	{
+		/**
+		 *  Constructor.
+		 *  
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		public function TreeSingleSelectionMouseController()
+		{
+			super();
+		}
+
+		private var _strand:IStrand;
+
+		/**
+		 * @private
+		 */
+		override public function set strand(value:IStrand):void
+		{
+			_strand = value;
+			super.strand = value;
+		}
+
+		/**
+		 * @private
+		 */
+		override protected function selectedHandler(event:ItemClickedEvent):void
+		{
+			var tree:Tree = _strand as Tree;
+			var flatList:FlattenedList = listModel.dataProvider as FlattenedList;
+			var node:Object = event.data;
+			
+			if (flatList.isOpen(node)) {
+				flatList.closeNode(node);
+			} else {
+				flatList.openNode(node);
+			}
+			
+			listModel.dispatchEvent(new Event("dataProviderChanged"));
+		}
+	}
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d0dddc1f/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/supportClasses/StringItemRenderer.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/supportClasses/StringItemRenderer.as b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/supportClasses/StringItemRenderer.as
index 9568932..db0977e 100644
--- a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/supportClasses/StringItemRenderer.as
+++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/supportClasses/StringItemRenderer.as
@@ -173,9 +173,6 @@ package org.apache.flex.html.supportClasses
             // the selection and highlight
             backgroundView = element;
             
-            controller = new ItemRendererMouseController();
-            controller.strand = this;
-            
             return element;
         }
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d0dddc1f/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/supportClasses/TreeItemRenderer.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/supportClasses/TreeItemRenderer.as b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/supportClasses/TreeItemRenderer.as
new file mode 100644
index 0000000..bf545b0
--- /dev/null
+++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/supportClasses/TreeItemRenderer.as
@@ -0,0 +1,59 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.html.supportClasses
+{	
+	public class TreeItemRenderer extends StringItemRenderer
+	{
+		/**
+		 * Constructor.
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion FlexJS 0.0
+		 */
+		public function TreeItemRenderer()
+		{
+			super();
+		}
+		
+		/**
+		 * Sets the data for the itemRenderer instance along with the listData
+		 * (TreeListData).
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion FlexJS 0.0
+		 */
+		override public function set data(value:Object):void
+		{
+			super.data = value;
+			
+			var treeData:TreeListData = listData as TreeListData;
+			
+			var indent:String = treeData.hasChildren ? (treeData.isOpen ? "-" : "+") : " ";
+			for (var i:int=0; i < treeData.depth; i++) {
+				indent += "    ";
+			}
+			
+			this.text = indent + this.text;
+		}
+	}
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d0dddc1f/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/supportClasses/TreeListData.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/supportClasses/TreeListData.as b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/supportClasses/TreeListData.as
new file mode 100644
index 0000000..c6da4d5
--- /dev/null
+++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/supportClasses/TreeListData.as
@@ -0,0 +1,76 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.html.supportClasses
+{
+	/**
+	 *  The TreeListData class contains information that Tree item renderers may
+	 *  find useful when displaying the data for a node in the tree.
+	 *  
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.6
+	 *  @productversion FlexJS 0.0
+	 *  @flexjsignoreimport goog.events.Event
+	 */
+	public class TreeListData
+	{
+		/**
+		 *  constructor.
+		 *  
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		public function TreeListData()
+		{
+		}
+
+		/**
+		 *  The depth of the data within the tree with the root being zero.
+		 *  
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		public var depth:Number;
+		
+		/**
+		 *  Whether or not the node for this data is open (and its children
+		 *  visible).
+		 *  
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		public var isOpen:Boolean;
+		
+		/**
+		 *  Whether or not the node for this data has any children.
+		 *  
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		public var hasChildren:Boolean;
+	}
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d0dddc1f/frameworks/projects/HTML/src/main/resources/basic-manifest.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/resources/basic-manifest.xml b/frameworks/projects/HTML/src/main/resources/basic-manifest.xml
index 3b72af6..8a4db07 100644
--- a/frameworks/projects/HTML/src/main/resources/basic-manifest.xml
+++ b/frameworks/projects/HTML/src/main/resources/basic-manifest.xml
@@ -49,6 +49,7 @@
     <component id="TitleBar" class="org.apache.flex.html.TitleBar"/>
     <component id="TitleBarModel" class="org.apache.flex.html.beads.models.TitleBarModel"/>
     <component id="ToolTip" class="org.apache.flex.html.ToolTip"/>
+    <component id="Tree" class="org.apache.flex.html.Tree"/>
     <component id="BasicLayout" class="org.apache.flex.html.beads.layouts.BasicLayout"/>
     <component id="VerticalLayout" class="org.apache.flex.html.beads.layouts.VerticalLayout"/>
     <component id="HorizontalLayout" class="org.apache.flex.html.beads.layouts.HorizontalLayout"/>
@@ -62,6 +63,7 @@
     <component id="Slider" class="org.apache.flex.html.Slider"/>
     <component id="NumericStepper" class="org.apache.flex.html.NumericStepper" />
     <component id="StringItemRenderer" class="org.apache.flex.html.supportClasses.StringItemRenderer"/>
+    <component id="TreeItemRenderer" class="org.apache.flex.html.supportClasses.TreeItemRenderer"/>
     <component id="DataItemRenderer" class="org.apache.flex.html.supportClasses.DataItemRenderer"/>
     <component id="ButtonBarButtonItemRenderer" class="org.apache.flex.html.supportClasses.ButtonBarButtonItemRenderer"/>
     <!--

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d0dddc1f/frameworks/projects/HTML/src/main/resources/defaults.css
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/resources/defaults.css b/frameworks/projects/HTML/src/main/resources/defaults.css
index 13d7418..ea0c0c8 100644
--- a/frameworks/projects/HTML/src/main/resources/defaults.css
+++ b/frameworks/projects/HTML/src/main/resources/defaults.css
@@ -206,6 +206,22 @@ List
 	border-color: #222222;
 }
 
+Tree
+{
+	IBeadModel: ClassReference("org.apache.flex.html.beads.models.ArraySelectionModel");
+	IBeadView:  ClassReference("org.apache.flex.html.beads.ListView");			
+	IBeadController: ClassReference("org.apache.flex.html.beads.controllers.TreeSingleSelectionMouseController");
+	IBeadLayout: ClassReference("org.apache.flex.html.beads.layouts.VerticalLayout");
+	IContentView: ClassReference("org.apache.flex.html.supportClasses.DataGroup");
+	IDataProviderItemRendererMapper: ClassReference("org.apache.flex.html.beads.DataItemRendererFactoryForHierarchicalData");
+	IItemRendererClassFactory: ClassReference("org.apache.flex.core.ItemRendererClassFactory");
+	IItemRenderer: ClassReference("org.apache.flex.html.supportClasses.TreeItemRenderer");
+	IViewport: ClassReference("org.apache.flex.html.supportClasses.ScrollingViewport");
+	IViewportModel: ClassReference("org.apache.flex.html.beads.models.ViewportModel");
+	border-style: solid;
+	border-color: #222222;
+}
+
 NumericStepper
 {
     IBeadModel: ClassReference("org.apache.flex.html.beads.models.RangeModel");
@@ -266,6 +282,12 @@ StringItemRenderer
     height: 16;
 }
 
+TreeItemRenderer
+{
+	IBeadController: ClassReference("org.apache.flex.html.beads.controllers.ItemRendererMouseController");
+	height: 16;
+}
+
 TextInput
 {
   border: 1px solid #808080;


[15/43] git commit: [flex-asjs] [refs/heads/e4x] - initial support for QName and Namespaces in JS

Posted by ha...@apache.org.
initial support for QName and Namespaces in JS


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

Branch: refs/heads/e4x
Commit: b4f50115d5169b90212f51254b0710430ad218f3
Parents: 1c4d36c
Author: Alex Harui <ah...@apache.org>
Authored: Thu Mar 10 19:28:11 2016 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Thu Mar 10 19:28:20 2016 -0800

----------------------------------------------------------------------
 .../projects/Core/src/main/flex/CoreClasses.as  |  2 +
 .../projects/Core/src/main/flex/Namespace.as    | 50 ++++++++++++++++++
 frameworks/projects/Core/src/main/flex/QName.as | 53 ++++++++++++++++++++
 manualtests/LanguageTests/src/LanguageTests.as  | 26 ++++++++--
 4 files changed, 128 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b4f50115/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 5ad1688..b806f68 100644
--- a/frameworks/projects/Core/src/main/flex/CoreClasses.as
+++ b/frameworks/projects/Core/src/main/flex/CoreClasses.as
@@ -145,6 +145,8 @@ internal class CoreClasses
 	COMPILE::JS
 	{
 	    import org.apache.flex.utils.Language; Language;
+		import QName; QName;
+		import Namespace; Namespace;
 	}
 }
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b4f50115/frameworks/projects/Core/src/main/flex/Namespace.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/Namespace.as b/frameworks/projects/Core/src/main/flex/Namespace.as
new file mode 100644
index 0000000..305d88c
--- /dev/null
+++ b/frameworks/projects/Core/src/main/flex/Namespace.as
@@ -0,0 +1,50 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 {
+
+/**
+ *  Namespace implementation for JS
+ */
+public class Namespace
+{
+    public function Namespace(param1:*, param2:* = undefined)
+	{
+		if (param2 !== undefined)
+		{
+			uri = param2;
+			prefix = param1;
+		}
+		else
+		{
+			uri = param1;
+		}
+	}
+	
+	public var uri:String;
+	public var prefix:String;
+	
+	public function toString():String
+	{
+		return uri;
+	}
+	
+}
+
+}
+

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b4f50115/frameworks/projects/Core/src/main/flex/QName.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/QName.as b/frameworks/projects/Core/src/main/flex/QName.as
new file mode 100644
index 0000000..26c398b
--- /dev/null
+++ b/frameworks/projects/Core/src/main/flex/QName.as
@@ -0,0 +1,53 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 {
+
+/**
+ *  QName implementation for JS
+ */
+public class QName
+{
+    public function QName(param1:Object, localName:String = null)
+	{
+		if (param1 is QName)
+		{
+			var q:QName = param1 as QName;
+			uri = q.uri;
+			localName = q.localName;
+		}
+		else if (param1 is Namespace)
+		{
+			var n:Namespace = param1 as Namespace;
+			uri = n.uri;
+			this.localName = localName;
+		}
+	}
+	
+	public var uri:String;
+	public var localName:String;
+	
+	public function toString():String
+	{
+		return uri + "::" + localName;
+	}
+	
+}
+
+}
+

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b4f50115/manualtests/LanguageTests/src/LanguageTests.as
----------------------------------------------------------------------
diff --git a/manualtests/LanguageTests/src/LanguageTests.as b/manualtests/LanguageTests/src/LanguageTests.as
index 1343abe..8ed9c38 100644
--- a/manualtests/LanguageTests/src/LanguageTests.as
+++ b/manualtests/LanguageTests/src/LanguageTests.as
@@ -19,9 +19,6 @@
 package
 {
 
-import org.apache.flex.core.SimpleApplication;
-import org.apache.flex.events.Event;
-
 import classes.B;
 
 import interfaces.IA;
@@ -31,6 +28,9 @@ import interfaces.ID;
 import interfaces.IE;
 import interfaces.IF;
 
+import org.apache.flex.core.SimpleApplication;
+import org.apache.flex.events.Event;
+
 public class LanguageTests extends SimpleApplication implements IA, IE
 {
 	public function LanguageTests()
@@ -149,6 +149,19 @@ public class LanguageTests extends SimpleApplication implements IA, IE
             trace("removeEventListener worked");
         else
             trace("This shouldn't show!");
+        
+        var n:Namespace = new Namespace("my_ns", "http://www.apache.org/2016/flex/ns/internal");
+        trace("Namespace.prefix (should be my_ns): ", n.prefix);
+        trace("Namespace.uri (should be http://www.apache.org/2016/flex/ns/internal): ", n.uri);
+        var q:QName = new QName(n, "my_namespaced_property");
+        trace("QName.localName (should be my_namespaced_property): ", q.localName);
+        trace("QName.uri (should be http://www.apache.org/2016/flex/ns/internal): ", q.uri);
+        var o:MyDynamicClass = new MyDynamicClass;
+        o[q] = "value_of_namespaced_property";
+        trace("Get namespaced property via []: ", o[q]);
+        trace("Get namespaced property via ::: ", o.n::my_namespaced_property);
+        trace("Get namespaced property via my_ns: ", o.my_ns::my_namespaced_property);
+        
 	}
     
     public function eventHandler(e:Event):void
@@ -156,4 +169,11 @@ public class LanguageTests extends SimpleApplication implements IA, IE
         
     }
 }
+}
+
+namespace my_ns = "http://www.apache.org/2016/flex/ns/internal";
+
+dynamic class MyDynamicClass
+{
+    my_ns var my_namespaced_property:String;    
 }
\ No newline at end of file


[42/43] git commit: [flex-asjs] [refs/heads/e4x] - Application was not adding its own beads to its strand.

Posted by ha...@apache.org.
Application was not adding its own beads to its strand.


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

Branch: refs/heads/e4x
Commit: 64c699d376812a9a42a6450d69032886623385e5
Parents: fd130d7
Author: Peter Ent <pe...@apache.org>
Authored: Thu Apr 7 14:33:29 2016 -0400
Committer: Peter Ent <pe...@apache.org>
Committed: Thu Apr 7 14:33:29 2016 -0400

----------------------------------------------------------------------
 .../Core/src/main/flex/org/apache/flex/core/Application.as    | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/64c699d3/frameworks/projects/Core/src/main/flex/org/apache/flex/core/Application.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/org/apache/flex/core/Application.as b/frameworks/projects/Core/src/main/flex/org/apache/flex/core/Application.as
index ac80b8c..7b00170 100644
--- a/frameworks/projects/Core/src/main/flex/org/apache/flex/core/Application.as
+++ b/frameworks/projects/Core/src/main/flex/org/apache/flex/core/Application.as
@@ -578,8 +578,11 @@ package org.apache.flex.core
 
             dispatchEvent('initialize');
 
-            if (model is IBead) addBead(model as IBead);
-            if (controller is IBead) addBead(controller as IBead);
+			for (var index:int in beads) {
+				addBead(beads[index]);
+			}
+
+			dispatchEvent(new org.apache.flex.events.Event("beadsAdded"));
 
             initialView.applicationModel = model;
             addElement(initialView);


[30/43] git commit: [flex-asjs] [refs/heads/e4x] - try to make the designmodo fonts an optional dependency

Posted by ha...@apache.org.
try to make the designmodo fonts an optional dependency


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

Branch: refs/heads/e4x
Commit: fb682e0bc4053a9b5b0cf851dbf30da8e2c6cb93
Parents: 164ec03
Author: Alex Harui <ah...@apache.org>
Authored: Mon Mar 28 23:40:57 2016 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Mon Mar 28 23:40:57 2016 -0700

----------------------------------------------------------------------
 apache-flex-flexjs-installer-config.xml | 29 ++++++++++
 build.xml                               |  3 +-
 frameworks/downloads.xml                | 41 ++++++++++++--
 installer.properties/en_US.properties   | 14 +++++
 installer.xml                           | 81 +++++++++++++++++++++++++---
 5 files changed, 155 insertions(+), 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/fb682e0b/apache-flex-flexjs-installer-config.xml
----------------------------------------------------------------------
diff --git a/apache-flex-flexjs-installer-config.xml b/apache-flex-flexjs-installer-config.xml
index 38264fd..7807a0c 100755
--- a/apache-flex-flexjs-installer-config.xml
+++ b/apache-flex-flexjs-installer-config.xml
@@ -152,6 +152,12 @@
 			<zh_CN>Adobe Flash Player playerglobal.swc (必须的)</zh_CN>
 			<zh_TW>Adobe Flash Player playerglobal.swc (必須的)</zh_TW>
 		</step>
+        <step id="flat-download" property="do.flat.install">
+            <el_GR>DesignModo fonts</el_GR>
+            <en_US>DesignModo fonts (Optional)</en_US>
+            <zh_CN>DesignModo fonts (必须的)</zh_CN>
+            <zh_TW>DesignModo fonts (必須的)</zh_TW>
+        </step>
 		<step id="swfobject-download">
 			<el_GR>SWFObject (Απαιτούμενο)</el_GR>
 			<en_US>SWFObject (Required)</en_US>
@@ -233,4 +239,27 @@
 			<license>Adobe Flex SDK 授權合約</license>
 		</zh_TW>
 	</component>
+    <component id="STEP_REQUIRED_INSTALL_FLAT_FONTS" required="true" property="do.flat.install">
+        <el_GR>
+            <label>designmodo fonts (Προαιρετικό)</label>
+            <message>Για το designmodo fonts ισχύει η συμφωνία χρήσης του CC-BY-NC-ND License. Θέλετε να εγκαταστήσετε το designmodo fonts;</message>
+            <license>'Αδεια χρήσης CC-BY-NC-ND</license>
+        </el_GR>
+        <en_US>
+            <label>designmodo fonts (Optional)</label>
+            <message>The CC-BY-NC-ND license applies to the designmodo fonts.  Do you want to install the designmodo fonts?</message>
+            <license>CC-BY-NC-ND</license>
+            <licenseURL>http://creativecommons.org/licenses/by-nc-nd/3.0/</licenseURL>
+        </en_US>
+        <zh_CN>
+            <label>designmodo (必须的)</label>
+            <message>CC-BY-NC-ND 许可协议适用于 designmodo 的 fonts 文件. 您想要安装 designmodo 的 fonts 文件吗?</message>
+            <license>C-BY-NC-ND 许可协议</license>
+        </zh_CN>
+        <zh_TW>
+            <label>designmodo fonts(必須的)</label>
+            <message>CC-BY-NC-ND 授權合約適用於 designmodo 的 fonts 檔案. 您想要安裝 designmodo 的 fonts 檔案嗎?</message>
+            <license>CC-BY-NC-ND 授權合約</license>
+        </zh_TW>
+    </component>
 </config>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/fb682e0b/build.xml
----------------------------------------------------------------------
diff --git a/build.xml b/build.xml
index 6ec2fbc..9bda287 100644
--- a/build.xml
+++ b/build.xml
@@ -739,12 +739,13 @@
         </copy>
          -->
          
-         <!-- fonts -->
+         <!-- fonts
           <copy todir="${basedir}/temp/frameworks/fonts">
               <fileset dir="${basedir}/frameworks/fonts" >
                   <include name="**/**"/>
               </fileset>
           </copy>
+          -->
          
         <!-- examples -->
         <copy todir="${basedir}/temp/examples">

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/fb682e0b/frameworks/downloads.xml
----------------------------------------------------------------------
diff --git a/frameworks/downloads.xml b/frameworks/downloads.xml
index a54782d..ac9e0fb 100644
--- a/frameworks/downloads.xml
+++ b/frameworks/downloads.xml
@@ -26,8 +26,8 @@
     <property name="FLEX_HOME" value="${env.FLEX_HOME}" />
 
 	<property name="download.dir" value="${FLEXJS_HOME}/in"/>
-	        
-    <!-- 
+    
+    <!--
        To clean these you must call thirdparty-clean or super-clean to clean everything.  
        clean does not remove these since they don't change often and the downloads take time.
     -->
@@ -82,11 +82,42 @@
     <!-- swfobject.js (Version 2.2) -->
     <!-- Because this requires a network connection it downloads SWFObject only if it doesn't already exist. -->
     <target name="flat-ui-check" description="Checks if SWFObject has been downloaded.">
-        <available file="${FLEXJS_HOME}/frameworks/fonts/flat-ui-icons-regular.ttf" property="flat-ui.present"/>
+        <available file="${FLEXJS_HOME}/frameworks/fonts/flat-ui-icons-regular.ttf" property="flat.donot.ask"/>
+        <condition property="flat.donot.ask">
+            <isset property="build.noprompt"/>
+        </condition>
+        <condition property="do.flat.install">
+            <isset property="build.noprompt"/>
+        </condition>
     </target>
     
-    <target name="flat-ui-download" depends="flat-ui-check" unless="flat-ui.present"
-        description="Copies FlatUI from github">
+    <target name="ask-flat" unless="flat.donot.ask"
+        description="Prompt the user before downloading Flat fonts">
+        
+        <property name="flat.prompt.text"
+        value="Apache FlexJS includes an optional component set that
+        ${line.separator}uses fonts from designmodo.com.
+        ${line.separator}The font files are subject to and governed by the
+        ${line.separator}Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported license:
+        ${line.separator}http://creativecommons.org/licenses/by-nc-nd/3.0/
+        ${line.separator}This license is not compatible with the Apache v2 license.
+        ${line.separator}Do you want to install the designmodo fonts?"/>
+        <input
+        message="${flat.prompt.text}"
+        validargs="y,n"
+        defaultvalue="n"
+        addproperty="input.flat.download"/>
+        <condition property="do.flat.install">
+            <equals arg1="y" arg2="${input.flat.download}"/>
+        </condition>
+        <!-- Only ask once per ant run.  -->
+        <property name="flat.donot.ask" value="set"/>
+    </target>
+    
+    <target name="flat-ui-download" depends="flat-ui-check,get-flat-fonts"
+        description="Copies FlatUI from github" />
+        
+    <target name="get-flat-fonts" depends="ask-flat" if="do.flat.install" >
         
         <mkdir dir="${download.dir}"/>
         <get src="https://github.com/designmodo/Flat-UI/archive/2.2.2.zip"

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/fb682e0b/installer.properties/en_US.properties
----------------------------------------------------------------------
diff --git a/installer.properties/en_US.properties b/installer.properties/en_US.properties
index df50962..bb84b36 100644
--- a/installer.properties/en_US.properties
+++ b/installer.properties/en_US.properties
@@ -22,6 +22,19 @@ yes.no.prompts=y,n
 yes=y
 no=n
 
+flat.prompt.text=\
+Apache FlexJS includes an optional component set that\n\
+uses fonts from designmodo.com\n\
+\n\
+The font files are subject to and governed by the\n\
+Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported license:\n\
+http://creativecommons.org/licenses/by-nc-nd/3.0/\n\
+By downloading, modifying, distributing, using and/or accessing any of these font files\n\
+you agree to the terms and conditions of the applicable license agreement.\n\
+\n\
+This license is not compatible with the Apache v2 license.\n\
+Do you want to download and install the designmodo fonts?
+
 flash.prompt.text=\
 Apache FlexJS uses the Adobe Flash Player's playerglobal.swc to build Adobe Flash applications.\n\
 \n\
@@ -75,6 +88,7 @@ INFO_DOWNLOADING_AIR_RUNTIME_KIT_WINDOWS=Downloading Adobe AIR Runtime Kit for W
 INFO_FINISHED_UNTARING=Finished untaring: 
 INFO_FINISHED_UNZIPPING=Finished uncompressing: 
 INFO_UNZIPPING=Uncompressing: 
+INFO_INSTALLING_FLAT_FONTS=Installing DesignModo fonts from: 
 INFO_INSTALLING_PLAYERGLOBAL_SWC=Installing Adobe Flash Player playerglobal.swc from: 
 INFO_INSTALLING_CONFIG_FILES=Installing frameworks configuration files configured for use with an IDE
 INFO_INSTALLING_LAUNCH_CONFIG_FILES=Installing Adobe Flash Builder launch configuration files

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/fb682e0b/installer.xml
----------------------------------------------------------------------
diff --git a/installer.xml b/installer.xml
index f026b9f..27ae65f 100644
--- a/installer.xml
+++ b/installer.xml
@@ -59,7 +59,7 @@
     <property name="flash.sdk.version" value="14.0"/>
     <property name="flexjs.version" value="0.6.0"/>
     <property name="falcon.version" value="0.6.0"/>
-    
+
     <property name="swfobject.url.server" value="https://github.com" />
     <property name="swfobject.url.folder" value="swfobject/swfobject/archive" />
     <property name="swfobject.url.file" value="2.2.zip" />
@@ -94,6 +94,9 @@
     <condition property="flash.donot.ask" value="true">
         <isset property="installer" />
     </condition>
+    <condition property="flat.donot.ask" value="true">
+        <isset property="installer" />
+    </condition>
 
     <condition property="COMPC" value="compc.bat">
         <os family="windows" />
@@ -277,7 +280,7 @@
         </fail>
     </target>
     
-    <target name="ask-licenses" depends="ask-air,ask-flash" description="Ask about the various licenses">
+    <target name="ask-licenses" depends="ask-air,ask-flash,ask-flat" description="Ask about the various licenses">
 	</target>
     
     <target name="ask-air" unless="air.donot.ask"
@@ -291,6 +294,7 @@
         <condition property="do.air.install">
             <equals arg1="${yes}" arg2="${input.air.download}"/>
         </condition>
+        <fail message="${ERROR_REQUIRED_LICENSE}" unless="do.air.install" />
         <!-- Only ask once per ant run.  -->
         <property name="air.donot.ask" value="set"/>
     </target>
@@ -306,10 +310,26 @@
         <condition property="do.flash.install">
             <equals arg1="${yes}" arg2="${input.flash.download}"/>
         </condition>
+        <fail message="${ERROR_REQUIRED_LICENSE}" unless="do.flash.install" />
         <!-- Only ask once per ant run.  -->
         <property name="flash.donot.ask" value="set"/>
     </target>
 
+    <target name="ask-flat" unless="flat.donot.ask"
+        description="Prompt the user before downloading Flat fonts">
+        
+        <input
+        message="${flat.prompt.text}"
+        validargs="${yes.no.prompts}"
+        defaultvalue="${no}"
+        addproperty="input.flat.download"/>
+        <condition property="do.flat.install">
+            <equals arg1="${yes}" arg2="${input.flat.download}"/>
+        </condition>
+        <!-- Only ask once per ant run.  -->
+        <property name="flat.donot.ask" value="set"/>
+    </target>
+
     <target name="mac-chmod" description="makes some scripts executable" unless="isWindows">
         <exec executable="chmod" dir="${FLEXJS_HOME}">
             <arg value="+x" />
@@ -412,13 +432,18 @@
         <property name="skipCache" value="true" />
     </target>
 
-    <target name="get-third-party-files" depends="air-download,flash-download,swfobject-download" />
+    <target name="get-third-party-files" depends="air-download,flash-download,flat-download,swfobject-download" />
     
     <target name="air-check" description="Checks if AIR SDK has been downloaded.">
-        <available file="${FLEXJS_HOME}/lib/adt.jar" property="air.jar.present"/>
+        <available file="${FLEXJS_HOME}/lib/adt.jar" property="skip.air.install"/>
+        <condition property="skip.air.install" value="true">
+            <not>
+                <isset property="do.air.install" />
+            </not>
+        </condition>
     </target>
     
-    <target name="air-download" depends="air-check" unless="air.jar.present"
+    <target name="air-download" depends="air-check" unless="skip.air.install"
         description="Downloads AIR SDK and copies to correct locations">
         
         <mkdir dir="${download.dir}"/>
@@ -632,10 +657,15 @@
 
     <!-- Because this requires a network connection it downloads Flash SDK only if it doesn't already exist. -->
     <target name="flash-check" description="Checks if Flash SDK has been downloaded.">
-        <available file="${FLEXJS_HOME}/frameworks/libs/player/${flash.sdk.version}/playerglobal.swc" property="flash.swc.present"/>
+        <available file="${FLEXJS_HOME}/frameworks/libs/player/${flash.sdk.version}/playerglobal.swc" property="skip.flash.install"/>
+        <condition property="skip.flash.install" value="true">
+            <not>
+                <isset property="do.flash.install" />
+            </not>
+        </condition>
     </target>
     
-    <target name="flash-download" depends="flash-check" unless="flash.swc.present"
+    <target name="flash-download" depends="flash-check" unless="skip.flash.install"
         description="Downloads playerglobal.swc and copies to correct locations">
         
         <mkdir dir="${download.dir}"/>
@@ -660,6 +690,43 @@
         </antcall>
     </target>
     
+    <!-- Because this requires a network connection it downloads Flash SDK only if it doesn't already exist. -->
+    <target name="flat-check" description="Checks if Flat fonts has been downloaded.">
+        <available file="${FLEXJS_HOME}/frameworks/fonts/flat-ui-icons-regular.woff" property="skip.flat.install"/>
+        <condition property="skip.flat.install" value="true">
+            <not>
+                <isset property="do.flat.install" />
+            </not>
+        </condition>
+    </target>
+    
+    <target name="flat-download" depends="flat-check" unless="skip.flat.install"
+        description="Downloads Flat fonts and copies to correct locations">
+        
+        <mkdir dir="${download.dir}"/>
+        <echo>${INFO_INSTALLING_FLAT_FONTS} ${flat.font.url.server}/${flat.font.url.folder}/${flat.font.url.file}</echo>
+        <get src="https://github.com/designmodo/Flat-UI/archive/2.2.2.zip"
+        dest="${download.dir}/flat-ui_2_2.zip"
+        verbose="false"/>
+        
+        <mkdir dir="${FLEXJS_HOME}/frameworks/fonts"/>
+        <unzip src="${download.dir}/flat-ui_2_2.zip" dest="${FLEXJS_HOME}/frameworks/fonts">
+            <patternset>
+                <include name="Flat-UI-2.2.2/fonts/glyphicons/flat-ui-icons-regular.eot"/>
+                <include name="Flat-UI-2.2.2/fonts/glyphicons/flat-ui-icons-regular.ttf"/>
+                <include name="Flat-UI-2.2.2/fonts/glyphicons/flat-ui-icons-regular.svg"/>
+                <include name="Flat-UI-2.2.2/fonts/glyphicons/flat-ui-icons-regular.woff"/>
+            </patternset>
+            <flattenmapper />
+        </unzip>
+        <unzip src="${download.dir}/flat-ui_2_2.zip" dest="${FLEXJS_HOME}/frameworks/fonts">
+            <patternset>
+                <include name="Flat-UI-2.2.2/README.md"/>
+            </patternset>
+            <flattenmapper />
+        </unzip>
+    </target>
+    
     <!-- swfobject.js (Version 2.2) -->
     <!-- Because this requires a network connection it downloads SWFObject only if it doesn't already exist. -->
     <target name="swfobject-check" description="Checks if SWFObject has been downloaded.">


[34/43] git commit: [flex-asjs] [refs/heads/e4x] - missing brace

Posted by ha...@apache.org.
missing brace


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

Branch: refs/heads/e4x
Commit: fcb237268ac28f60f49e62bef6f8681d9539c63d
Parents: c7756da
Author: Alex Harui <ah...@apache.org>
Authored: Tue Mar 29 10:08:18 2016 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Tue Mar 29 10:08:18 2016 -0700

----------------------------------------------------------------------
 installer.xml | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/fcb23726/installer.xml
----------------------------------------------------------------------
diff --git a/installer.xml b/installer.xml
index 01d676e..f0806d1 100644
--- a/installer.xml
+++ b/installer.xml
@@ -713,15 +713,15 @@
         <mkdir dir="${download.dir}/flat/fonts"/>
         <unzip src="${download.dir}/flat-ui_2_2.zip" dest="${download.dir}/flat/fonts" />
         <copy file="${download.dir}/flat/fonts/Flat-UI-2.2.2/fonts/glyphicons/flat-ui-icons-regular.eot"
-            todir="${FLEXJS_HOME/frameworks/fonts"/>
+            todir="${FLEXJS_HOME}/frameworks/fonts"/>
         <copy file="${download.dir}/flat/fonts/Flat-UI-2.2.2/fonts/glyphicons/flat-ui-icons-regular.ttf"
-            todir="${FLEXJS_HOME/frameworks/fonts"/>
+            todir="${FLEXJS_HOME}/frameworks/fonts"/>
         <copy file="${download.dir}/flat/fonts/Flat-UI-2.2.2/fonts/glyphicons/flat-ui-icons-regular.svg"
-            todir="${FLEXJS_HOME/frameworks/fonts"/>
+            todir="${FLEXJS_HOME}/frameworks/fonts"/>
         <copy file="${download.dir}/flat/fonts/Flat-UI-2.2.2/fonts/glyphicons/flat-ui-icons-regular.woff"
-            todir="${FLEXJS_HOME/frameworks/fonts"/>
+            todir="${FLEXJS_HOME}/frameworks/fonts"/>
         <copy file="${download.dir}/flat/fonts/Flat-UI-2.2.2/README.md"
-            todir="${FLEXJS_HOME/frameworks/fonts"/>
+            todir="${FLEXJS_HOME}/frameworks/fonts"/>
     </target>
     
     <!-- swfobject.js (Version 2.2) -->


[19/43] git commit: [flex-asjs] [refs/heads/e4x] - mention google maps in LICENSE

Posted by ha...@apache.org.
mention google maps in LICENSE


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

Branch: refs/heads/e4x
Commit: 9dfef2719f3f3ca304bebd1e1aa3f8cb77841b7d
Parents: 26a2662
Author: Alex Harui <ah...@apache.org>
Authored: Fri Mar 11 14:42:15 2016 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Mar 11 14:42:15 2016 -0800

----------------------------------------------------------------------
 LICENSE | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9dfef271/LICENSE
----------------------------------------------------------------------
diff --git a/LICENSE b/LICENSE
index cc866fb..a3c1df1 100644
--- a/LICENSE
+++ b/LICENSE
@@ -222,3 +222,6 @@ The map coordinates in examples/native/USStatesMap/src/MapCoords.js
 were placed into the Public Domain by its author.  See:
 https://en.wikipedia.org/wiki/File:USA_CIA_Map.svg#file
 
+Most of the .as files in frameworks/projects/GoogleMaps/src/main/flex/google 
+are derived from the google_maps_api_v3_11.js externs file in the 
+Google Closure Library which are available under Apache License 2.0.


[04/43] git commit: [flex-asjs] [refs/heads/e4x] - Better itemRenderer for Tree.

Posted by ha...@apache.org.
Better itemRenderer for Tree.


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

Branch: refs/heads/e4x
Commit: 4c7300188a86993cd5823bf1c327e948549090ba
Parents: d0dddc1
Author: Peter Ent <pe...@apache.org>
Authored: Fri Feb 19 11:57:26 2016 -0500
Committer: Peter Ent <pe...@apache.org>
Committed: Fri Feb 19 11:57:26 2016 -0500

----------------------------------------------------------------------
 .../org/apache/flex/html/supportClasses/TreeItemRenderer.as | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4c730018/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/supportClasses/TreeItemRenderer.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/supportClasses/TreeItemRenderer.as b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/supportClasses/TreeItemRenderer.as
index bf545b0..7250e82 100644
--- a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/supportClasses/TreeItemRenderer.as
+++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/supportClasses/TreeItemRenderer.as
@@ -47,10 +47,15 @@ package org.apache.flex.html.supportClasses
 			super.data = value;
 			
 			var treeData:TreeListData = listData as TreeListData;
+			var indentSpace:String = "    ";
 			
-			var indent:String = treeData.hasChildren ? (treeData.isOpen ? "-" : "+") : " ";
+			COMPILE::JS {
+				indentSpace = "&nbsp;&nbsp;&nbsp;&nbsp;"
+			}
+			
+			var indent:String = treeData.hasChildren ? (treeData.isOpen ? "▼" : "▶") : " ";
 			for (var i:int=0; i < treeData.depth; i++) {
-				indent += "    ";
+				indent += indentSpace;
 			}
 			
 			this.text = indent + this.text;


[29/43] git commit: [flex-asjs] [refs/heads/e4x] - switch to newer rat from maven

Posted by ha...@apache.org.
switch to newer rat from maven


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

Branch: refs/heads/e4x
Commit: 164ec03e9231789041b50ed80d6f28f724b86288
Parents: f742bc2
Author: Alex Harui <ah...@apache.org>
Authored: Mon Mar 28 21:15:35 2016 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Mon Mar 28 21:15:35 2016 -0700

----------------------------------------------------------------------
 ApproveFlexJS.xml | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/164ec03e/ApproveFlexJS.xml
----------------------------------------------------------------------
diff --git a/ApproveFlexJS.xml b/ApproveFlexJS.xml
index b01029b..f6dccd1 100644
--- a/ApproveFlexJS.xml
+++ b/ApproveFlexJS.xml
@@ -54,9 +54,10 @@
 	
     <property name="src.rat.report" value="${basedir}/rat-report-src.txt"/>
     <property name="bin.rat.report" value="${basedir}/rat-report-bin.txt"/>
-	<property name="apache.rat.jar" value="apache-rat-0.8.jar" />
-	<property name="apache.rat.tasks.jar" value="apache-rat-tasks-0.8.jar" />
-	<property name="apache.rat.url" value="http://people.apache.org/~aharui/rat" />
+	<property name="apache.rat.jar" value="apache-rat-0.11.jar" />
+	<property name="apache.rat.tasks.jar" value="apache-rat-tasks-0.11.jar" />
+	<property name="apache.rat.url" value="http://search.maven.org/remotecontent?filepath=org/apache/rat/apache-rat/0.11" />
+    <property name="apache.rat.tasks.url" value="http://search.maven.org/remotecontent?filepath=org/apache/rat/apache-rat-tasks/0.11" />
 	   
     <property file="${basedir}/approvefalcon.properties"/>
     
@@ -187,7 +188,7 @@
 		<get src="${apache.rat.url}/${apache.rat.jar}" dest="${env.ANT_HOME}/lib/${apache.rat.jar}" />
 	</target>
 	<target name="install-rat.tasks.jar" unless="apache.rat.tasks.found">
-		<get src="${apache.rat.url}/${apache.rat.tasks.jar}" dest="${env.ANT_HOME}/lib/${apache.rat.tasks.jar}" />
+		<get src="${apache.rat.tasks.url}/${apache.rat.tasks.jar}" dest="${env.ANT_HOME}/lib/${apache.rat.tasks.jar}" />
 	</target>
 	
     <target name="rat-taskdef" description="Rat taskdef">


[02/43] git commit: [flex-asjs] [refs/heads/e4x] - Added listData to item renderers for additional support.

Posted by ha...@apache.org.
Added listData to item renderers for additional support.


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

Branch: refs/heads/e4x
Commit: d75af201dc7adfe543882dda9d1d0130c4039753
Parents: 60670e8
Author: Peter Ent <pe...@apache.org>
Authored: Thu Feb 18 13:25:21 2016 -0500
Committer: Peter Ent <pe...@apache.org>
Committed: Thu Feb 18 13:25:21 2016 -0500

----------------------------------------------------------------------
 .../flex/org/apache/flex/core/IItemRenderer.as  | 12 +++++++++++
 .../html/supportClasses/GraphicsItemRenderer.as | 21 ++++++++++++++++++++
 .../supportClasses/TextFieldItemRenderer.as     | 19 ++++++++++++++++++
 .../html/supportClasses/UIItemRendererBase.as   | 21 ++++++++++++++++++++
 4 files changed, 73 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d75af201/frameworks/projects/Core/src/main/flex/org/apache/flex/core/IItemRenderer.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/org/apache/flex/core/IItemRenderer.as b/frameworks/projects/Core/src/main/flex/org/apache/flex/core/IItemRenderer.as
index 7843e36..237517d 100644
--- a/frameworks/projects/Core/src/main/flex/org/apache/flex/core/IItemRenderer.as
+++ b/frameworks/projects/Core/src/main/flex/org/apache/flex/core/IItemRenderer.as
@@ -43,6 +43,18 @@ package org.apache.flex.core
 		function set data(value:Object):void;
 		
 		/**
+		 * Additional data about the list structure that might be useful
+		 * to itemRenderer implementations.
+         * 
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion FlexJS 0.0
+		 */
+		function get listData():Object;
+		function set listData(value:Object):void;
+		
+		/**
 		 *  The parent component of the itemRenderer instance. This is the container that houses
 		 *  all of the itemRenderers.
 		 *

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d75af201/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/supportClasses/GraphicsItemRenderer.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/supportClasses/GraphicsItemRenderer.as b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/supportClasses/GraphicsItemRenderer.as
index 4d90c03..ec096ae 100644
--- a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/supportClasses/GraphicsItemRenderer.as
+++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/supportClasses/GraphicsItemRenderer.as
@@ -191,6 +191,27 @@ package org.apache.flex.html.supportClasses
 			_data = value;
 		}
 		
+		private var _listData:Object;
+		
+		[Bindable("__NoChangeEvent__")]
+		/**
+		 *  Additional data about the list structure the itemRenderer may
+		 *  find useful.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		public function get listData():Object
+		{
+			return _listData;
+		}
+		public function set listData(value:Object):void
+		{
+			_listData = value;
+		}
+		
 		private var _dataField:String;
 		
 		/**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d75af201/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/supportClasses/TextFieldItemRenderer.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/supportClasses/TextFieldItemRenderer.as b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/supportClasses/TextFieldItemRenderer.as
index a19fc2f..5908d73 100644
--- a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/supportClasses/TextFieldItemRenderer.as
+++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/supportClasses/TextFieldItemRenderer.as
@@ -312,6 +312,25 @@ package org.apache.flex.html.supportClasses
         {
             text = String(value);
         }
+
+	private var _listData:Object;
+
+		/**
+		 *  Additional data about the list the itemRenderer may find useful.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+	public function get listData():Object
+	{
+		return _listData;
+	}
+	public function set listData(value:Object):void
+	{
+		_listData = value;
+	}
 		
 		/**
 		 * @private

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d75af201/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/supportClasses/UIItemRendererBase.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/supportClasses/UIItemRendererBase.as b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/supportClasses/UIItemRendererBase.as
index 90c66fa..f253bd2 100644
--- a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/supportClasses/UIItemRendererBase.as
+++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/supportClasses/UIItemRendererBase.as
@@ -147,6 +147,27 @@ package org.apache.flex.html.supportClasses
 			_data = value;
 		}
 		
+		private var _listData:Object;
+		
+		[Bindable("__NoChangeEvent__")]
+		/**
+		 *  Additional data about the list structure the itemRenderer may
+		 *  find useful.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		public function get listData():Object
+		{
+			return _listData;
+		}
+		public function set listData(value:Object):void
+		{
+			_listData = value;
+		}
+		
 		private var _labelField:String = "label";
 		
 		/**


[13/43] git commit: [flex-asjs] [refs/heads/e4x] - Added StorageExample to FlexJS examples.

Posted by ha...@apache.org.
Added StorageExample to FlexJS examples.


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

Branch: refs/heads/e4x
Commit: 1c69a390af29678d4797d3e9648b06b69ed87510
Parents: 1bc555d
Author: Peter Ent <pe...@apache.org>
Authored: Wed Mar 9 11:13:26 2016 -0500
Committer: Peter Ent <pe...@apache.org>
Committed: Wed Mar 9 11:13:26 2016 -0500

----------------------------------------------------------------------
 examples/build.xml                              |   2 +
 examples/flexjs/StorageExample/README.txt       |  81 ++++++
 .../StorageExample/StorageExample-app.xml       | 252 +++++++++++++++++++
 examples/flexjs/StorageExample/build.xml        |  77 ++++++
 examples/flexjs/StorageExample/pom.xml          |  50 ++++
 .../StorageExample/src/MyInitialView.mxml       | 131 ++++++++++
 .../StorageExample/src/StorageExample.mxml      |  42 ++++
 .../flexjs/StorageExample/src/models/MyModel.as |  58 +++++
 8 files changed, 693 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1c69a390/examples/build.xml
----------------------------------------------------------------------
diff --git a/examples/build.xml b/examples/build.xml
index 7efccfc..27d1816 100644
--- a/examples/build.xml
+++ b/examples/build.xml
@@ -85,6 +85,7 @@
         <ant dir="${basedir}/flexjs/MapSearch"/>
         <ant dir="${basedir}/flexjs/MobileTrader"/>
         <ant dir="${basedir}/flexjs/ChartExample"/>
+        <ant dir="${basedir}/flexjs/StorageExample"/>
         <ant dir="${basedir}/flexjs/TodoListSampleApp"/>
         <ant dir="${basedir}/flexjs/TreeExample"/>
         <ant dir="${basedir}/native/ButtonExample"/>
@@ -113,6 +114,7 @@
         <ant dir="${basedir}/flexjs/MapSearch" target="clean"/>
         <ant dir="${basedir}/flexjs/MobileTrader" target="clean"/>
         <ant dir="${basedir}/flexjs/ChartExample" target="clean"/>
+        <ant dir="${basedir}/flexjs/StorageExample" target="clean"/>
         <ant dir="${basedir}/flexjs/TodoListSampleApp" target="clean"/>
         <ant dir="${basedir}/flexjs/TreeExample" target="clean"/>
         <ant dir="${basedir}/native/ButtonExample" target="clean"/>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1c69a390/examples/flexjs/StorageExample/README.txt
----------------------------------------------------------------------
diff --git a/examples/flexjs/StorageExample/README.txt b/examples/flexjs/StorageExample/README.txt
new file mode 100644
index 0000000..12cb609
--- /dev/null
+++ b/examples/flexjs/StorageExample/README.txt
@@ -0,0 +1,81 @@
+Storage Example
+
+The StorageExample is designed to show you have to read and write simple, but permanent files using
+the FlexJS Storage framework.
+
+Permanent storage is available when the target platform is either Adobe AIR (desktop or mobile device)
+or Apache Cordova (mobile devices).
+
+Build the Example
+
+1. Run the build (ant)
+
+This will build both the AIR and Cordova-compatible versions. The AIR version will be in the
+bin-debug directory. The Cordova-compatible versions will be in the js-debug and js-release
+directories.
+
+Running on Adobe AIR
+
+1. Run the example (ant run).
+
+This will launch the SWF as an AIR application. 
+
+Running on an Android Device using Cordova
+
+This is a somewhat complex process. The JavaScript and HTML files that were built (bin/js-debug)
+need to be moved into a Cordova project. Once there, the application can be deployed to a device
+or run in an emulator.
+
+1. In a clean directory, outside of the flex-asjs directories, use the cordova command line
+interface to build an empty application:
+
+cordova create filetest org.apache.flex "FileTest"
+cd filetest
+
+2. Add in the Android platform and the Cordova File plugin:
+
+cordova platform add android
+cordova plugin add cordova-plugin-file
+
+3. Go to the StorageExample/bin/js-debug directory and copy all of the files and directories
+into the filetest/www directory:
+
+index.html (replaces the index.html from the generated cordova app)
+MyInitialView.js
+StorageExample.css
+StorageExample.js
+externs/
+library/
+models/
+org/
+
+
+4. Open filetest/www/index.html and replace the <body> element with this:
+
+<body onload="startup()">
+  <script type="text/javascript" src="cordova.js"></script>
+  <script type="text/javascript">
+      function startup() {
+        document.addEventListener('deviceready', this.onDeviceReady, false);
+      }
+      function onDeviceReady() {
+         new StorageExample().start();
+      }
+  </script>
+</body>
+
+
+5. Build the Cordova app from the top filetest directory:
+
+cordova build
+
+6. You can run it either in an emulator on a connected device:
+
+(emulator): cordova emulate android
+(device): cordova run android
+
+The filetest/platforms/android directory can be opened from Android Studio if you want to
+use an Android IDE. If you need to make changes, do that in the filetest/www directory,
+then run "cordova build" again. Android Studio will detect the change, ask you to re-sync,
+and after that, you can re-redeploy the changed app to the device.
+ 
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1c69a390/examples/flexjs/StorageExample/StorageExample-app.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/StorageExample/StorageExample-app.xml b/examples/flexjs/StorageExample/StorageExample-app.xml
new file mode 100644
index 0000000..62657d2
--- /dev/null
+++ b/examples/flexjs/StorageExample/StorageExample-app.xml
@@ -0,0 +1,252 @@
+<?xml version="1.0" encoding="utf-8" standalone="no"?>
+<!--
+
+  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.
+
+-->
+<application xmlns="http://ns.adobe.com/air/application/16.0">
+
+<!-- Adobe AIR Application Descriptor File Template.
+
+	Specifies parameters for identifying, installing, and launching AIR applications.
+
+	xmlns - The Adobe AIR namespace: http://ns.adobe.com/air/application/3.8
+			The last segment of the namespace specifies the version
+			of the AIR runtime required for this application to run.
+
+	minimumPatchLevel - The minimum patch level of the AIR runtime required to run
+			the application. Optional.
+-->
+
+	<!-- A universally unique application identifier. Must be unique across all AIR applications.
+	Using a reverse DNS-style name as the id is recommended. (Eg. com.example.ExampleApplication.) Required. -->
+	<id>org.apache.flexjs.storageexample</id>
+
+	<!-- Used as the filename for the application. Required. -->
+	<filename>Apache FlexJS Storage Example</filename>
+
+	<!-- The name that is displayed in the AIR application installer.
+	May have multiple values for each language. See samples or xsd schema file. Optional. -->
+	<name>Apache FlexJS Storage Example</name>
+
+	<!-- A string value of the format <0-999>.<0-999>.<0-999> that represents application version which can be used to check for application upgrade.
+	Values can also be 1-part or 2-part. It is not necessary to have a 3-part value.
+	An updated version of application must have a versionNumber value higher than the previous version. Required for namespace >= 2.5 . -->
+	<versionNumber>0.6.0</versionNumber>
+
+	<!-- A string value (such as "v1", "2.5", or "Alpha 1") that represents the version of the application, as it should be shown to users. Optional. -->
+	<!-- <versionLabel></versionLabel> -->
+
+	<!-- Description, displayed in the AIR application installer.
+	May have multiple values for each language. See samples or xsd schema file. Optional. -->
+	<!-- <description></description> -->
+
+	<!-- Copyright information. Optional -->
+	<copyright>Copyright 2015 The Apache Software Foundation.</copyright>
+
+	<!-- Publisher ID. Used if you're updating an application created prior to 1.5.3 -->
+	<!-- <publisherID></publisherID> -->
+
+	<!-- Settings for the application's initial window. Required. -->
+	<initialWindow>
+		<!-- The main SWF or HTML file of the application. Required. -->
+		<!-- Note: In Flash Builder, the SWF reference is set automatically. -->
+		<content>StorageExample.swf</content>
+
+		<!-- The title of the main window. Optional. -->
+		<!-- <title></title> -->
+
+		<!-- The type of system chrome to use (either "standard" or "none"). Optional. Default standard. -->
+		<!-- <systemChrome></systemChrome> -->
+
+		<!-- Whether the window is transparent. Only applicable when systemChrome is none. Optional. Default false. -->
+		<!-- <transparent></transparent> -->
+
+		<!-- Whether the window is initially visible. Optional. Default false. -->
+		<!-- <visible></visible> -->
+
+		<!-- Whether the user can minimize the window. Optional. Default true. -->
+		<!-- <minimizable></minimizable> -->
+
+		<!-- Whether the user can maximize the window. Optional. Default true. -->
+		<!-- <maximizable></maximizable> -->
+
+		<!-- Whether the user can resize the window. Optional. Default true. -->
+		<!-- <resizable></resizable> -->
+
+		<!-- The window's initial width in pixels. Optional. -->
+		<width>640</width>
+
+		<!-- The window's initial height in pixels. Optional. -->
+		<height>720</height>
+
+		<!-- The window's initial x position. Optional. -->
+		<!-- <x></x> -->
+
+		<!-- The window's initial y position. Optional. -->
+		<!-- <y></y> -->
+
+		<!-- The window's minimum size, specified as a width/height pair in pixels, such as "400 200". Optional. -->
+		<!-- <minSize></minSize> -->
+
+		<!-- The window's initial maximum size, specified as a width/height pair in pixels, such as "1600 1200". Optional. -->
+		<!-- <maxSize></maxSize> -->
+
+        <!-- The initial aspect ratio of the app when launched (either "portrait" or "landscape"). Optional. Mobile only. Default is the natural orientation of the device -->
+
+        <!-- <aspectRatio></aspectRatio> -->
+
+        <!-- Whether the app will begin auto-orienting on launch. Optional. Mobile only. Default false -->
+
+        <!-- <autoOrients></autoOrients> -->
+
+        <!-- Whether the app launches in full screen. Optional. Mobile only. Default false -->
+
+        <!-- <fullScreen></fullScreen> -->
+
+        <!-- The render mode for the app (either auto, cpu, gpu, or direct). Optional. Default auto -->
+
+        <!-- <renderMode></renderMode> -->
+
+		<!-- Whether or not to pan when a soft keyboard is raised or lowered (either "pan" or "none").  Optional.  Defaults "pan." -->
+		<!-- <softKeyboardBehavior></softKeyboardBehavior> -->
+	<autoOrients>false</autoOrients>
+        <fullScreen>false</fullScreen>
+        <visible>true</visible>
+    </initialWindow>
+
+	<!-- We recommend omitting the supportedProfiles element, -->
+	<!-- which in turn permits your application to be deployed to all -->
+	<!-- devices supported by AIR. If you wish to restrict deployment -->
+	<!-- (i.e., to only mobile devices) then add this element and list -->
+	<!-- only the profiles which your application does support. -->
+	<!-- <supportedProfiles>desktop extendedDesktop mobileDevice extendedMobileDevice</supportedProfiles> -->
+	<supportedProfiles>extendedDesktop desktop</supportedProfiles>
+
+	<!-- The subpath of the standard default installation location to use. Optional. -->
+	<installFolder>Apache Flex</installFolder>
+
+	<!-- The subpath of the Programs menu to use. (Ignored on operating systems without a Programs menu.) Optional. -->
+	<programMenuFolder>Apache Flex</programMenuFolder>
+
+	<!-- The icon the system uses for the application. For at least one resolution,
+	specify the path to a PNG file included in the AIR package. Optional. -->
+	<icon>
+		<image16x16>assets/icons/16.png</image16x16>
+		<image29x29>assets/icons/29.png</image29x29>
+		<image32x32>assets/icons/32.png</image32x32>
+		<image36x36>assets/icons/36.png</image36x36>
+		<image48x48>assets/icons/48.png</image48x48>
+		<image57x57>assets/icons/57.png</image57x57>
+		<image72x72>assets/icons/72.png</image72x72>
+		<image114x114>assets/icons/114.png</image114x114>
+		<image128x128>assets/icons/128.png</image128x128>
+	</icon>
+
+	<!-- Whether the application handles the update when a user double-clicks an update version
+	of the AIR file (true), or the default AIR application installer handles the update (false).
+	Optional. Default false. -->
+	<!-- <customUpdateUI></customUpdateUI> -->
+
+	<!-- Whether the application can be launched when the user clicks a link in a web browser.
+	Optional. Default false. -->
+	<!-- <allowBrowserInvocation></allowBrowserInvocation> -->
+
+	<!-- Listing of file types for which the application can register. Optional. -->
+	<!-- <fileTypes> -->
+
+		<!-- Defines one file type. Optional. -->
+		<!-- <fileType> -->
+
+			<!-- The name that the system displays for the registered file type. Required. -->
+			<!-- <name></name> -->
+
+			<!-- The extension to register. Required. -->
+			<!-- <extension></extension> -->
+
+			<!-- The description of the file type. Optional. -->
+			<!-- <description></description> -->
+
+			<!-- The MIME content type. -->
+			<!-- <contentType></contentType> -->
+
+			<!-- The icon to display for the file type. Optional. -->
+			<!-- <icon>
+				<image16x16></image16x16>
+				<image32x32></image32x32>
+				<image48x48></image48x48>
+				<image128x128></image128x128>
+			</icon> -->
+
+		<!-- </fileType> -->
+	<!-- </fileTypes> -->
+
+    <!-- iOS specific capabilities -->
+	<!-- <iPhone> -->
+		<!-- A list of plist key/value pairs to be added to the application Info.plist -->
+		<!-- <InfoAdditions>
+            <![CDATA[
+                <key>UIDeviceFamily</key>
+                <array>
+                    <string>1</string>
+                    <string>2</string>
+                </array>
+                <key>UIStatusBarStyle</key>
+                <string>UIStatusBarStyleBlackOpaque</string>
+                <key>UIRequiresPersistentWiFi</key>
+                <string>YES</string>
+            ]]>
+        </InfoAdditions> -->
+        <!-- A list of plist key/value pairs to be added to the application Entitlements.plist -->
+		<!-- <Entitlements>
+            <![CDATA[
+                <key>keychain-access-groups</key>
+                <array>
+                    <string></string>
+                    <string></string>
+                </array>
+            ]]>
+        </Entitlements> -->
+	<!-- Display Resolution for the app (either "standard" or "high"). Optional. Default "standard" -->
+	<!-- <requestedDisplayResolution></requestedDisplayResolution> -->
+	<!-- </iPhone> -->
+
+	<!-- Specify Android specific tags that get passed to AndroidManifest.xml file. -->
+    <!--<android> -->
+    <!--	<manifestAdditions>
+		<![CDATA[
+			<manifest android:installLocation="auto">
+				<uses-permission android:name="android.permission.INTERNET"/>
+				<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
+				<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
+				<uses-feature android:required="true" android:name="android.hardware.touchscreen.multitouch"/>
+				<application android:enabled="true">
+					<activity android:excludeFromRecents="false">
+						<intent-filter>
+							<action android:name="android.intent.action.MAIN"/>
+							<category android:name="android.intent.category.LAUNCHER"/>
+						</intent-filter>
+					</activity>
+				</application>
+            </manifest>
+		]]>
+        </manifestAdditions> -->
+	    <!-- Color depth for the app (either "32bit" or "16bit"). Optional. Default 16bit before namespace 3.0, 32bit after -->
+        <!-- <colorDepth></colorDepth> -->
+    <!-- </android> -->
+	<!-- End of the schema for adding the android specific tags in AndroidManifest.xml file -->
+
+</application>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1c69a390/examples/flexjs/StorageExample/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/StorageExample/build.xml b/examples/flexjs/StorageExample/build.xml
new file mode 100644
index 0000000..a976cad
--- /dev/null
+++ b/examples/flexjs/StorageExample/build.xml
@@ -0,0 +1,77 @@
+<?xml version="1.0"?>
+<!--
+
+  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.
+
+-->
+
+
+<project name="storageexample" default="main" basedir=".">
+    <property name="FLEXJS_HOME" location="../../.."/>
+    <property name="example" value="StorageExample" />
+    
+    <!-- this project needs AIR 3.4 FP 11.4 -->
+    <property name="swf.version" value="17" />
+    <property name="playerglobal.version" value="11.4" />
+    
+    <property file="${FLEXJS_HOME}/env.properties"/>
+    <property environment="env"/>
+    <property file="${FLEXJS_HOME}/build.properties"/>
+    <property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
+    <property name="AIR_HOME" value="${env.AIR_HOME}"/>
+    
+    <condition property="adl" value="adl.exe">
+        <os family="windows"/>
+    </condition>
+    
+    <condition property="adl" value="adl">
+        <os family="mac"/>
+    </condition>
+    
+    <condition property="runtime" value="win">
+        <os family="windows"/>
+    </condition>
+    
+    <condition property="runtime" value="mac">
+        <os family="mac"/>
+    </condition>
+
+    <include file="${basedir}/../../build_example.xml" />
+
+    <property name="extlib_arg" value="-external-library-path=${FALCONJX_HOME}/../externs/cordova/out/bin/cordova.swc"/>
+    <property name="opt1_arg" value="-remove-circulars" />
+
+<!-- build_example.compileair, -->
+    <target name="main" depends="clean,build_example.compileair,build_example.compilejsair" description="Clean build of ${example}">
+    </target>
+    
+    <target name="clean">
+        <echo>playerglobal.version = ${playerglobal.version}</echo>
+        <delete dir="${basedir}/bin" failonerror="false" />
+        <delete dir="${basedir}/bin-debug" failonerror="false" />
+        <delete dir="${basedir}/bin-release" failonerror="false" />
+    </target>    
+    
+    <target name="run">
+        <exec executable="${AIR_HOME}/bin/${adl}" dir="${basedir}/bin-debug" failonerror="true">
+            <arg value="-runtime" />
+            <arg value="${AIR_HOME}/runtimes/air/${runtime}" />
+            <arg value="-profile" />
+            <arg value="extendedDesktop" />
+            <arg value="${basedir}/bin-debug/${example}-app.xml" />
+        </exec>
+    </target>
+</project>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1c69a390/examples/flexjs/StorageExample/pom.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/StorageExample/pom.xml b/examples/flexjs/StorageExample/pom.xml
new file mode 100644
index 0000000..06ac9b2
--- /dev/null
+++ b/examples/flexjs/StorageExample/pom.xml
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+  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.
+
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.flex.examples.flexjs</groupId>
+        <artifactId>examples</artifactId>
+        <version>1.0.0-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>StorageExample</artifactId>
+    <version>1.0.0-SNAPSHOT</version>
+    <packaging>swf</packaging>
+
+    <build>
+        <sourceDirectory>src</sourceDirectory>
+        <plugins>
+            <plugin>
+                <groupId>net.flexmojos.oss</groupId>
+                <artifactId>flexmojos-maven-plugin</artifactId>
+                <version>7.1.0-SNAPSHOT</version>
+                <extensions>true</extensions>
+                <configuration>
+                    <sourceFile>StorageExample.mxml</sourceFile>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1c69a390/examples/flexjs/StorageExample/src/MyInitialView.mxml
----------------------------------------------------------------------
diff --git a/examples/flexjs/StorageExample/src/MyInitialView.mxml b/examples/flexjs/StorageExample/src/MyInitialView.mxml
new file mode 100644
index 0000000..2bb6b7a
--- /dev/null
+++ b/examples/flexjs/StorageExample/src/MyInitialView.mxml
@@ -0,0 +1,131 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+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.
+
+-->
+<js:ViewBase xmlns:fx="http://ns.adobe.com/mxml/2009"
+				xmlns:js="library://ns.apache.org/flexjs/basic"
+				xmlns:local="*"
+				initComplete="startup()">
+    <fx:Script>
+        <![CDATA[			
+			import org.apache.flex.storage.PermanentStorage;
+			import org.apache.flex.storage.events.FileReadEvent;
+			import org.apache.flex.storage.events.FileWriteEvent;
+			
+			private function startup():void
+			{
+				trace("Starting up");
+			}
+			
+			private function onRead():void
+			{
+				var storage:PermanentStorage = new PermanentStorage();
+				
+				var useFile:String = readFileNameField.text;
+				
+				storage.addEventListener("COMPLETE", handleRead);
+				storage.addEventListener("ERROR", handleRead);
+				storage.readTextFromDataFile( useFile );
+			}
+			
+			private function handleRead(event:FileReadEvent):void
+			{
+				trace("Read event type: "+event.type);
+				if (event.type == "ERROR") {
+					status.text = "Error: "+event.errorMessage;
+					readContent.text = "";
+				}
+				else {
+					trace(event.data);
+					status.text = "Read Success!";
+					readContent.text = String(event.data);
+				}
+			}
+			
+			private function onSave():void
+			{
+				var storage:PermanentStorage = new PermanentStorage();
+				var today:Date = new Date();
+				
+				var useFile:String = writeFileNameField.text;
+				var useContent:String = today.toString() + " " + contentField.text;
+				
+				storage.addEventListener("COMPLETE", handleSave);
+				storage.writeTextToDataFile(useFile, useContent);
+			}
+			
+			private function handleSave(event:FileWriteEvent):void
+			{
+				if (event.type == "ERROR") {
+					status.text = "Error: "+event.errorMessage;
+				} else {
+					status.text = "Write Success!";
+				}
+			}
+		]]>
+    </fx:Script>
+	
+	<fx:Style>
+	
+	.labelStyle {
+		color: #9999FF;
+	}
+	
+	.contentStyle {
+		font-size: 18pt;
+	}
+	
+	</fx:Style>
+	
+	<js:beads>
+		<js:ViewBaseDataBinding />
+	</js:beads>
+	
+	<js:VContainer width="100%" height="100%">
+		<js:Label text="Storage Example" width="100%" />
+		<js:Spacer height="20" />
+		
+		<js:HContainer>
+			<js:Label text="Write File Name:" className="labelStyle" />
+			<js:TextInput id="writeFileNameField" text="testfile.txt" />
+		</js:HContainer>
+		<js:HContainer>
+			<js:Label text="Content:" className="labelStyle" />
+			<js:TextInput id="contentField" />
+		</js:HContainer>
+		<js:TextButton text="SAVE" click="onSave()" />
+		<js:Spacer height="20" />
+		
+		<js:Label id="status" />
+		<js:Spacer height="20" />
+		
+		<js:HContainer>
+			<js:Label text="Read File Name:" className="labelStyle" />
+			<js:TextInput id="readFileNameField" text="testfile.txt" />
+		</js:HContainer>
+		<js:TextButton text="READ" click="onRead()" />
+		<js:HContainer>
+			<js:Label text="Content:" className="labelStyle" />
+		</js:HContainer>
+		<js:HContainer>
+			<js:Label id="readContent" className="contentStyle" />
+		</js:HContainer>
+	</js:VContainer>
+		
+
+</js:ViewBase>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1c69a390/examples/flexjs/StorageExample/src/StorageExample.mxml
----------------------------------------------------------------------
diff --git a/examples/flexjs/StorageExample/src/StorageExample.mxml b/examples/flexjs/StorageExample/src/StorageExample.mxml
new file mode 100644
index 0000000..1b9842a
--- /dev/null
+++ b/examples/flexjs/StorageExample/src/StorageExample.mxml
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!---
+//
+//  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.
+//
+////////////////////////////////////////////////////////////////////////////////
+-->
+<js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
+				   xmlns:local="*"
+				   xmlns:js="library://ns.apache.org/flexjs/basic" 
+				   >
+	
+	<!-- This application demonstrates how to use the Google MAP API
+	     on both the AIR and JavaScript/browser platform. After cross-
+	     compiling this application for JavaScript, edit the index.html
+	     file and include your Google developer API token.
+	-->
+	
+	<js:valuesImpl>
+		<js:SimpleCSSValuesImpl />
+	</js:valuesImpl>
+	<js:initialView>
+		<local:MyInitialView />
+	</js:initialView>
+	<js:beads>
+		<js:MixinManager />
+	</js:beads>
+	
+</js:Application>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1c69a390/examples/flexjs/StorageExample/src/models/MyModel.as
----------------------------------------------------------------------
diff --git a/examples/flexjs/StorageExample/src/models/MyModel.as b/examples/flexjs/StorageExample/src/models/MyModel.as
new file mode 100644
index 0000000..e0dab68
--- /dev/null
+++ b/examples/flexjs/StorageExample/src/models/MyModel.as
@@ -0,0 +1,58 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 models
+{
+	import org.apache.flex.core.IBeadModel;
+	import org.apache.flex.core.IStrand;
+	import org.apache.flex.events.Event;
+	import org.apache.flex.events.EventDispatcher;
+	
+	public class MyModel extends EventDispatcher implements IBeadModel
+	{
+		public function MyModel()
+		{
+			super();
+		}
+		
+		private var _strand:IStrand;
+		
+		public function set strand(value:IStrand):void
+		{
+			_strand = value;
+		}
+		
+		private var _cities:Array = ["Sydney", "NYC", "Mexico City", "London", "Rio de Janeiro"];
+		
+		[Bindable]
+		public function get cities():Array
+		{
+			return _cities;
+		}
+		
+		private var _coordinates:Array = [{lat:-33.86, lng:151.211},
+			{lat:40.712, lng:-74.0059},
+			{lat:19.26, lng:-99.03},
+			{lat:51.4, lng:-0.1},
+			{lat:-22.95, lng:-43.12}];
+		public function get coordinates():Array
+		{
+			return _coordinates;
+		}
+	}
+}
\ No newline at end of file


[32/43] git commit: [flex-asjs] [refs/heads/e4x] - AntOnAIR doesn't have flattenmapper so try alternative

Posted by ha...@apache.org.
AntOnAIR doesn't have flattenmapper so try alternative


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

Branch: refs/heads/e4x
Commit: 50ae7df92601fb920f7b82249bea10070815c5f4
Parents: 7cd1bd4
Author: Alex Harui <ah...@apache.org>
Authored: Tue Mar 29 09:01:16 2016 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Tue Mar 29 09:01:16 2016 -0700

----------------------------------------------------------------------
 installer.xml | 29 +++++++++++++----------------
 1 file changed, 13 insertions(+), 16 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/50ae7df9/installer.xml
----------------------------------------------------------------------
diff --git a/installer.xml b/installer.xml
index 27ae65f..01d676e 100644
--- a/installer.xml
+++ b/installer.xml
@@ -704,27 +704,24 @@
         description="Downloads Flat fonts and copies to correct locations">
         
         <mkdir dir="${download.dir}"/>
-        <echo>${INFO_INSTALLING_FLAT_FONTS} ${flat.font.url.server}/${flat.font.url.folder}/${flat.font.url.file}</echo>
+        <echo>${INFO_INSTALLING_FLAT_FONTS} https://github.com/designmodo/Flat-UI/archive/2.2.2.zip</echo>
         <get src="https://github.com/designmodo/Flat-UI/archive/2.2.2.zip"
         dest="${download.dir}/flat-ui_2_2.zip"
         verbose="false"/>
         
         <mkdir dir="${FLEXJS_HOME}/frameworks/fonts"/>
-        <unzip src="${download.dir}/flat-ui_2_2.zip" dest="${FLEXJS_HOME}/frameworks/fonts">
-            <patternset>
-                <include name="Flat-UI-2.2.2/fonts/glyphicons/flat-ui-icons-regular.eot"/>
-                <include name="Flat-UI-2.2.2/fonts/glyphicons/flat-ui-icons-regular.ttf"/>
-                <include name="Flat-UI-2.2.2/fonts/glyphicons/flat-ui-icons-regular.svg"/>
-                <include name="Flat-UI-2.2.2/fonts/glyphicons/flat-ui-icons-regular.woff"/>
-            </patternset>
-            <flattenmapper />
-        </unzip>
-        <unzip src="${download.dir}/flat-ui_2_2.zip" dest="${FLEXJS_HOME}/frameworks/fonts">
-            <patternset>
-                <include name="Flat-UI-2.2.2/README.md"/>
-            </patternset>
-            <flattenmapper />
-        </unzip>
+        <mkdir dir="${download.dir}/flat/fonts"/>
+        <unzip src="${download.dir}/flat-ui_2_2.zip" dest="${download.dir}/flat/fonts" />
+        <copy file="${download.dir}/flat/fonts/Flat-UI-2.2.2/fonts/glyphicons/flat-ui-icons-regular.eot"
+            todir="${FLEXJS_HOME/frameworks/fonts"/>
+        <copy file="${download.dir}/flat/fonts/Flat-UI-2.2.2/fonts/glyphicons/flat-ui-icons-regular.ttf"
+            todir="${FLEXJS_HOME/frameworks/fonts"/>
+        <copy file="${download.dir}/flat/fonts/Flat-UI-2.2.2/fonts/glyphicons/flat-ui-icons-regular.svg"
+            todir="${FLEXJS_HOME/frameworks/fonts"/>
+        <copy file="${download.dir}/flat/fonts/Flat-UI-2.2.2/fonts/glyphicons/flat-ui-icons-regular.woff"
+            todir="${FLEXJS_HOME/frameworks/fonts"/>
+        <copy file="${download.dir}/flat/fonts/Flat-UI-2.2.2/README.md"
+            todir="${FLEXJS_HOME/frameworks/fonts"/>
     </target>
     
     <!-- swfobject.js (Version 2.2) -->


[43/43] git commit: [flex-asjs] [refs/heads/e4x] - Merge branch 'develop' into e4x

Posted by ha...@apache.org.
Merge branch 'develop' into e4x

* develop: (41 commits)
  Application was not adding its own beads to its strand.
  switch nightly to 0.7.0
  try to fix 'all' target
  Add AngularJS + Angular Material example.  Need to figure out what to do about the externs swc files.
  remove GCL crypt folder (and upgrade Selenium)
  fix gpg check for docs in approval script
  update rat in releasecandidate.xml
  fix issues with release packaging, installation and approval
  missing brace
  don't exclude this anymore
  AntOnAIR doesn't have flattenmapper so try alternative
  fix files in LICENSE
  try to make the designmodo fonts an optional dependency
  switch to newer rat from maven
  get ant examples to build from an IDE-compatible folder structure
  fix up ant scripts to hanlde both repo folder structure and binary package folder structure
  Use airglobal.swc from PROJECT_FRAMEWORKS}/libs/air/ instead of adding a reference to AIR SDK.
  Update Flash Builder/Eclipse project to add reference to Graphics project.
  Add dependency on AIR SDK.  Need to add a linked resource called AIR_HOME in Flash Builder/Eclipse and point it to directory where AIR SDK is available.
  Clean up asdoc issue surrounding the inclusion of Google Maps stubs.
  ...

Conflicts:
	build.xml


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

Branch: refs/heads/e4x
Commit: e2c462a078ad3d04e1106fd75e50bf10c8b33e24
Parents: 51bbbac 64c699d
Author: Harbs <ha...@in-tools.com>
Authored: Fri Apr 8 14:18:50 2016 +0300
Committer: Harbs <ha...@in-tools.com>
Committed: Fri Apr 8 14:18:50 2016 +0300

----------------------------------------------------------------------
 ApproveFlexJS.xml                               | 287 ++++++++++++++++++-
 LICENSE                                         |   7 +-
 LICENSE.base                                    | 203 +++++++++++++
 LICENSE.bin                                     |   4 -
 NOTICE                                          |   2 +-
 RELEASE_NOTES                                   |  10 +
 apache-flex-flexjs-installer-config.xml         |  29 ++
 build.properties                                |   2 +-
 build.xml                                       |  54 ++--
 examples/build.xml                              |   4 +
 examples/build_example.xml                      |  18 ++
 examples/flexjs/ChartExample/build.xml          |  16 ++
 examples/flexjs/DataGridExample/build.xml       |  16 ++
 .../src/productsView/ProductListItem.mxml       |  10 +
 examples/flexjs/FlexJSStore_jquery/build.xml    |  16 ++
 .../src/productsView/CatalogTitleButtons.mxml   |   8 +-
 .../productsView/ProductCatalogThumbnail.mxml   |   2 +-
 .../src/productsView/ProductListItem.mxml       |  10 +
 examples/flexjs/MapSearch/build.xml             |  16 ++
 examples/flexjs/MobileTrader/build.xml          |  16 ++
 examples/flexjs/StorageExample/README.txt       |  81 ++++++
 .../StorageExample/StorageExample-app.xml       | 252 ++++++++++++++++
 examples/flexjs/StorageExample/build.xml        |  93 ++++++
 examples/flexjs/StorageExample/pom.xml          |  50 ++++
 .../StorageExample/src/MyInitialView.mxml       | 245 ++++++++++++++++
 .../StorageExample/src/StorageExample.mxml      |  42 +++
 .../flexjs/StorageExample/src/models/MyModel.as |  58 ++++
 examples/flexjs/TreeExample/build.xml           |  60 ++++
 examples/flexjs/TreeExample/pom.xml             |  50 ++++
 .../flexjs/TreeExample/src/MyInitialView.mxml   |  37 +++
 .../flexjs/TreeExample/src/TreeExample.mxml     |  36 +++
 .../flexjs/TreeExample/src/models/MyModel.as    |  72 +++++
 .../AngularExample/AngularExample-debug.html    |  28 ++
 .../AngularExample/AngularExample-release.html  |  29 ++
 .../native/AngularExample/src/AngularExample.as |  66 +++++
 .../native/AngularExample/src/MyController.as   |  52 ++++
 .../src/components/IWebComponent.as             |   9 +
 .../src/components/WebComponent.as              |  20 ++
 .../src/components/mdbutton/MDButton.as         |  43 +++
 .../src/components/mdbutton/MDButtonFactory.as  |  38 +++
 frameworks/asdoc-config.xml                     |   3 +-
 frameworks/build.xml                            |   6 +
 frameworks/downloads.xml                        |  41 ++-
 frameworks/projects/Binding/build.xml           |   7 +
 frameworks/projects/Charts/build.xml            |   7 +
 frameworks/projects/Collections/build.xml       |   7 +
 .../src/main/flex/CollectionsClasses.as         |   2 +
 .../org/apache/flex/collections/ArrayList.as    | 114 ++++----
 .../apache/flex/collections/FlattenedList.as    | 203 +++++++++++++
 .../apache/flex/collections/HierarchicalData.as | 269 +++++++++++++++++
 .../org/apache/flex/collections/IArrayList.as   | 178 ++++++++++++
 .../flex/collections/IHierarchicalData.as       | 119 ++++++++
 .../src/main/resources/basic-manifest.xml       |   1 +
 frameworks/projects/Core/build.xml              |   7 +
 .../projects/Core/src/main/flex/CoreClasses.as  |   4 +
 .../projects/Core/src/main/flex/Namespace.as    |  50 ++++
 frameworks/projects/Core/src/main/flex/QName.as |  53 ++++
 .../flex/org/apache/flex/core/Application.as    |   7 +-
 .../org/apache/flex/core/HTMLElementWrapper.as  |  18 ++
 .../flex/org/apache/flex/core/IFlexJSElement.as |  18 ++
 .../flex/org/apache/flex/core/IItemRenderer.as  |  12 +
 .../org/apache/flex/core/WrappedHTMLElement.as  |  18 ++
 .../flex/org/apache/flex/events/CustomEvent.as  |   9 +-
 .../main/flex/org/apache/flex/events/Event.as   |  17 +-
 .../org/apache/flex/events/EventDispatcher.as   |  14 +
 .../flex/org/apache/flex/events/MouseEvent.as   |   2 +-
 .../org/apache/flex/events/ValueChangeEvent.as  |   9 +-
 .../flex/org/apache/flex/events/ValueEvent.as   |  10 +-
 .../main/flex/org/apache/flex/utils/Proxy.as    | 152 ++++++++++
 frameworks/projects/CreateJS/build.xml          |  11 +-
 frameworks/projects/DragDrop/build.xml          |   7 +
 frameworks/projects/Effects/build.xml           |   7 +
 frameworks/projects/Flat/build.xml              |   7 +
 frameworks/projects/Formatters/build.xml        |   6 +
 frameworks/projects/GoogleMaps/build.xml        |  11 +-
 .../src/main/flex/google/maps/Animation.as      |  18 ++
 .../src/main/flex/google/maps/BicyclingLayer.as |  18 ++
 .../src/main/flex/google/maps/Circle.as         |  18 ++
 .../main/flex/google/maps/ControlPosition.as    |  18 ++
 .../main/flex/google/maps/DirectionsRenderer.as |  18 ++
 .../main/flex/google/maps/DirectionsService.as  |  18 ++
 .../main/flex/google/maps/DirectionsStatus.as   |  18 ++
 .../google/maps/DistanceMatrixElementStatus.as  |  18 ++
 .../flex/google/maps/DistanceMatrixService.as   |  18 ++
 .../flex/google/maps/DistanceMatrixStatus.as    |  18 ++
 .../main/flex/google/maps/ElevationService.as   |  18 ++
 .../main/flex/google/maps/ElevationStatus.as    |  18 ++
 .../flex/google/maps/FusionTablesHeatmap.as     |  18 ++
 .../main/flex/google/maps/FusionTablesLayer.as  |  18 ++
 .../google/maps/FusionTablesMarkerOptions.as    |  18 ++
 .../google/maps/FusionTablesPolygonOptions.as   |  18 ++
 .../google/maps/FusionTablesPolylineOptions.as  |  18 ++
 .../main/flex/google/maps/FusionTablesQuery.as  |  18 ++
 .../main/flex/google/maps/FusionTablesStyle.as  |  18 ++
 .../src/main/flex/google/maps/Geocoder.as       |  18 ++
 .../google/maps/GeocoderAddressComponent.as     |  18 ++
 .../main/flex/google/maps/GeocoderGeometry.as   |  18 ++
 .../flex/google/maps/GeocoderLocationType.as    |  18 ++
 .../src/main/flex/google/maps/GeocoderResult.as |  18 ++
 .../src/main/flex/google/maps/GeocoderStatus.as |  18 ++
 .../src/main/flex/google/maps/GroundOverlay.as  |  18 ++
 .../src/main/flex/google/maps/ImageMapType.as   |  18 ++
 .../src/main/flex/google/maps/InfoWindow.as     |  18 ++
 .../src/main/flex/google/maps/KmlAuthor.as      |  18 ++
 .../src/main/flex/google/maps/KmlFeatureData.as |  18 ++
 .../src/main/flex/google/maps/KmlLayer.as       |  18 ++
 .../main/flex/google/maps/KmlLayerMetadata.as   |  18 ++
 .../src/main/flex/google/maps/KmlLayerStatus.as |  18 ++
 .../src/main/flex/google/maps/KmlMouseEvent.as  |  18 ++
 .../src/main/flex/google/maps/LatLng.as         |  37 +--
 .../src/main/flex/google/maps/LatLngBounds.as   |  18 ++
 .../src/main/flex/google/maps/MVCArray.as       |  18 ++
 .../src/main/flex/google/maps/MVCObject.as      |  19 ++
 .../GoogleMaps/src/main/flex/google/maps/Map.as |  18 ++
 .../flex/google/maps/MapCanvasProjection.as     |  18 ++
 .../src/main/flex/google/maps/MapPanes.as       |  18 ++
 .../flex/google/maps/MapTypeControlStyle.as     |  18 ++
 .../src/main/flex/google/maps/MapTypeId.as      |  18 ++
 .../main/flex/google/maps/MapTypeRegistry.as    |  18 ++
 .../main/flex/google/maps/MapsEventListener.as  |  18 ++
 .../src/main/flex/google/maps/Marker.as         |  37 +--
 .../src/main/flex/google/maps/MaxZoomService.as |  18 ++
 .../src/main/flex/google/maps/MaxZoomStatus.as  |  18 ++
 .../src/main/flex/google/maps/MouseEvent.as     |  19 ++
 .../src/main/flex/google/maps/OverlayView.as    |  18 ++
 .../src/main/flex/google/maps/Point.as          |  18 ++
 .../src/main/flex/google/maps/PolyMouseEvent.as |  18 ++
 .../src/main/flex/google/maps/Polygon.as        |  18 ++
 .../src/main/flex/google/maps/Polyline.as       |  18 ++
 .../src/main/flex/google/maps/Rectangle.as      |  18 ++
 .../main/flex/google/maps/ScaleControlStyle.as  |  18 ++
 .../src/main/flex/google/maps/Size.as           |  18 ++
 .../flex/google/maps/StreetViewCoverageLayer.as |  18 ++
 .../main/flex/google/maps/StreetViewPanorama.as |  18 ++
 .../src/main/flex/google/maps/StreetViewPov.as  |  18 ++
 .../main/flex/google/maps/StreetViewService.as  |  18 ++
 .../main/flex/google/maps/StreetViewStatus.as   |  18 ++
 .../src/main/flex/google/maps/StrokePosition.as |  18 ++
 .../src/main/flex/google/maps/StyledMapType.as  |  18 ++
 .../src/main/flex/google/maps/SymbolPath.as     |  18 ++
 .../src/main/flex/google/maps/TrafficLayer.as   |  18 ++
 .../src/main/flex/google/maps/TransitLayer.as   |  18 ++
 .../src/main/flex/google/maps/TravelMode.as     |  18 ++
 .../src/main/flex/google/maps/UnitSystem.as     |  18 ++
 .../main/flex/google/maps/ZoomControlStyle.as   |  18 ++
 .../src/main/flex/google/maps/adsense.as        |  18 ++
 .../main/flex/google/maps/adsense/AdFormat.as   |  18 ++
 .../src/main/flex/google/maps/adsense/AdUnit.as |  18 ++
 .../src/main/flex/google/maps/drawing.as        |  18 ++
 .../flex/google/maps/drawing/DrawingManager.as  |  18 ++
 .../google/maps/drawing/OverlayCompleteEvent.as |  18 ++
 .../flex/google/maps/drawing/OverlayType.as     |  18 ++
 .../src/main/flex/google/maps/event.as          |  18 ++
 .../src/main/flex/google/maps/geometry.as       |  18 ++
 .../main/flex/google/maps/geometry/encoding.as  |  18 ++
 .../src/main/flex/google/maps/geometry/poly.as  |  18 ++
 .../main/flex/google/maps/geometry/spherical.as |  18 ++
 .../src/main/flex/google/maps/panoramio.as      |  18 ++
 .../google/maps/panoramio/PanoramioLayer.as     |  18 ++
 .../src/main/flex/google/maps/places.as         |  18 ++
 .../flex/google/maps/places/Autocomplete.as     |  18 ++
 .../google/maps/places/AutocompleteService.as   |  18 ++
 .../google/maps/places/ComponentRestrictions.as |  18 ++
 .../flex/google/maps/places/PhotoOptions.as     |  18 ++
 .../google/maps/places/PlaceAspectRating.as     |  18 ++
 .../flex/google/maps/places/PlaceGeometry.as    |  18 ++
 .../main/flex/google/maps/places/PlaceResult.as |  18 ++
 .../main/flex/google/maps/places/PlaceReview.as |  18 ++
 .../google/maps/places/PlaceSearchPagination.as |  18 ++
 .../flex/google/maps/places/PlacesService.as    |  18 ++
 .../google/maps/places/PlacesServiceStatus.as   |  18 ++
 .../src/main/flex/google/maps/places/RankBy.as  |  18 ++
 .../main/flex/google/maps/places/SearchBox.as   |  18 ++
 .../src/main/flex/google/maps/visualization.as  |  18 ++
 .../maps/visualization/DemographicsLayer.as     |  18 ++
 .../google/maps/visualization/HeatmapLayer.as   |  18 ++
 .../maps/visualization/MapsEngineLayer.as       |  18 ++
 .../maps/visualization/MapsEngineStatus.as      |  18 ++
 .../src/main/flex/google/maps/weather.as        |  18 ++
 .../main/flex/google/maps/weather/CloudLayer.as |  18 ++
 .../main/flex/google/maps/weather/LabelColor.as |  18 ++
 .../flex/google/maps/weather/TemperatureUnit.as |  18 ++
 .../flex/google/maps/weather/WeatherLayer.as    |  18 ++
 .../flex/google/maps/weather/WindSpeedUnit.as   |  18 ++
 .../main/flex/google/pseudo/HTMLInputElement.as |  20 ++
 .../src/main/flex/google/pseudo/Node.as         |  20 ++
 frameworks/projects/Graphics/build.xml          |   6 +
 .../projects/HTML/.actionScriptProperties       |   1 +
 frameworks/projects/HTML/build.xml              |   6 +
 .../projects/HTML/src/main/flex/HTMLClasses.as  |   8 +-
 .../src/main/flex/org/apache/flex/html/Tree.as  |  73 +++++
 .../DataItemRendererFactoryForArrayList.as      |  27 +-
 ...ataItemRendererFactoryForHierarchicalData.as | 109 +++++++
 .../ListSingleSelectionMouseController.as       |  10 +-
 .../TreeSingleSelectionMouseController.as       |  82 ++++++
 .../beads/models/ArrayListSelectionModel.as     |  64 ++---
 .../html/supportClasses/GraphicsItemRenderer.as |  21 ++
 .../html/supportClasses/StringItemRenderer.as   |   3 -
 .../supportClasses/TextFieldItemRenderer.as     |  19 ++
 .../html/supportClasses/TreeItemRenderer.as     |  64 +++++
 .../flex/html/supportClasses/TreeListData.as    |  76 +++++
 .../html/supportClasses/UIItemRendererBase.as   |  21 ++
 .../HTML/src/main/resources/basic-manifest.xml  |   2 +
 .../HTML/src/main/resources/defaults.css        |  22 ++
 frameworks/projects/HTML5/build.xml             |   6 +
 frameworks/projects/JQuery/build.xml            |  11 +-
 .../projects/Mobile/.actionScriptProperties     |   1 +
 frameworks/projects/Mobile/build.xml            |   6 +
 .../Mobile/src/main/flex/MobileClasses.as       |   3 +
 .../flex/org/apache/flex/mobile/ToggleSwitch.as | 105 +++++++
 .../flex/mobile/beads/ToggleSwitchView.as       | 180 ++++++++++++
 .../controllers/ToggleSwitchMouseController.as  | 120 ++++++++
 .../src/main/resources/basic-manifest.xml       |   1 +
 .../Mobile/src/main/resources/defaults.css      |   9 +
 frameworks/projects/Network/build.xml           |   6 +
 frameworks/projects/Reflection/build.xml        |   6 +
 frameworks/projects/Storage/build.xml           | 184 ++++++++++++
 .../Storage/src/main/flex/StorageClasses.as     |  46 +++
 .../apache/flex/storage/IPermanentStorage.as    |  91 ++++++
 .../flex/org/apache/flex/storage/IWebStorage.as | 100 +++++++
 .../org/apache/flex/storage/LocalStorage.as     | 157 ++++++++++
 .../org/apache/flex/storage/PermanentStorage.as | 131 +++++++++
 .../flex/storage/events/FileErrorEvent.as       |  80 ++++++
 .../org/apache/flex/storage/events/FileEvent.as |  84 ++++++
 .../apache/flex/storage/file/DataInputStream.as | 146 ++++++++++
 .../flex/storage/file/DataOutputStream.as       | 165 +++++++++++
 .../org/apache/flex/storage/file/IDataInput.as  |  32 +++
 .../org/apache/flex/storage/file/IDataOutput.as |  32 +++
 .../org/apache/flex/storage/file/IDataStream.as |  32 +++
 .../org/apache/flex/storage/file/LocalFile.as   |  84 ++++++
 .../storage/providers/AirStorageProvider.as     | 255 ++++++++++++++++
 .../providers/IPermanentStorageProvider.as      | 102 +++++++
 .../storage/providers/LocalStorageProvider.as   | 220 ++++++++++++++
 .../storage/providers/WebStorageProvider.as     | 255 ++++++++++++++++
 .../src/main/resources/basic-manifest.xml       |  25 ++
 .../src/main/resources/compile-asjs-config.xml  |  82 ++++++
 .../src/main/resources/compile-config.xml       |  82 ++++++
 .../Storage/src/main/resources/defaults.css     |  42 +++
 installer.properties/en_US.properties           |  14 +
 installer.xml                                   |  84 +++++-
 manualtests/LanguageTests/src/LanguageTests.as  |  26 +-
 manualtests/ProxyTest/build.xml                 |  72 +++++
 manualtests/ProxyTest/src/MyInitialView.mxml    |  67 +++++
 manualtests/ProxyTest/src/ProxyTest.mxml        |  40 +++
 manualtests/ProxyTest/src/README.txt            |  45 +++
 .../ProxyTest/src/controllers/MyController.as   |  52 ++++
 manualtests/ProxyTest/src/models/MyModel.as     | 125 ++++++++
 marmotinni/java/downloads.xml                   |   6 +-
 nightly.properties                              |   8 +-
 releasecandidate.xml                            |   9 +-
 250 files changed, 9326 insertions(+), 256 deletions(-)
----------------------------------------------------------------------



[16/43] git commit: [flex-asjs] [refs/heads/e4x] - missing headers

Posted by ha...@apache.org.
missing headers


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

Branch: refs/heads/e4x
Commit: ba233ad9860fbef611665353143a8b30a0b86a9d
Parents: b4f5011
Author: Alex Harui <ah...@apache.org>
Authored: Fri Mar 11 12:03:35 2016 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Mar 11 12:03:35 2016 -0800

----------------------------------------------------------------------
 .../org/apache/flex/core/HTMLElementWrapper.as    | 18 ++++++++++++++++++
 .../flex/org/apache/flex/core/IFlexJSElement.as   | 18 ++++++++++++++++++
 .../org/apache/flex/core/WrappedHTMLElement.as    | 18 ++++++++++++++++++
 3 files changed, 54 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/ba233ad9/frameworks/projects/Core/src/main/flex/org/apache/flex/core/HTMLElementWrapper.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/org/apache/flex/core/HTMLElementWrapper.as b/frameworks/projects/Core/src/main/flex/org/apache/flex/core/HTMLElementWrapper.as
index bc8e224..4d4999b 100644
--- a/frameworks/projects/Core/src/main/flex/org/apache/flex/core/HTMLElementWrapper.as
+++ b/frameworks/projects/Core/src/main/flex/org/apache/flex/core/HTMLElementWrapper.as
@@ -1,3 +1,21 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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
 {
     COMPILE::AS3

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/ba233ad9/frameworks/projects/Core/src/main/flex/org/apache/flex/core/IFlexJSElement.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/org/apache/flex/core/IFlexJSElement.as b/frameworks/projects/Core/src/main/flex/org/apache/flex/core/IFlexJSElement.as
index ae0cdb1..ff9295b 100644
--- a/frameworks/projects/Core/src/main/flex/org/apache/flex/core/IFlexJSElement.as
+++ b/frameworks/projects/Core/src/main/flex/org/apache/flex/core/IFlexJSElement.as
@@ -1,3 +1,21 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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
 {
     COMPILE::AS3

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/ba233ad9/frameworks/projects/Core/src/main/flex/org/apache/flex/core/WrappedHTMLElement.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/org/apache/flex/core/WrappedHTMLElement.as b/frameworks/projects/Core/src/main/flex/org/apache/flex/core/WrappedHTMLElement.as
index e765e01..b5ff7ba 100644
--- a/frameworks/projects/Core/src/main/flex/org/apache/flex/core/WrappedHTMLElement.as
+++ b/frameworks/projects/Core/src/main/flex/org/apache/flex/core/WrappedHTMLElement.as
@@ -1,3 +1,21 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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
 {
 	COMPILE::JS


[40/43] git commit: [flex-asjs] [refs/heads/e4x] - try to fix 'all' target

Posted by ha...@apache.org.
try to fix 'all' target


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

Branch: refs/heads/e4x
Commit: 781d38ebcc7c6e4f2c71ffddb39e61061d504c6f
Parents: 894b526
Author: Alex Harui <ah...@apache.org>
Authored: Sat Apr 2 21:41:32 2016 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Sat Apr 2 21:41:47 2016 -0700

----------------------------------------------------------------------
 build.xml | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/781d38eb/build.xml
----------------------------------------------------------------------
diff --git a/build.xml b/build.xml
index 651468c..89d5e5c 100644
--- a/build.xml
+++ b/build.xml
@@ -1706,9 +1706,8 @@
             />
         <ant dir="${base.folder.name}/flex-sdk" />
         <property name="javadoc.zip.uptodate" value="set" /> <!-- javadoc fails on windows? -->
-        <ant dir="${base.folder.name}/flex-falcon/compiler" />
-        <ant dir="${base.folder.name}/flex-falcon/compiler.jx" />
-        <ant dir="${base.folder.name}/flex-flexunit" />
+        <ant dir="${base.folder.name}/flex-falcon" target="all" />
+        <ant dir="${base.folder.name}/flex-flexunit" inheritAll="false" />
     </target>
     
     <target name="all" depends="set.base.folder, download-all, main" />


[18/43] git commit: [flex-asjs] [refs/heads/e4x] - try fixing up headers. Some day, we should try pulling most of these files from the flex-falcon externs. Most files are copies with some tweaks to jsdoc to make asdoc happy

Posted by ha...@apache.org.
try fixing up headers.  Some day, we should try pulling most of these files from the flex-falcon externs.  Most files are copies with some tweaks to jsdoc to make asdoc happy


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

Branch: refs/heads/e4x
Commit: 26a26621273081bbf9209bb4224ffb00964d7587
Parents: ba233ad
Author: Alex Harui <ah...@apache.org>
Authored: Fri Mar 11 12:28:19 2016 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Mar 11 12:28:19 2016 -0800

----------------------------------------------------------------------
 .../src/main/flex/google/maps/Animation.as      | 18 ++++++++++
 .../src/main/flex/google/maps/BicyclingLayer.as | 18 ++++++++++
 .../src/main/flex/google/maps/Circle.as         | 18 ++++++++++
 .../main/flex/google/maps/ControlPosition.as    | 18 ++++++++++
 .../main/flex/google/maps/DirectionsRenderer.as | 18 ++++++++++
 .../main/flex/google/maps/DirectionsService.as  | 18 ++++++++++
 .../main/flex/google/maps/DirectionsStatus.as   | 18 ++++++++++
 .../google/maps/DistanceMatrixElementStatus.as  | 18 ++++++++++
 .../flex/google/maps/DistanceMatrixService.as   | 18 ++++++++++
 .../flex/google/maps/DistanceMatrixStatus.as    | 18 ++++++++++
 .../main/flex/google/maps/ElevationService.as   | 18 ++++++++++
 .../main/flex/google/maps/ElevationStatus.as    | 18 ++++++++++
 .../flex/google/maps/FusionTablesHeatmap.as     | 18 ++++++++++
 .../main/flex/google/maps/FusionTablesLayer.as  | 18 ++++++++++
 .../google/maps/FusionTablesMarkerOptions.as    | 18 ++++++++++
 .../google/maps/FusionTablesPolygonOptions.as   | 18 ++++++++++
 .../google/maps/FusionTablesPolylineOptions.as  | 18 ++++++++++
 .../main/flex/google/maps/FusionTablesQuery.as  | 18 ++++++++++
 .../main/flex/google/maps/FusionTablesStyle.as  | 18 ++++++++++
 .../src/main/flex/google/maps/Geocoder.as       | 18 ++++++++++
 .../google/maps/GeocoderAddressComponent.as     | 18 ++++++++++
 .../main/flex/google/maps/GeocoderGeometry.as   | 18 ++++++++++
 .../flex/google/maps/GeocoderLocationType.as    | 18 ++++++++++
 .../src/main/flex/google/maps/GeocoderResult.as | 18 ++++++++++
 .../src/main/flex/google/maps/GeocoderStatus.as | 18 ++++++++++
 .../src/main/flex/google/maps/GroundOverlay.as  | 18 ++++++++++
 .../src/main/flex/google/maps/ImageMapType.as   | 18 ++++++++++
 .../src/main/flex/google/maps/InfoWindow.as     | 18 ++++++++++
 .../src/main/flex/google/maps/KmlAuthor.as      | 18 ++++++++++
 .../src/main/flex/google/maps/KmlFeatureData.as | 18 ++++++++++
 .../src/main/flex/google/maps/KmlLayer.as       | 18 ++++++++++
 .../main/flex/google/maps/KmlLayerMetadata.as   | 18 ++++++++++
 .../src/main/flex/google/maps/KmlLayerStatus.as | 18 ++++++++++
 .../src/main/flex/google/maps/KmlMouseEvent.as  | 18 ++++++++++
 .../src/main/flex/google/maps/LatLng.as         | 37 ++++++++++----------
 .../src/main/flex/google/maps/LatLngBounds.as   | 18 ++++++++++
 .../src/main/flex/google/maps/MVCArray.as       | 18 ++++++++++
 .../src/main/flex/google/maps/MVCObject.as      | 19 ++++++++++
 .../GoogleMaps/src/main/flex/google/maps/Map.as | 18 ++++++++++
 .../flex/google/maps/MapCanvasProjection.as     | 18 ++++++++++
 .../src/main/flex/google/maps/MapPanes.as       | 18 ++++++++++
 .../flex/google/maps/MapTypeControlStyle.as     | 18 ++++++++++
 .../src/main/flex/google/maps/MapTypeId.as      | 18 ++++++++++
 .../main/flex/google/maps/MapTypeRegistry.as    | 18 ++++++++++
 .../main/flex/google/maps/MapsEventListener.as  | 18 ++++++++++
 .../src/main/flex/google/maps/Marker.as         | 37 ++++++++++----------
 .../src/main/flex/google/maps/MaxZoomService.as | 18 ++++++++++
 .../src/main/flex/google/maps/MaxZoomStatus.as  | 18 ++++++++++
 .../src/main/flex/google/maps/OverlayView.as    | 18 ++++++++++
 .../src/main/flex/google/maps/Point.as          | 18 ++++++++++
 .../src/main/flex/google/maps/PolyMouseEvent.as | 18 ++++++++++
 .../src/main/flex/google/maps/Polygon.as        | 18 ++++++++++
 .../src/main/flex/google/maps/Polyline.as       | 18 ++++++++++
 .../src/main/flex/google/maps/Rectangle.as      | 18 ++++++++++
 .../main/flex/google/maps/ScaleControlStyle.as  | 18 ++++++++++
 .../src/main/flex/google/maps/Size.as           | 18 ++++++++++
 .../flex/google/maps/StreetViewCoverageLayer.as | 18 ++++++++++
 .../main/flex/google/maps/StreetViewPanorama.as | 18 ++++++++++
 .../src/main/flex/google/maps/StreetViewPov.as  | 18 ++++++++++
 .../main/flex/google/maps/StreetViewService.as  | 18 ++++++++++
 .../main/flex/google/maps/StreetViewStatus.as   | 18 ++++++++++
 .../src/main/flex/google/maps/StrokePosition.as | 18 ++++++++++
 .../src/main/flex/google/maps/StyledMapType.as  | 18 ++++++++++
 .../src/main/flex/google/maps/SymbolPath.as     | 18 ++++++++++
 .../src/main/flex/google/maps/TrafficLayer.as   | 18 ++++++++++
 .../src/main/flex/google/maps/TransitLayer.as   | 18 ++++++++++
 .../src/main/flex/google/maps/TravelMode.as     | 18 ++++++++++
 .../src/main/flex/google/maps/UnitSystem.as     | 18 ++++++++++
 .../main/flex/google/maps/ZoomControlStyle.as   | 18 ++++++++++
 .../src/main/flex/google/maps/adsense.as        | 18 ++++++++++
 .../main/flex/google/maps/adsense/AdFormat.as   | 18 ++++++++++
 .../src/main/flex/google/maps/adsense/AdUnit.as | 18 ++++++++++
 .../src/main/flex/google/maps/drawing.as        | 18 ++++++++++
 .../flex/google/maps/drawing/DrawingManager.as  | 18 ++++++++++
 .../google/maps/drawing/OverlayCompleteEvent.as | 18 ++++++++++
 .../flex/google/maps/drawing/OverlayType.as     | 18 ++++++++++
 .../src/main/flex/google/maps/event.as          | 18 ++++++++++
 .../src/main/flex/google/maps/geometry.as       | 18 ++++++++++
 .../main/flex/google/maps/geometry/encoding.as  | 18 ++++++++++
 .../src/main/flex/google/maps/geometry/poly.as  | 18 ++++++++++
 .../main/flex/google/maps/geometry/spherical.as | 18 ++++++++++
 .../src/main/flex/google/maps/panoramio.as      | 18 ++++++++++
 .../google/maps/panoramio/PanoramioLayer.as     | 18 ++++++++++
 .../src/main/flex/google/maps/places.as         | 18 ++++++++++
 .../flex/google/maps/places/Autocomplete.as     | 18 ++++++++++
 .../google/maps/places/AutocompleteService.as   | 18 ++++++++++
 .../google/maps/places/ComponentRestrictions.as | 18 ++++++++++
 .../flex/google/maps/places/PhotoOptions.as     | 18 ++++++++++
 .../google/maps/places/PlaceAspectRating.as     | 18 ++++++++++
 .../flex/google/maps/places/PlaceGeometry.as    | 18 ++++++++++
 .../main/flex/google/maps/places/PlaceResult.as | 18 ++++++++++
 .../main/flex/google/maps/places/PlaceReview.as | 18 ++++++++++
 .../google/maps/places/PlaceSearchPagination.as | 18 ++++++++++
 .../flex/google/maps/places/PlacesService.as    | 18 ++++++++++
 .../google/maps/places/PlacesServiceStatus.as   | 18 ++++++++++
 .../src/main/flex/google/maps/places/RankBy.as  | 18 ++++++++++
 .../main/flex/google/maps/places/SearchBox.as   | 18 ++++++++++
 .../src/main/flex/google/maps/visualization.as  | 18 ++++++++++
 .../maps/visualization/DemographicsLayer.as     | 18 ++++++++++
 .../google/maps/visualization/HeatmapLayer.as   | 18 ++++++++++
 .../maps/visualization/MapsEngineLayer.as       | 18 ++++++++++
 .../maps/visualization/MapsEngineStatus.as      | 18 ++++++++++
 .../src/main/flex/google/maps/weather.as        | 18 ++++++++++
 .../main/flex/google/maps/weather/CloudLayer.as | 18 ++++++++++
 .../main/flex/google/maps/weather/LabelColor.as | 18 ++++++++++
 .../flex/google/maps/weather/TemperatureUnit.as | 18 ++++++++++
 .../flex/google/maps/weather/WeatherLayer.as    | 18 ++++++++++
 .../flex/google/maps/weather/WindSpeedUnit.as   | 18 ++++++++++
 .../main/flex/google/pseudo/HTMLInputElement.as | 20 +++++++++++
 .../src/main/flex/google/pseudo/Node.as         | 20 +++++++++++
 110 files changed, 1987 insertions(+), 36 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/Animation.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/Animation.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/Animation.as
index 8a76edf..67e885e 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/Animation.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/Animation.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/BicyclingLayer.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/BicyclingLayer.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/BicyclingLayer.as
index 5dab300..07fb859 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/BicyclingLayer.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/BicyclingLayer.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/Circle.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/Circle.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/Circle.as
index 2d95c54..425cedc 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/Circle.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/Circle.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/ControlPosition.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/ControlPosition.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/ControlPosition.as
index 5ef0a2a..dbd9e27 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/ControlPosition.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/ControlPosition.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/DirectionsRenderer.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/DirectionsRenderer.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/DirectionsRenderer.as
index f548646..78d34e9 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/DirectionsRenderer.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/DirectionsRenderer.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 	
 import google.pseudo.Node;

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/DirectionsService.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/DirectionsService.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/DirectionsService.as
index 3070674..7baa194 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/DirectionsService.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/DirectionsService.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/DirectionsStatus.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/DirectionsStatus.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/DirectionsStatus.as
index e34bf53..d0aae71 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/DirectionsStatus.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/DirectionsStatus.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/DistanceMatrixElementStatus.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/DistanceMatrixElementStatus.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/DistanceMatrixElementStatus.as
index 510c17f..d65204d 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/DistanceMatrixElementStatus.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/DistanceMatrixElementStatus.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/DistanceMatrixService.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/DistanceMatrixService.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/DistanceMatrixService.as
index 035e63d..a6f4d2c 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/DistanceMatrixService.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/DistanceMatrixService.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/DistanceMatrixStatus.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/DistanceMatrixStatus.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/DistanceMatrixStatus.as
index b168675..9b671bd 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/DistanceMatrixStatus.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/DistanceMatrixStatus.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/ElevationService.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/ElevationService.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/ElevationService.as
index 261da53..6ff4033 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/ElevationService.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/ElevationService.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/ElevationStatus.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/ElevationStatus.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/ElevationStatus.as
index dfc5e3f..24b2fca 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/ElevationStatus.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/ElevationStatus.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/FusionTablesHeatmap.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/FusionTablesHeatmap.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/FusionTablesHeatmap.as
index 28400bc..e02ec94 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/FusionTablesHeatmap.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/FusionTablesHeatmap.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/FusionTablesLayer.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/FusionTablesLayer.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/FusionTablesLayer.as
index f185b75..e7580cc 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/FusionTablesLayer.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/FusionTablesLayer.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/FusionTablesMarkerOptions.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/FusionTablesMarkerOptions.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/FusionTablesMarkerOptions.as
index dcd8a4b..f7ed870 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/FusionTablesMarkerOptions.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/FusionTablesMarkerOptions.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/FusionTablesPolygonOptions.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/FusionTablesPolygonOptions.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/FusionTablesPolygonOptions.as
index 2730d85..dc84ebd 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/FusionTablesPolygonOptions.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/FusionTablesPolygonOptions.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/FusionTablesPolylineOptions.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/FusionTablesPolylineOptions.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/FusionTablesPolylineOptions.as
index 4c0ab0b..56898e5 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/FusionTablesPolylineOptions.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/FusionTablesPolylineOptions.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/FusionTablesQuery.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/FusionTablesQuery.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/FusionTablesQuery.as
index 83dbe8b..0695d37 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/FusionTablesQuery.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/FusionTablesQuery.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/FusionTablesStyle.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/FusionTablesStyle.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/FusionTablesStyle.as
index 2f428c8..3e95157 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/FusionTablesStyle.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/FusionTablesStyle.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/Geocoder.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/Geocoder.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/Geocoder.as
index f13a2d5..a2f8277 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/Geocoder.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/Geocoder.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/GeocoderAddressComponent.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/GeocoderAddressComponent.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/GeocoderAddressComponent.as
index 60ffa1e..97a942a 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/GeocoderAddressComponent.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/GeocoderAddressComponent.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/GeocoderGeometry.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/GeocoderGeometry.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/GeocoderGeometry.as
index 6ba4aff..3c76cf8 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/GeocoderGeometry.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/GeocoderGeometry.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/GeocoderLocationType.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/GeocoderLocationType.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/GeocoderLocationType.as
index f1b6379..58bd9f4 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/GeocoderLocationType.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/GeocoderLocationType.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/GeocoderResult.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/GeocoderResult.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/GeocoderResult.as
index 773e3f5..5cc79af 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/GeocoderResult.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/GeocoderResult.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/GeocoderStatus.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/GeocoderStatus.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/GeocoderStatus.as
index 07b0817..9d68d4d 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/GeocoderStatus.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/GeocoderStatus.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/GroundOverlay.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/GroundOverlay.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/GroundOverlay.as
index e82daa6..05fc11a 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/GroundOverlay.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/GroundOverlay.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/ImageMapType.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/ImageMapType.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/ImageMapType.as
index afd2704..1c61c15 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/ImageMapType.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/ImageMapType.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/InfoWindow.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/InfoWindow.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/InfoWindow.as
index 99df034..b77203d 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/InfoWindow.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/InfoWindow.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/KmlAuthor.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/KmlAuthor.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/KmlAuthor.as
index 57472e4..9ad3521 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/KmlAuthor.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/KmlAuthor.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/KmlFeatureData.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/KmlFeatureData.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/KmlFeatureData.as
index 4730d83..93f09a4 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/KmlFeatureData.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/KmlFeatureData.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/KmlLayer.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/KmlLayer.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/KmlLayer.as
index 75b4595..f571e18 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/KmlLayer.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/KmlLayer.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/KmlLayerMetadata.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/KmlLayerMetadata.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/KmlLayerMetadata.as
index c224108..53fb2b6 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/KmlLayerMetadata.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/KmlLayerMetadata.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/KmlLayerStatus.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/KmlLayerStatus.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/KmlLayerStatus.as
index e21bcb9..4978e44 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/KmlLayerStatus.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/KmlLayerStatus.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/KmlMouseEvent.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/KmlMouseEvent.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/KmlMouseEvent.as
index 2fe0883..1e26549 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/KmlMouseEvent.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/KmlMouseEvent.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/LatLng.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/LatLng.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/LatLng.as
index fbedaea..688dc91 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/LatLng.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/LatLng.as
@@ -1,21 +1,22 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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.
-//
-////////////////////////////////////////////////////////////////////////////////
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ * Modifications were implemented at the Apache Software Foundation.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/LatLngBounds.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/LatLngBounds.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/LatLngBounds.as
index 6384733..972badf 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/LatLngBounds.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/LatLngBounds.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MVCArray.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MVCArray.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MVCArray.as
index 356444f..b68ade3 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MVCArray.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MVCArray.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MVCObject.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MVCObject.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MVCObject.as
index ea9d213..d4d30f4 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MVCObject.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MVCObject.as
@@ -1,3 +1,22 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ * Modifications were implemented at the Apache Software Foundation.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/Map.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/Map.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/Map.as
index 43ce77b..6ea10cc 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/Map.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/Map.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MapCanvasProjection.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MapCanvasProjection.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MapCanvasProjection.as
index c63c20f..0178179 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MapCanvasProjection.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MapCanvasProjection.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MapPanes.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MapPanes.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MapPanes.as
index 7ad8104..2b2c273 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MapPanes.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MapPanes.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 	
 import google.pseudo.Node;

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MapTypeControlStyle.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MapTypeControlStyle.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MapTypeControlStyle.as
index 8bb2221..0dea10a 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MapTypeControlStyle.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MapTypeControlStyle.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MapTypeId.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MapTypeId.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MapTypeId.as
index b73a3c2..1efa29a 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MapTypeId.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MapTypeId.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MapTypeRegistry.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MapTypeRegistry.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MapTypeRegistry.as
index 4352140..c0e535f 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MapTypeRegistry.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MapTypeRegistry.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MapsEventListener.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MapsEventListener.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MapsEventListener.as
index fae3495..c64e1e2 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MapsEventListener.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MapsEventListener.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/Marker.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/Marker.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/Marker.as
index 1d48f65..1872cc6 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/Marker.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/Marker.as
@@ -1,21 +1,22 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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.
-//
-////////////////////////////////////////////////////////////////////////////////
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ * Modifications were implemented at the Apache Software Foundation.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MaxZoomService.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MaxZoomService.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MaxZoomService.as
index 17bb027..1f162d6 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MaxZoomService.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MaxZoomService.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MaxZoomStatus.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MaxZoomStatus.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MaxZoomStatus.as
index d5ffa09..458e459 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MaxZoomStatus.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MaxZoomStatus.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/OverlayView.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/OverlayView.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/OverlayView.as
index a01a0aa..646c26d 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/OverlayView.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/OverlayView.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/Point.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/Point.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/Point.as
index 0bd9f35..ebc5102 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/Point.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/Point.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/PolyMouseEvent.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/PolyMouseEvent.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/PolyMouseEvent.as
index b31af4e..e87809d 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/PolyMouseEvent.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/PolyMouseEvent.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/Polygon.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/Polygon.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/Polygon.as
index a467204..a768b2e 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/Polygon.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/Polygon.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/Polyline.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/Polyline.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/Polyline.as
index c63d3ae..d46c057 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/Polyline.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/Polyline.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/Rectangle.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/Rectangle.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/Rectangle.as
index 99e0371..2570d56 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/Rectangle.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/Rectangle.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/ScaleControlStyle.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/ScaleControlStyle.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/ScaleControlStyle.as
index 7db4e10..105796d 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/ScaleControlStyle.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/ScaleControlStyle.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/Size.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/Size.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/Size.as
index 021d67c..61c362d 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/Size.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/Size.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/StreetViewCoverageLayer.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/StreetViewCoverageLayer.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/StreetViewCoverageLayer.as
index 2f08eb8..4bf5a79 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/StreetViewCoverageLayer.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/StreetViewCoverageLayer.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/StreetViewPanorama.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/StreetViewPanorama.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/StreetViewPanorama.as
index 6fe67f7..68a7010 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/StreetViewPanorama.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/StreetViewPanorama.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/StreetViewPov.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/StreetViewPov.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/StreetViewPov.as
index 02d579f..6439fbf 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/StreetViewPov.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/StreetViewPov.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**


[17/43] git commit: [flex-asjs] [refs/heads/e4x] - try fixing up headers. Some day, we should try pulling most of these files from the flex-falcon externs. Most files are copies with some tweaks to jsdoc to make asdoc happy

Posted by ha...@apache.org.
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/StreetViewService.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/StreetViewService.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/StreetViewService.as
index ae969f8..08f12c4 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/StreetViewService.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/StreetViewService.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/StreetViewStatus.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/StreetViewStatus.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/StreetViewStatus.as
index 04a9a11..a89fc9e 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/StreetViewStatus.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/StreetViewStatus.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/StrokePosition.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/StrokePosition.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/StrokePosition.as
index 14fb79a..a759efc 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/StrokePosition.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/StrokePosition.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/StyledMapType.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/StyledMapType.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/StyledMapType.as
index f4a420d..cc1156a 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/StyledMapType.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/StyledMapType.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/SymbolPath.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/SymbolPath.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/SymbolPath.as
index 3e7a7dc..d6bf376 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/SymbolPath.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/SymbolPath.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/TrafficLayer.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/TrafficLayer.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/TrafficLayer.as
index c00139d..9c64365 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/TrafficLayer.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/TrafficLayer.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/TransitLayer.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/TransitLayer.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/TransitLayer.as
index c0a5be2..9435a3e 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/TransitLayer.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/TransitLayer.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/TravelMode.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/TravelMode.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/TravelMode.as
index 2ba3b84..9792ef1 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/TravelMode.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/TravelMode.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/UnitSystem.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/UnitSystem.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/UnitSystem.as
index 3b349c0..d0adabf 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/UnitSystem.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/UnitSystem.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/ZoomControlStyle.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/ZoomControlStyle.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/ZoomControlStyle.as
index 842bd64..ca684fe 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/ZoomControlStyle.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/ZoomControlStyle.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/adsense.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/adsense.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/adsense.as
index 58a178e..805344b 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/adsense.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/adsense.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 import google.maps.adsense.AdFormat;

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/adsense/AdFormat.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/adsense/AdFormat.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/adsense/AdFormat.as
index cfb9242..7fd1b03 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/adsense/AdFormat.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/adsense/AdFormat.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps.adsense {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/adsense/AdUnit.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/adsense/AdUnit.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/adsense/AdUnit.as
index 8cf5742..f4d5126 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/adsense/AdUnit.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/adsense/AdUnit.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps.adsense {
 
 import google.maps.Map;

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/drawing.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/drawing.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/drawing.as
index 81e538c..30168d2 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/drawing.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/drawing.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 import google.maps.drawing.OverlayType;

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/drawing/DrawingManager.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/drawing/DrawingManager.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/drawing/DrawingManager.as
index 2c42ac2..77008db 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/drawing/DrawingManager.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/drawing/DrawingManager.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps.drawing {
 
 import google.maps.Map;

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/drawing/OverlayCompleteEvent.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/drawing/OverlayCompleteEvent.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/drawing/OverlayCompleteEvent.as
index cb49e00..18530b5 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/drawing/OverlayCompleteEvent.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/drawing/OverlayCompleteEvent.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps.drawing {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/drawing/OverlayType.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/drawing/OverlayType.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/drawing/OverlayType.as
index 0ce18e6..16bdc6d 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/drawing/OverlayType.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/drawing/OverlayType.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps.drawing {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/event.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/event.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/event.as
index 2a67d02..ee7a9b6 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/event.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/event.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/geometry.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/geometry.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/geometry.as
index 5d72731..974611e 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/geometry.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/geometry.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 import google.maps.geometry.spherical;

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/geometry/encoding.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/geometry/encoding.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/geometry/encoding.as
index c88b290..e350f84 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/geometry/encoding.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/geometry/encoding.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps.geometry {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/geometry/poly.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/geometry/poly.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/geometry/poly.as
index 573db4d..d24794d 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/geometry/poly.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/geometry/poly.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps.geometry {
 
 import google.maps.LatLng;

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/geometry/spherical.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/geometry/spherical.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/geometry/spherical.as
index 78dbb08..7eb0558 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/geometry/spherical.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/geometry/spherical.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps.geometry {
 
 import google.maps.LatLng;

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/panoramio.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/panoramio.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/panoramio.as
index 25ebe7a..0e88a30 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/panoramio.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/panoramio.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/panoramio/PanoramioLayer.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/panoramio/PanoramioLayer.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/panoramio/PanoramioLayer.as
index a6bd5ff..cb721a8 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/panoramio/PanoramioLayer.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/panoramio/PanoramioLayer.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps.panoramio {
 
 import google.maps.Map;

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places.as
index 0706b50..047a21a 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 import google.maps.places.RankBy;

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/Autocomplete.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/Autocomplete.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/Autocomplete.as
index e1bf0f0..bb9bba7 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/Autocomplete.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/Autocomplete.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps.places {
 
 import google.maps.MVCObject;

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/AutocompleteService.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/AutocompleteService.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/AutocompleteService.as
index 48399b4..f0b183f 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/AutocompleteService.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/AutocompleteService.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps.places {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/ComponentRestrictions.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/ComponentRestrictions.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/ComponentRestrictions.as
index 7168e10..151e398 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/ComponentRestrictions.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/ComponentRestrictions.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps.places {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/PhotoOptions.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/PhotoOptions.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/PhotoOptions.as
index b241e72..8223a0e 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/PhotoOptions.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/PhotoOptions.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps.places {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/PlaceAspectRating.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/PlaceAspectRating.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/PlaceAspectRating.as
index f358773..aed6f87 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/PlaceAspectRating.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/PlaceAspectRating.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps.places {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/PlaceGeometry.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/PlaceGeometry.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/PlaceGeometry.as
index dedf940..d4866c7 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/PlaceGeometry.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/PlaceGeometry.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps.places {
 
 import google.maps.LatLng;

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/PlaceResult.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/PlaceResult.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/PlaceResult.as
index 141b4e9..23e09ae 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/PlaceResult.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/PlaceResult.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps.places {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/PlaceReview.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/PlaceReview.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/PlaceReview.as
index daf9a63..995573f 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/PlaceReview.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/PlaceReview.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps.places {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/PlaceSearchPagination.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/PlaceSearchPagination.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/PlaceSearchPagination.as
index 376e07f..ebfe0f2 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/PlaceSearchPagination.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/PlaceSearchPagination.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps.places {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/PlacesService.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/PlacesService.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/PlacesService.as
index e8c5a5a..e503f28 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/PlacesService.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/PlacesService.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps.places {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/PlacesServiceStatus.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/PlacesServiceStatus.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/PlacesServiceStatus.as
index 94b4702..5f51e6f 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/PlacesServiceStatus.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/PlacesServiceStatus.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps.places {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/RankBy.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/RankBy.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/RankBy.as
index a744e12..455be4e 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/RankBy.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/RankBy.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps.places {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/SearchBox.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/SearchBox.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/SearchBox.as
index 20ae004..0acb0ab 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/SearchBox.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/places/SearchBox.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps.places {
 
 import google.maps.MVCObject;

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/visualization.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/visualization.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/visualization.as
index 0547a3f..09db553 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/visualization.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/visualization.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 import google.maps.visualization.MapsEngineStatus;

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/visualization/DemographicsLayer.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/visualization/DemographicsLayer.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/visualization/DemographicsLayer.as
index d4e8bc3..ffd70af 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/visualization/DemographicsLayer.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/visualization/DemographicsLayer.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps.visualization {
 
 import google.maps.Map;

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/visualization/HeatmapLayer.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/visualization/HeatmapLayer.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/visualization/HeatmapLayer.as
index 8de2728..336802d 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/visualization/HeatmapLayer.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/visualization/HeatmapLayer.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps.visualization {
 
 import google.maps.Map;

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/visualization/MapsEngineLayer.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/visualization/MapsEngineLayer.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/visualization/MapsEngineLayer.as
index 561df98..ca229c1 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/visualization/MapsEngineLayer.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/visualization/MapsEngineLayer.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps.visualization {
 
 import google.maps.Map;

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/visualization/MapsEngineStatus.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/visualization/MapsEngineStatus.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/visualization/MapsEngineStatus.as
index 68a2adc..40b4c63 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/visualization/MapsEngineStatus.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/visualization/MapsEngineStatus.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps.visualization {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/weather.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/weather.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/weather.as
index d995229..a69320b 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/weather.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/weather.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps {
 
 import google.maps.weather.WindSpeedUnit;

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/weather/CloudLayer.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/weather/CloudLayer.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/weather/CloudLayer.as
index 9914927..c698bec 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/weather/CloudLayer.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/weather/CloudLayer.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps.weather {
 
 import google.maps.Map;

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/weather/LabelColor.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/weather/LabelColor.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/weather/LabelColor.as
index a46098b..2be2c44 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/weather/LabelColor.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/weather/LabelColor.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps.weather {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/weather/TemperatureUnit.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/weather/TemperatureUnit.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/weather/TemperatureUnit.as
index f7a49e1..e178894 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/weather/TemperatureUnit.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/weather/TemperatureUnit.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps.weather {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/weather/WeatherLayer.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/weather/WeatherLayer.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/weather/WeatherLayer.as
index b76c968..a28987e 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/weather/WeatherLayer.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/weather/WeatherLayer.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps.weather {
 
 import google.maps.Map;

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/maps/weather/WindSpeedUnit.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/weather/WindSpeedUnit.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/weather/WindSpeedUnit.as
index a4aaaab..5d98bd8 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/weather/WindSpeedUnit.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/weather/WindSpeedUnit.as
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ */
 package google.maps.weather {
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/pseudo/HTMLInputElement.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/pseudo/HTMLInputElement.as b/frameworks/projects/GoogleMaps/src/main/flex/google/pseudo/HTMLInputElement.as
index 27b12aa..59bde13 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/pseudo/HTMLInputElement.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/pseudo/HTMLInputElement.as
@@ -1,3 +1,23 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+// used to quiet errors in asdoc
 package google.pseudo {
 public class HTMLInputElement extends Object {
 }

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26a26621/frameworks/projects/GoogleMaps/src/main/flex/google/pseudo/Node.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/pseudo/Node.as b/frameworks/projects/GoogleMaps/src/main/flex/google/pseudo/Node.as
index 3f67a33..cd4bba1 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/pseudo/Node.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/pseudo/Node.as
@@ -1,3 +1,23 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+// used to quiet issues with asdoc
 package google.pseudo {
 public class Node extends Object {
 }


[41/43] git commit: [flex-asjs] [refs/heads/e4x] - switch nightly to 0.7.0

Posted by ha...@apache.org.
switch nightly to 0.7.0


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

Branch: refs/heads/e4x
Commit: fd130d7595bae63b3a9547c5c766d6a87c1fb26c
Parents: 781d38e
Author: Alex Harui <ah...@apache.org>
Authored: Mon Apr 4 13:01:36 2016 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Mon Apr 4 13:01:36 2016 -0700

----------------------------------------------------------------------
 build.properties | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/fd130d75/build.properties
----------------------------------------------------------------------
diff --git a/build.properties b/build.properties
index 1742c34..a494011 100644
--- a/build.properties
+++ b/build.properties
@@ -21,7 +21,7 @@
 release.name = Apache Flex (FlexJS)
 # this is the version that appears in the flex-sdk-description <description> tag
 # and on the package name.  This is the publicly known version of FlexJS
-release.version = 0.6.0
+release.version = 0.7.0
 
 # fb.release.version must start with 4 in order for FB to accept it.
 # intellij seems to want it to be at least 4.6 in order to not use certain


[31/43] git commit: [flex-asjs] [refs/heads/e4x] - fix files in LICENSE

Posted by ha...@apache.org.
fix files in LICENSE


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

Branch: refs/heads/e4x
Commit: 7cd1bd4a3bfdfdd4433eb0555d698ef1f19495f6
Parents: fb682e0
Author: Alex Harui <ah...@apache.org>
Authored: Tue Mar 29 08:31:50 2016 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Tue Mar 29 08:31:50 2016 -0700

----------------------------------------------------------------------
 LICENSE | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7cd1bd4a/LICENSE
----------------------------------------------------------------------
diff --git a/LICENSE b/LICENSE
index a3c1df1..15de483 100644
--- a/LICENSE
+++ b/LICENSE
@@ -210,7 +210,7 @@ separate copyright notices and license terms. Your use of the source
 code for the these subcomponents is subject to the terms and
 conditions of the following licenses. 
 
-Portions of frameworks/projects/Flat/as/defaults.css is based on
+Portions of frameworks/projects/Flat/src/main/resources/defaults.css is based on
 designmodo’s (http://designmodo.com/flat-free/) Flat UI which is 
 available under an MIT license.  
 
@@ -218,7 +218,7 @@ The map image in examples/flexjs/FlexJSStore/src/assets/427px-Bayarea_map.png
 was placed into the Public Domain by its author.  See:
 https://commons.wikimedia.org/wiki/File:Bayarea_map.png
 
-The map coordinates in examples/native/USStatesMap/src/MapCoords.js
+The map coordinates in examples/native/USStatesMap/src/MapCoords.as
 were placed into the Public Domain by its author.  See:
 https://en.wikipedia.org/wiki/File:USA_CIA_Map.svg#file
 


[12/43] git commit: [flex-asjs] [refs/heads/e4x] - Added permanent storage option to Storage project.

Posted by ha...@apache.org.
Added permanent storage option to Storage project.


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

Branch: refs/heads/e4x
Commit: 1bc555d93d756abdf804e39e0521df726d4f0dac
Parents: 6271091
Author: Peter Ent <pe...@apache.org>
Authored: Wed Mar 9 11:12:28 2016 -0500
Committer: Peter Ent <pe...@apache.org>
Committed: Wed Mar 9 11:12:28 2016 -0500

----------------------------------------------------------------------
 frameworks/projects/Storage/build.xml           |   3 +
 .../Storage/src/main/flex/StorageClasses.as     |   9 +
 .../apache/flex/storage/IPermanentStorage.as    |  63 +++++++
 .../org/apache/flex/storage/PermanentStorage.as |  97 +++++++++++
 .../apache/flex/storage/events/FileReadEvent.as |  70 ++++++++
 .../flex/storage/events/FileWriteEvent.as       |  60 +++++++
 .../org/apache/flex/storage/file/LocalFile.as   |  84 +++++++++
 .../storage/providers/AirStorageProvider.as     | 165 ++++++++++++++++++
 .../providers/IPermanentStorageProvider.as      |  74 ++++++++
 .../storage/providers/WebStorageProvider.as     | 169 +++++++++++++++++++
 .../src/main/resources/basic-manifest.xml       |   1 +
 .../Storage/src/main/resources/defaults.css     |  16 ++
 12 files changed, 811 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1bc555d9/frameworks/projects/Storage/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Storage/build.xml b/frameworks/projects/Storage/build.xml
index 0d5fd9a..6fc0ed5 100644
--- a/frameworks/projects/Storage/build.xml
+++ b/frameworks/projects/Storage/build.xml
@@ -30,6 +30,7 @@
     <property name="FALCONJX_HOME" value="${env.FALCONJX_HOME}"/>
     <property name="JS.SWC" value="${FALCONJX_HOME}/../externs/js/out/bin/js.swc" />
     <property name="GCL.SWC" value="${FALCONJX_HOME}/../externs/GCL/out/bin/GCL.swc" />
+    <property name="CORDOVA.SWC" value="${FALCONJX_HOME}/../externs/cordova/out/bin/cordova.swc" />
     <property name="target.name" value="Storage-${release.version}.swc" />
     <property name="target.name.no.version" value="Storage.swc" />
 
@@ -118,6 +119,7 @@
             <arg value="-external-library-path+=${JS.SWC}" />
             <!-- this is not on external-library path otherwise goog.requires are not generated -->
             <arg value="-library-path+=${GCL.SWC}" />
+            <arg value="--external-library-path+=${CORDOVA.SWC}" />
             <arg value="-define=COMPILE::AS3,false" />
             <arg value="-define=COMPILE::JS,true" />
         </java>
@@ -155,6 +157,7 @@
             <arg value="-external-library-path+=${JS.SWC}" />
             <!-- this is not on external-library path otherwise goog.requires are not generated -->
             <arg value="-library-path+=${GCL.SWC}" />
+            <arg value="--external-library-path+=${CORDOVA.SWC}" />
             <arg value="-define=COMPILE::AS3,false" />
             <arg value="-define=COMPILE::JS,true" />
         </compc>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1bc555d9/frameworks/projects/Storage/src/main/flex/StorageClasses.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Storage/src/main/flex/StorageClasses.as b/frameworks/projects/Storage/src/main/flex/StorageClasses.as
index db34477..92d9bd4 100644
--- a/frameworks/projects/Storage/src/main/flex/StorageClasses.as
+++ b/frameworks/projects/Storage/src/main/flex/StorageClasses.as
@@ -29,6 +29,15 @@ internal class StorageClasses
 {
     import org.apache.flex.storage.LocalStorage; LocalStorage;
     import org.apache.flex.storage.providers.LocalStorageProvider; LocalStorageProvider;
+
+	import org.apache.flex.storage.PermanentStorage; PermanentStorage;
+	import org.apache.flex.storage.events.FileReadEvent; FileReadEvent;
+	import org.apache.flex.storage.events.FileWriteEvent; FileWriteEvent;
+
+	import org.apache.flex.storage.providers.AirStorageProvider; AirStorageProvider;
+
+	import org.apache.flex.storage.providers.WebStorageProvider; WebStorageProvider;
+
 }
 
 }

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1bc555d9/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/IPermanentStorage.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/IPermanentStorage.as b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/IPermanentStorage.as
new file mode 100644
index 0000000..d47866b
--- /dev/null
+++ b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/IPermanentStorage.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 org.apache.flex.storage
+{
+	import org.apache.flex.events.IEventDispatcher;
+	
+	/**
+	 * The IPermanentStorage interface provides the template for creating
+	 * an interface to a device's native file system.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.6
+	 *  @productversion FlexJS 0.0
+	 */
+	public interface IPermanentStorage extends IEventDispatcher
+	{	
+		/**
+		 * A convenience function to read an entire file as a single 
+		 * string of text. The file is storaged in the application's
+		 * data storage directory. 
+		 * 
+		 *  @param fileName The name of the file.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		function readTextFromDataFile( fileName:String ) : void;
+		
+		/**
+		 * A convenience function write a string into a file that resides in the
+		 * application's data storage directory. If the file already exists it is 
+		 * replaced with the string.
+		 * 
+		 *  @param fileName The name of file.
+		 *  @param text The string to be stored.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		function writeTextToDataFile( fileName:String, text:String ) : void;
+	}
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1bc555d9/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/PermanentStorage.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/PermanentStorage.as b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/PermanentStorage.as
new file mode 100644
index 0000000..d1e8887
--- /dev/null
+++ b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/PermanentStorage.as
@@ -0,0 +1,97 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.storage
+{
+	import org.apache.flex.events.EventDispatcher;
+	import org.apache.flex.events.IEventDispatcher;
+	import org.apache.flex.core.ValuesManager;
+
+	import org.apache.flex.storage.providers.AirStorageProvider;
+	import org.apache.flex.storage.providers.IPermanentStorageProvider;
+
+	/**
+	 * The PermanentStorage class provides the interface to the native
+	 * file system. This classes uses the FlexJS ValuesManager to provide
+	 * the actual implementation using the iStorage style.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.6
+     *  @productversion FlexJS 0.0
+	 */
+	public class PermanentStorage extends EventDispatcher implements IPermanentStorage
+	{
+		/**
+		 * Constructor.
+	     *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		public function PermanentStorage()
+		{
+			super();
+			_storageProvider = ValuesManager.valuesImpl.newInstance(this, "iStorageProvider") as IPermanentStorageProvider;
+			_storageProvider.target = this;
+		}
+
+		/**
+		 * @private
+		 */
+		private var _storageProvider:IPermanentStorageProvider;
+
+		/**
+		 * A convenience function to read an entire file as a single 
+		 * string of text. The file is storaged in the application's
+		 * data storage directory. Dispatches a FileRead event once
+		 * the data is available.
+		 * 
+		 *  @param fileName The name of the file.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		public function readTextFromDataFile( fileName:String ) : void
+		{
+			_storageProvider.readTextFromDataFile( fileName );
+		}
+		
+		/**
+		 * A convenience function write a string into a file that resides in the
+		 * application's data storage directory. If the file already exists it is 
+		 * replaced with the string. Dispatches a FileWrite event once the file
+		 * has been written.
+		 * 
+		 *  @param fileName The name of file.
+		 *  @param text The string to be stored.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		public function writeTextToDataFile( fileName:String, text:String ) : void
+		{
+			_storageProvider.writeTextToDataFile( fileName, text );
+		}
+	}
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1bc555d9/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/events/FileReadEvent.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/events/FileReadEvent.as b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/events/FileReadEvent.as
new file mode 100644
index 0000000..528c36b
--- /dev/null
+++ b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/events/FileReadEvent.as
@@ -0,0 +1,70 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.storage.events
+{
+	import org.apache.flex.events.Event;
+	
+	/**
+	 * The FileReadEvent class is used to signal varies events in the life and
+	 * use of permanent files. 
+	 * 
+	 * COMPLETE - The file has been completely read.
+	 * ERROR    - An error occurred reading or opening the file.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.6
+	 *  @productversion FlexJS 0.0
+	 */
+	public class FileReadEvent extends Event
+	{
+		/**
+		 * Constructor.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		public function FileReadEvent(type:String)
+		{
+			super(type);
+		}
+		
+		/**
+		 * The data read from the file.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		public var data:String;
+		
+		/**
+		 * If not null, the error that occurred opening or reading the file.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		public var errorMessage:String;
+	}
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1bc555d9/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/events/FileWriteEvent.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/events/FileWriteEvent.as b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/events/FileWriteEvent.as
new file mode 100644
index 0000000..fea4542
--- /dev/null
+++ b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/events/FileWriteEvent.as
@@ -0,0 +1,60 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.storage.events
+{
+	import org.apache.flex.events.Event;
+	
+	/**
+	 * The FileWriteEvent class is used to signal varies events in the life and
+	 * use of permanent files. 
+	 * 
+	 * COMPLETE - The file has been successfully written.
+	 * ERROR    - An error occurred writing or opening the file.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.6
+	 *  @productversion FlexJS 0.0
+	 */
+	public class FileWriteEvent extends Event
+	{
+		/**
+		 * Constructor.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		public function FileWriteEvent(type:String)
+		{
+			super(type);
+		}
+		
+		/**
+		 * If not null, the error that occurred opening or writing the file.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		public var errorMessage:String;
+	}
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1bc555d9/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/file/LocalFile.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/file/LocalFile.as b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/file/LocalFile.as
new file mode 100644
index 0000000..47b8333
--- /dev/null
+++ b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/file/LocalFile.as
@@ -0,0 +1,84 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.storage.file
+{
+COMPILE::AS3 {
+	import flash.filesystem.File;
+}
+COMPILE::JS {
+}
+
+/**
+ * The File class provides access to a specific file on the device.
+ */
+COMPILE::AS3
+public class LocalFile
+{
+	public static const documentsDirectory:String = "documentsDirectory";
+	public static const dataDirectory:String = "dataDirectory";
+
+	public function LocalFile(handle:Object=null)
+	{
+		_handle = handle as flash.filesystem.File;
+	}
+
+	private var _handle::flash.filesystem.File;
+
+	public function get handle():flash.filesystem.File {
+		return _handle;
+	}
+
+	static public function resolvePath(directory:String, filename:String):LocalFile {
+		var root:File;
+		if (directory == LocalFile.documentsDirectory) {
+			root = File.documentsDirectory;
+		}
+		else if (directory == LocalFile.dataDirectory) {
+			root = File.applicationStorageDirectory;
+		}
+		var result:LocalFile = new LocalFile(root.resolvePath(filename));
+		return result;
+	}
+}
+
+COMPILE::JS
+public class LocalFile
+{
+	public static const documentsDirectory:String = cordova.file.documentsDirectory;
+	public static const dataDirectory:String = cordova.file.dataDirectory;
+
+	private var _handle:cordova.File;
+
+	public function get handle():cordova.File {
+		return _handle;
+	}
+
+	static public function resolvePath(directory:String, filename:String):LocalFile {
+		var pathToFile = directory + filename;
+		var result:File = new File();
+		window.resolveLocalFileSystemURL(pathToFile, function(fileEntry) {
+			fileEntry.file(function (file) {
+				this.result._handle = file;
+			})
+		});
+		return result;
+	}
+}
+
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1bc555d9/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/providers/AirStorageProvider.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/providers/AirStorageProvider.as b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/providers/AirStorageProvider.as
new file mode 100644
index 0000000..185b6a3
--- /dev/null
+++ b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/providers/AirStorageProvider.as
@@ -0,0 +1,165 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.storage.providers
+{
+	import org.apache.flex.events.EventDispatcher;
+	import org.apache.flex.events.IEventDispatcher;
+	
+	COMPILE::AS3 {
+		import flash.filesystem.File;
+		import flash.filesystem.FileMode;
+		import flash.filesystem.FileStream;
+		import flash.utils.ByteArray;
+		import flash.errors.IOError;
+	}
+
+	import org.apache.flex.storage.events.FileReadEvent;
+	import org.apache.flex.storage.events.FileWriteEvent;
+
+	/**
+	 * The AirStorageProvider class implements the IPermanentStorageProvider
+	 * interface for saving files to a mobile device using the Adobe(tm) AIR platform. 
+	 * 
+	 * @flexjsignorecoercion FileEntry
+	 * @flexjsignorecoercion FileWriter
+	 * @flexjsignorecoercion window
+	 * @flexjsignorecoercion Blob
+	 */
+	public class AirStorageProvider extends EventDispatcher implements IPermanentStorageProvider
+	{
+		/**
+		 * Constructor.
+		 * 
+		 * @param target The target dispatcher for events as files are read and written.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		public function AirStorageProvider(target:IEventDispatcher=null)
+		{
+			super();
+			_target = target;
+		}
+
+		/**
+		 * The target dispatcher for events as files are read and written.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		public function get target():IEventDispatcher
+		{
+			return _target;
+		}
+		public function set target(value:IEventDispatcher):void
+		{
+			_target = value;
+		}
+
+		/**
+		 * @private
+		 */
+		private var _target:IEventDispatcher;
+		
+		/**
+		 * A convenience function to read an entire file as a single 
+		 * string of text. The file is storaged in the application's
+		 * data storage directory. Dispatches a FileRead event once
+		 * the data is available.
+		 * 
+		 *  @param fileName The name of the file.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		public function readTextFromDataFile( fileName:String ) : void
+		{
+			COMPILE::AS3 {
+				var file:File = File.applicationStorageDirectory.resolvePath(fileName);
+				
+				if (!file.exists) {
+					var errEvent:FileReadEvent = new FileReadEvent("ERROR");
+					errEvent.errorMessage = "File does not exist.";
+					_target.dispatchEvent(errEvent);
+					return;
+				}
+				
+				var stream:FileStream = new FileStream();
+				
+				stream.open(file, FileMode.READ);
+				var bytes:ByteArray = new ByteArray();
+				stream.readBytes(bytes);
+				stream.close();
+				
+				var text:String = new String(bytes);
+				
+				var newEvent:FileReadEvent = new FileReadEvent("COMPLETE");
+				newEvent.data = text;
+				_target.dispatchEvent(newEvent);
+			}
+		}
+		
+		/**
+		 * A convenience function write a string into a file that resides in the
+		 * application's data storage directory. If the file already exists it is 
+		 * replaced with the string. Dispatches a FileWrite event once the file
+		 * has been written.
+		 * 
+		 *  @param fileName The name of file.
+		 *  @param text The string to be stored.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		public function writeTextToDataFile( fileName:String, text:String ) : void
+		{
+			COMPILE::AS3 {
+				var file:File = File.applicationStorageDirectory.resolvePath(fileName);
+				var stream:FileStream = new FileStream();
+				
+				try {
+					stream.open(file, FileMode.WRITE);
+					stream.writeUTFBytes(text);
+					stream.close();
+				} catch(ioerror:IOError) {
+					var ioEvent:FileWriteEvent = new FileWriteEvent("ERROR");
+					ioEvent.errorMessage = "I/O Error";
+					_target.dispatchEvent(ioEvent);
+					return;
+				} catch(secerror:SecurityError) {
+					var secEvent:FileWriteEvent = new FileWriteEvent("ERROR");
+					secEvent.errorMessage = "Security Error";
+					_target.dispatchEvent(secEvent);
+					return;
+				}
+				
+				var newEvent:FileWriteEvent = new FileWriteEvent("COMPLETE");
+				_target.dispatchEvent(newEvent);
+			}
+		}
+	}
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1bc555d9/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/providers/IPermanentStorageProvider.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/providers/IPermanentStorageProvider.as b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/providers/IPermanentStorageProvider.as
new file mode 100644
index 0000000..023b1a7
--- /dev/null
+++ b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/providers/IPermanentStorageProvider.as
@@ -0,0 +1,74 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.storage.providers
+{
+	import org.apache.flex.events.IEventDispatcher;
+
+	/**
+	 * This interface provides the template for creating classes the work
+	 * with the permanent storages API of the native system.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.6
+     *  @productversion FlexJS 0.0
+	 */
+	public interface IPermanentStorageProvider
+	{
+		/**
+		 * The target dispatcher for events.
+	     *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		function get target():IEventDispatcher;
+		function set target(value:IEventDispatcher):void;
+
+		/**
+		 * A convenience function to read an entire file as a single 
+		 * string of text. The file is storaged in the application's
+		 * data storage directory.
+		 * 
+		 *  @param fileName The name of the file.
+	     *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		function readTextFromDataFile( fileName:String ) : void;
+		
+		/**
+		 * A convenience function write a string into a file that resides in the
+		 * application's data storage directory. If the file already exists it is 
+		 * replaced with the string.
+		 * 
+		 *  @param fileName The name of file.
+		 *  @param text The string to be stored.
+	     *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		function writeTextToDataFile( fileName:String, text:String ) : void;
+	}
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1bc555d9/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/providers/WebStorageProvider.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/providers/WebStorageProvider.as b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/providers/WebStorageProvider.as
new file mode 100644
index 0000000..557b591
--- /dev/null
+++ b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/providers/WebStorageProvider.as
@@ -0,0 +1,169 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.storage.providers
+{
+	import org.apache.flex.events.EventDispatcher;
+	import org.apache.flex.events.IEventDispatcher;
+
+	import org.apache.flex.storage.events.FileReadEvent;
+    import org.apache.flex.storage.events.FileWriteEvent;
+
+	/**
+	 * The WebStorageProvider class implements the IPermanentStorageProvider
+	 * interface for saving files to a mobile device. 
+	 * 
+	 * @flexjsignorecoercion FileEntry
+	 * @flexjsignorecoercion FileWriter
+	 * @flexjsignorecoercion window
+     * @flexjsignorecoercion Blob
+	 */
+	public class WebStorageProvider extends EventDispatcher implements IPermanentStorageProvider
+	{
+		/**
+		 * Constructor.
+		 * 
+		 * @param target The target dispatcher for events as files are read and written.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		public function WebStorageProvider(target:IEventDispatcher=null)
+		{
+			super();
+			_target = target;
+		}
+
+		/**
+		 * @private
+		 */
+		private var _target:IEventDispatcher;
+
+		/**
+		 * The target dispatcher for events as files are read and written.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		public function get target():IEventDispatcher
+		{
+			return _target;
+		}
+		public function set target(value:IEventDispatcher):void
+		{
+			_target = value;
+		}
+		
+		/**
+		 * A convenience function to read an entire file as a single 
+		 * string of text. The file is storaged in the application's
+		 * data storage directory. Dispatches a FileRead event once
+		 * the data is available.
+		 * 
+		 *  @param fileName The name of the file.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		public function readTextFromDataFile( fileName:String ) : void
+		{
+			COMPILE::JS {
+				var fullPath:String = String(cordova["file"]["dataDirectory"]) + fileName;
+				
+				window.resolveLocalFileSystemURL(fullPath, function (fileEntry):void {
+					fileEntry.file(function (file):void {
+						var reader:FileReader = new FileReader();
+						reader.onloadend = function (e):void {
+							var newEvent:FileReadEvent = new FileReadEvent("COMPLETE");
+							newEvent.data = this.result;
+							_target.dispatchEvent(newEvent);
+						};
+						reader.readAsText(file);
+					}, function (e):void {
+						var errEvent:FileReadEvent = new FileReadEvent("ERROR");
+						errEvent.errorMessage = "Cannot open file for reading";
+						_target.dispatchEvent(errEvent);
+					});
+				}, function (e):void {
+					var errEvent:FileReadEvent = new FileReadEvent("ERROR");
+					errEvent.errorMessage = "File does not exist";
+					_target.dispatchEvent(errEvent);
+				});
+			}
+		}
+		
+		/**
+		 * A convenience function write a string into a file that resides in the
+		 * application's data storage directory. If the file already exists it is 
+		 * replaced with the string. Dispatches a FileWrite event once the file
+		 * has been written.
+		 * 
+		 *  @param fileName The name of file.
+		 *  @param text The string to be stored.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		public function writeTextToDataFile( fileName:String, text:String ) : void
+		{
+			COMPILE::JS {
+				var fullPath:String = String(cordova["file"]["dataDirectory"]) + fileName;
+		
+				window.resolveLocalFileSystemURL(cordova.file.dataDirectory, function (directoryEntry):void {
+					directoryEntry.getFile(fileName, { 'create': true }, function (fileEntry):void {
+						fileEntry.createWriter(function (fileWriter):void {
+							fileWriter.onwriteend = function (e):void {
+								var newEvent:FileWriteEvent = new FileWriteEvent("COMPLETE");
+								_target.dispatchEvent(newEvent);
+							};
+							
+							fileWriter.onerror = function (e):void {
+								var newEvent:FileWriteEvent = new FileWriteEvent("ERROR");
+								newEvent.errorMessage = "Failed to write the file.";
+								_target.dispatchEvent(newEvent);
+							};
+							
+							var blob:Blob = new Blob([text], { type: 'text/plain' });
+							fileWriter.write(blob);
+						}, function(e):void {
+							var errEvent:FileWriteEvent = new FileWriteEvent("ERROR");
+							errEvent.errorMessage = "Cannot open file for writing.";
+							_target.dispatchEvent(errEvent);
+						});
+					}, function(e):void {
+						var errEvent:FileWriteEvent = new FileWriteEvent("ERROR");
+						errEvent.errorMessage = "Cannot create file.";
+						_target.dispatchEvent(errEvent);
+					});
+				}, function(e):void {
+					var errEvent:FileWriteEvent = new FileWriteEvent("ERROR");
+					errEvent.errorMessage = "Cannot create file.";
+					_target.dispatchEvent(errEvent);
+				});
+			}
+		}
+	}
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1bc555d9/frameworks/projects/Storage/src/main/resources/basic-manifest.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Storage/src/main/resources/basic-manifest.xml b/frameworks/projects/Storage/src/main/resources/basic-manifest.xml
index b502203..b82c859 100644
--- a/frameworks/projects/Storage/src/main/resources/basic-manifest.xml
+++ b/frameworks/projects/Storage/src/main/resources/basic-manifest.xml
@@ -21,4 +21,5 @@
 
 <componentPackage>
 	<component id="LocalStorage" class="org.apache.flex.storage.LocalStorage"/>
+	<component id="PermanentStorage" class="org.apache.flex.storage.PermanentStorage"/>
 </componentPackage>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1bc555d9/frameworks/projects/Storage/src/main/resources/defaults.css
----------------------------------------------------------------------
diff --git a/frameworks/projects/Storage/src/main/resources/defaults.css b/frameworks/projects/Storage/src/main/resources/defaults.css
index 9d82e6f..dd88207 100644
--- a/frameworks/projects/Storage/src/main/resources/defaults.css
+++ b/frameworks/projects/Storage/src/main/resources/defaults.css
@@ -23,4 +23,20 @@
 LocalStorage
 {
     IStorageProvider: ClassReference("org.apache.flex.storage.providers.LocalStorageProvider");
+}
+
+PermanentStorage
+{
+	IStorageProvider: ClassReference("org.apache.flex.storage.providers.WebStorageProvider");
+}
+
+@media -flex-flash
+{
+/**
+ * StorageProvider for AIR platform
+ */
+PermanentStorage
+{
+	IStorageProvider: ClassReference("org.apache.flex.storage.providers.AirStorageProvider");
+}	
 }
\ No newline at end of file


[11/43] git commit: [flex-asjs] [refs/heads/e4x] - do we still need this?

Posted by ha...@apache.org.
do we still need this?


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

Branch: refs/heads/e4x
Commit: 6271091099b4375ac710ea2bdf19f0ee93a59264
Parents: c313d70
Author: Alex Harui <ah...@apache.org>
Authored: Sat Mar 5 23:41:00 2016 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Sat Mar 5 23:41:00 2016 -0800

----------------------------------------------------------------------
 nightly.properties | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/62710910/nightly.properties
----------------------------------------------------------------------
diff --git a/nightly.properties b/nightly.properties
index cc6601a..3b96ceb 100644
--- a/nightly.properties
+++ b/nightly.properties
@@ -25,7 +25,7 @@ falcon.md5.server.url = http://apacheflexbuild.cloudapp.net:8080
 falcon.folder = job/flex-falcon/lastSuccessfulBuild/artifact/out
 falcon.version = 0.6.0
 #need this until Installer 3.2 comes out
-jburg.server=http://downloads.sourceforge.net
-jburg.folder=project/jburg
-jburg.filename=jburg-1.10.1.tar.gz
-jburg.md5=76830ee877cac40b981779325b3fa89f
+#jburg.server=http://downloads.sourceforge.net
+#jburg.folder=project/jburg
+#jburg.filename=jburg-1.10.1.tar.gz
+#jburg.md5=76830ee877cac40b981779325b3fa89f


[27/43] git commit: [flex-asjs] [refs/heads/e4x] - fix up ant scripts to hanlde both repo folder structure and binary package folder structure

Posted by ha...@apache.org.
fix up ant scripts to hanlde both repo folder structure and binary package folder structure


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

Branch: refs/heads/e4x
Commit: a97af6eb23f73609601ab8b8227a15e3ab64f4a1
Parents: d3f59fa
Author: Alex Harui <ah...@apache.org>
Authored: Wed Mar 23 17:33:49 2016 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Wed Mar 23 17:34:01 2016 -0700

----------------------------------------------------------------------
 examples/flexjs/ChartExample/build.xml       | 16 ++++++++++++++++
 examples/flexjs/DataGridExample/build.xml    | 16 ++++++++++++++++
 examples/flexjs/FlexJSStore_jquery/build.xml | 16 ++++++++++++++++
 examples/flexjs/MapSearch/build.xml          | 16 ++++++++++++++++
 examples/flexjs/MobileTrader/build.xml       | 16 ++++++++++++++++
 examples/flexjs/StorageExample/build.xml     | 16 ++++++++++++++++
 examples/flexjs/TreeExample/build.xml        | 16 ++++++++++++++++
 frameworks/projects/Binding/build.xml        |  7 +++++++
 frameworks/projects/Charts/build.xml         |  7 +++++++
 frameworks/projects/Collections/build.xml    |  7 +++++++
 frameworks/projects/Core/build.xml           |  7 +++++++
 frameworks/projects/CreateJS/build.xml       | 11 ++++++++++-
 frameworks/projects/DragDrop/build.xml       |  7 +++++++
 frameworks/projects/Effects/build.xml        |  7 +++++++
 frameworks/projects/Flat/build.xml           |  7 +++++++
 frameworks/projects/Formatters/build.xml     |  6 ++++++
 frameworks/projects/GoogleMaps/build.xml     | 11 ++++++++++-
 frameworks/projects/Graphics/build.xml       |  6 ++++++
 frameworks/projects/HTML/build.xml           |  6 ++++++
 frameworks/projects/HTML5/build.xml          |  6 ++++++
 frameworks/projects/JQuery/build.xml         | 11 ++++++++++-
 frameworks/projects/Mobile/build.xml         |  6 ++++++
 frameworks/projects/Network/build.xml        |  6 ++++++
 frameworks/projects/Reflection/build.xml     |  6 ++++++
 frameworks/projects/Storage/build.xml        |  9 +++++++++
 25 files changed, 242 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a97af6eb/examples/flexjs/ChartExample/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/ChartExample/build.xml b/examples/flexjs/ChartExample/build.xml
index 3eaa208..dc88d34 100644
--- a/examples/flexjs/ChartExample/build.xml
+++ b/examples/flexjs/ChartExample/build.xml
@@ -30,6 +30,22 @@
     
     <include file="${basedir}/../../build_example.xml" />
     
+    <condition property="extlib_arg" value="-external-library-path=${FLEXJS_HOME}/js/libs/js.swc" >
+        <and>
+            <not>
+                <isset property="extlib_arg" />
+            </not>
+            <available file="${FLEXJS_HOME}/js/libs/js.swc" type="file" />
+        </and>
+    </condition>
+    <condition property="extlib_arg" value="-external-library-path=${FALCONJX_HOME}/../js/libs/js.swc" >
+        <and>
+            <not>
+                <isset property="extlib_arg" />
+            </not>
+            <available file="${FALCONJX_HOME}/../js/libs/js.swc" type="file" />
+        </and>
+    </condition>
     <property name="extlib_arg" value="-external-library-path=${FALCONJX_HOME}/../externs/js/out/bin/js.swc"/>
     
 <!-- temp remove build_example.compilejs -->

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a97af6eb/examples/flexjs/DataGridExample/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/DataGridExample/build.xml b/examples/flexjs/DataGridExample/build.xml
index 34c9abf..bb8bfca 100644
--- a/examples/flexjs/DataGridExample/build.xml
+++ b/examples/flexjs/DataGridExample/build.xml
@@ -30,6 +30,22 @@
     
     <include file="${basedir}/../../build_example.xml" />
 
+    <condition property="extlib_arg" value="-external-library-path=${FLEXJS_HOME}/js/libs/js.swc" >
+        <and>
+            <not>
+                <isset property="extlib_arg" />
+            </not>
+            <available file="${FLEXJS_HOME}/js/libs/js.swc" type="file" />
+        </and>
+    </condition>
+    <condition property="extlib_arg" value="-external-library-path=${FALCONJX_HOME}/../js/libs/js.swc" >
+        <and>
+            <not>
+                <isset property="extlib_arg" />
+            </not>
+            <available file="${FALCONJX_HOME}/../js/libs/js.swc" type="file" />
+        </and>
+    </condition>
     <property name="extlib_arg" value="-external-library-path=${FALCONJX_HOME}/../externs/js/out/bin/js.swc"/>
 
     <target name="main" depends="clean,build_example.compile,build_example.compilejs" description="Clean build of ${example}">

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a97af6eb/examples/flexjs/FlexJSStore_jquery/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/FlexJSStore_jquery/build.xml b/examples/flexjs/FlexJSStore_jquery/build.xml
index 53f5caf..4bd6297 100644
--- a/examples/flexjs/FlexJSStore_jquery/build.xml
+++ b/examples/flexjs/FlexJSStore_jquery/build.xml
@@ -30,6 +30,22 @@
     
     <include file="${basedir}/../../build_example.xml" />
     
+    <condition property="extlib_arg" value="-external-library-path=${FLEXJS_HOME}/js/libs/jquery.swc" >
+        <and>
+            <not>
+                <isset property="extlib_arg" />
+            </not>
+            <available file="${FLEXJS_HOME}/js/libs/jquery.swc" type="file" />
+        </and>
+    </condition>
+    <condition property="extlib_arg" value="-external-library-path=${FALCONJX_HOME}/../js/libs/jquery.swc" >
+        <and>
+            <not>
+                <isset property="extlib_arg" />
+            </not>
+            <available file="${FALCONJX_HOME}/../js/libs/jquery.swc" type="file" />
+        </and>
+    </condition>
     <property name="extlib_arg" value="-external-library-path=${FALCONJX_HOME}/../externs/jquery/out/bin/jquery-1.9.swc"/>
     <property name="opt1_arg" value="-js-output-optimization=skipFunctionCoercions" />
     

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a97af6eb/examples/flexjs/MapSearch/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/MapSearch/build.xml b/examples/flexjs/MapSearch/build.xml
index c35e408..b6be693 100644
--- a/examples/flexjs/MapSearch/build.xml
+++ b/examples/flexjs/MapSearch/build.xml
@@ -51,6 +51,22 @@
 
     <include file="${basedir}/../../build_example.xml" />
 
+    <condition property="extlib_arg" value="-external-library-path=${FLEXJS_HOME}/js/libs/google_maps.swc" >
+        <and>
+            <not>
+                <isset property="extlib_arg" />
+            </not>
+            <available file="${FLEXJS_HOME}/js/libs/google_maps.swc" type="file" />
+        </and>
+    </condition>
+    <condition property="extlib_arg" value="-external-library-path=${FALCONJX_HOME}/../js/libs/google_maps.swc" >
+        <and>
+            <not>
+                <isset property="extlib_arg" />
+            </not>
+            <available file="${FALCONJX_HOME}/../js/libs/google_maps.swc" type="file" />
+        </and>
+    </condition>
     <property name="extlib_arg" value="-external-library-path=${FALCONJX_HOME}/../externs/google_maps/out/bin/google_maps.swc"/>
     <property name="opt1_arg" value="-remove-circulars" />
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a97af6eb/examples/flexjs/MobileTrader/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/MobileTrader/build.xml b/examples/flexjs/MobileTrader/build.xml
index e1b9c97..9c9b677 100644
--- a/examples/flexjs/MobileTrader/build.xml
+++ b/examples/flexjs/MobileTrader/build.xml
@@ -30,6 +30,22 @@
     
     <include file="${basedir}/../../build_example.xml" />
 
+    <condition property="extlib_arg" value="-external-library-path=${FLEXJS_HOME}/js/libs/js.swc" >
+        <and>
+            <not>
+                <isset property="extlib_arg" />
+            </not>
+            <available file="${FLEXJS_HOME}/js/libs/js.swc" type="file" />
+        </and>
+    </condition>
+    <condition property="extlib_arg" value="-external-library-path=${FALCONJX_HOME}/../js/libs/js.swc" >
+        <and>
+            <not>
+                <isset property="extlib_arg" />
+            </not>
+            <available file="${FALCONJX_HOME}/../js/libs/js.swc" type="file" />
+        </and>
+    </condition>
     <property name="extlib_arg" value="-external-library-path=${FALCONJX_HOME}/../externs/js/out/bin/js.swc"/>
 
     <target name="main" depends="clean,build_example.compile,build_example.compilejs" description="Clean build of ${example}">

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a97af6eb/examples/flexjs/StorageExample/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/StorageExample/build.xml b/examples/flexjs/StorageExample/build.xml
index a976cad..dcb2948 100644
--- a/examples/flexjs/StorageExample/build.xml
+++ b/examples/flexjs/StorageExample/build.xml
@@ -51,6 +51,22 @@
 
     <include file="${basedir}/../../build_example.xml" />
 
+    <condition property="extlib_arg" value="-external-library-path=${FLEXJS_HOME}/js/libs/cordova.swc" >
+        <and>
+            <not>
+                <isset property="extlib_arg" />
+            </not>
+            <available file="${FLEXJS_HOME}/js/libs/cordova.swc" type="file" />
+        </and>
+    </condition>
+    <condition property="extlib_arg" value="-external-library-path=${FALCONJX_HOME}/../js/libs/cordova.swc" >
+        <and>
+            <not>
+                <isset property="extlib_arg" />
+            </not>
+            <available file="${FALCONJX_HOME}/../js/libs/cordova.swc" type="file" />
+        </and>
+    </condition>
     <property name="extlib_arg" value="-external-library-path=${FALCONJX_HOME}/../externs/cordova/out/bin/cordova.swc"/>
     <property name="opt1_arg" value="-remove-circulars" />
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a97af6eb/examples/flexjs/TreeExample/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/TreeExample/build.xml b/examples/flexjs/TreeExample/build.xml
index c2fcd0d..449e778 100644
--- a/examples/flexjs/TreeExample/build.xml
+++ b/examples/flexjs/TreeExample/build.xml
@@ -30,6 +30,22 @@
     
     <include file="${basedir}/../../build_example.xml" />
 
+    <condition property="extlib_arg" value="-external-library-path=${FLEXJS_HOME}/js/libs/js.swc" >
+        <and>
+            <not>
+                <isset property="extlib_arg" />
+            </not>
+            <available file="${FLEXJS_HOME}/js/libs/js.swc" type="file" />
+        </and>
+    </condition>
+    <condition property="extlib_arg" value="-external-library-path=${FALCONJX_HOME}/../js/libs/js.swc" >
+        <and>
+            <not>
+                <isset property="extlib_arg" />
+            </not>
+            <available file="${FALCONJX_HOME}/../js/libs/js.swc" type="file" />
+        </and>
+    </condition>
     <property name="extlib_arg" value="-external-library-path=${FALCONJX_HOME}/../externs/js/out/bin/js.swc"/>
 
     <target name="main" depends="clean,build_example.compile,build_example.compilejs" description="Clean build of ${example}">

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a97af6eb/frameworks/projects/Binding/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Binding/build.xml b/frameworks/projects/Binding/build.xml
index 06c7c40..29ffbe4 100644
--- a/frameworks/projects/Binding/build.xml
+++ b/frameworks/projects/Binding/build.xml
@@ -28,8 +28,15 @@
     <property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
     <property name="FALCON_HOME" value="${env.FALCON_HOME}"/>
     <property name="FALCONJX_HOME" value="${env.FALCONJX_HOME}"/>
+    <condition property="JS.SWC" value="${FALCONJX_HOME}/../js/libs/js.swc" >
+        <available file="${FALCONJX_HOME}/../js/libs/js.swc" />
+    </condition>
     <property name="JS.SWC" value="${FALCONJX_HOME}/../externs/js/out/bin/js.swc" />
+    <condition property="GCL.SWC" value="${FALCONJX_HOME}/../js/libs/GCL.swc" >
+        <available file="${FALCONJX_HOME}/../js/libs/GCL.swc" />
+    </condition>
     <property name="GCL.SWC" value="${FALCONJX_HOME}/../externs/GCL/out/bin/GCL.swc" />
+    
     <property name="target.name" value="Binding-${release.version}.swc" />
     <property name="target.name.no.version" value="Binding.swc" />
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a97af6eb/frameworks/projects/Charts/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Charts/build.xml b/frameworks/projects/Charts/build.xml
index ce3de72..268eaab 100644
--- a/frameworks/projects/Charts/build.xml
+++ b/frameworks/projects/Charts/build.xml
@@ -28,8 +28,15 @@
     <property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
     <property name="FALCON_HOME" value="${env.FALCON_HOME}"/>
     <property name="FALCONJX_HOME" value="${env.FALCONJX_HOME}"/>
+    <condition property="JS.SWC" value="${FALCONJX_HOME}/../js/libs/js.swc" >
+        <available file="${FALCONJX_HOME}/../js/libs/js.swc" />
+    </condition>
     <property name="JS.SWC" value="${FALCONJX_HOME}/../externs/js/out/bin/js.swc" />
+    <condition property="GCL.SWC" value="${FALCONJX_HOME}/../js/libs/GCL.swc" >
+        <available file="${FALCONJX_HOME}/../js/libs/GCL.swc" />
+    </condition>
     <property name="GCL.SWC" value="${FALCONJX_HOME}/../externs/GCL/out/bin/GCL.swc" />
+    
     <property name="target.name" value="Charts-${release.version}.swc" />
     <property name="target.name.no.version" value="Charts.swc" />
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a97af6eb/frameworks/projects/Collections/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Collections/build.xml b/frameworks/projects/Collections/build.xml
index b94ec18..90e8757 100644
--- a/frameworks/projects/Collections/build.xml
+++ b/frameworks/projects/Collections/build.xml
@@ -28,8 +28,15 @@
     <property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
     <property name="FALCON_HOME" value="${env.FALCON_HOME}"/>
     <property name="FALCONJX_HOME" value="${env.FALCONJX_HOME}"/>
+    <condition property="JS.SWC" value="${FALCONJX_HOME}/../js/libs/js.swc" >
+        <available file="${FALCONJX_HOME}/../js/libs/js.swc" />
+    </condition>
     <property name="JS.SWC" value="${FALCONJX_HOME}/../externs/js/out/bin/js.swc" />
+    <condition property="GCL.SWC" value="${FALCONJX_HOME}/../js/libs/GCL.swc" >
+        <available file="${FALCONJX_HOME}/../js/libs/GCL.swc" />
+    </condition>
     <property name="GCL.SWC" value="${FALCONJX_HOME}/../externs/GCL/out/bin/GCL.swc" />
+    
     <property name="target.name" value="Collections-${release.version}.swc" />
     <property name="target.name.no.version" value="Collections.swc" />
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a97af6eb/frameworks/projects/Core/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/build.xml b/frameworks/projects/Core/build.xml
index 009ab52..2d1b251 100644
--- a/frameworks/projects/Core/build.xml
+++ b/frameworks/projects/Core/build.xml
@@ -28,8 +28,15 @@
     <property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
     <property name="FALCON_HOME" value="${env.FALCON_HOME}"/>
     <property name="FALCONJX_HOME" value="${env.FALCONJX_HOME}"/>
+    <condition property="JS.SWC" value="${FALCONJX_HOME}/../js/libs/js.swc" >
+        <available file="${FALCONJX_HOME}/../js/libs/js.swc" />
+    </condition>
     <property name="JS.SWC" value="${FALCONJX_HOME}/../externs/js/out/bin/js.swc" />
+    <condition property="GCL.SWC" value="${FALCONJX_HOME}/../js/libs/GCL.swc" >
+        <available file="${FALCONJX_HOME}/../js/libs/GCL.swc" />
+    </condition>
     <property name="GCL.SWC" value="${FALCONJX_HOME}/../externs/GCL/out/bin/GCL.swc" />
+    
     <property name="target.name" value="Core-${release.version}.swc" />
     <property name="target.name.no.version" value="Core.swc" />
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a97af6eb/frameworks/projects/CreateJS/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/CreateJS/build.xml b/frameworks/projects/CreateJS/build.xml
index 2d0018e..caed5c7 100644
--- a/frameworks/projects/CreateJS/build.xml
+++ b/frameworks/projects/CreateJS/build.xml
@@ -28,9 +28,18 @@
     <property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
     <property name="FALCON_HOME" value="${env.FALCON_HOME}"/>
     <property name="FALCONJX_HOME" value="${env.FALCONJX_HOME}"/>
+    <condition property="JS.SWC" value="${FALCONJX_HOME}/../js/libs/js.swc" >
+        <available file="${FALCONJX_HOME}/../js/libs/js.swc" />
+    </condition>
     <property name="JS.SWC" value="${FALCONJX_HOME}/../externs/js/out/bin/js.swc" />
-    <property name="CREATEJS.SWC" value="${FALCONJX_HOME}/../externs/createjs/out/bin/createjs.swc" />
+    <condition property="GCL.SWC" value="${FALCONJX_HOME}/../js/libs/GCL.swc" >
+        <available file="${FALCONJX_HOME}/../js/libs/GCL.swc" />
+    </condition>
     <property name="GCL.SWC" value="${FALCONJX_HOME}/../externs/GCL/out/bin/GCL.swc" />
+    <condition property="CREATEJS.SWC" value="${FALCONJX_HOME}/../js/libs/createjs.swc" >
+        <available file="${FALCONJX_HOME}/../js/libs/createjs.swc" />
+    </condition>
+    <property name="CREATEJS.SWC" value="${FALCONJX_HOME}/../externs/createjs/out/bin/createjs.swc" />
     <condition property="no.lint" value="true">
         <os family="windows"/>
     </condition>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a97af6eb/frameworks/projects/DragDrop/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/DragDrop/build.xml b/frameworks/projects/DragDrop/build.xml
index 930716f..ef605af 100644
--- a/frameworks/projects/DragDrop/build.xml
+++ b/frameworks/projects/DragDrop/build.xml
@@ -28,8 +28,15 @@
     <property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
     <property name="FALCON_HOME" value="${env.FALCON_HOME}"/>
     <property name="FALCONJX_HOME" value="${env.FALCONJX_HOME}"/>
+    <condition property="JS.SWC" value="${FALCONJX_HOME}/../js/libs/js.swc" >
+        <available file="${FALCONJX_HOME}/../js/libs/js.swc" />
+    </condition>
     <property name="JS.SWC" value="${FALCONJX_HOME}/../externs/js/out/bin/js.swc" />
+    <condition property="GCL.SWC" value="${FALCONJX_HOME}/../js/libs/GCL.swc" >
+        <available file="${FALCONJX_HOME}/../js/libs/GCL.swc" />
+    </condition>
     <property name="GCL.SWC" value="${FALCONJX_HOME}/../externs/GCL/out/bin/GCL.swc" />
+    
     <property name="target.name" value="DragDrop-${release.version}.swc" />
     <property name="target.name.no.version" value="DragDrop.swc" />
     

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a97af6eb/frameworks/projects/Effects/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Effects/build.xml b/frameworks/projects/Effects/build.xml
index 84062df..a469f5e 100644
--- a/frameworks/projects/Effects/build.xml
+++ b/frameworks/projects/Effects/build.xml
@@ -28,8 +28,15 @@
     <property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
     <property name="FALCON_HOME" value="${env.FALCON_HOME}"/>
     <property name="FALCONJX_HOME" value="${env.FALCONJX_HOME}"/>
+    <condition property="JS.SWC" value="${FALCONJX_HOME}/../js/libs/js.swc" >
+        <available file="${FALCONJX_HOME}/../js/libs/js.swc" />
+    </condition>
     <property name="JS.SWC" value="${FALCONJX_HOME}/../externs/js/out/bin/js.swc" />
+    <condition property="GCL.SWC" value="${FALCONJX_HOME}/../js/libs/GCL.swc" >
+        <available file="${FALCONJX_HOME}/../js/libs/GCL.swc" />
+    </condition>
     <property name="GCL.SWC" value="${FALCONJX_HOME}/../externs/GCL/out/bin/GCL.swc" />
+    
     <property name="target.name" value="Effects-${release.version}.swc" />
     <property name="target.name.no.version" value="Effects.swc" />
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a97af6eb/frameworks/projects/Flat/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Flat/build.xml b/frameworks/projects/Flat/build.xml
index 858b6d2..9bc139f 100644
--- a/frameworks/projects/Flat/build.xml
+++ b/frameworks/projects/Flat/build.xml
@@ -28,8 +28,15 @@
     <property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
     <property name="FALCON_HOME" value="${env.FALCON_HOME}"/>
     <property name="FALCONJX_HOME" value="${env.FALCONJX_HOME}"/>
+    <condition property="JS.SWC" value="${FALCONJX_HOME}/../js/libs/js.swc" >
+        <available file="${FALCONJX_HOME}/../js/libs/js.swc" />
+    </condition>
     <property name="JS.SWC" value="${FALCONJX_HOME}/../externs/js/out/bin/js.swc" />
+    <condition property="GCL.SWC" value="${FALCONJX_HOME}/../js/libs/GCL.swc" >
+        <available file="${FALCONJX_HOME}/../js/libs/GCL.swc" />
+    </condition>
     <property name="GCL.SWC" value="${FALCONJX_HOME}/../externs/GCL/out/bin/GCL.swc" />
+    
     <property name="target.name" value="Flat-${release.version}.swc" />
     <property name="target.name.no.version" value="Flat.swc" />
     

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a97af6eb/frameworks/projects/Formatters/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Formatters/build.xml b/frameworks/projects/Formatters/build.xml
index 2048821..9f57088 100644
--- a/frameworks/projects/Formatters/build.xml
+++ b/frameworks/projects/Formatters/build.xml
@@ -28,7 +28,13 @@
     <property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
     <property name="FALCON_HOME" value="${env.FALCON_HOME}"/>
     <property name="FALCONJX_HOME" value="${env.FALCONJX_HOME}"/>
+    <condition property="JS.SWC" value="${FALCONJX_HOME}/../js/libs/js.swc" >
+        <available file="${FALCONJX_HOME}/../js/libs/js.swc" />
+    </condition>
     <property name="JS.SWC" value="${FALCONJX_HOME}/../externs/js/out/bin/js.swc" />
+    <condition property="GCL.SWC" value="${FALCONJX_HOME}/../js/libs/GCL.swc" >
+        <available file="${FALCONJX_HOME}/../js/libs/GCL.swc" />
+    </condition>
     <property name="GCL.SWC" value="${FALCONJX_HOME}/../externs/GCL/out/bin/GCL.swc" />
     <property name="target.name" value="Formatters-${release.version}.swc" />
     <property name="target.name.no.version" value="Formatters.swc" />

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a97af6eb/frameworks/projects/GoogleMaps/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/build.xml b/frameworks/projects/GoogleMaps/build.xml
index f9e3654..2bdd19d 100644
--- a/frameworks/projects/GoogleMaps/build.xml
+++ b/frameworks/projects/GoogleMaps/build.xml
@@ -28,9 +28,18 @@
     <property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
     <property name="FALCON_HOME" value="${env.FALCON_HOME}"/>
     <property name="FALCONJX_HOME" value="${env.FALCONJX_HOME}"/>
+    <condition property="JS.SWC" value="${FALCONJX_HOME}/../js/libs/js.swc" >
+        <available file="${FALCONJX_HOME}/../js/libs/js.swc" />
+    </condition>
     <property name="JS.SWC" value="${FALCONJX_HOME}/../externs/js/out/bin/js.swc" />
-    <property name="GOOGLEMAPS.SWC" value="${FALCONJX_HOME}/../externs/google_maps/out/bin/google_maps.swc" />
+    <condition property="GCL.SWC" value="${FALCONJX_HOME}/../js/libs/GCL.swc" >
+        <available file="${FALCONJX_HOME}/../js/libs/GCL.swc" />
+    </condition>
     <property name="GCL.SWC" value="${FALCONJX_HOME}/../externs/GCL/out/bin/GCL.swc" />
+    <condition property="GOOGLEMAPS.SWC" value="${FALCONJX_HOME}/../js/libs/google_maps.swc" >
+        <available file="${FALCONJX_HOME}/../js/libs/google_maps.swc" />
+    </condition>
+    <property name="GOOGLEMAPS.SWC" value="${FALCONJX_HOME}/../externs/google_maps/out/bin/google_maps.swc" />
     <property name="target.name" value="GoogleMaps-${release.version}.swc" />
     <property name="target.name.no.version" value="GoogleMaps.swc" />
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a97af6eb/frameworks/projects/Graphics/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Graphics/build.xml b/frameworks/projects/Graphics/build.xml
index 25463f7..c05b49a 100644
--- a/frameworks/projects/Graphics/build.xml
+++ b/frameworks/projects/Graphics/build.xml
@@ -28,7 +28,13 @@
     <property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
     <property name="FALCON_HOME" value="${env.FALCON_HOME}"/>
     <property name="FALCONJX_HOME" value="${env.FALCONJX_HOME}"/>
+    <condition property="JS.SWC" value="${FALCONJX_HOME}/../js/libs/js.swc" >
+        <available file="${FALCONJX_HOME}/../js/libs/js.swc" />
+    </condition>
     <property name="JS.SWC" value="${FALCONJX_HOME}/../externs/js/out/bin/js.swc" />
+    <condition property="GCL.SWC" value="${FALCONJX_HOME}/../js/libs/GCL.swc" >
+        <available file="${FALCONJX_HOME}/../js/libs/GCL.swc" />
+    </condition>
     <property name="GCL.SWC" value="${FALCONJX_HOME}/../externs/GCL/out/bin/GCL.swc" />
     <property name="target.name" value="Graphics-${release.version}.swc" />
     <property name="target.name.no.version" value="Graphics.swc" />

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a97af6eb/frameworks/projects/HTML/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/build.xml b/frameworks/projects/HTML/build.xml
index 3305178..a70c56f 100644
--- a/frameworks/projects/HTML/build.xml
+++ b/frameworks/projects/HTML/build.xml
@@ -28,7 +28,13 @@
     <property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
     <property name="FALCON_HOME" value="${env.FALCON_HOME}"/>
     <property name="FALCONJX_HOME" value="${env.FALCONJX_HOME}"/>
+    <condition property="JS.SWC" value="${FALCONJX_HOME}/../js/libs/js.swc" >
+        <available file="${FALCONJX_HOME}/../js/libs/js.swc" />
+    </condition>
     <property name="JS.SWC" value="${FALCONJX_HOME}/../externs/js/out/bin/js.swc" />
+    <condition property="GCL.SWC" value="${FALCONJX_HOME}/../js/libs/GCL.swc" >
+        <available file="${FALCONJX_HOME}/../js/libs/GCL.swc" />
+    </condition>
     <property name="GCL.SWC" value="${FALCONJX_HOME}/../externs/GCL/out/bin/GCL.swc" />
     <property name="target.name" value="HTML-${release.version}.swc" />
     <property name="target.name.no.version" value="HTML.swc" />

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a97af6eb/frameworks/projects/HTML5/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML5/build.xml b/frameworks/projects/HTML5/build.xml
index 11d0829..a316de6 100644
--- a/frameworks/projects/HTML5/build.xml
+++ b/frameworks/projects/HTML5/build.xml
@@ -28,7 +28,13 @@
     <property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
     <property name="FALCON_HOME" value="${env.FALCON_HOME}"/>
     <property name="FALCONJX_HOME" value="${env.FALCONJX_HOME}"/>
+    <condition property="JS.SWC" value="${FALCONJX_HOME}/../js/libs/js.swc" >
+        <available file="${FALCONJX_HOME}/../js/libs/js.swc" />
+    </condition>
     <property name="JS.SWC" value="${FALCONJX_HOME}/../externs/js/out/bin/js.swc" />
+    <condition property="GCL.SWC" value="${FALCONJX_HOME}/../js/libs/GCL.swc" >
+        <available file="${FALCONJX_HOME}/../js/libs/GCL.swc" />
+    </condition>
     <property name="GCL.SWC" value="${FALCONJX_HOME}/../externs/GCL/out/bin/GCL.swc" />
     <property name="target.name" value="HTML5-${release.version}.swc" />
     <property name="target.name.no.version" value="HTML5.swc" />

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a97af6eb/frameworks/projects/JQuery/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/JQuery/build.xml b/frameworks/projects/JQuery/build.xml
index ba3a857..754b23a 100644
--- a/frameworks/projects/JQuery/build.xml
+++ b/frameworks/projects/JQuery/build.xml
@@ -28,9 +28,18 @@
     <property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
     <property name="FALCON_HOME" value="${env.FALCON_HOME}"/>
     <property name="FALCONJX_HOME" value="${env.FALCONJX_HOME}"/>
+    <condition property="JS.SWC" value="${FALCONJX_HOME}/../js/libs/js.swc" >
+        <available file="${FALCONJX_HOME}/../js/libs/js.swc" />
+    </condition>
     <property name="JS.SWC" value="${FALCONJX_HOME}/../externs/js/out/bin/js.swc" />
-    <property name="JQUERY.SWC" value="${FALCONJX_HOME}/../externs/jquery/out/bin/jquery-1.9.swc" />
+    <condition property="GCL.SWC" value="${FALCONJX_HOME}/../js/libs/GCL.swc" >
+        <available file="${FALCONJX_HOME}/../js/libs/GCL.swc" />
+    </condition>
     <property name="GCL.SWC" value="${FALCONJX_HOME}/../externs/GCL/out/bin/GCL.swc" />
+    <condition property="JQUERY.SWC" value="${FALCONJX_HOME}/../js/libs/jquery.swc" >
+        <available file="${FALCONJX_HOME}/../js/libs/jquery.swc" />
+    </condition>
+    <property name="JQUERY.SWC" value="${FALCONJX_HOME}/../externs/jquery/out/bin/jquery-1.9.swc" />
     <property name="target.name" value="JQuery-${release.version}.swc" />
     <property name="target.name.no.version" value="JQuery.swc" />
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a97af6eb/frameworks/projects/Mobile/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Mobile/build.xml b/frameworks/projects/Mobile/build.xml
index 9666013..3def2bf 100644
--- a/frameworks/projects/Mobile/build.xml
+++ b/frameworks/projects/Mobile/build.xml
@@ -28,7 +28,13 @@
     <property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
     <property name="FALCON_HOME" value="${env.FALCON_HOME}"/>
     <property name="FALCONJX_HOME" value="${env.FALCONJX_HOME}"/>
+    <condition property="JS.SWC" value="${FALCONJX_HOME}/../js/libs/js.swc" >
+        <available file="${FALCONJX_HOME}/../js/libs/js.swc" />
+    </condition>
     <property name="JS.SWC" value="${FALCONJX_HOME}/../externs/js/out/bin/js.swc" />
+    <condition property="GCL.SWC" value="${FALCONJX_HOME}/../js/libs/GCL.swc" >
+        <available file="${FALCONJX_HOME}/../js/libs/GCL.swc" />
+    </condition>
     <property name="GCL.SWC" value="${FALCONJX_HOME}/../externs/GCL/out/bin/GCL.swc" />
     <property name="target.name" value="Mobile-${release.version}.swc" />
     <property name="target.name.no.version" value="Mobile.swc" />

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a97af6eb/frameworks/projects/Network/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Network/build.xml b/frameworks/projects/Network/build.xml
index b7696a2..8a2e7fd 100644
--- a/frameworks/projects/Network/build.xml
+++ b/frameworks/projects/Network/build.xml
@@ -28,7 +28,13 @@
     <property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
     <property name="FALCON_HOME" value="${env.FALCON_HOME}"/>
     <property name="FALCONJX_HOME" value="${env.FALCONJX_HOME}"/>
+    <condition property="JS.SWC" value="${FALCONJX_HOME}/../js/libs/js.swc" >
+        <available file="${FALCONJX_HOME}/../js/libs/js.swc" />
+    </condition>
     <property name="JS.SWC" value="${FALCONJX_HOME}/../externs/js/out/bin/js.swc" />
+    <condition property="GCL.SWC" value="${FALCONJX_HOME}/../js/libs/GCL.swc" >
+        <available file="${FALCONJX_HOME}/../js/libs/GCL.swc" />
+    </condition>
     <property name="GCL.SWC" value="${FALCONJX_HOME}/../externs/GCL/out/bin/GCL.swc" />
     <property name="target.name" value="Network-${release.version}.swc" />
     <property name="target.name.no.version" value="Network.swc" />

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a97af6eb/frameworks/projects/Reflection/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Reflection/build.xml b/frameworks/projects/Reflection/build.xml
index b15f68a..3b5038c 100644
--- a/frameworks/projects/Reflection/build.xml
+++ b/frameworks/projects/Reflection/build.xml
@@ -28,7 +28,13 @@
     <property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
     <property name="FALCON_HOME" value="${env.FALCON_HOME}"/>
     <property name="FALCONJX_HOME" value="${env.FALCONJX_HOME}"/>
+    <condition property="JS.SWC" value="${FALCONJX_HOME}/../js/libs/js.swc" >
+        <available file="${FALCONJX_HOME}/../js/libs/js.swc" />
+    </condition>
     <property name="JS.SWC" value="${FALCONJX_HOME}/../externs/js/out/bin/js.swc" />
+    <condition property="GCL.SWC" value="${FALCONJX_HOME}/../js/libs/GCL.swc" >
+        <available file="${FALCONJX_HOME}/../js/libs/GCL.swc" />
+    </condition>
     <property name="GCL.SWC" value="${FALCONJX_HOME}/../externs/GCL/out/bin/GCL.swc" />
     <property name="target.name" value="Reflection-${release.version}.swc" />
     <property name="target.name.no.version" value="Reflection.swc" />

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a97af6eb/frameworks/projects/Storage/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Storage/build.xml b/frameworks/projects/Storage/build.xml
index 6fc0ed5..66508c1 100644
--- a/frameworks/projects/Storage/build.xml
+++ b/frameworks/projects/Storage/build.xml
@@ -28,8 +28,17 @@
     <property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
     <property name="FALCON_HOME" value="${env.FALCON_HOME}"/>
     <property name="FALCONJX_HOME" value="${env.FALCONJX_HOME}"/>
+    <condition property="JS.SWC" value="${FALCONJX_HOME}/../js/libs/js.swc" >
+        <available file="${FALCONJX_HOME}/../js/libs/js.swc" />
+    </condition>
     <property name="JS.SWC" value="${FALCONJX_HOME}/../externs/js/out/bin/js.swc" />
+    <condition property="GCL.SWC" value="${FALCONJX_HOME}/../js/libs/GCL.swc" >
+        <available file="${FALCONJX_HOME}/../js/libs/GCL.swc" />
+    </condition>
     <property name="GCL.SWC" value="${FALCONJX_HOME}/../externs/GCL/out/bin/GCL.swc" />
+    <condition property="CORDOVA.SWC" value="${FALCONJX_HOME}/../js/libs/cordova.swc" >
+        <available file="${FALCONJX_HOME}/../js/libs/cordova.swc" />
+    </condition>
     <property name="CORDOVA.SWC" value="${FALCONJX_HOME}/../externs/cordova/out/bin/cordova.swc" />
     <property name="target.name" value="Storage-${release.version}.swc" />
     <property name="target.name.no.version" value="Storage.swc" />


[36/43] git commit: [flex-asjs] [refs/heads/e4x] - update rat in releasecandidate.xml

Posted by ha...@apache.org.
update rat in releasecandidate.xml


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

Branch: refs/heads/e4x
Commit: 8009ec0344c590f3f4c60f099e89a8de8eb8ea27
Parents: 4c94b55
Author: Alex Harui <ah...@apache.org>
Authored: Tue Mar 29 21:51:12 2016 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Tue Mar 29 21:51:12 2016 -0700

----------------------------------------------------------------------
 releasecandidate.xml | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/8009ec03/releasecandidate.xml
----------------------------------------------------------------------
diff --git a/releasecandidate.xml b/releasecandidate.xml
index a6e50fb..20f468f 100644
--- a/releasecandidate.xml
+++ b/releasecandidate.xml
@@ -49,9 +49,10 @@
     </condition>
 	
 	<property name="rat.report" value="${basedir}/rat-report.txt"/>
-	<property name="apache.rat.jar" value="apache-rat-0.8.jar" />
-	<property name="apache.rat.tasks.jar" value="apache-rat-tasks-0.8.jar" />
-	<property name="apache.rat.url" value="http://people.apache.org/~aharui/rat" />
+    <property name="apache.rat.jar" value="apache-rat-0.11.jar" />
+    <property name="apache.rat.tasks.jar" value="apache-rat-tasks-0.11.jar" />
+    <property name="apache.rat.url" value="http://search.maven.org/remotecontent?filepath=org/apache/rat/apache-rat/0.11" />
+    <property name="apache.rat.tasks.url" value="http://search.maven.org/remotecontent?filepath=org/apache/rat/apache-rat-tasks/0.11" />
     
 	<property file="${basedir}/local.properties" />
 	<property file="${basedir}/build.properties" />
@@ -192,7 +193,7 @@
 		<get src="${apache.rat.url}/${apache.rat.jar}" dest="${env.ANT_HOME}/lib/${apache.rat.jar}" />
 	</target>
 	<target name="install-rat.tasks.jar" unless="apache.rat.tasks.found">
-		<get src="${apache.rat.url}/${apache.rat.tasks.jar}" dest="${env.ANT_HOME}/lib/${apache.rat.tasks.jar}" />
+        <get src="${apache.rat.tasks.url}/${apache.rat.tasks.jar}" dest="${env.ANT_HOME}/lib/${apache.rat.tasks.jar}" />
 	</target>
 	
     <target name="rat-taskdef" description="Rat taskdef">


[39/43] git commit: [flex-asjs] [refs/heads/e4x] - Add AngularJS + Angular Material example. Need to figure out what to do about the externs swc files.

Posted by ha...@apache.org.
Add AngularJS + Angular Material example.  Need to figure out what to do about the externs swc files.


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

Branch: refs/heads/e4x
Commit: 894b5264e4972b48d6c4bbaa925540c44d48bee8
Parents: e85d9e1
Author: OmPrakash Muppirala <bi...@gmail.com>
Authored: Sat Apr 2 02:55:26 2016 -0700
Committer: OmPrakash Muppirala <bi...@gmail.com>
Committed: Sat Apr 2 02:56:10 2016 -0700

----------------------------------------------------------------------
 .../AngularExample/AngularExample-debug.html    | 28 +++++++++
 .../AngularExample/AngularExample-release.html  | 29 +++++++++
 .../native/AngularExample/src/AngularExample.as | 66 ++++++++++++++++++++
 .../native/AngularExample/src/MyController.as   | 52 +++++++++++++++
 .../src/components/IWebComponent.as             |  9 +++
 .../src/components/WebComponent.as              | 20 ++++++
 .../src/components/mdbutton/MDButton.as         | 43 +++++++++++++
 .../src/components/mdbutton/MDButtonFactory.as  | 38 +++++++++++
 8 files changed, 285 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/894b5264/examples/native/AngularExample/AngularExample-debug.html
----------------------------------------------------------------------
diff --git a/examples/native/AngularExample/AngularExample-debug.html b/examples/native/AngularExample/AngularExample-debug.html
new file mode 100644
index 0000000..51aa820
--- /dev/null
+++ b/examples/native/AngularExample/AngularExample-debug.html
@@ -0,0 +1,28 @@
+<!doctype html>
+<html>
+    <head>
+        <meta charset="utf-8"/>
+        <title>AngularExample Debug Build</title>
+        
+        <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/angular_material/1.0.0/angular-material.min.css">
+        <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
+        
+        <script src="bin/js-debug/library/closure/goog/base.js"></script>
+        <script src="bin/js-debug/AngularExample-dependencies.js"></script>
+        <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
+        
+        <!-- Angular Material requires Angular.js Libraries -->
+		<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
+		<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular-animate.min.js"></script>
+		<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular-aria.min.js"></script>
+		<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular-messages.min.js"></script>
+
+  <!-- Angular Material Library -->
+  <script src="http://ajax.googleapis.com/ajax/libs/angular_material/1.0.0/angular-material.min.js"></script>
+    </head>
+    <body>
+        <script>
+            new AngularExample();
+        </script>
+    </body>
+</html>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/894b5264/examples/native/AngularExample/AngularExample-release.html
----------------------------------------------------------------------
diff --git a/examples/native/AngularExample/AngularExample-release.html b/examples/native/AngularExample/AngularExample-release.html
new file mode 100644
index 0000000..8d329be
--- /dev/null
+++ b/examples/native/AngularExample/AngularExample-release.html
@@ -0,0 +1,29 @@
+<!doctype html>
+<html>
+    <head>
+        <meta charset="utf-8"/>
+        <title>AngularExample Release Build</title>
+        <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/angular_material/1.0.0/angular-material.min.css">
+        <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
+        
+        <script src="bin/js-debug/library/closure/goog/base.js"></script>
+        <script src="bin/js-debug/AngularExample-dependencies.js"></script>
+        <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
+        
+        <!-- Angular Material requires Angular.js Libraries -->
+		<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
+		<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular-animate.min.js"></script>
+		<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular-aria.min.js"></script>
+		<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular-messages.min.js"></script>
+
+  		<!-- Angular Material Library -->
+  		<script src="http://ajax.googleapis.com/ajax/libs/angular_material/1.0.0/angular-material.min.js"></script>
+  		
+        <script src="bin/js-release/AngularExample.js"></script>
+    </head>
+    <body>
+        <script>
+            new AngularExample();
+        </script>
+    </body>
+</html>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/894b5264/examples/native/AngularExample/src/AngularExample.as
----------------------------------------------------------------------
diff --git a/examples/native/AngularExample/src/AngularExample.as b/examples/native/AngularExample/src/AngularExample.as
new file mode 100644
index 0000000..58517b5
--- /dev/null
+++ b/examples/native/AngularExample/src/AngularExample.as
@@ -0,0 +1,66 @@
+package {
+	import angular.IModule;
+
+	import components.mdbutton.MDButton;
+	import components.mdbutton.MDButtonFactory;
+	/**
+	 * @author omuppirala
+	 */
+	public class AngularExample {
+		
+		private var app:IModule;
+		
+		public function AngularExample() {
+			//set up angular app
+			app = angular.module("app",["ngMaterial"]);
+			app.controller("MyController", ["$scope", "$mdDialog", MyController]);
+			document.body.setAttribute("ng-app", "app");
+			
+			//App container
+			var container:HTMLDivElement = document.createElement('div') as HTMLDivElement;
+			container.style.width = '100%';
+			container.style.height = '100%';
+			container.setAttribute("layout", "row");
+			container.setAttribute("layout-align", "center center");
+			document.body.appendChild(container);
+			
+			//App
+			var div:HTMLDivElement = document.createElement('div') as HTMLDivElement;
+			div.id = 'div';
+			div.style.width = '50%';
+			div.style.height = '50%';
+			div.setAttribute("layout", "column");
+			div.setAttribute("layout-align", "center center");
+			
+			div.setAttribute("ng-controller", "MyController");
+			div.setAttribute("md-whiteframe", "18");
+			div.setAttribute("class", "md-whiteframe-14dp");
+			container.appendChild(div);
+			
+			//App children
+			div.innerHTML = '<h1>FlexJS + Angular + Angular Material Demo</h1>';
+			div.innerHTML += '<span flex />';
+			div.innerHTML += '<md-button id="myBtn" class="md-primary md-raised" ng-click="handleBtnClick()">{{btnLabelStr}}</md-button>';
+//			div.innerHTML += '<md-datepicker ng-model="myDate" md-placeholder="Enter date"></md-datepicker>';
+//			div.innerHTML += '<md-progress-circular md-mode="indeterminate"></md-progress-circular>';
+			div.innerHTML += '<md-input-container class="md-block" flex-gt-sm><label>Change button label...</label><input ng-model="btnLabelStr"></md-input-container>';
+			div.innerHTML += '<span flex />';
+
+//			var labelButtonClass:Object = MDButtonFactory.getInstance().getButtonClass();
+//			var labelButton:MDButton = new labelButtonClass();
+//			labelButton.setAttribute("class", "md-primary md-raised");
+//			div.appendChild(labelButton);
+//			labelButton.setLabel("Label Button");
+			
+//			var cakeButtonClass:Object = MDButtonFactory.getInstance().getButtonClass();
+//			var cakeButton:MDButton = new cakeButtonClass();
+//			cakeButton.setAttribute("class", "md-fab");
+//			//cakeButton.setAttribute("md-no-ink", "");
+//			div.appendChild(cakeButton);
+//			cakeButton.setIcon("cake");
+//			cakeButton.clickHandler("handleBtnClick");
+			
+		}
+
+	}
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/894b5264/examples/native/AngularExample/src/MyController.as
----------------------------------------------------------------------
diff --git a/examples/native/AngularExample/src/MyController.as b/examples/native/AngularExample/src/MyController.as
new file mode 100644
index 0000000..a38c0cd
--- /dev/null
+++ b/examples/native/AngularExample/src/MyController.as
@@ -0,0 +1,52 @@
+package {
+	import angular.material.MDAlertDialog;
+	import angular.material.MDDialogService;
+	import angular.IScope;
+	/**
+	 * @author omuppirala
+	 */
+	 
+	public class MyController {
+		
+		private var $scope:IScope;
+		private var $mdDialog:MDDialogService;
+		
+		public function MyController(scope:IScope,mdDialog:MDDialogService) {
+			this.$scope = scope;
+			this.$mdDialog = mdDialog;
+			this.$scope["handleBtnClick"] = this.handleBtnClick;
+			this.$scope["close"] = this.close;
+			this.$scope["myDate"] = new Date();
+			this.$scope["btnLabelStr"] = "Click me";
+
+			//setupWatchForDate();
+		}
+
+		private function setupWatchForDate() : void {
+			$scope.$watch('myDate', this.handleDateChange,true);
+		}
+
+		private function handleDateChange() : void {
+			alert('Date selected: ' + $scope["myDate"].toString());
+		}
+		
+		public function handleBtnClick(event:Event):void
+		{
+			$mdDialog.show(
+			{
+				scope: $scope,
+				preserveScope: true,
+      			//template: '<div style="margin:25px;"><img src="http://flex.apache.org/images/logo_01_fullcolor-sm.png" alt=""/><h1 md-heading">Angular Material</h1><img src="https://material.angularjs.org/latest/img/icons/angular-logo.svg" alt=""/><div layout="row"><span flex/><md-button ng-click=close()>CLOSE</md-button></div></div>',
+      			template: '<div layout="column" layout-align="left center" style="width:500px; height:500px; margin:25px;"><h3>Select a date: </h3><md-datepicker ng-model="myDate" md-placeholder="Enter date"></md-datepicker><br>Selected date: {{myDate}}<span flex/><div layout="row"><span flex/><md-button ng-click=close()>CLOSE</md-button></div></div>',
+			    clickOutsideToClose: true,
+				openFrom: angular.element(document.querySelector('#myBtn')),
+				closeTo: angular.element(document.querySelector('#myBtn'))
+		    });
+		}
+		
+		private function close():void
+		{
+			$mdDialog.cancel();
+		}
+	}
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/894b5264/examples/native/AngularExample/src/components/IWebComponent.as
----------------------------------------------------------------------
diff --git a/examples/native/AngularExample/src/components/IWebComponent.as b/examples/native/AngularExample/src/components/IWebComponent.as
new file mode 100644
index 0000000..47f3cf2
--- /dev/null
+++ b/examples/native/AngularExample/src/components/IWebComponent.as
@@ -0,0 +1,9 @@
+package components {
+	/**
+	 * @author omuppirala
+	 */
+	public interface IWebComponent {
+		
+		function setupComponent():void;
+	}
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/894b5264/examples/native/AngularExample/src/components/WebComponent.as
----------------------------------------------------------------------
diff --git a/examples/native/AngularExample/src/components/WebComponent.as b/examples/native/AngularExample/src/components/WebComponent.as
new file mode 100644
index 0000000..bb90d73
--- /dev/null
+++ b/examples/native/AngularExample/src/components/WebComponent.as
@@ -0,0 +1,20 @@
+package components {
+	import components.IWebComponent;
+
+	/**
+	 * @author omuppirala
+	 */
+	public class WebComponent extends HTMLElement implements IWebComponent {
+
+		protected var sr : ShadowRoot;
+
+		public function createdCallback() : void {
+			sr = this['createShadowRoot']();
+			setupComponent();
+		}
+
+		public function setupComponent() : void {
+			//override in subclass
+		}
+	}
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/894b5264/examples/native/AngularExample/src/components/mdbutton/MDButton.as
----------------------------------------------------------------------
diff --git a/examples/native/AngularExample/src/components/mdbutton/MDButton.as b/examples/native/AngularExample/src/components/mdbutton/MDButton.as
new file mode 100644
index 0000000..bb1a9f6
--- /dev/null
+++ b/examples/native/AngularExample/src/components/mdbutton/MDButton.as
@@ -0,0 +1,43 @@
+package components.mdbutton {
+	import components.WebComponent;
+	/**
+	 * @author omuppirala
+	 */
+	public class MDButton extends WebComponent
+	{
+		
+		protected var label:Text;
+		protected var iconSpan:HTMLSpanElement;
+		override public function setupComponent():void {
+			createLabel();
+			createIcon();
+		}
+		
+		protected function createLabel():void
+		{
+			label = ownerDocument.createTextNode("");
+    		sr.appendChild(Node(label));
+		}
+		
+		public function setLabel(labelStr:String):void {
+			this.textContent = labelStr;
+		}
+		
+		protected function createIcon():void
+		{
+			iconSpan = ownerDocument.createElement("span") as HTMLSpanElement;
+			iconSpan.setAttribute("class","material-icons");
+    		this.appendChild(iconSpan);
+		}
+		
+		public function setIcon(iconName:String):void {
+			iconSpan.textContent = iconName;
+		}
+		
+		public function clickHandler(functionName:String):void
+		{
+			this.setAttribute("ng-click", functionName+"()");
+		}
+		
+	}
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/894b5264/examples/native/AngularExample/src/components/mdbutton/MDButtonFactory.as
----------------------------------------------------------------------
diff --git a/examples/native/AngularExample/src/components/mdbutton/MDButtonFactory.as b/examples/native/AngularExample/src/components/mdbutton/MDButtonFactory.as
new file mode 100644
index 0000000..e145a48
--- /dev/null
+++ b/examples/native/AngularExample/src/components/mdbutton/MDButtonFactory.as
@@ -0,0 +1,38 @@
+package components.mdbutton {
+	public class MDButtonFactory {
+		private static var _instance : MDButtonFactory;
+		protected var elementName : String = "md-button";
+		protected var baseComponent : Object = MDButton;
+		protected var componentClass : Object;
+		protected var alreadyRegistered: Boolean = false;
+
+		public function MDButtonFactory() {
+			if (_instance) {
+				throw new Error("MDButtonFactory is a singleton. Use getInstance instead.");
+			}
+			_instance = this;
+		}
+
+		public static function	getInstance() : MDButtonFactory {
+			if (!_instance) {
+				new MDButtonFactory();
+			}
+			return _instance;
+		}
+		
+		protected function registerComponent() : void {
+			if(!alreadyRegistered)
+			{
+				var classProto:Object = Object["create"](components.mdbutton.MDButton['prototype']);
+				componentClass = document["registerElement"](elementName, {'prototype':classProto});
+				alreadyRegistered = true;
+			}
+		}
+		
+		public function getButtonClass():Object
+		{
+			registerComponent();
+			return componentClass;	
+		}
+	}
+}


[14/43] git commit: [flex-asjs] [refs/heads/e4x] - Added ToggleSwitch UI control to Mobile project.

Posted by ha...@apache.org.
Added ToggleSwitch UI control to Mobile project.


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

Branch: refs/heads/e4x
Commit: 1c4d36c086434d36f05e54588e1bdb55fe755fd7
Parents: 1c69a39
Author: Peter Ent <pe...@apache.org>
Authored: Wed Mar 9 16:21:19 2016 -0500
Committer: Peter Ent <pe...@apache.org>
Committed: Wed Mar 9 16:21:19 2016 -0500

----------------------------------------------------------------------
 .../projects/HTML/src/main/flex/HTMLClasses.as  |   2 +-
 .../Mobile/src/main/flex/MobileClasses.as       |   3 +
 .../flex/org/apache/flex/mobile/ToggleSwitch.as | 105 +++++++++++
 .../flex/mobile/beads/ToggleSwitchView.as       | 180 +++++++++++++++++++
 .../controllers/ToggleSwitchMouseController.as  | 120 +++++++++++++
 .../src/main/resources/basic-manifest.xml       |   1 +
 .../Mobile/src/main/resources/defaults.css      |   9 +
 7 files changed, 419 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1c4d36c0/frameworks/projects/HTML/src/main/flex/HTMLClasses.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/flex/HTMLClasses.as b/frameworks/projects/HTML/src/main/flex/HTMLClasses.as
index e5171d4..ad3ba4b 100644
--- a/frameworks/projects/HTML/src/main/flex/HTMLClasses.as
+++ b/frameworks/projects/HTML/src/main/flex/HTMLClasses.as
@@ -107,9 +107,9 @@ internal class HTMLClasses
 	}
 	import org.apache.flex.html.beads.models.TextModel; TextModel;
     import org.apache.flex.html.beads.models.TitleBarModel; TitleBarModel;
+	import org.apache.flex.html.beads.models.ToggleButtonModel; ToggleButtonModel;
 	COMPILE::AS3
 	{
-		import org.apache.flex.html.beads.models.ToggleButtonModel; ToggleButtonModel;
 		import org.apache.flex.html.beads.models.ValueToggleButtonModel; ValueToggleButtonModel;
 	}
 	import org.apache.flex.html.beads.models.ViewportModel; ViewportModel;

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1c4d36c0/frameworks/projects/Mobile/src/main/flex/MobileClasses.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Mobile/src/main/flex/MobileClasses.as b/frameworks/projects/Mobile/src/main/flex/MobileClasses.as
index 5a85f94..b1e6dae 100644
--- a/frameworks/projects/Mobile/src/main/flex/MobileClasses.as
+++ b/frameworks/projects/Mobile/src/main/flex/MobileClasses.as
@@ -29,10 +29,13 @@ internal class MobileClasses
 {	
 	import org.apache.flex.mobile.ManagerBase; ManagerBase;
 	
+	import org.apache.flex.mobile.ToggleSwitch; ToggleSwitch;
 	import org.apache.flex.mobile.ViewManagerBase; ViewManagerBase;
 	import org.apache.flex.mobile.beads.StackedViewManagerView; StackedViewManagerView;
 	import org.apache.flex.mobile.beads.TabbedViewManagerView; TabbedViewManagerView;
 	import org.apache.flex.mobile.beads.ViewManagerView; ViewManagerView;
+	import org.apache.flex.mobile.beads.ToggleSwitchView; ToggleSwitchView;
+	import org.apache.flex.mobile.beads.controllers.ToggleSwitchMouseController; ToggleSwitchMouseController;
 	import org.apache.flex.mobile.chrome.NavigationBar; NavigationBar;
 	import org.apache.flex.mobile.chrome.TabBar; TabBar;
 	import org.apache.flex.mobile.chrome.ToolBar; ToolBar;

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1c4d36c0/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/ToggleSwitch.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/ToggleSwitch.as b/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/ToggleSwitch.as
new file mode 100644
index 0000000..e5f83fb
--- /dev/null
+++ b/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/ToggleSwitch.as
@@ -0,0 +1,105 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.mobile
+{
+	import org.apache.flex.core.IBead;
+	import org.apache.flex.core.IBeadController;
+	import org.apache.flex.core.IToggleButtonModel;
+	import org.apache.flex.core.UIBase;
+	import org.apache.flex.core.ValuesManager;
+	
+	/**
+	 * The ToggleSwitch is a UI control that displays on/off or yes/no states.
+	 *  
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.6
+	 *  @productversion FlexJS 0.0
+	 */
+	public class ToggleSwitch extends UIBase
+	{
+		/**
+		 * Constructor
+		 *  
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		public function ToggleSwitch()
+		{
+			super();
+			
+			COMPILE::JS {
+				setWidthAndHeight(40.0, 25.0, false);
+			}
+		}
+		
+		[Bindable("change")]
+		/**
+		 *  <code>true</code> if the switch is selected.
+		 *  
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		public function get selected():Boolean
+		{
+			return IToggleButtonModel(model).selected;
+		}
+		
+		/**
+		 *  @private
+		 */
+		public function set selected(value:Boolean):void
+		{
+			IToggleButtonModel(model).selected = value;
+		}
+		
+		private var _controller:IBeadController;
+        
+        /**
+         *  Get the controller for the view.
+         * 
+         *  @flexjsignorecoercion Class
+         *  
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion FlexJS 0.0
+         */
+		public function get controller():IBeadController
+		{
+			if (_controller == null) {
+				_controller = getBeadByType(IBeadController) as IBeadController;
+				if (_controller == null) {
+                    var c:Class = ValuesManager.valuesImpl.getValue(this, "iBeadController") as Class;
+					_controller = new c() as IBeadController;
+					addBead(_controller);
+				}
+			}
+			return _controller;
+		}
+		public function set controller(value:IBeadController):void
+		{
+			_controller = value;
+		}
+	}
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1c4d36c0/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/beads/ToggleSwitchView.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/beads/ToggleSwitchView.as b/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/beads/ToggleSwitchView.as
new file mode 100644
index 0000000..fe35d45
--- /dev/null
+++ b/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/beads/ToggleSwitchView.as
@@ -0,0 +1,180 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.mobile.beads
+{	
+	import org.apache.flex.core.IStrand;
+	import org.apache.flex.core.IBeadView;
+	import org.apache.flex.core.IToggleButtonModel;
+	import org.apache.flex.core.IUIBase;
+	import org.apache.flex.core.UIBase;
+	import org.apache.flex.core.graphics.Rect;
+	import org.apache.flex.core.graphics.SolidColor;
+	import org.apache.flex.core.graphics.SolidColorStroke;
+	import org.apache.flex.events.Event;
+	
+	/**
+	 * The ToggleSwitchView creates the element used to display the ToggleSwitch
+	 * interface.
+	 *  
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.6
+	 *  @productversion FlexJS 0.0
+	 */
+	public class ToggleSwitchView implements IBeadView
+	{
+		/**
+		 * Constructor.
+		 *  
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		public function ToggleSwitchView()
+		{
+			super();
+		}
+		
+		/**
+		 * @private
+		 */
+		public var boundingBox:Rect;
+		
+		/**
+		 * @private
+		 */
+		public var actualSwitch:Rect;
+		
+		/**
+		 * @private
+		 */
+		public function get host():IUIBase
+		{
+			return _strand as IUIBase;
+		}
+		public function set host(value:IUIBase):void
+		{
+			// not implemented; getter only.
+		}
+		
+		private var _strand:IStrand;
+		
+		/**
+		 * @private
+		 */
+		public function get strand():IStrand
+		{
+			return _strand;
+		}
+		public function set strand(value:IStrand):void
+		{
+			_strand = value;
+			UIBase(_strand).addEventListener("sizeChanged", sizeChangedHandler);
+			UIBase(_strand).addEventListener("widthChanged", sizeChangedHandler);
+			UIBase(_strand).addEventListener("heightChanged", sizeChangedHandler);
+			
+			var model:IToggleButtonModel = value.getBeadByType(IToggleButtonModel) as IToggleButtonModel;
+			model.addEventListener("selectedChange", toggleChangedHandler);
+			
+			boundingBox = new Rect();
+			UIBase(host).addElement(boundingBox, false);
+			
+			actualSwitch = new Rect();
+			UIBase(host).addElement(actualSwitch, false);
+			
+			layoutChromeElements();
+		}
+		
+		/**
+		 * @private
+		 */
+		protected function toggleChangedHandler(event:Event):void
+		{
+			layoutChromeElements();
+		}
+		
+		/**
+		 * @private
+		 */
+		protected function sizeChangedHandler(event:Event):void
+		{
+			layoutChromeElements();
+		}
+		
+		/**
+		 * @private
+		 */
+		protected function layoutChromeElements():void
+		{
+			sizeViewsToFitContentArea();
+		}
+		
+		/**
+		 * @private
+		 */
+		protected function sizeViewsToFitContentArea():void
+		{
+			var model:IToggleButtonModel = _strand.getBeadByType(IToggleButtonModel) as IToggleButtonModel;
+			
+			boundingBox.x = 0;
+			boundingBox.y = 0;
+			boundingBox.setWidthAndHeight(host.width, host.height, false);
+			
+			actualSwitch.y = 2;
+			actualSwitch.setWidthAndHeight(host.width/2 - 2, host.height-4, false);
+			
+			var fill:SolidColor = new SolidColor();
+			fill.alpha = 2.0;
+			
+			var switchFill:SolidColor = new SolidColor();
+			switchFill.alpha = 1.0;
+			switchFill.color = 0xFFFFFF;
+			actualSwitch.fill = switchFill;
+			
+			var border:SolidColorStroke = new SolidColorStroke();
+			border.alpha = 1.0;
+			border.color = 0x333333;
+			border.weight = 1.0;
+			
+			boundingBox.stroke = border;
+			actualSwitch.stroke = border;
+			
+			if (model.selected) {
+				actualSwitch.x = host.width / 2;
+				fill.color = 0x00DD00;
+				boundingBox.fill = fill;
+			} else {
+				actualSwitch.x = 2;
+				fill.color = 0xFFFFFF;
+				boundingBox.fill = fill;
+			}
+
+			COMPILE::AS3 {
+				boundingBox.drawRect(0, 0, boundingBox.width, boundingBox.height);
+				actualSwitch.drawRect(0, 0, actualSwitch.width, actualSwitch.height);
+			}
+			COMPILE::JS {
+				boundingBox.drawRect(0, 0, boundingBox.width, boundingBox.height);
+				actualSwitch.drawRect(actualSwitch.x, actualSwitch.y, actualSwitch.width, actualSwitch.height);
+			}
+			
+		}
+	}
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1c4d36c0/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/beads/controllers/ToggleSwitchMouseController.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/beads/controllers/ToggleSwitchMouseController.as b/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/beads/controllers/ToggleSwitchMouseController.as
new file mode 100644
index 0000000..d67f14d
--- /dev/null
+++ b/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/beads/controllers/ToggleSwitchMouseController.as
@@ -0,0 +1,120 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.mobile.beads.controllers
+{
+	import org.apache.flex.core.IBeadController;
+	import org.apache.flex.core.IToggleButtonModel;
+	import org.apache.flex.core.IStrand;
+	import org.apache.flex.core.IBeadView;
+	import org.apache.flex.core.UIBase;
+	import org.apache.flex.events.Event;
+	import org.apache.flex.events.IEventDispatcher;
+	import org.apache.flex.events.MouseEvent;
+	import org.apache.flex.mobile.beads.ToggleSwitchView;
+    COMPILE::JS
+    {
+        import goog.events;
+        import goog.events.EventType;
+    }
+	
+	/**
+	 *  The ToggleSwitchMouseController bead handles mouse events on the 
+	 *  ToggleSwitch, allowing the user to use the mouse to change the
+	 *  state of the ToggleSwitch.
+	 *  
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.6
+	 *  @productversion FlexJS 0.0
+	 */
+	public class ToggleSwitchMouseController implements IBeadController
+	{
+		/**
+		 *  Constructor.
+		 *  
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		public function ToggleSwitchMouseController()
+		{
+		}
+		
+		private var model:IToggleButtonModel;
+		
+		private var _strand:IStrand;
+		
+		/**
+		 *  @copy org.apache.flex.core.IBead#strand
+		 *  
+		 *  @flexjsignorecoercion org.apache.flex.html.Spinner
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		public function set strand(value:IStrand):void
+		{
+			_strand = value;
+			
+			model = UIBase(value).model as IToggleButtonModel;
+			
+            COMPILE::AS3
+            {
+                var viewBead:ToggleSwitchView = value.getBeadByType(IBeadView) as ToggleSwitchView;
+                viewBead.boundingBox.addEventListener(MouseEvent.CLICK, asClickHandler);
+				viewBead.actualSwitch.addEventListener(MouseEvent.CLICK, asClickHandler);
+            }
+            
+            COMPILE::JS
+            {
+				var viewBead:ToggleSwitchView = value.getBeadByType(IBeadView) as ToggleSwitchView;
+				
+				goog.events.listen(viewBead.boundingBox.element, goog.events.EventType.CLICK,
+					jsClickHandler);
+				goog.events.listen(viewBead.actualSwitch.element, goog.events.EventType.CLICK,
+					jsClickHandler);
+
+            }
+		}
+		
+		/**
+		 * @private
+		 */
+		COMPILE::AS3
+		private function asClickHandler( event:MouseEvent ) : void
+		{
+			var oldValue:Boolean = model.selected;
+			model.selected = !oldValue;
+			IEventDispatcher(_strand).dispatchEvent(new Event("valueChanged"));
+		}
+        
+		/**
+		 * @private
+		 */
+		COMPILE::JS
+		private function jsClickHandler( event:Event ) : void
+		{
+			var oldValue:Boolean = model.selected;
+			model.selected = !oldValue;
+			IEventDispatcher(_strand).dispatchEvent(new Event("valueChanged"));
+		}
+	}
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1c4d36c0/frameworks/projects/Mobile/src/main/resources/basic-manifest.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Mobile/src/main/resources/basic-manifest.xml b/frameworks/projects/Mobile/src/main/resources/basic-manifest.xml
index 4f54235..a70352f 100644
--- a/frameworks/projects/Mobile/src/main/resources/basic-manifest.xml
+++ b/frameworks/projects/Mobile/src/main/resources/basic-manifest.xml
@@ -26,4 +26,5 @@
     <component id="NavigationBar" class="org.apache.flex.mobile.chrome.NavigationBar" />
     <component id="ToolBar" class="org.apache.flex.mobile.chrome.ToolBar" />
     <component id="TabBar" class="org.apache.flex.mobile.chrome.TabBar" />
+    <component id="ToggleSwitch" class="org.apache.flex.mobile.ToggleSwitch" />
 </componentPackage>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1c4d36c0/frameworks/projects/Mobile/src/main/resources/defaults.css
----------------------------------------------------------------------
diff --git a/frameworks/projects/Mobile/src/main/resources/defaults.css b/frameworks/projects/Mobile/src/main/resources/defaults.css
index d529595..c1e2828 100644
--- a/frameworks/projects/Mobile/src/main/resources/defaults.css
+++ b/frameworks/projects/Mobile/src/main/resources/defaults.css
@@ -31,3 +31,12 @@ TabbedViewManager
 	IBeadModel: ClassReference("org.apache.flex.mobile.models.ViewManagerModel");
 	IBeadView:  ClassReference("org.apache.flex.mobile.beads.TabbedViewManagerView");
 }
+
+ToggleSwitch
+{
+	IBeadModel: ClassReference("org.apache.flex.html.beads.models.ToggleButtonModel");
+	IBeadView:  ClassReference("org.apache.flex.mobile.beads.ToggleSwitchView");		
+	IBeadController: ClassReference("org.apache.flex.mobile.beads.controllers.ToggleSwitchMouseController");
+	width: 40px;
+	height: 25px;
+}


[20/43] git commit: [flex-asjs] [refs/heads/e4x] - header

Posted by ha...@apache.org.
header


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

Branch: refs/heads/e4x
Commit: e701358539dc118a95d193487aa40503a3968ead
Parents: 9dfef27
Author: Alex Harui <ah...@apache.org>
Authored: Fri Mar 11 14:56:40 2016 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Mar 11 14:56:40 2016 -0800

----------------------------------------------------------------------
 .../src/main/flex/google/maps/MouseEvent.as      | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e7013585/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MouseEvent.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MouseEvent.as b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MouseEvent.as
index f06d7c5..4b0849b 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MouseEvent.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/google/maps/MouseEvent.as
@@ -1,3 +1,22 @@
+/*
+ * Copyright 2010 The Closure Compiler Authors.
+ *
+ * Licensed 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.
+ */
+/*
+ * This file was generated from Google's Externs for the Google Maps v3.11 API.
+ * Modifications may have been implemented at the Apache Software Foundation.
+ */
 package google.maps {
 
 /**


[22/43] git commit: [flex-asjs] [refs/heads/e4x] - Added file streaming input and output to FlexJS Storage project.

Posted by ha...@apache.org.
Added file streaming input and output to FlexJS Storage project.


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

Branch: refs/heads/e4x
Commit: dcf3b3b95388b86060c85cd01398eb98e1a17db6
Parents: 3cab6cf
Author: Peter Ent <pe...@apache.org>
Authored: Mon Mar 14 17:15:08 2016 -0400
Committer: Peter Ent <pe...@apache.org>
Committed: Mon Mar 14 17:15:08 2016 -0400

----------------------------------------------------------------------
 .../StorageExample/src/MyInitialView.mxml       | 158 +++++++++++++++---
 .../Storage/src/main/flex/StorageClasses.as     |   8 +-
 .../apache/flex/storage/IPermanentStorage.as    |  28 ++++
 .../org/apache/flex/storage/PermanentStorage.as |  34 ++++
 .../flex/storage/events/FileErrorEvent.as       |  80 +++++++++
 .../org/apache/flex/storage/events/FileEvent.as |  84 ++++++++++
 .../apache/flex/storage/events/FileReadEvent.as |  70 --------
 .../flex/storage/events/FileWriteEvent.as       |  60 -------
 .../apache/flex/storage/file/DataInputStream.as | 146 ++++++++++++++++
 .../flex/storage/file/DataOutputStream.as       | 165 +++++++++++++++++++
 .../org/apache/flex/storage/file/IDataInput.as  |  32 ++++
 .../org/apache/flex/storage/file/IDataOutput.as |  32 ++++
 .../org/apache/flex/storage/file/IDataStream.as |  32 ++++
 .../storage/providers/AirStorageProvider.as     | 106 +++++++++++-
 .../providers/IPermanentStorageProvider.as      |  28 ++++
 .../storage/providers/WebStorageProvider.as     | 116 +++++++++++--
 16 files changed, 1001 insertions(+), 178 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dcf3b3b9/examples/flexjs/StorageExample/src/MyInitialView.mxml
----------------------------------------------------------------------
diff --git a/examples/flexjs/StorageExample/src/MyInitialView.mxml b/examples/flexjs/StorageExample/src/MyInitialView.mxml
index 2bb6b7a..0717fcd 100644
--- a/examples/flexjs/StorageExample/src/MyInitialView.mxml
+++ b/examples/flexjs/StorageExample/src/MyInitialView.mxml
@@ -24,39 +24,88 @@ limitations under the License.
     <fx:Script>
         <![CDATA[			
 			import org.apache.flex.storage.PermanentStorage;
-			import org.apache.flex.storage.events.FileReadEvent;
-			import org.apache.flex.storage.events.FileWriteEvent;
+			import org.apache.flex.storage.events.FileEvent;
+			import org.apache.flex.storage.events.FileErrorEvent;
+			import org.apache.flex.storage.file.IDataInput;
+			import org.apache.flex.storage.file.IDataOutput;
 			
 			private function startup():void
 			{
 				trace("Starting up");
 			}
 			
+			// READING - PLAIN
+			
 			private function onRead():void
 			{
 				var storage:PermanentStorage = new PermanentStorage();
 				
 				var useFile:String = readFileNameField.text;
 				
-				storage.addEventListener("COMPLETE", handleRead);
+				storage.addEventListener("READ", handleRead);
 				storage.addEventListener("ERROR", handleRead);
 				storage.readTextFromDataFile( useFile );
 			}
 			
-			private function handleRead(event:FileReadEvent):void
+			private function handleRead(event:FileEvent):void
 			{
-				trace("Read event type: "+event.type);
-				if (event.type == "ERROR") {
-					status.text = "Error: "+event.errorMessage;
-					readContent.text = "";
-				}
-				else {
-					trace(event.data);
-					status.text = "Read Success!";
-					readContent.text = String(event.data);
-				}
+				trace(event.data);
+				status.text = "Read Success!";
+				readContent.text = String(event.data);
+			}
+			
+			private function handleReadError(event:FileErrorEvent):void
+			{
+				status.text = "Error: "+event.errorMessage;
+				readContent.text = "";
+			}
+			
+			// READING - STREAM
+			
+			private function onReadStream():void
+			{
+				var storage:PermanentStorage = new PermanentStorage();
+				var useFile:String = readFileNameField.text;
+				
+				storage.addEventListener("READY", handleReadStreamReady);
+				storage.addEventListener("READ", handleReadStreamData);
+				storage.addEventListener("COMPLETE", handleReadStreamComplete);
+				storage.addEventListener("ERROR", handleReadStreamError);
+				storage.openInputDataStream(useFile);
 			}
 			
+			private function handleReadStreamReady(event:FileEvent):void
+			{
+				trace("INPUT STREAM READY");
+				
+				status.text = "Input stream ready";
+				
+				var stream:IDataInput = event.stream as IDataInput;
+				stream.readText();
+			}
+			
+			private function handleReadStreamData(event:FileEvent):void
+			{
+				trace("INPUT STREAM DATA.");
+				var stream:IDataInput = event.stream as IDataInput;
+				
+				status.text = "Input stream reading";
+				readContent.text = String(event.data);
+			}
+			
+			private function handleReadStreamComplete(event:FileEvent):void
+			{
+				trace("INPUT STREAM CLOSED");
+				status.text = "Input stream closed";
+			}
+			
+			private function handleReadStreamError(event:FileErrorEvent):void
+			{
+				status.text = event.errorMessage;
+			}
+			
+			// SAVING - PLAIN
+			
 			private function onSave():void
 			{
 				var storage:PermanentStorage = new PermanentStorage();
@@ -65,18 +114,75 @@ limitations under the License.
 				var useFile:String = writeFileNameField.text;
 				var useContent:String = today.toString() + " " + contentField.text;
 				
-				storage.addEventListener("COMPLETE", handleSave);
+				storage.addEventListener("WRITE", handleSave);
 				storage.writeTextToDataFile(useFile, useContent);
 			}
 			
-			private function handleSave(event:FileWriteEvent):void
+			private function handleSave(event:FileEvent):void
+			{
+				status.text = "Write Success!";
+			}
+			
+			private function handleSaveError(event:FileErrorEvent):void
+			{
+				status.text = "Error: "+event.errorMessage;
+			}
+			
+			// SAVING - STREAM
+						
+			private var writeCount:Number = 0;
+			
+			private function onSaveStream():void
+			{
+				var storage:PermanentStorage = new PermanentStorage();
+				var useFile:String = writeFileNameField.text;
+				
+				storage.addEventListener("READY", handleSaveStreamReady);
+				storage.addEventListener("WRITE", handleSaveStreamData);
+				storage.addEventListener("COMPLETE", handleSaveStreamComplete);
+				storage.addEventListener("ERROR", handleSaveStreamError);
+				storage.openOutputDataStream(useFile);
+			}
+			
+			private function handleSaveStreamReady(event:FileEvent):void
 			{
-				if (event.type == "ERROR") {
-					status.text = "Error: "+event.errorMessage;
-				} else {
-					status.text = "Write Success!";
+				writeCount = 3;
+				trace("OUTPUT STREAM READY");
+				
+				status.text = "Output stream ready";
+				var today:Date = new Date();
+				var useContent:String = "("+String(writeCount)+") "+today.toString() + " " + contentField.text + "\n";
+				
+				var stream:IDataOutput = event.stream as IDataOutput;
+				stream.writeText(useContent);
+			}
+			
+			private function handleSaveStreamData(event:FileEvent):void
+			{
+				trace("OUTPUT STREAM DATA. Count = "+writeCount);
+				var stream:IDataOutput = event.stream as IDataOutput;
+				
+				if (--writeCount == 0) {
+					stream.close();
+				}
+				else {
+					status.text = "Output stream writing";
+					var today:Date = new Date();
+					var useContent:String = "("+String(writeCount)+") "+today.toString() + " " + contentField.text + "\n";
+					stream.writeText(useContent);
 				}
 			}
+			
+			private function handleSaveStreamComplete(event:FileEvent):void
+			{
+				trace("OUTPUT STREAM CLOSED");
+				status.text = "Output stream closed";
+			}
+			
+			private function handleSaveStreamError(event:FileErrorEvent):void
+			{
+				status.text = event.errorMessage;
+			}
 		]]>
     </fx:Script>
 	
@@ -108,7 +214,11 @@ limitations under the License.
 			<js:Label text="Content:" className="labelStyle" />
 			<js:TextInput id="contentField" />
 		</js:HContainer>
-		<js:TextButton text="SAVE" click="onSave()" />
+		<js:HContainer>
+			<js:TextButton text="SAVE" click="onSave()" />
+			<js:Spacer width="10" />
+			<js:TextButton text="SAVE STREAM" click="onSaveStream()" />
+		</js:HContainer>
 		<js:Spacer height="20" />
 		
 		<js:Label id="status" />
@@ -118,7 +228,11 @@ limitations under the License.
 			<js:Label text="Read File Name:" className="labelStyle" />
 			<js:TextInput id="readFileNameField" text="testfile.txt" />
 		</js:HContainer>
-		<js:TextButton text="READ" click="onRead()" />
+		<js:HContainer>
+			<js:TextButton text="READ" click="onRead()" />
+			<js:Spacer width="10" />
+			<js:TextButton text="READ STREAM" click="onReadStream()" />
+		</js:HContainer>
 		<js:HContainer>
 			<js:Label text="Content:" className="labelStyle" />
 		</js:HContainer>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dcf3b3b9/frameworks/projects/Storage/src/main/flex/StorageClasses.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Storage/src/main/flex/StorageClasses.as b/frameworks/projects/Storage/src/main/flex/StorageClasses.as
index 92d9bd4..9fb9ea3 100644
--- a/frameworks/projects/Storage/src/main/flex/StorageClasses.as
+++ b/frameworks/projects/Storage/src/main/flex/StorageClasses.as
@@ -31,11 +31,13 @@ internal class StorageClasses
     import org.apache.flex.storage.providers.LocalStorageProvider; LocalStorageProvider;
 
 	import org.apache.flex.storage.PermanentStorage; PermanentStorage;
-	import org.apache.flex.storage.events.FileReadEvent; FileReadEvent;
-	import org.apache.flex.storage.events.FileWriteEvent; FileWriteEvent;
+	import org.apache.flex.storage.events.FileEvent; FileEvent;
+	import org.apache.flex.storage.events.FileErrorEvent; FileErrorEvent;
+	
+	import org.apache.flex.storage.file.DataInputStream; DataInputStream;
+	import org.apache.flex.storage.file.DataOutputStream; DataOutputStream;
 
 	import org.apache.flex.storage.providers.AirStorageProvider; AirStorageProvider;
-
 	import org.apache.flex.storage.providers.WebStorageProvider; WebStorageProvider;
 
 }

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dcf3b3b9/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/IPermanentStorage.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/IPermanentStorage.as b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/IPermanentStorage.as
index d47866b..d461420 100644
--- a/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/IPermanentStorage.as
+++ b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/IPermanentStorage.as
@@ -59,5 +59,33 @@ package org.apache.flex.storage
 		 *  @productversion FlexJS 0.0
 		 */
 		function writeTextToDataFile( fileName:String, text:String ) : void;
+		
+		/**
+		 * Opens an output stream into a file in the data storage directory. A Ready
+		 * event is dispatched when the stream has been opened. Use the stream to
+		 * write data to the file.
+		 * 
+		 *  @param fileName The name of file.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		function openOutputDataStream( fileName:String ) : void;
+		
+		/**
+		 * Opens an input stream into a file in the data storage directory. A Ready
+		 * event is dispatched when the stream has been opened. Use the stream to
+		 * read data from the file.
+		 * 
+		 *  @param fileName The name of file.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		function openInputDataStream( fileName:String ) : void;
 	}
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dcf3b3b9/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/PermanentStorage.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/PermanentStorage.as b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/PermanentStorage.as
index d1e8887..178dee8 100644
--- a/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/PermanentStorage.as
+++ b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/PermanentStorage.as
@@ -93,5 +93,39 @@ package org.apache.flex.storage
 		{
 			_storageProvider.writeTextToDataFile( fileName, text );
 		}
+		
+		/**
+		 * Opens an output stream into a file in the data storage directory. A Ready
+		 * event is dispatched when the stream has been opened. Use the stream to
+		 * write data to the file.
+		 * 
+		 *  @param fileName The name of file.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		public function openOutputDataStream( fileName:String ) : void
+		{
+			_storageProvider.openOutputDataStream(fileName);
+		}
+		
+		/**
+		 * Opens an input stream into a file in the data storage directory. A Ready
+		 * event is dispatched when the stream has been opened. Use the stream to
+		 * read data from the file.
+		 * 
+		 *  @param fileName The name of file.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		public function openInputDataStream( fileName:String ) : void
+		{
+			_storageProvider.openInputDataStream(fileName);
+		}
 	}
 }

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dcf3b3b9/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/events/FileErrorEvent.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/events/FileErrorEvent.as b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/events/FileErrorEvent.as
new file mode 100644
index 0000000..9491ad2
--- /dev/null
+++ b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/events/FileErrorEvent.as
@@ -0,0 +1,80 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.storage.events
+{
+	import org.apache.flex.events.Event;
+	import org.apache.flex.storage.file.IDataStream;
+	
+	/**
+	 * The FileErrorEvent class is used to signal varies errors that may occur
+	 * while handling a permanent file. 
+	 * 
+	 * ERROR    - A genric error occurred reading or opening the file.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.6
+	 *  @productversion FlexJS 0.0
+	 */
+	public class FileErrorEvent extends Event
+	{
+		/**
+		 * Constructor.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		public function FileErrorEvent(type:String)
+		{
+			super(type);
+		}
+		
+		/**
+		 * Contains the IDataOutput or IDataInput stream on which the error occurred.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		public var stream:IDataStream;
+		
+		/**
+		 * If not null, the error that occurred opening or reading the file.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		public var errorMessage:String;
+		
+		/**
+		 * An error code, if any, associated with the error that triggered this event.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		public var errorCode:Number;
+	}
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dcf3b3b9/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/events/FileEvent.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/events/FileEvent.as b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/events/FileEvent.as
new file mode 100644
index 0000000..423db20
--- /dev/null
+++ b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/events/FileEvent.as
@@ -0,0 +1,84 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.storage.events
+{
+	import org.apache.flex.events.Event;
+	import org.apache.flex.storage.file.IDataStream;
+	
+	/**
+	 * The FileEvent class is used to signal varies events in the life and
+	 * use of permanent files. 
+	 * 
+	 * READY    - The file has been created or opened successfully.
+	 * READ     - Some (or all) of the data has been read.
+	 * WRITE    - Some (or all) of the data has been written.
+	 * COMPLETE - The read or write process has finished and the file is closed.
+	 * ERROR    - An error occurred reading or opening the file.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.6
+	 *  @productversion FlexJS 0.0
+	 */
+	public class FileEvent extends Event
+	{
+		/**
+		 * Constructor.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		public function FileEvent(type:String)
+		{
+			super(type);
+		}
+		
+		/**
+		 * The data read from the file.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		public var data:String;
+		
+		/**
+		 * Contains the IDataOutput or IDataInput stream to use for streaming.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		public var stream:IDataStream;
+		
+		/**
+		 * If not null, the error that occurred opening or reading the file.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		public var errorMessage:String;
+	}
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dcf3b3b9/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/events/FileReadEvent.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/events/FileReadEvent.as b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/events/FileReadEvent.as
deleted file mode 100644
index 528c36b..0000000
--- a/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/events/FileReadEvent.as
+++ /dev/null
@@ -1,70 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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.storage.events
-{
-	import org.apache.flex.events.Event;
-	
-	/**
-	 * The FileReadEvent class is used to signal varies events in the life and
-	 * use of permanent files. 
-	 * 
-	 * COMPLETE - The file has been completely read.
-	 * ERROR    - An error occurred reading or opening the file.
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 10.2
-	 *  @playerversion AIR 2.6
-	 *  @productversion FlexJS 0.0
-	 */
-	public class FileReadEvent extends Event
-	{
-		/**
-		 * Constructor.
-		 *
-		 *  @langversion 3.0
-		 *  @playerversion Flash 10.2
-		 *  @playerversion AIR 2.6
-		 *  @productversion FlexJS 0.0
-		 */
-		public function FileReadEvent(type:String)
-		{
-			super(type);
-		}
-		
-		/**
-		 * The data read from the file.
-		 *
-		 *  @langversion 3.0
-		 *  @playerversion Flash 10.2
-		 *  @playerversion AIR 2.6
-		 *  @productversion FlexJS 0.0
-		 */
-		public var data:String;
-		
-		/**
-		 * If not null, the error that occurred opening or reading the file.
-		 *
-		 *  @langversion 3.0
-		 *  @playerversion Flash 10.2
-		 *  @playerversion AIR 2.6
-		 *  @productversion FlexJS 0.0
-		 */
-		public var errorMessage:String;
-	}
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dcf3b3b9/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/events/FileWriteEvent.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/events/FileWriteEvent.as b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/events/FileWriteEvent.as
deleted file mode 100644
index fea4542..0000000
--- a/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/events/FileWriteEvent.as
+++ /dev/null
@@ -1,60 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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.storage.events
-{
-	import org.apache.flex.events.Event;
-	
-	/**
-	 * The FileWriteEvent class is used to signal varies events in the life and
-	 * use of permanent files. 
-	 * 
-	 * COMPLETE - The file has been successfully written.
-	 * ERROR    - An error occurred writing or opening the file.
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 10.2
-	 *  @playerversion AIR 2.6
-	 *  @productversion FlexJS 0.0
-	 */
-	public class FileWriteEvent extends Event
-	{
-		/**
-		 * Constructor.
-		 *
-		 *  @langversion 3.0
-		 *  @playerversion Flash 10.2
-		 *  @playerversion AIR 2.6
-		 *  @productversion FlexJS 0.0
-		 */
-		public function FileWriteEvent(type:String)
-		{
-			super(type);
-		}
-		
-		/**
-		 * If not null, the error that occurred opening or writing the file.
-		 *
-		 *  @langversion 3.0
-		 *  @playerversion Flash 10.2
-		 *  @playerversion AIR 2.6
-		 *  @productversion FlexJS 0.0
-		 */
-		public var errorMessage:String;
-	}
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dcf3b3b9/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/file/DataInputStream.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/file/DataInputStream.as b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/file/DataInputStream.as
new file mode 100644
index 0000000..369eeb7
--- /dev/null
+++ b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/file/DataInputStream.as
@@ -0,0 +1,146 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.storage.file
+{
+import org.apache.flex.events.EventDispatcher;
+import org.apache.flex.events.IEventDispatcher;
+import org.apache.flex.storage.events.FileEvent;
+
+COMPILE::AS3 {
+	import flash.filesystem.File;
+	import flash.filesystem.FileMode;
+	import flash.filesystem.FileStream;
+	import flash.utils.ByteArray;
+	import flash.errors.IOError;
+}
+
+/**
+ * Instances of the DataInputStream by the storage provider are created when a 
+ * file is opened for input streaming. That is, its contents are read in chunks. 
+ * Events are dispatched when a chunk has been read, if there is an error, and 
+ * when the file has been read completely.
+ * 
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+public class DataInputStream extends EventDispatcher implements IDataInput
+{
+	/**
+	 * Constructor.
+	 *
+	 *  @param target The object to use as the event dispatch target.
+	 *  @param fileHandle A platform-specific handle to the file system
+	 *  @param fileReader A platform-specific handle to the file system
+	 * 
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.6
+	 *  @productversion FlexJS 0.0
+	 */
+	public function DataInputStream(target:IEventDispatcher, fileHandle:Object, fileReader:Object)
+	{
+		super();
+		
+		_target = target;
+		
+		COMPILE::JS {
+			_fileHandle = fileHandle as File;
+			_fileReader = fileReader as FileReader;
+			
+			var self:DataInputStream = this;
+			
+			_fileReader.onloadend = function (e):void {
+				var streamEvent:FileEvent = new FileEvent("READ");
+				streamEvent.stream = self;
+				streamEvent.data = this.result;
+				_target.dispatchEvent(streamEvent);
+				
+				self.close();
+			};
+		}
+			
+		COMPILE::AS3 {
+			_fileHandle = fileHandle as File;
+			_fileReader = fileReader as FileStream;
+		}
+	}
+	
+	/**
+	 * @target
+	 */
+	private var _target:IEventDispatcher;
+	
+	COMPILE::JS {
+		private var _fileHandle:File;
+		private var _fileReader:FileReader;
+	}
+	COMPILE::AS3 {
+		private var _fileHandle:File;
+		private var _fileReader:FileStream;
+	}
+		
+	/**
+	 * Reads a chunk of text. A FileEvent "READ" event is dispatched when
+	 * the chunk is read.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.6
+	 *  @productversion FlexJS 0.0
+	 */
+	public function readText():void
+	{
+		COMPILE::JS {
+			_fileReader.readAsText(_fileHandle);
+		}
+		COMPILE::AS3 {
+			var bytes:ByteArray = new ByteArray();
+			_fileReader.readBytes(bytes);
+			
+			var text:String = new String(bytes);
+			
+			var newEvent:FileEvent = new FileEvent("READ");
+			newEvent.data = text;
+			_target.dispatchEvent(newEvent);
+		}
+	}
+	
+	/**
+	 * Closes the file (and dispatches a FileEvent "COMPLETE" event).
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.6
+	 *  @productversion FlexJS 0.0
+	 */
+	public function close():void
+	{
+		COMPILE::AS3 {
+			_fileReader.close();
+		}
+		
+		var endEvent:FileEvent = new FileEvent("COMPLETE");
+		endEvent.stream = this;
+		_target.dispatchEvent(endEvent);
+	}
+}
+
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dcf3b3b9/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/file/DataOutputStream.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/file/DataOutputStream.as b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/file/DataOutputStream.as
new file mode 100644
index 0000000..e19f4ca
--- /dev/null
+++ b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/file/DataOutputStream.as
@@ -0,0 +1,165 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.storage.file
+{
+import org.apache.flex.events.EventDispatcher;
+import org.apache.flex.events.IEventDispatcher;
+import org.apache.flex.storage.events.FileEvent;
+import org.apache.flex.storage.events.FileErrorEvent;
+
+COMPILE::AS3 {
+	import flash.filesystem.File;
+	import flash.filesystem.FileMode;
+	import flash.filesystem.FileStream;
+	import flash.utils.ByteArray;
+	import flash.errors.IOError;
+}
+
+/**
+ * Instances of the DataOutput stream are created by the storage provider when a file
+ * is opened for output streaming. Events are dispatches as the file is opened, written to,
+ * and finally closed.
+ * 
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+public class DataOutputStream extends EventDispatcher implements IDataOutput
+{
+	/**
+	 * Constructor.
+	 * 
+	 *  @param target The object to as the event dispatch target.
+	 *  @param fileHandle A reference to a platform-specific file object.
+	 *  @param fileWriter A reference to a platform-specific file object.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.6
+	 *  @productversion FlexJS 0.0
+	 */
+	public function DataOutputStream(target:IEventDispatcher, fileHandle:Object, fileWriter:Object)
+	{
+		super();
+		
+		_target = target;
+		
+		COMPILE::JS {
+			_fileHandle = fileHandle as FileEntry;
+			_fileWriter = fileWriter as FileWriter;
+			
+			var self:DataOutputStream = this;
+			
+			_fileWriter.onwriteend = function (e):void {
+				var newEvent:FileEvent = new FileEvent("WRITE");
+				newEvent.stream = self;
+				_target.dispatchEvent(newEvent);
+			};
+			
+			_fileWriter.onerror = function (e):void {
+				var newEvent:FileErrorEvent = new FileErrorEvent("ERROR");
+				newEvent.stream = self;
+				newEvent.errorMessage = "Failed to write the file.";
+				_target.dispatchEvent(newEvent);
+			};
+			
+			_fileWriter.truncate(0);
+		}
+			
+		COMPILE::AS3 {
+			_fileHandle = fileHandle as File;
+			_fileWriter = fileWriter as FileStream;
+		}
+	}
+	
+	/**
+	 * @private
+	 */
+	private var _target:IEventDispatcher;
+	
+	COMPILE::JS {
+		private var _fileHandle:FileEntry;
+		private var _fileWriter:FileWriter;
+	}
+	COMPILE::AS3 {
+		private var _fileHandle:File;
+		private var _fileWriter:FileStream;
+	}
+		
+	/**
+	 * Writes a chunk of text into the file. When the file is ready to accept the nex
+	 * chunk, a FileEvent "WRITE" event is dispatched.
+	 * 
+	 *  @param text The string to write into the file.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.6
+	 *  @productversion FlexJS 0.0
+	 */
+	public function writeText(text:String):void
+	{
+		COMPILE::JS {
+			var blob:Blob = new Blob([text], { type: 'text/plain' });
+			_fileWriter.write(blob);
+		}
+		COMPILE::AS3 {
+			try {
+				_fileWriter.writeUTFBytes(text);
+				
+				var newEvent:FileEvent = new FileEvent("WRITE");
+				newEvent.stream = this;
+				_target.dispatchEvent(newEvent);
+				
+			} catch(ioerror:IOError) {
+				var ioEvent:FileErrorEvent = new FileErrorEvent("ERROR");
+				ioEvent.errorMessage = "I/O Error";
+				ioEvent.errorCode = 2;
+				_target.dispatchEvent(ioEvent);
+			} catch(secerror:SecurityError) {
+				var secEvent:FileErrorEvent = new FileErrorEvent("ERROR");
+				secEvent.errorMessage = "Security Error";
+				secEvent.errorCode = 3;
+				_target.dispatchEvent(secEvent);
+			}
+		}
+	}
+	
+	/**
+	 * Closes the file and dispatches a FileEvent "COMPLETE" event.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.6
+	 *  @productversion FlexJS 0.0
+	 */
+	public function close():void
+	{
+		COMPILE::AS3 {
+			_fileWriter.close();
+		}
+			
+		var newEvent:FileEvent = new FileEvent("COMPLETE");
+		newEvent.stream = this;
+		_target.dispatchEvent(newEvent);
+	}
+}
+
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dcf3b3b9/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/file/IDataInput.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/file/IDataInput.as b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/file/IDataInput.as
new file mode 100644
index 0000000..0e3b41e
--- /dev/null
+++ b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/file/IDataInput.as
@@ -0,0 +1,32 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.storage.file
+{
+
+/**
+ * The File class provides access to a specific file on the device.
+ */
+public interface IDataInput extends IDataStream
+{
+	function readText():void;
+	
+	function close():void;
+}
+
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dcf3b3b9/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/file/IDataOutput.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/file/IDataOutput.as b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/file/IDataOutput.as
new file mode 100644
index 0000000..0105c04
--- /dev/null
+++ b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/file/IDataOutput.as
@@ -0,0 +1,32 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.storage.file
+{
+
+/**
+ * The File class provides access to a specific file on the device.
+ */
+public interface IDataOutput extends IDataStream
+{
+	function writeText(text:String):void;
+	
+	function close():void;
+}
+
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dcf3b3b9/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/file/IDataStream.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/file/IDataStream.as b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/file/IDataStream.as
new file mode 100644
index 0000000..448aef4
--- /dev/null
+++ b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/file/IDataStream.as
@@ -0,0 +1,32 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.storage.file
+{
+
+import org.apache.flex.events.IEventDispatcher;
+
+/**
+ * The File class provides access to a specific file on the device.
+ */
+public interface IDataStream
+{
+	
+}
+
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dcf3b3b9/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/providers/AirStorageProvider.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/providers/AirStorageProvider.as b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/providers/AirStorageProvider.as
index 185b6a3..7657532 100644
--- a/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/providers/AirStorageProvider.as
+++ b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/providers/AirStorageProvider.as
@@ -28,14 +28,20 @@ package org.apache.flex.storage.providers
 		import flash.utils.ByteArray;
 		import flash.errors.IOError;
 	}
-
-	import org.apache.flex.storage.events.FileReadEvent;
-	import org.apache.flex.storage.events.FileWriteEvent;
+		
+	import org.apache.flex.storage.events.FileEvent;
+	import org.apache.flex.storage.events.FileErrorEvent;
+	import org.apache.flex.storage.file.DataOutputStream;
+	import org.apache.flex.storage.file.DataInputStream;
 
 	/**
 	 * The AirStorageProvider class implements the IPermanentStorageProvider
 	 * interface for saving files to a mobile device using the Adobe(tm) AIR platform. 
 	 * 
+	 * @langversion 3.0
+	 * @playerversion Flash 10.2
+	 * @playerversion AIR 2.6
+	 * @productversion FlexJS 0.0
 	 * @flexjsignorecoercion FileEntry
 	 * @flexjsignorecoercion FileWriter
 	 * @flexjsignorecoercion window
@@ -100,8 +106,9 @@ package org.apache.flex.storage.providers
 				var file:File = File.applicationStorageDirectory.resolvePath(fileName);
 				
 				if (!file.exists) {
-					var errEvent:FileReadEvent = new FileReadEvent("ERROR");
+					var errEvent:FileErrorEvent = new FileErrorEvent("ERROR");
 					errEvent.errorMessage = "File does not exist.";
+					errEvent.errorCode = 1;
 					_target.dispatchEvent(errEvent);
 					return;
 				}
@@ -115,9 +122,46 @@ package org.apache.flex.storage.providers
 				
 				var text:String = new String(bytes);
 				
-				var newEvent:FileReadEvent = new FileReadEvent("COMPLETE");
+				var newEvent:FileEvent = new FileEvent("READ");
 				newEvent.data = text;
 				_target.dispatchEvent(newEvent);
+				
+				var finEvent:FileEvent = new FileEvent("COMPLETE");
+				_target.dispatchEvent(finEvent);
+			}
+		}
+		
+		/**
+		 * Opens a file for input streaming. Events are dispatched when the file is ready
+		 * for reading, after each read, and when the file is closed. 
+		 * 
+		 *  @param fileName The name of the file.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		public function openInputDataStream( fileName:String ) : void
+		{
+			COMPILE::AS3 {
+				var file:File = File.applicationStorageDirectory.resolvePath(fileName);
+				var stream:FileStream = new FileStream();
+				
+				if (!file.exists) {
+					var errEvent:FileErrorEvent = new FileErrorEvent("ERROR");
+					errEvent.errorMessage = "File does not exist.";
+					errEvent.errorCode = 1;
+					_target.dispatchEvent(errEvent);
+					return;
+				}
+				
+				var instream:DataInputStream = new DataInputStream(_target, file, stream);
+				stream.open(file, FileMode.READ);
+				
+				var newEvent:FileEvent = new FileEvent("READY");
+				newEvent.stream = instream;
+				_target.dispatchEvent(newEvent);
 			}
 		}
 		
@@ -146,19 +190,65 @@ package org.apache.flex.storage.providers
 					stream.writeUTFBytes(text);
 					stream.close();
 				} catch(ioerror:IOError) {
-					var ioEvent:FileWriteEvent = new FileWriteEvent("ERROR");
+					var ioEvent:FileErrorEvent = new FileErrorEvent("ERROR");
 					ioEvent.errorMessage = "I/O Error";
+					ioEvent.errorCode = 2;
 					_target.dispatchEvent(ioEvent);
 					return;
 				} catch(secerror:SecurityError) {
-					var secEvent:FileWriteEvent = new FileWriteEvent("ERROR");
+					var secEvent:FileErrorEvent = new FileErrorEvent("ERROR");
 					secEvent.errorMessage = "Security Error";
+					secEvent.errorCode = 3;
 					_target.dispatchEvent(secEvent);
 					return;
 				}
 				
-				var newEvent:FileWriteEvent = new FileWriteEvent("COMPLETE");
+				var newEvent:FileEvent = new FileEvent("WRITE");
 				_target.dispatchEvent(newEvent);
+				
+				var finEvent:FileEvent = new FileEvent("COMPLETE");
+				_target.dispatchEvent(finEvent);
+			}
+		}
+		
+		/**
+		 * Opens a file for output streaming. Events are dispatched when the file is ready
+		 * to receive output, after each write to the file, and when the file is closed.
+		 * 
+		 *  @param fileName The name of the file.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		public function openOutputDataStream( fileName:String ) : void
+		{
+			COMPILE::AS3 {
+				var file:File = File.applicationStorageDirectory.resolvePath(fileName);
+				var stream:FileStream = new FileStream();
+				
+				var outstream:DataOutputStream = new DataOutputStream(_target, file, stream);
+				try {
+					stream.open(file, FileMode.WRITE);
+					var newEvent:FileEvent = new FileEvent("READY");
+					newEvent.stream = outstream;
+					_target.dispatchEvent(newEvent);
+					
+				} catch(ioerror:IOError) {
+					var ioEvent:FileErrorEvent = new FileErrorEvent("ERROR");
+					ioEvent.errorMessage = "I/O Error";
+					ioEvent.errorCode = 2;
+					_target.dispatchEvent(ioEvent);
+					return;
+					
+				} catch(secerror:SecurityError) {
+					var secEvent:FileErrorEvent = new FileErrorEvent("ERROR");
+					secEvent.errorMessage = "Security Error";
+					secEvent.errorCode = 3;
+					_target.dispatchEvent(secEvent);
+					return;
+				}
 			}
 		}
 	}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dcf3b3b9/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/providers/IPermanentStorageProvider.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/providers/IPermanentStorageProvider.as b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/providers/IPermanentStorageProvider.as
index 023b1a7..f5a200d 100644
--- a/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/providers/IPermanentStorageProvider.as
+++ b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/providers/IPermanentStorageProvider.as
@@ -70,5 +70,33 @@ package org.apache.flex.storage.providers
 		 *  @productversion FlexJS 0.0
 		 */
 		function writeTextToDataFile( fileName:String, text:String ) : void;
+		
+		/**
+		 * Opens an output stream into a file in the data storage directory. A Ready
+		 * event is dispatched when the stream has been opened. Use the stream to
+		 * write data to the file.
+		 * 
+		 *  @param fileName The name of file.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		function openOutputDataStream( fileName:String ) : void;
+		
+		/**
+		 * Opens an input stream into a file in the data storage directory. A Ready
+		 * event is dispatched when the stream has been opened. Use the stream to
+		 * read data from the file.
+		 * 
+		 *  @param fileName The name of file.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		function openInputDataStream( fileName:String ) : void;
 	}
 }

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dcf3b3b9/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/providers/WebStorageProvider.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/providers/WebStorageProvider.as b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/providers/WebStorageProvider.as
index 557b591..df33c16 100644
--- a/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/providers/WebStorageProvider.as
+++ b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/providers/WebStorageProvider.as
@@ -20,14 +20,20 @@ package org.apache.flex.storage.providers
 {
 	import org.apache.flex.events.EventDispatcher;
 	import org.apache.flex.events.IEventDispatcher;
-
-	import org.apache.flex.storage.events.FileReadEvent;
-    import org.apache.flex.storage.events.FileWriteEvent;
+	
+	import org.apache.flex.storage.events.FileEvent;
+	import org.apache.flex.storage.events.FileErrorEvent;
+	import org.apache.flex.storage.file.DataInputStream;
+	import org.apache.flex.storage.file.DataOutputStream;
 
 	/**
 	 * The WebStorageProvider class implements the IPermanentStorageProvider
 	 * interface for saving files to a mobile device. 
 	 * 
+	 * @langversion 3.0
+	 * @playerversion Flash 10.2
+	 * @playerversion AIR 2.6
+	 * @productversion FlexJS 0.0
 	 * @flexjsignorecoercion FileEntry
 	 * @flexjsignorecoercion FileWriter
 	 * @flexjsignorecoercion window
@@ -95,20 +101,63 @@ package org.apache.flex.storage.providers
 					fileEntry.file(function (file):void {
 						var reader:FileReader = new FileReader();
 						reader.onloadend = function (e):void {
-							var newEvent:FileReadEvent = new FileReadEvent("COMPLETE");
+							var newEvent:FileEvent = new FileEvent("READ");
 							newEvent.data = this.result;
 							_target.dispatchEvent(newEvent);
+							
+							var finEvent:FileEvent = new FileEvent("COMPLETE");
+							_target.dispatchEvent(finEvent);
 						};
 						reader.readAsText(file);
 					}, function (e):void {
-						var errEvent:FileReadEvent = new FileReadEvent("ERROR");
-						errEvent.errorMessage = "Cannot open file for reading";
-						_target.dispatchEvent(errEvent);
+						var err1Event:FileErrorEvent = new FileErrorEvent("ERROR");
+						err1Event.errorMessage = "Cannot open file for reading";
+						err1Event.errorCode = 2;
+						_target.dispatchEvent(err1Event);
 					});
 				}, function (e):void {
-					var errEvent:FileReadEvent = new FileReadEvent("ERROR");
-					errEvent.errorMessage = "File does not exist";
-					_target.dispatchEvent(errEvent);
+					var err2Event:FileErrorEvent = new FileErrorEvent("ERROR");
+					err2Event.errorMessage = "File does not exist";
+					err2Event.errorCode = 1;
+					_target.dispatchEvent(err2Event);
+				});
+			}
+		}
+		
+		/**
+		 * Opens an input stream into a file in the data storage directory. A Ready
+		 * event is dispatched when the stream has been opened. Use the stream to
+		 * read data from the file.
+		 * 
+		 *  @param fileName The name of file.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		public function openInputDataStream( fileName:String ) : void
+		{
+			COMPILE::JS {
+				var fullPath:String = String(cordova["file"]["dataDirectory"]) + fileName;
+				
+				window.resolveLocalFileSystemURL(fullPath, function (fileEntry):void {
+					fileEntry.file(function (file):void {
+						var inputStream:DataInputStream = new DataInputStream(_target, file, new FileReader());
+						var newEvent:FileEvent = new FileEvent("READY");
+						newEvent.stream = inputStream;
+						_target.dispatchEvent(newEvent);
+					}, function (e):void {
+						var err1Event:FileErrorEvent = new FileErrorEvent("ERROR");
+						err1Event.errorMessage = "Cannot open file for reading";
+						err1Event.errorCode = 2;
+						_target.dispatchEvent(err1Event);
+					});
+				}, function (e):void {
+					var err2Event:FileErrorEvent = new FileErrorEvent("ERROR");
+					err2Event.errorMessage = "File does not exist";
+					err2Event.errorCode = 1;
+					_target.dispatchEvent(err2Event);
 				});
 			}
 		}
@@ -136,34 +185,71 @@ package org.apache.flex.storage.providers
 					directoryEntry.getFile(fileName, { 'create': true }, function (fileEntry):void {
 						fileEntry.createWriter(function (fileWriter):void {
 							fileWriter.onwriteend = function (e):void {
-								var newEvent:FileWriteEvent = new FileWriteEvent("COMPLETE");
+								var newEvent:FileEvent = new FileEvent("WRITE");
 								_target.dispatchEvent(newEvent);
+								
+								var finEvent:FileEvent = new FileEvent("COMPLETE");
+								_target.dispatchEvent(finEvent);
 							};
 							
 							fileWriter.onerror = function (e):void {
-								var newEvent:FileWriteEvent = new FileWriteEvent("ERROR");
+								var newEvent:FileErrorEvent = new FileErrorEvent("ERROR");
 								newEvent.errorMessage = "Failed to write the file.";
+								newEvent.errorCode = 3;
 								_target.dispatchEvent(newEvent);
 							};
 							
 							var blob:Blob = new Blob([text], { type: 'text/plain' });
 							fileWriter.write(blob);
 						}, function(e):void {
-							var errEvent:FileWriteEvent = new FileWriteEvent("ERROR");
+							var errEvent:FileErrorEvent = new FileErrorEvent("ERROR");
 							errEvent.errorMessage = "Cannot open file for writing.";
+							errEvent.errorCode = 1;
 							_target.dispatchEvent(errEvent);
 						});
 					}, function(e):void {
-						var errEvent:FileWriteEvent = new FileWriteEvent("ERROR");
+						var errEvent:FileErrorEvent = new FileErrorEvent("ERROR");
 						errEvent.errorMessage = "Cannot create file.";
+						errEvent.errorCode = 4;
 						_target.dispatchEvent(errEvent);
 					});
 				}, function(e):void {
-					var errEvent:FileWriteEvent = new FileWriteEvent("ERROR");
+					var errEvent:FileErrorEvent = new FileErrorEvent("ERROR");
 					errEvent.errorMessage = "Cannot create file.";
+					errEvent.errorCode = 4;
 					_target.dispatchEvent(errEvent);
 				});
 			}
 		}
+		
+		/**
+		 * Opens an output stream into a file in the data storage directory. A Ready
+		 * event is dispatched when the stream has been opened. Use the stream to
+		 * write data to the file.
+		 * 
+		 *  @param fileName The name of file.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		public function openOutputDataStream( fileName:String ) : void
+		{
+			COMPILE::JS {
+				var fullPath:String = String(cordova["file"]["dataDirectory"]) + fileName;
+				
+				window.resolveLocalFileSystemURL(cordova.file.dataDirectory, function (directoryEntry):void {
+					directoryEntry.getFile(fileName, { 'create': true }, function (fileEntry):void {
+						fileEntry.createWriter(function (fileWriter):void {
+							var outputStream:DataOutputStream = new DataOutputStream(_target, fileEntry, fileWriter);
+							var newEvent:FileEvent = new FileEvent("READY");
+							newEvent.stream = outputStream;
+							_target.dispatchEvent(newEvent);
+						});
+					});
+				});
+			}
+		}
 	}
 }


[07/43] git commit: [flex-asjs] [refs/heads/e4x] - Changed Storage package LocalStorage class to use same function names as web storage API for better cross-compatibility. Also changed storage data type to String from Object to maintain that compatibilit

Posted by ha...@apache.org.
Changed Storage package LocalStorage class to use same function names as web storage API for better cross-compatibility. Also changed storage data type to String from Object to maintain that compatibility and provide a concrete data type.


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

Branch: refs/heads/e4x
Commit: 392faf58189d864a5b2f7acb5e020e906211925b
Parents: 5479450
Author: Peter Ent <pe...@apache.org>
Authored: Thu Feb 25 14:32:55 2016 -0500
Committer: Peter Ent <pe...@apache.org>
Committed: Thu Feb 25 14:32:55 2016 -0500

----------------------------------------------------------------------
 .../org/apache/flex/storage/LocalStorage.as     | 106 +++++++++++--------
 1 file changed, 64 insertions(+), 42 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/392faf58/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/LocalStorage.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/LocalStorage.as b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/LocalStorage.as
index a3a2b87..9edd82c 100644
--- a/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/LocalStorage.as
+++ b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/LocalStorage.as
@@ -26,7 +26,7 @@ COMPILE::AS3 {
  *  The LocalStorage class allows apps to store small amounts of data
  *  locally, in the browser's permitted storage area. This data will persist
  *  between browser invocations. The data is stored in key=value pairs.
- *  
+ *
  *  @langversion 3.0
  *  @playerversion Flash 10.2
  *  @playerversion AIR 2.6
@@ -35,17 +35,17 @@ COMPILE::AS3 {
  */
 public class LocalStorage
 {
-	
+
 	/**
 	 * Constructor.
-	 *  
+	 *
 	 *  @langversion 3.0
 	 *  @playerversion Flash 10.2
 	 *  @playerversion AIR 2.6
 	 *  @productversion FlexJS 0.0
 	 *  @flexjsignoreimport window
 	 */
-	public function LocalStorage() 
+	public function LocalStorage()
 	{
 		COMPILE::AS3 {
 			try {
@@ -55,13 +55,13 @@ public class LocalStorage
 			}
 		}
 	}
-	
+
 	COMPILE::AS3
 	private var sharedObject:SharedObject;
-	
+
 	/**
 	 * Returns true if the platform provides local storage.
-	 *  
+	 *
 	 *  @langversion 3.0
 	 *  @playerversion Flash 10.2
 	 *  @playerversion AIR 2.6
@@ -71,11 +71,11 @@ public class LocalStorage
 	public function storageAvailable():Boolean
 	{
 		var result:Boolean = false;
-		
+
 		COMPILE::AS3 {
 			result = (sharedObject != null);
 		}
-		
+
 		COMPILE::JS {
 			try {
 				result = 'localStorage' in window && window['localStorage'] !== null;
@@ -83,115 +83,137 @@ public class LocalStorage
 				result = false;
 			}
 		}
-		
+
 		return result;
 	}
-	
+
 	/**
 	 * Stores a value with a key. The value may be converted to a String, depending
 	 * on the platform.
-	 *  
+	 *
 	 *  @langversion 3.0
 	 *  @playerversion Flash 10.2
 	 *  @playerversion AIR 2.6
 	 *  @productversion FlexJS 0.0
 	 *  @flexjsignoreimport window
 	 */
-	public function setValue(key:String, value:Object) : Boolean
+	public function setItem(key:String, value:String) : Boolean
 	{
 		if (!storageAvailable()) return false;
-				
+
 		COMPILE::AS3 {
 			sharedObject.data[key] = value;
 			sharedObject.flush();
 		}
-		
+
 		COMPILE::JS {
-			window.localStorage[key] = value;
+			window.localStorage.setItem(key, value);
 		}
-		
+
 		return true;
 	}
-	
+
 	/**
 	 * Returns the value associated with the key, or undefined if there is
 	 * no value stored. Note that a String version of the value may have been
 	 * stored, depending on the platform.
-	 *  
+	 *
 	 *  @langversion 3.0
 	 *  @playerversion Flash 10.2
 	 *  @playerversion AIR 2.6
 	 *  @productversion FlexJS 0.0
 	 *  @flexjsignoreimport window
 	 */
-	public function getValue(key:String) : Object
+	public function getItem(key:String) : String
 	{
 		if (!storageAvailable()) return null;
-		
-		var result:Object = null;
-		
+
+		var result:String = null;
+
 		COMPILE::AS3 {
-			result = sharedObject.data[key];
+			result = sharedObject.data[key] as String;
 		}
-		
+
 		COMPILE::JS {
-			result = window.localStorage[key];
+			result = window.localStorage.getItem(key);
 		}
-		
+
 		return result;
 	}
-	
+
 	/**
 	 * Removed the value and, possibly, the key from local storage. On some
 	 * platforms, retriving the value after removing it will be an error, on
 	 * others it may return undefined or null.
-	 *  
+	 *
 	 *  @langversion 3.0
 	 *  @playerversion Flash 10.2
 	 *  @playerversion AIR 2.6
 	 *  @productversion FlexJS 0.0
 	 *  @flexjsignoreimport window
 	 */
-	public function removeValue(key:String) : Boolean
+	public function removeItem(key:String) : Boolean
 	{
 		if (!storageAvailable()) return null;
-				
+
 		COMPILE::AS3 {
 			delete sharedObject.data[key];
 			sharedObject.flush();
 		}
-		
+
 		COMPILE::JS {
-			window.localStorage[key] = null;
+			window.localStorage.removeItem(key);
 		}
-		
+
 		return true;
 	}
-	
+
 	/**
 	 * Returns true if there is a value stored for the key.
-	 *  
+	 *
 	 *  @langversion 3.0
 	 *  @playerversion Flash 10.2
 	 *  @playerversion AIR 2.6
 	 *  @productversion FlexJS 0.0
 	 *  @flexjsignoreimport window
 	 */
-	public function hasValue(key:String) : Boolean
+	public function hasItem(key:String) : Boolean
 	{
 		if (!storageAvailable()) return false;
-		
+
 		var result:Boolean = false;
-		
+
 		COMPILE::AS3 {
 			result = sharedObject.data.hasOwnProperty(key);
 		}
-		
+
 		COMPILE::JS {
 			result = (window.localStorage[key] !== null);
 		}
-		
+
 		return result;
 	}
+
+	/**
+	 * Clears all values from local storage.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.6
+	 *  @productversion FlexJS 0.0
+	 *  @flexjsignoreimport window
+	 */
+	public function clear() : void
+	{
+		if (!storageAvailable()) return;
+
+		COMPILE::AS3 {
+			sharedObject.clear();
+		}
+
+		COMPILE::JS {
+			window.localStorage.clear();
+		}
+	}
+}
 }
-}
\ No newline at end of file


[23/43] git commit: [flex-asjs] [refs/heads/e4x] - Clean up asdoc issue surrounding the inclusion of Google Maps stubs.

Posted by ha...@apache.org.
Clean up asdoc issue surrounding the inclusion of Google Maps stubs.


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

Branch: refs/heads/e4x
Commit: 5980d00d732dcf9d74e76a14ab4f6f18c2541d69
Parents: dcf3b3b
Author: Peter Ent <pe...@apache.org>
Authored: Wed Mar 16 14:03:22 2016 -0400
Committer: Peter Ent <pe...@apache.org>
Committed: Wed Mar 16 14:03:22 2016 -0400

----------------------------------------------------------------------
 frameworks/asdoc-config.xml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5980d00d/frameworks/asdoc-config.xml
----------------------------------------------------------------------
diff --git a/frameworks/asdoc-config.xml b/frameworks/asdoc-config.xml
index 64d6988..c25e1bd 100644
--- a/frameworks/asdoc-config.xml
+++ b/frameworks/asdoc-config.xml
@@ -458,7 +458,7 @@
             <path-element>${frameworks_dir}/projects/DragDrop/src/main/flex</path-element>
             <path-element>${frameworks_dir}/projects/Effects/src/main/flex</path-element>
             <path-element>${frameworks_dir}/projects/Formatters/src/main/flex</path-element>
-            <path-element>${frameworks_dir}/projects/GoogleMaps/src/main/flex</path-element>
+            <path-element>${frameworks_dir}/projects/GoogleMaps/src/main/flex/org</path-element>
             <path-element>${frameworks_dir}/projects/Graphics/src/main/flex</path-element>
             <path-element>${frameworks_dir}/projects/HTML/src/main/flex</path-element>
             <path-element>${frameworks_dir}/projects/HTML5/src/main/flex</path-element>
@@ -466,6 +466,7 @@
             <path-element>${frameworks_dir}/projects/Mobile/src/main/flex</path-element>
             <path-element>${frameworks_dir}/projects/Network/src/main/flex</path-element>
             <path-element>${frameworks_dir}/projects/Reflection/src/main/flex</path-element>
+            <path-element>${frameworks_dir}/projects/GoogleMaps/src/main/flex/google/maps/LatLng.as</path-element>
             </doc-sources>
             
 </flex-config>


[33/43] git commit: [flex-asjs] [refs/heads/e4x] - don't exclude this anymore

Posted by ha...@apache.org.
don't exclude this anymore


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

Branch: refs/heads/e4x
Commit: c7756da71acf51f8edc0da0fb466621a1d23d79f
Parents: 50ae7df
Author: Alex Harui <ah...@apache.org>
Authored: Tue Mar 29 10:08:03 2016 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Tue Mar 29 10:08:03 2016 -0700

----------------------------------------------------------------------
 ApproveFlexJS.xml | 2 --
 1 file changed, 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c7756da7/ApproveFlexJS.xml
----------------------------------------------------------------------
diff --git a/ApproveFlexJS.xml b/ApproveFlexJS.xml
index f6dccd1..727d6c3 100644
--- a/ApproveFlexJS.xml
+++ b/ApproveFlexJS.xml
@@ -361,8 +361,6 @@
                 <exclude name="js/lib/google/**"/>
                 <!--          compiled output     -->
                 <exclude name="frameworks/projects/*/target/**"/>
-                <!--          fonts     -->
-                <exclude name="frameworks/fonts/**"/>
                 <!--          swcs     -->
                 <exclude name="frameworks/libs/Binding.swc"/>
                 <exclude name="frameworks/libs/Charts.swc"/>


[24/43] git commit: [flex-asjs] [refs/heads/e4x] - Add dependency on AIR SDK. Need to add a linked resource called AIR_HOME in Flash Builder/Eclipse and point it to directory where AIR SDK is available.

Posted by ha...@apache.org.
Add dependency on AIR SDK.  Need to add a linked resource called AIR_HOME in Flash Builder/Eclipse and point it to directory where AIR SDK is available.


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

Branch: refs/heads/e4x
Commit: 7e67f4bc8f9736c13868c0a3d3ff4b19a1bb3ee7
Parents: 5980d00
Author: OmPrakash Muppirala <bi...@gmail.com>
Authored: Sun Mar 20 00:58:57 2016 -0700
Committer: OmPrakash Muppirala <bi...@gmail.com>
Committed: Sun Mar 20 00:58:57 2016 -0700

----------------------------------------------------------------------
 frameworks/projects/HTML/.actionScriptProperties | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7e67f4bc/frameworks/projects/HTML/.actionScriptProperties
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/.actionScriptProperties b/frameworks/projects/HTML/.actionScriptProperties
index eef34a6..d47dcf7 100644
--- a/frameworks/projects/HTML/.actionScriptProperties
+++ b/frameworks/projects/HTML/.actionScriptProperties
@@ -47,6 +47,7 @@ limitations under the License.
       <libraryPathEntry kind="3" linkType="1" path="/Core/target/Core.swc" useDefaultLinkType="false"/>
       <libraryPathEntry kind="3" linkType="1" path="/Graphics/target/Graphics.swc" useDefaultLinkType="false"/>
       <libraryPathEntry kind="3" linkType="1" path="/Collections/target/Collections.swc" useDefaultLinkType="false"/>
+      <libraryPathEntry kind="1" linkType="1" path="${AIR_HOME}/frameworks/libs/air"/>
     </libraryPath>
     <sourceAttachmentPath/>
   </compiler>


[08/43] git commit: [flex-asjs] [refs/heads/e4x] - Updated Storage project by separating the implementation into a CSS-accessible class from the developer-facing class. The initial JavaScript implementation follows the W3C web storage specification; the

Posted by ha...@apache.org.
Updated Storage project by separating the implementation into a CSS-accessible class from the developer-facing class. The initial JavaScript implementation follows the W3C web storage specification; the Flash side uses SharedObject.


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

Branch: refs/heads/e4x
Commit: 75ee02d2817d5a5c6bf8e976bfd8a305bb5b09e5
Parents: 392faf5
Author: Peter Ent <pe...@apache.org>
Authored: Thu Feb 25 17:24:22 2016 -0500
Committer: Peter Ent <pe...@apache.org>
Committed: Thu Feb 25 17:24:22 2016 -0500

----------------------------------------------------------------------
 .../Storage/src/main/flex/StorageClasses.as     |   5 +-
 .../flex/org/apache/flex/storage/IWebStorage.as | 100 +++++++++
 .../org/apache/flex/storage/LocalStorage.as     | 120 +++-------
 .../storage/providers/LocalStorageProvider.as   | 220 +++++++++++++++++++
 .../src/main/resources/basic-manifest.xml       |   2 +-
 .../src/main/resources/compile-asjs-config.xml  |   4 +
 .../src/main/resources/compile-config.xml       |   5 +
 .../Storage/src/main/resources/defaults.css     |  26 +++
 8 files changed, 388 insertions(+), 94 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/75ee02d2/frameworks/projects/Storage/src/main/flex/StorageClasses.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Storage/src/main/flex/StorageClasses.as b/frameworks/projects/Storage/src/main/flex/StorageClasses.as
index 1f6b80a..db34477 100644
--- a/frameworks/projects/Storage/src/main/flex/StorageClasses.as
+++ b/frameworks/projects/Storage/src/main/flex/StorageClasses.as
@@ -16,7 +16,7 @@
 //  limitations under the License.
 //
 ////////////////////////////////////////////////////////////////////////////////
-package 
+package
 {
 
 /**
@@ -26,8 +26,9 @@ package
  *  from the classes specified in manifest.xml.
  */
 internal class StorageClasses
-{	
+{
     import org.apache.flex.storage.LocalStorage; LocalStorage;
+    import org.apache.flex.storage.providers.LocalStorageProvider; LocalStorageProvider;
 }
 
 }

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/75ee02d2/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/IWebStorage.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/IWebStorage.as b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/IWebStorage.as
new file mode 100644
index 0000000..3bc044d
--- /dev/null
+++ b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/IWebStorage.as
@@ -0,0 +1,100 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.storage
+{
+/**
+ * The IWebStorage interface provides a template for classes to use that wish
+ * to allow storage of small amounts of data into a web browser or perhaps on a
+ * mobile device.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion FlexJS 0.0
+ */
+public interface IWebStorage
+{
+	/**
+	 * Returns true if the platform provides local storage.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.6
+	 *  @productversion FlexJS 0.0
+	 *  @flexjsignoreimport window
+	 */
+	function storageAvailable() : Boolean;
+
+	/**
+	 * Stores a value with a key.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.6
+	 *  @productversion FlexJS 0.0
+	 *  @flexjsignoreimport window
+	 */
+	function setItem(key:String, value:String) : Boolean;
+
+	/**
+	 * Returns the value of a key, if present. If the key is not
+	 * present in the storage area, null or undefined may be returned.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.6
+	 *  @productversion FlexJS 0.0
+	 *  @flexjsignoreimport window
+	 */
+	function getItem(key:String) : String;
+
+	/**
+	 * Removes the key=value pair from storage.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.6
+	 *  @productversion FlexJS 0.0
+	 *  @flexjsignoreimport window
+	 */
+	function removeItem(key:String) : Boolean;
+
+	/**
+	 * Returns true if there is a value associated with the key.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.6
+	 *  @productversion FlexJS 0.0
+	 *  @flexjsignoreimport window
+	 */
+	function hasItem(key:String) : Boolean;
+
+	/**
+	 * Clears the storage area of all key=value pairs.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.6
+	 *  @productversion FlexJS 0.0
+	 *  @flexjsignoreimport window
+	 */
+	function clear() : void;
+}
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/75ee02d2/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/LocalStorage.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/LocalStorage.as b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/LocalStorage.as
index 9edd82c..1a6018e 100644
--- a/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/LocalStorage.as
+++ b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/LocalStorage.as
@@ -18,20 +18,25 @@
 ////////////////////////////////////////////////////////////////////////////////
 package org.apache.flex.storage
 {
-COMPILE::AS3 {
-	import flash.net.SharedObject;
-}
+	import org.apache.flex.storage.providers.LocalStorageProvider;
+	import org.apache.flex.core.ValuesManager;
 
 /**
  *  The LocalStorage class allows apps to store small amounts of data
  *  locally, in the browser's permitted storage area. This data will persist
  *  between browser invocations. The data is stored in key=value pairs.
  *
+ *  This class uses the ValuesManager to determine a storage provider - an implementation
+ *  class the actually does the storing and retrieving. To change the provider implementation,
+ *  set a ClassReference for the LocalStorage CSS style. The default is the
+ *  org.apache.flex.storage.providers.LocalStorageProvider class.
+ *
+ *  @see org.apache.flex.storage.IWebStorage
+ *  @see org.apache.flex.storage.provides.LocalStorageProvider
  *  @langversion 3.0
  *  @playerversion Flash 10.2
  *  @playerversion AIR 2.6
  *  @productversion FlexJS 0.0
- *  @flexjsignoreimport window
  */
 public class LocalStorage
 {
@@ -47,17 +52,13 @@ public class LocalStorage
 	 */
 	public function LocalStorage()
 	{
-		COMPILE::AS3 {
-			try {
-				sharedObject = SharedObject.getLocal("flexjs","/",false);
-			} catch(e) {
-				sharedObject = null;
-			}
-		}
+		storageProvider = ValuesManager.valuesImpl.newInstance(this, "iStorageProvider") as IWebStorage;
 	}
 
-	COMPILE::AS3
-	private var sharedObject:SharedObject;
+	/**
+	 * The implementation of the storage system.
+	 */
+	private var storageProvider:IWebStorage;
 
 	/**
 	 * Returns true if the platform provides local storage.
@@ -70,26 +71,11 @@ public class LocalStorage
 	 */
 	public function storageAvailable():Boolean
 	{
-		var result:Boolean = false;
-
-		COMPILE::AS3 {
-			result = (sharedObject != null);
-		}
-
-		COMPILE::JS {
-			try {
-				result = 'localStorage' in window && window['localStorage'] !== null;
-			} catch(e) {
-				result = false;
-			}
-		}
-
-		return result;
+		return storageProvider.storageAvailable();
 	}
 
 	/**
-	 * Stores a value with a key. The value may be converted to a String, depending
-	 * on the platform.
+	 * Stores a value with a key.
 	 *
 	 *  @langversion 3.0
 	 *  @playerversion Flash 10.2
@@ -97,20 +83,12 @@ public class LocalStorage
 	 *  @productversion FlexJS 0.0
 	 *  @flexjsignoreimport window
 	 */
-	public function setItem(key:String, value:String) : Boolean
+	public function setItem(key:String, value:Object) : Boolean
 	{
-		if (!storageAvailable()) return false;
-
-		COMPILE::AS3 {
-			sharedObject.data[key] = value;
-			sharedObject.flush();
-		}
-
-		COMPILE::JS {
-			window.localStorage.setItem(key, value);
-		}
-
-		return true;
+		// turn the value into a string in some fashion, if possible, return
+		// the knowlege of what type value really is for getItem().
+		var valueAsString:String = value.toString();
+		return storageProvider.setItem(key, valueAsString);
 	}
 
 	/**
@@ -124,21 +102,12 @@ public class LocalStorage
 	 *  @productversion FlexJS 0.0
 	 *  @flexjsignoreimport window
 	 */
-	public function getItem(key:String) : String
+	public function getItem(key:String) : Object
 	{
-		if (!storageAvailable()) return null;
-
-		var result:String = null;
-
-		COMPILE::AS3 {
-			result = sharedObject.data[key] as String;
-		}
-
-		COMPILE::JS {
-			result = window.localStorage.getItem(key);
-		}
-
-		return result;
+		var value:Object = storageProvider.getItem(key);
+		// perhaps figure out what value is exactly and return that
+		// object.
+		return value;
 	}
 
 	/**
@@ -154,18 +123,7 @@ public class LocalStorage
 	 */
 	public function removeItem(key:String) : Boolean
 	{
-		if (!storageAvailable()) return null;
-
-		COMPILE::AS3 {
-			delete sharedObject.data[key];
-			sharedObject.flush();
-		}
-
-		COMPILE::JS {
-			window.localStorage.removeItem(key);
-		}
-
-		return true;
+		return storageProvider.removeItem(key);
 	}
 
 	/**
@@ -179,19 +137,7 @@ public class LocalStorage
 	 */
 	public function hasItem(key:String) : Boolean
 	{
-		if (!storageAvailable()) return false;
-
-		var result:Boolean = false;
-
-		COMPILE::AS3 {
-			result = sharedObject.data.hasOwnProperty(key);
-		}
-
-		COMPILE::JS {
-			result = (window.localStorage[key] !== null);
-		}
-
-		return result;
+		return storageProvider.hasItem(key);
 	}
 
 	/**
@@ -205,15 +151,7 @@ public class LocalStorage
 	 */
 	public function clear() : void
 	{
-		if (!storageAvailable()) return;
-
-		COMPILE::AS3 {
-			sharedObject.clear();
-		}
-
-		COMPILE::JS {
-			window.localStorage.clear();
-		}
+		storageProvider.clear();
 	}
 }
 }

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/75ee02d2/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/providers/LocalStorageProvider.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/providers/LocalStorageProvider.as b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/providers/LocalStorageProvider.as
new file mode 100644
index 0000000..5370923
--- /dev/null
+++ b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/providers/LocalStorageProvider.as
@@ -0,0 +1,220 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.storage.providers
+{
+	import org.apache.flex.storage.IWebStorage;
+
+COMPILE::AS3 {
+	import flash.net.SharedObject;
+}
+
+/**
+ *  The LocalStorageProvider class allows apps to store small amounts of data
+ *  locally, in the browser's permitted storage area. This data will persist
+ *  between browser invocations. The data is stored in key=value pairs and the
+ *  value must be a string.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion FlexJS 0.0
+ *  @flexjsignoreimport window
+ */
+public class LocalStorageProvider implements IWebStorage
+{
+
+	/**
+	 * Constructor.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.6
+	 *  @productversion FlexJS 0.0
+	 *  @flexjsignoreimport window
+	 */
+	public function LocalStorageProvider()
+	{
+		COMPILE::AS3 {
+			try {
+				sharedObject = SharedObject.getLocal("flexjs","/",false);
+			} catch(e) {
+				sharedObject = null;
+			}
+		}
+	}
+
+	COMPILE::AS3
+	private var sharedObject:SharedObject;
+
+	/**
+	 * Returns true if the platform provides local storage.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.6
+	 *  @productversion FlexJS 0.0
+	 *  @flexjsignoreimport window
+	 */
+	public function storageAvailable():Boolean
+	{
+		var result:Boolean = false;
+
+		COMPILE::AS3 {
+			result = (sharedObject != null);
+		}
+
+		COMPILE::JS {
+			try {
+				result = 'localStorage' in window && window['localStorage'] !== null;
+			} catch(e) {
+				result = false;
+			}
+		}
+
+		return result;
+	}
+
+	/**
+	 * Stores a value with a key.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.6
+	 *  @productversion FlexJS 0.0
+	 *  @flexjsignoreimport window
+	 */
+	public function setItem(key:String, value:String) : Boolean
+	{
+		if (!storageAvailable()) return false;
+
+		COMPILE::AS3 {
+			sharedObject.data[key] = value;
+			sharedObject.flush();
+		}
+
+		COMPILE::JS {
+			window.localStorage.setItem(key, value);
+		}
+
+		return true;
+	}
+
+	/**
+	 * Returns the value associated with the key, or undefined if there is
+	 * no value stored. Note that a String version of the value is stored.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.6
+	 *  @productversion FlexJS 0.0
+	 *  @flexjsignoreimport window
+	 */
+	public function getItem(key:String) : String
+	{
+		if (!storageAvailable()) return null;
+
+		var result:String = null;
+
+		COMPILE::AS3 {
+			result = sharedObject.data[key] as String;
+		}
+
+		COMPILE::JS {
+			result = window.localStorage.getItem(key);
+		}
+
+		return result;
+	}
+
+	/**
+	 * Removed the value and, possibly, the key from local storage. On some
+	 * platforms, retriving the value after removing it will be an error, on
+	 * others it may return undefined or null.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.6
+	 *  @productversion FlexJS 0.0
+	 *  @flexjsignoreimport window
+	 */
+	public function removeItem(key:String) : Boolean
+	{
+		if (!storageAvailable()) return null;
+
+		COMPILE::AS3 {
+			delete sharedObject.data[key];
+			sharedObject.flush();
+		}
+
+		COMPILE::JS {
+			window.localStorage.removeItem(key);
+		}
+
+		return true;
+	}
+
+	/**
+	 * Returns true if there is a value stored for the key.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.6
+	 *  @productversion FlexJS 0.0
+	 *  @flexjsignoreimport window
+	 */
+	public function hasItem(key:String) : Boolean
+	{
+		if (!storageAvailable()) return false;
+
+		var result:Boolean = false;
+
+		COMPILE::AS3 {
+			result = sharedObject.data.hasOwnProperty(key);
+		}
+
+		COMPILE::JS {
+			result = (window.localStorage[key] !== null);
+		}
+
+		return result;
+	}
+
+	/**
+	 * Clears all values from local storage.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.6
+	 *  @productversion FlexJS 0.0
+	 *  @flexjsignoreimport window
+	 */
+	public function clear() : void
+	{
+		if (!storageAvailable()) return;
+
+		COMPILE::AS3 {
+			sharedObject.clear();
+		}
+
+		COMPILE::JS {
+			window.localStorage.clear();
+		}
+	}
+}
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/75ee02d2/frameworks/projects/Storage/src/main/resources/basic-manifest.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Storage/src/main/resources/basic-manifest.xml b/frameworks/projects/Storage/src/main/resources/basic-manifest.xml
index cd0f5b4..b502203 100644
--- a/frameworks/projects/Storage/src/main/resources/basic-manifest.xml
+++ b/frameworks/projects/Storage/src/main/resources/basic-manifest.xml
@@ -20,5 +20,5 @@
 
 
 <componentPackage>
-
+	<component id="LocalStorage" class="org.apache.flex.storage.LocalStorage"/>
 </componentPackage>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/75ee02d2/frameworks/projects/Storage/src/main/resources/compile-asjs-config.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Storage/src/main/resources/compile-asjs-config.xml b/frameworks/projects/Storage/src/main/resources/compile-asjs-config.xml
index 0d410aa..6b3c6d5 100644
--- a/frameworks/projects/Storage/src/main/resources/compile-asjs-config.xml
+++ b/frameworks/projects/Storage/src/main/resources/compile-asjs-config.xml
@@ -42,6 +42,10 @@
         <locale/>
         
         <library-path>
+            <!-- asjscompc won't 'link' these classes in, but will list their requires
+                 if these swcs are on the external-library-path then their requires
+                 will not be listed -->
+            <path-element>../../../../../externs/Core.swc</path-element>
         </library-path>
         
         <namespaces>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/75ee02d2/frameworks/projects/Storage/src/main/resources/compile-config.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Storage/src/main/resources/compile-config.xml b/frameworks/projects/Storage/src/main/resources/compile-config.xml
index bdd4048..8ca6f9c 100644
--- a/frameworks/projects/Storage/src/main/resources/compile-config.xml
+++ b/frameworks/projects/Storage/src/main/resources/compile-config.xml
@@ -23,6 +23,7 @@
         
         <external-library-path>
             <path-element>${env.AIR_HOME}/frameworks/libs/air/airglobal.swc</path-element>
+            <path-element>../../../../../libs/Core.swc</path-element>
         </external-library-path>
         
 		<mxml>
@@ -59,6 +60,10 @@
     </compiler>
     
     <include-file>
+        <name>defaults.css</name>
+        <path>defaults.css</path>
+    </include-file>
+    <include-file>
         <name>js/out/*</name>
         <path>../../../target/generated-sources/flexjs/*</path>
     </include-file>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/75ee02d2/frameworks/projects/Storage/src/main/resources/defaults.css
----------------------------------------------------------------------
diff --git a/frameworks/projects/Storage/src/main/resources/defaults.css b/frameworks/projects/Storage/src/main/resources/defaults.css
new file mode 100644
index 0000000..9d82e6f
--- /dev/null
+++ b/frameworks/projects/Storage/src/main/resources/defaults.css
@@ -0,0 +1,26 @@
+/*
+ *
+ *  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.
+ *
+ */
+
+@namespace "library://ns.apache.org/flexjs/basic";
+@namespace svg "library://ns.apache.org/flexjs/svg";
+
+LocalStorage
+{
+    IStorageProvider: ClassReference("org.apache.flex.storage.providers.LocalStorageProvider");
+}
\ No newline at end of file


[37/43] git commit: [flex-asjs] [refs/heads/e4x] - fix gpg check for docs in approval script

Posted by ha...@apache.org.
fix gpg check for docs in approval script


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

Branch: refs/heads/e4x
Commit: bfc904cbc1aef3824b9424f42dc69d352f305f0a
Parents: 8009ec0
Author: Alex Harui <ah...@apache.org>
Authored: Tue Mar 29 22:22:08 2016 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Tue Mar 29 22:22:08 2016 -0700

----------------------------------------------------------------------
 ApproveFlexJS.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/bfc904cb/ApproveFlexJS.xml
----------------------------------------------------------------------
diff --git a/ApproveFlexJS.xml b/ApproveFlexJS.xml
index 2c2a436..12341ad 100644
--- a/ApproveFlexJS.xml
+++ b/ApproveFlexJS.xml
@@ -298,8 +298,8 @@
         </exec>
         <exec executable="gpg" failonerror="true">
             <arg value="--verify" />
-            <arg value="${basedir}/${doc.package.url.name}.${package.suffix}.asc" />
-            <arg value="${basedir}/${doc.package.url.name}.${package.suffix}" />
+            <arg value="${basedir}/${doc.package.url.name}.zip.asc" />
+            <arg value="${basedir}/${doc.package.url.name}.zip" />
         </exec>
     </target>
     


[26/43] git commit: [flex-asjs] [refs/heads/e4x] - Use airglobal.swc from PROJECT_FRAMEWORKS}/libs/air/ instead of adding a reference to AIR SDK.

Posted by ha...@apache.org.
Use airglobal.swc from PROJECT_FRAMEWORKS}/libs/air/ instead of adding a reference to AIR SDK.


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

Branch: refs/heads/e4x
Commit: d3f59fa55bc435e12992b4d0a4991743a1a0bfca
Parents: f25c9bf
Author: OmPrakash Muppirala <bi...@gmail.com>
Authored: Sun Mar 20 01:05:09 2016 -0700
Committer: OmPrakash Muppirala <bi...@gmail.com>
Committed: Sun Mar 20 01:05:09 2016 -0700

----------------------------------------------------------------------
 frameworks/projects/HTML/.actionScriptProperties | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d3f59fa5/frameworks/projects/HTML/.actionScriptProperties
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/.actionScriptProperties b/frameworks/projects/HTML/.actionScriptProperties
index d47dcf7..3497d5d 100644
--- a/frameworks/projects/HTML/.actionScriptProperties
+++ b/frameworks/projects/HTML/.actionScriptProperties
@@ -47,7 +47,7 @@ limitations under the License.
       <libraryPathEntry kind="3" linkType="1" path="/Core/target/Core.swc" useDefaultLinkType="false"/>
       <libraryPathEntry kind="3" linkType="1" path="/Graphics/target/Graphics.swc" useDefaultLinkType="false"/>
       <libraryPathEntry kind="3" linkType="1" path="/Collections/target/Collections.swc" useDefaultLinkType="false"/>
-      <libraryPathEntry kind="1" linkType="1" path="${AIR_HOME}/frameworks/libs/air"/>
+      <libraryPathEntry kind="3" linkType="2" path="${PROJECT_FRAMEWORKS}/libs/air/airglobal.swc" useDefaultLinkType="false"/>
     </libraryPath>
     <sourceAttachmentPath/>
   </compiler>


[25/43] git commit: [flex-asjs] [refs/heads/e4x] - Update Flash Builder/Eclipse project to add reference to Graphics project.

Posted by ha...@apache.org.
Update Flash Builder/Eclipse project to add reference to Graphics project.


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

Branch: refs/heads/e4x
Commit: f25c9bf406e65bb2c7d7220a9ed9c71c22b3bd64
Parents: 7e67f4b
Author: OmPrakash Muppirala <bi...@gmail.com>
Authored: Sun Mar 20 01:00:08 2016 -0700
Committer: OmPrakash Muppirala <bi...@gmail.com>
Committed: Sun Mar 20 01:00:08 2016 -0700

----------------------------------------------------------------------
 frameworks/projects/Mobile/.actionScriptProperties | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f25c9bf4/frameworks/projects/Mobile/.actionScriptProperties
----------------------------------------------------------------------
diff --git a/frameworks/projects/Mobile/.actionScriptProperties b/frameworks/projects/Mobile/.actionScriptProperties
index 280df12..49275b1 100644
--- a/frameworks/projects/Mobile/.actionScriptProperties
+++ b/frameworks/projects/Mobile/.actionScriptProperties
@@ -46,6 +46,7 @@ limitations under the License.
       <libraryPathEntry kind="3" linkType="2" path="${PROJECT_FRAMEWORKS}/libs/air/airglobal.swc" useDefaultLinkType="false"/>
       <libraryPathEntry kind="3" linkType="1" path="/Core/target/Core.swc" useDefaultLinkType="false"/>
       <libraryPathEntry kind="3" linkType="1" path="/HTML/target/HTML.swc" useDefaultLinkType="false"/>
+      <libraryPathEntry kind="3" linkType="1" path="/Graphics/target/Graphics.swc" useDefaultLinkType="false"/>
     </libraryPath>
     <sourceAttachmentPath/>
   </compiler>


[09/43] git commit: [flex-asjs] [refs/heads/e4x] - make event constructors match

Posted by ha...@apache.org.
make event constructors match


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

Branch: refs/heads/e4x
Commit: 063ac08e0a5a6c15b06606e5e159ed3154d72648
Parents: 75ee02d
Author: Alex Harui <ah...@apache.org>
Authored: Mon Feb 29 17:51:56 2016 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Mon Feb 29 17:51:56 2016 -0800

----------------------------------------------------------------------
 .../flex/org/apache/flex/events/CustomEvent.as     |  9 +--------
 .../src/main/flex/org/apache/flex/events/Event.as  | 17 +++++++++--------
 .../flex/org/apache/flex/events/EventDispatcher.as | 14 ++++++++++++++
 .../main/flex/org/apache/flex/events/MouseEvent.as |  2 +-
 .../org/apache/flex/events/ValueChangeEvent.as     |  9 +--------
 .../main/flex/org/apache/flex/events/ValueEvent.as | 10 +---------
 6 files changed, 27 insertions(+), 34 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/063ac08e/frameworks/projects/Core/src/main/flex/org/apache/flex/events/CustomEvent.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/org/apache/flex/events/CustomEvent.as b/frameworks/projects/Core/src/main/flex/org/apache/flex/events/CustomEvent.as
index a7921df..ab3e173 100644
--- a/frameworks/projects/Core/src/main/flex/org/apache/flex/events/CustomEvent.as
+++ b/frameworks/projects/Core/src/main/flex/org/apache/flex/events/CustomEvent.as
@@ -51,14 +51,7 @@ package org.apache.flex.events
 		 */
 		public function CustomEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
 		{
-            COMPILE::AS3
-            {
-                super(type, bubbles, cancelable);                    
-            }
-            COMPILE::JS
-            {
-                super(type);
-            }
+            super(type, bubbles, cancelable);                    
 		}
 	}
 }

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/063ac08e/frameworks/projects/Core/src/main/flex/org/apache/flex/events/Event.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/org/apache/flex/events/Event.as b/frameworks/projects/Core/src/main/flex/org/apache/flex/events/Event.as
index 008909b..8076c66 100644
--- a/frameworks/projects/Core/src/main/flex/org/apache/flex/events/Event.as
+++ b/frameworks/projects/Core/src/main/flex/org/apache/flex/events/Event.as
@@ -105,14 +105,15 @@ package org.apache.flex.events
 
 		public static const CHANGE:String = "change";
 
-        public function Event(type:String, target:Object = null) {
-            super(type, target);
+        public function Event(type:String, bubbles:Boolean = false, cancelable:Boolean = false) {
+            super(type);
+			this.bubbles = true;
+			this.cancelable = true;
         }
 
-		public function init(type:String):void {
-			this.type = type;
-		}
-		
+		public var bubbles:Boolean;
+		public var cancelable:Boolean;
+				
 		/**
 		 * Google Closure doesn't seem to support stopImmediatePropagation, but
 		 * actually the HTMLElementWrapper fireListener override sends a
@@ -122,12 +123,12 @@ package org.apache.flex.events
 		 */
 		public function stopImmediatePropagation():void
 		{
-			// do nothing
+			throw new Error("stopImmediatePropagation");
 		}
 		
 		public function cloneEvent():org.apache.flex.events.Event
 		{
-			return this;
+			return new org.apache.flex.events.Event(type, bubbles, cancelable);
 		}
     }
 }

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/063ac08e/frameworks/projects/Core/src/main/flex/org/apache/flex/events/EventDispatcher.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/org/apache/flex/events/EventDispatcher.as b/frameworks/projects/Core/src/main/flex/org/apache/flex/events/EventDispatcher.as
index ceec8ee..f6e635b 100644
--- a/frameworks/projects/Core/src/main/flex/org/apache/flex/events/EventDispatcher.as
+++ b/frameworks/projects/Core/src/main/flex/org/apache/flex/events/EventDispatcher.as
@@ -62,5 +62,19 @@ package org.apache.flex.events
         {
             return goog.events.hasListener(this, type);
         }
+		
+		override public function dispatchEvent(event:Object):Boolean
+		{
+			try 
+			{
+				return super.dispatchEvent(event);
+			}
+			catch (e:Error)
+			{
+				if (e.name != "stopImmediatePropagation")
+					throw e;
+			}
+			return false;
+		}
 	}
 }

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/063ac08e/frameworks/projects/Core/src/main/flex/org/apache/flex/events/MouseEvent.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/org/apache/flex/events/MouseEvent.as b/frameworks/projects/Core/src/main/flex/org/apache/flex/events/MouseEvent.as
index 63bad5c..605885d 100644
--- a/frameworks/projects/Core/src/main/flex/org/apache/flex/events/MouseEvent.as
+++ b/frameworks/projects/Core/src/main/flex/org/apache/flex/events/MouseEvent.as
@@ -170,7 +170,7 @@ package org.apache.flex.events
 								   commandKey:Boolean = false, controlKey:Boolean = false,
 								   clickCount:int = 0)
 		{
-			super(type);
+			super(type, bubbles, cancelable);
 
 			this.localX = localX;
 			this.localY = localY;

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/063ac08e/frameworks/projects/Core/src/main/flex/org/apache/flex/events/ValueChangeEvent.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/org/apache/flex/events/ValueChangeEvent.as b/frameworks/projects/Core/src/main/flex/org/apache/flex/events/ValueChangeEvent.as
index 45fabbd..e7c93b0 100644
--- a/frameworks/projects/Core/src/main/flex/org/apache/flex/events/ValueChangeEvent.as
+++ b/frameworks/projects/Core/src/main/flex/org/apache/flex/events/ValueChangeEvent.as
@@ -42,14 +42,7 @@ package org.apache.flex.events
 		public function ValueChangeEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false, 
 										 oldValue:Object = null, newValue:Object = null)
 		{
-            COMPILE::AS3
-            {
-    			super(type, bubbles, cancelable);
-            }
-            COMPILE::JS
-            {
-                super(type);
-            }
+    		super(type, bubbles, cancelable);
 			this.oldValue = oldValue;
 			this.newValue = newValue;
 		}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/063ac08e/frameworks/projects/Core/src/main/flex/org/apache/flex/events/ValueEvent.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/org/apache/flex/events/ValueEvent.as b/frameworks/projects/Core/src/main/flex/org/apache/flex/events/ValueEvent.as
index 6088680..889f079 100644
--- a/frameworks/projects/Core/src/main/flex/org/apache/flex/events/ValueEvent.as
+++ b/frameworks/projects/Core/src/main/flex/org/apache/flex/events/ValueEvent.as
@@ -41,15 +41,7 @@ package org.apache.flex.events
 		public function ValueEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false, 
 										 value:Object = null)
 		{
-            COMPILE::AS3
-            {
-    			super(type, bubbles, cancelable);
-            }
-            
-            COMPILE::JS
-            {
-                super(type);
-            }
+			super(type, bubbles, cancelable);
             
 			this.value = value;
 		}


[06/43] git commit: [flex-asjs] [refs/heads/e4x] - Added LocalStorage class via new Storage project.

Posted by ha...@apache.org.
Added LocalStorage class via new Storage project.


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

Branch: refs/heads/e4x
Commit: 54794500106b4023156cdfda39a363f947d26ad5
Parents: d5ee78a
Author: Peter Ent <pe...@apache.org>
Authored: Mon Feb 22 14:34:28 2016 -0500
Committer: Peter Ent <pe...@apache.org>
Committed: Mon Feb 22 14:34:28 2016 -0500

----------------------------------------------------------------------
 frameworks/build.xml                            |   6 +
 frameworks/projects/Storage/build.xml           | 172 ++++++++++++++++
 .../Storage/src/main/flex/StorageClasses.as     |  34 ++++
 .../org/apache/flex/storage/LocalStorage.as     | 197 +++++++++++++++++++
 .../src/main/resources/basic-manifest.xml       |  24 +++
 .../src/main/resources/compile-asjs-config.xml  |  78 ++++++++
 .../src/main/resources/compile-config.xml       |  77 ++++++++
 7 files changed, 588 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/54794500/frameworks/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/build.xml b/frameworks/build.xml
index eebb204..8ba8f75 100644
--- a/frameworks/build.xml
+++ b/frameworks/build.xml
@@ -93,6 +93,7 @@
         <antcall target="Mobile"/>
         <antcall target="Network"/>
         <antcall target="Reflection"/>
+        <antcall target="Storage"/>
     </target>
     
     <target name="fonts">
@@ -136,6 +137,7 @@
         <ant dir="${basedir}/projects/Mobile" target="clean"/>
         <ant dir="${basedir}/projects/Network" target="clean"/>
         <ant dir="${basedir}/projects/Reflection" target="clean"/>
+        <ant dir="${basedir}/projects/Storage" target="clean"/>
         <ant dir="${basedir}/fontsrc" target="clean"/>
 
         <!-- delete the FlashBuilder executable directories -->
@@ -224,6 +226,10 @@
         <ant dir="${basedir}/projects/Reflection"/>
     </target>
 
+    <target name="Storage" description="Clean build of Storage.swc">
+        <ant dir="${basedir}/projects/Storage"/>
+    </target>
+
 	<target name="flex-config" depends="playerglobal-setswfversion" description="Copy the flex config template to flex-config.xml and inject version numbers">
 		<copy file="${basedir}/flex-config-template.xml" tofile="${basedir}/flex-config.xml" overwrite="true">
 			<filterset>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/54794500/frameworks/projects/Storage/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Storage/build.xml b/frameworks/projects/Storage/build.xml
new file mode 100644
index 0000000..0d5fd9a
--- /dev/null
+++ b/frameworks/projects/Storage/build.xml
@@ -0,0 +1,172 @@
+<?xml version="1.0"?>
+<!--
+
+  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.
+
+-->
+
+
+<project name="Storage" default="main" basedir=".">
+    <property name="FLEXJS_HOME" location="../../.."/>
+
+    <property file="${FLEXJS_HOME}/env.properties"/>
+    <property environment="env"/>
+    <property file="${FLEXJS_HOME}/build.properties"/>
+    <property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
+    <property name="FALCON_HOME" value="${env.FALCON_HOME}"/>
+    <property name="FALCONJX_HOME" value="${env.FALCONJX_HOME}"/>
+    <property name="JS.SWC" value="${FALCONJX_HOME}/../externs/js/out/bin/js.swc" />
+    <property name="GCL.SWC" value="${FALCONJX_HOME}/../externs/GCL/out/bin/GCL.swc" />
+    <property name="target.name" value="Storage-${release.version}.swc" />
+    <property name="target.name.no.version" value="Storage.swc" />
+
+    <target name="main" depends="clean,compile-asjs,compile-extern-swc,copy-js,compile,test" description="Full build of Storage.swc">
+    </target>
+
+    <target name="test" unless="is.jenkins">
+        <!-- no tests yet
+         <ant dir="as/tests"/>
+        -->
+    </target>
+
+    <target name="test-js" unless="is.jenkins">
+        <!-- no tests yet
+         <ant dir="js/tests" />
+         -->
+    </target>
+
+    <target name="clean">
+        <delete failonerror="false">
+            <fileset dir="${FLEXJS_HOME}/frameworks/libs">
+                <include name="${target.name.no.version}"/>
+            </fileset>
+        </delete>
+        <delete failonerror="false">
+            <fileset dir="${basedir}/target">
+                <include name="**/**"/>
+            </fileset>
+        </delete>
+    </target>
+
+    <path id="lib.path">
+        <fileset dir="${FALCON_HOME}/lib" includes="falcon-flexTasks.jar"/>
+    </path>
+
+    <target name="compile" description="Compiles .as files into .swc">
+        <echo message="Compiling target/${target.name}"/>
+        <echo message="FLEX_HOME: ${FLEX_HOME}"/>
+        <echo message="FALCON_HOME: ${FALCON_HOME}"/>
+        <!-- make JS output folder now so include-file doesn't error -->
+        <mkdir dir="${basedir}/target/generated-sources/flexjs"/>
+
+        <!-- Load the <compc> task. We can't do this at the <project> level -->
+        <!-- because targets that run before flexTasks.jar gets built would fail. -->
+        <taskdef resource="flexTasks.tasks" classpathref="lib.path"/>
+        <!--
+            Link in the classes (and their dependencies) for the MXML tags
+            listed in this project's manifest.xml.
+            Also link the additional classes (and their dependencies)
+            listed in StorageClasses.as,
+            because these aren't referenced by the manifest classes.
+            Keep the standard metadata when compiling.
+            Include the appropriate CSS files and assets in the SWC.
+            Don't include any resources in the SWC.
+            Write a bundle list of referenced resource bundles
+            into the file bundles.properties in this directory.
+        -->
+        <compc fork="true"
+            output="${basedir}/target/${target.name}">
+            <jvmarg line="${compc.jvm.args}"/>
+            <load-config filename="${basedir}/src/main/resources/compile-config.xml" />
+            <arg value="+playerglobal.version=${playerglobal.version}" />
+            <arg value="+env.AIR_HOME=${env.AIR_HOME}" />
+            <arg value="-define=COMPILE::AS3,true" />
+            <arg value="-define=COMPILE::JS,false" />
+        </compc>
+        <copy file="${basedir}/target/${target.name}" tofile="${FLEXJS_HOME}/frameworks/libs/${target.name.no.version}" />
+    </target>
+
+    <target name="compile-asjs">
+        <echo message="Cross-compiling ${target.name}"/>
+        <echo message="FALCONJX_HOME: ${FALCONJX_HOME}"/>
+        <java jar="${FALCONJX_HOME}/lib/compc.jar" fork="true" >
+            <jvmarg value="-Xmx384m" />
+            <jvmarg value="-Dsun.io.useCanonCaches=false" />
+            <jvmarg value="-Dflexcompiler=${FALCONJX_HOME}/../compiler" />
+            <jvmarg value="-Dflexlib=${FLEXJS_HOME}/frameworks" />
+            <arg value="+flexlib=${FLEX_HOME}/frameworks" />
+            <arg value="-js-output-type=FLEXJS" />
+            <arg value="-keep-asdoc" /><!-- allows compiler to see @flexjsignorecoercion annotations -->
+            <arg value="-output=${basedir}/target/generated-sources/flexjs" />
+            <arg value="-load-config=${basedir}/src/main/resources/compile-asjs-config.xml" />
+            <arg value="+playerglobal.version=${playerglobal.version}" />
+            <arg value="+env.PLAYERGLOBAL_HOME=${env.PLAYERGLOBAL_HOME}" />
+            <arg value="+env.AIR_HOME=${env.AIR_HOME}" />
+            <arg value="-external-library-path+=${JS.SWC}" />
+            <!-- this is not on external-library path otherwise goog.requires are not generated -->
+            <arg value="-library-path+=${GCL.SWC}" />
+            <arg value="-define=COMPILE::AS3,false" />
+            <arg value="-define=COMPILE::JS,true" />
+        </java>
+    </target>
+
+    <target name="compile-extern-swc" description="Compiles .as files into .swc used for cross-compiling other projects">
+        <echo message="Compiling target/externs/${target.name}"/>
+        <echo message="FLEX_HOME: ${FLEX_HOME}"/>
+        <echo message="FALCON_HOME: ${FALCON_HOME}"/>
+        <!-- make JS output folder now so include-file doesn't error -->
+        <mkdir dir="${FLEXJS_HOME}/frameworks/externs"/>
+        <mkdir dir="${basedir}/target/externs"/>
+        
+        <!-- Load the <compc> task. We can't do this at the <project> level -->
+        <!-- because targets that run before flexTasks.jar gets built would fail. -->
+        <taskdef resource="flexTasks.tasks" classpathref="lib.path"/>
+        <!--
+         Link in the classes (and their dependencies) for the MXML tags
+         listed in this project's manifest.xml.
+         Also link the additional classes (and their dependencies)
+         listed in CoreClasses.as,
+         because these aren't referenced by the manifest classes.
+         Keep the standard metadata when compiling.
+         Include the appropriate CSS files and assets in the SWC.
+         Don't include any resources in the SWC.
+         Write a bundle list of referenced resource bundles
+         into the file bundles.properties in this directory.
+         -->
+        <compc fork="true"
+            output="${basedir}/target/externs/${target.name}">
+            <jvmarg line="${compc.jvm.args}"/>
+            <load-config filename="src/main/resources/compile-asjs-config.xml" />
+            <arg value="+playerglobal.version=${playerglobal.version}" />
+            <arg value="+env.AIR_HOME=${env.AIR_HOME}" />
+            <arg value="-external-library-path+=${JS.SWC}" />
+            <!-- this is not on external-library path otherwise goog.requires are not generated -->
+            <arg value="-library-path+=${GCL.SWC}" />
+            <arg value="-define=COMPILE::AS3,false" />
+            <arg value="-define=COMPILE::JS,true" />
+        </compc>
+        <copy file="${basedir}/target/externs/${target.name}" tofile="${FLEXJS_HOME}/frameworks/externs/${target.name.no.version}" />
+    </target>
+
+    <target name="copy-js">
+        <copy todir="${FLEXJS_HOME}/frameworks/js/FlexJS/libs">
+            <fileset dir="${basedir}/target/generated-sources/flexjs">
+                <include name="**/**"/>
+            </fileset>
+        </copy>
+    </target>
+
+</project>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/54794500/frameworks/projects/Storage/src/main/flex/StorageClasses.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Storage/src/main/flex/StorageClasses.as b/frameworks/projects/Storage/src/main/flex/StorageClasses.as
new file mode 100644
index 0000000..1f6b80a
--- /dev/null
+++ b/frameworks/projects/Storage/src/main/flex/StorageClasses.as
@@ -0,0 +1,34 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 
+{
+
+/**
+ *  @private
+ *  This class is used to link additional classes into rpc.swc
+ *  beyond those that are found by dependency analysis starting
+ *  from the classes specified in manifest.xml.
+ */
+internal class StorageClasses
+{	
+    import org.apache.flex.storage.LocalStorage; LocalStorage;
+}
+
+}
+

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/54794500/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/LocalStorage.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/LocalStorage.as b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/LocalStorage.as
new file mode 100644
index 0000000..a3a2b87
--- /dev/null
+++ b/frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/LocalStorage.as
@@ -0,0 +1,197 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.storage
+{
+COMPILE::AS3 {
+	import flash.net.SharedObject;
+}
+
+/**
+ *  The LocalStorage class allows apps to store small amounts of data
+ *  locally, in the browser's permitted storage area. This data will persist
+ *  between browser invocations. The data is stored in key=value pairs.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion FlexJS 0.0
+ *  @flexjsignoreimport window
+ */
+public class LocalStorage
+{
+	
+	/**
+	 * Constructor.
+	 *  
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.6
+	 *  @productversion FlexJS 0.0
+	 *  @flexjsignoreimport window
+	 */
+	public function LocalStorage() 
+	{
+		COMPILE::AS3 {
+			try {
+				sharedObject = SharedObject.getLocal("flexjs","/",false);
+			} catch(e) {
+				sharedObject = null;
+			}
+		}
+	}
+	
+	COMPILE::AS3
+	private var sharedObject:SharedObject;
+	
+	/**
+	 * Returns true if the platform provides local storage.
+	 *  
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.6
+	 *  @productversion FlexJS 0.0
+	 *  @flexjsignoreimport window
+	 */
+	public function storageAvailable():Boolean
+	{
+		var result:Boolean = false;
+		
+		COMPILE::AS3 {
+			result = (sharedObject != null);
+		}
+		
+		COMPILE::JS {
+			try {
+				result = 'localStorage' in window && window['localStorage'] !== null;
+			} catch(e) {
+				result = false;
+			}
+		}
+		
+		return result;
+	}
+	
+	/**
+	 * Stores a value with a key. The value may be converted to a String, depending
+	 * on the platform.
+	 *  
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.6
+	 *  @productversion FlexJS 0.0
+	 *  @flexjsignoreimport window
+	 */
+	public function setValue(key:String, value:Object) : Boolean
+	{
+		if (!storageAvailable()) return false;
+				
+		COMPILE::AS3 {
+			sharedObject.data[key] = value;
+			sharedObject.flush();
+		}
+		
+		COMPILE::JS {
+			window.localStorage[key] = value;
+		}
+		
+		return true;
+	}
+	
+	/**
+	 * Returns the value associated with the key, or undefined if there is
+	 * no value stored. Note that a String version of the value may have been
+	 * stored, depending on the platform.
+	 *  
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.6
+	 *  @productversion FlexJS 0.0
+	 *  @flexjsignoreimport window
+	 */
+	public function getValue(key:String) : Object
+	{
+		if (!storageAvailable()) return null;
+		
+		var result:Object = null;
+		
+		COMPILE::AS3 {
+			result = sharedObject.data[key];
+		}
+		
+		COMPILE::JS {
+			result = window.localStorage[key];
+		}
+		
+		return result;
+	}
+	
+	/**
+	 * Removed the value and, possibly, the key from local storage. On some
+	 * platforms, retriving the value after removing it will be an error, on
+	 * others it may return undefined or null.
+	 *  
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.6
+	 *  @productversion FlexJS 0.0
+	 *  @flexjsignoreimport window
+	 */
+	public function removeValue(key:String) : Boolean
+	{
+		if (!storageAvailable()) return null;
+				
+		COMPILE::AS3 {
+			delete sharedObject.data[key];
+			sharedObject.flush();
+		}
+		
+		COMPILE::JS {
+			window.localStorage[key] = null;
+		}
+		
+		return true;
+	}
+	
+	/**
+	 * Returns true if there is a value stored for the key.
+	 *  
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.6
+	 *  @productversion FlexJS 0.0
+	 *  @flexjsignoreimport window
+	 */
+	public function hasValue(key:String) : Boolean
+	{
+		if (!storageAvailable()) return false;
+		
+		var result:Boolean = false;
+		
+		COMPILE::AS3 {
+			result = sharedObject.data.hasOwnProperty(key);
+		}
+		
+		COMPILE::JS {
+			result = (window.localStorage[key] !== null);
+		}
+		
+		return result;
+	}
+}
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/54794500/frameworks/projects/Storage/src/main/resources/basic-manifest.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Storage/src/main/resources/basic-manifest.xml b/frameworks/projects/Storage/src/main/resources/basic-manifest.xml
new file mode 100644
index 0000000..cd0f5b4
--- /dev/null
+++ b/frameworks/projects/Storage/src/main/resources/basic-manifest.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<!--
+
+  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.
+
+-->
+
+
+<componentPackage>
+
+</componentPackage>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/54794500/frameworks/projects/Storage/src/main/resources/compile-asjs-config.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Storage/src/main/resources/compile-asjs-config.xml b/frameworks/projects/Storage/src/main/resources/compile-asjs-config.xml
new file mode 100644
index 0000000..0d410aa
--- /dev/null
+++ b/frameworks/projects/Storage/src/main/resources/compile-asjs-config.xml
@@ -0,0 +1,78 @@
+<!--
+
+  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.
+
+-->
+<flex-config>
+
+    <compiler>
+        <accessible>false</accessible>
+        
+        <external-library-path>
+        </external-library-path>
+        
+		<mxml>
+			<children-as-data>true</children-as-data>
+		</mxml>
+		<binding-value-change-event>org.apache.flex.events.ValueChangeEvent</binding-value-change-event>
+		<binding-value-change-event-kind>org.apache.flex.events.ValueChangeEvent</binding-value-change-event-kind>
+		<binding-value-change-event-type>valueChange</binding-value-change-event-type>
+
+        <keep-as3-metadata>
+          <name>Bindable</name>
+          <name>Managed</name>
+          <name>ChangeEvent</name>
+          <name>NonCommittingChangeEvent</name>
+          <name>Transient</name>
+        </keep-as3-metadata>
+	  
+        <locale/>
+        
+        <library-path>
+        </library-path>
+        
+        <namespaces>
+            <namespace>
+                <uri>library://ns.apache.org/flexjs/basic</uri>
+                <manifest>basic-manifest.xml</manifest>
+            </namespace>
+        </namespaces>
+        
+        <source-path>
+            <path-element>../flex</path-element>
+        </source-path>
+        
+        <warn-no-constructor>false</warn-no-constructor>
+    </compiler>
+    
+    <include-file>
+    </include-file>
+
+    <include-sources>
+    </include-sources>
+    
+    <include-classes>
+        <class>StorageClasses</class>
+    </include-classes>
+    
+    <include-namespaces>
+        <uri>library://ns.apache.org/flexjs/basic</uri>
+    </include-namespaces>
+    
+    <target-player>${playerglobal.version}</target-player>
+	
+
+</flex-config>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/54794500/frameworks/projects/Storage/src/main/resources/compile-config.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Storage/src/main/resources/compile-config.xml b/frameworks/projects/Storage/src/main/resources/compile-config.xml
new file mode 100644
index 0000000..bdd4048
--- /dev/null
+++ b/frameworks/projects/Storage/src/main/resources/compile-config.xml
@@ -0,0 +1,77 @@
+<!--
+
+  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.
+
+-->
+<flex-config>
+
+    <compiler>
+        <accessible>false</accessible>
+        
+        <external-library-path>
+            <path-element>${env.AIR_HOME}/frameworks/libs/air/airglobal.swc</path-element>
+        </external-library-path>
+        
+		<mxml>
+			<children-as-data>true</children-as-data>
+		</mxml>
+		<binding-value-change-event>org.apache.flex.events.ValueChangeEvent</binding-value-change-event>
+		<binding-value-change-event-kind>org.apache.flex.events.ValueChangeEvent</binding-value-change-event-kind>
+		<binding-value-change-event-type>valueChange</binding-value-change-event-type>
+
+        <keep-as3-metadata>
+          <name>Bindable</name>
+          <name>Managed</name>
+          <name>ChangeEvent</name>
+          <name>NonCommittingChangeEvent</name>
+          <name>Transient</name>
+        </keep-as3-metadata>
+	  
+        <locale/>
+        
+        <library-path/>
+
+        <namespaces>
+            <namespace>
+                <uri>library://ns.apache.org/flexjs/basic</uri>
+                <manifest>basic-manifest.xml</manifest>
+            </namespace>
+        </namespaces>
+        
+        <source-path>
+            <path-element>../flex</path-element>
+        </source-path>
+        
+        <warn-no-constructor>false</warn-no-constructor>
+    </compiler>
+    
+    <include-file>
+        <name>js/out/*</name>
+        <path>../../../target/generated-sources/flexjs/*</path>
+    </include-file>
+
+    <include-classes>
+        <class>StorageClasses</class>
+    </include-classes>
+    
+    <include-namespaces>
+        <uri>library://ns.apache.org/flexjs/basic</uri>
+    </include-namespaces>  
+        
+    <target-player>${playerglobal.version}</target-player>
+	
+
+</flex-config>


[05/43] git commit: [flex-asjs] [refs/heads/e4x] - Initial Proxy implementation for FlexJS

Posted by ha...@apache.org.
Initial Proxy implementation for FlexJS


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

Branch: refs/heads/e4x
Commit: d5ee78af8021529921a760abbd1806c2d20657ee
Parents: 4c73001
Author: Alex Harui <ah...@apache.org>
Authored: Sun Feb 21 22:03:43 2016 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Sun Feb 21 22:03:43 2016 -0800

----------------------------------------------------------------------
 .../projects/Core/src/main/flex/CoreClasses.as  |   2 +
 .../main/flex/org/apache/flex/utils/Proxy.as    | 152 +++++++++++++++++++
 manualtests/ProxyTest/build.xml                 |  72 +++++++++
 manualtests/ProxyTest/src/MyInitialView.mxml    |  67 ++++++++
 manualtests/ProxyTest/src/ProxyTest.mxml        |  40 +++++
 manualtests/ProxyTest/src/README.txt            |  45 ++++++
 .../ProxyTest/src/controllers/MyController.as   |  52 +++++++
 manualtests/ProxyTest/src/models/MyModel.as     | 125 +++++++++++++++
 8 files changed, 555 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d5ee78af/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 ee984aa..5ad1688 100644
--- a/frameworks/projects/Core/src/main/flex/CoreClasses.as
+++ b/frameworks/projects/Core/src/main/flex/CoreClasses.as
@@ -140,6 +140,8 @@ internal class CoreClasses
     import org.apache.flex.core.ParentDocumentBead; ParentDocumentBead;
     import org.apache.flex.utils.CSSUtils; CSSUtils;
 
+    import org.apache.flex.utils.Proxy; Proxy;
+
 	COMPILE::JS
 	{
 	    import org.apache.flex.utils.Language; Language;

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d5ee78af/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/Proxy.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/Proxy.as b/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/Proxy.as
new file mode 100644
index 0000000..39b6945
--- /dev/null
+++ b/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/Proxy.as
@@ -0,0 +1,152 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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
+{
+COMPILE::AS3
+{
+    import flash.utils.Proxy;
+	import flash.utils.flash_proxy;
+}
+
+COMPILE::JS
+{
+    import org.apache.flex.events.EventDispatcher;
+}
+
+//--------------------------------------
+//  Events
+//--------------------------------------
+
+/**
+ *  The Proxy class calls methods when properties
+ *  are set and read and deleted.  
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion FlexJS 0.0
+ */
+COMPILE::AS3
+public dynamic class Proxy extends flash.utils.Proxy
+{
+	private var valueMap:Object = {};
+	
+	override flash_proxy function getProperty(propName:*):*
+	{
+		return valueMap[propName];
+	}
+	
+	override flash_proxy function setProperty(propName:*, value:*):void
+	{
+		valueMap[propName] = value;
+	}
+	
+	override flash_proxy function hasProperty(propName:*):Boolean
+	{
+		return valueMap.hasOwnProperty(propName);
+	}
+	
+	override flash_proxy function deleteProperty(propName:*):Boolean
+	{
+		return delete valueMap[propName];
+	}
+	
+	private var names:Array;
+	
+	override flash_proxy function nextNameIndex (index:int):int 
+	{
+		// initial call
+		if (index == 0) {
+			names = new Array();
+			for (var p:* in valueMap) {
+				names.push(p);
+			}
+		}
+		
+		if (index < names.length) {
+			return index + 1;
+		} else {
+			return 0;
+		}
+	}
+	
+	override flash_proxy function nextName(index:int):String 
+	{
+		return names[index - 1];
+	}
+	
+	override flash_proxy function nextValue(index:int):* 
+	{
+		return valueMap[names[index - 1]];
+	}
+}
+
+COMPILE::JS
+public dynamic class Proxy extends EventDispatcher
+{
+    /**
+     *  Constructor.
+     * 
+     *  @param delay The number of milliseconds 
+     *  to wait before dispatching the event.
+     *  @param repeatCount The number of times to dispatch
+     *  the event.  If 0, keep dispatching forever.
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.6
+     *  @productversion FlexJS 0.0
+     */
+    public function Proxy()
+    {
+    }
+    
+    
+	private var valueMap:Object = {};
+    
+    public function getProperty(propName:String):*
+    {
+        return valueMap[propName];
+    }
+    
+    public function setProperty(propName:String, value:*):void
+    {
+        valueMap[propName] = value;
+    }
+    
+    public function hasProperty(propName:String):Boolean
+    {
+		return valueMap.hasOwnProperty(propName);
+    }
+    
+    public function deleteProperty(propName:String):void
+    {
+        delete valueMap[propName];
+    }
+	
+	public function elementNames():Array
+	{
+		var names:Array = [];
+		for (var p:String in valueMap)
+			names.push(p);
+		return names;
+	}
+}
+
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d5ee78af/manualtests/ProxyTest/build.xml
----------------------------------------------------------------------
diff --git a/manualtests/ProxyTest/build.xml b/manualtests/ProxyTest/build.xml
new file mode 100644
index 0000000..2e1bcb7
--- /dev/null
+++ b/manualtests/ProxyTest/build.xml
@@ -0,0 +1,72 @@
+<?xml version="1.0"?>
+<!--
+
+  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.
+
+-->
+
+
+<project name="proxytest" default="main" basedir=".">
+    <property name="FLEXJS_HOME" location="../.."/>
+    <property name="example" value="ProxyTest" />
+    
+    <property environment="env"/>
+    <property file="${FLEXJS_HOME}/build.properties"/>
+    <property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
+    <!-- use this to add keep metadata option -->
+    <property name="theme_arg" value="-keep-as3-metadata+=Event" />
+    <available file="${env.FALCON_HOME}/lib/falcon-mxmlc.jar"
+    type="file"
+    property="FALCON_HOME"
+    value="${env.FALCON_HOME}"/>
+    
+    <available file="${FLEXJS_HOME}/../flex-falcon/compiler/generated/dist/sdk/lib/falcon-mxmlc.jar"
+    type="file"
+    property="FALCON_HOME"
+    value="${FLEXJS_HOME}/../flex-falcon/compiler/generated/dist/sdk"/>
+    
+    <available file="${env.FALCONJX_HOME}/lib/jsc.jar"
+    type="file"
+    property="FALCONJX_HOME"
+    value="${env.FALCONJX_HOME}"/>
+    
+    <available file="${FLEXJS_HOME}/../flex-falcon/compiler.jx/lib/jsc.jar"
+    type="file"
+    property="FALCONJX_HOME"
+    value="${FLEXJS_HOME}/../flex-falcon/compiler.jx"/>
+    
+    <available file="${env.GOOG_HOME}/closure/goog/base.js"
+    type="file"
+    property="GOOG_HOME"
+    value="${env.GOOG_HOME}"/>
+    
+    <available file="${FLEXJS_HOME}/js/lib/google/closure-library/closure/goog/base.js"
+    type="file"
+    property="GOOG_HOME"
+    value="${FLEXJS_HOME}/js/lib/google/closure-library"/>
+    
+    <include file="${basedir}/../build_example.xml" />
+
+    <target name="main" depends="clean,build_example.compile,build_example.compilejs" description="Clean build of FlexJSUI.swc">
+    </target>
+    
+    <target name="clean">
+        <delete dir="${basedir}/bin" failonerror="false" />
+        <delete dir="${basedir}/bin-debug" failonerror="false" />
+        <delete dir="${basedir}/bin-release" failonerror="false" />
+    </target>
+
+</project>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d5ee78af/manualtests/ProxyTest/src/MyInitialView.mxml
----------------------------------------------------------------------
diff --git a/manualtests/ProxyTest/src/MyInitialView.mxml b/manualtests/ProxyTest/src/MyInitialView.mxml
new file mode 100644
index 0000000..9b51ed8
--- /dev/null
+++ b/manualtests/ProxyTest/src/MyInitialView.mxml
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+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.
+
+-->
+<js:ViewBase xmlns:fx="http://ns.adobe.com/mxml/2009"
+				xmlns:js="library://ns.apache.org/flexjs/basic"
+				xmlns:local="*" 
+				xmlns:models="models.*" 
+				xmlns:acc="org.apache.flex.html.accessories.*">
+	
+	<fx:Style>
+		.title {
+			font-size: 14pt;
+			font-weight: bold;
+		}
+
+	</fx:Style>
+	
+	<fx:Script>
+		<![CDATA[			
+			import org.apache.flex.core.IPopUpHost;
+			import org.apache.flex.events.Event;
+			import org.apache.flex.utils.UIUtils;
+						
+            import org.apache.flex.utils.Proxy;
+            
+            public function runTest():void
+            {
+				var p:Proxy = new Proxy();
+				p.foo = "bar";
+				trace(p.foo);
+				var o:Object = p;
+				// in SWF, this should work, but in JS you should get undefined
+                trace(o.foo);
+				var s:String = p.foo + "bar";
+				trace(s); // barbar
+				p.foo += "bar";
+				trace(p.foo); // barbar
+            }
+		]]>
+	</fx:Script>
+	
+	<js:Container id="cont" width="600" height="700" x="50" y="50">
+		<js:beads>
+			<js:VerticalLayout />
+		</js:beads>
+		
+		<js:Label text="Proxy Test" className="title" />
+		<js:TextButton text="Test" click="runTest()" />
+	</js:Container>
+	
+</js:ViewBase>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d5ee78af/manualtests/ProxyTest/src/ProxyTest.mxml
----------------------------------------------------------------------
diff --git a/manualtests/ProxyTest/src/ProxyTest.mxml b/manualtests/ProxyTest/src/ProxyTest.mxml
new file mode 100644
index 0000000..27e97b5
--- /dev/null
+++ b/manualtests/ProxyTest/src/ProxyTest.mxml
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!---
+//
+//  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.
+//
+////////////////////////////////////////////////////////////////////////////////
+-->
+<js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
+				   xmlns:local="*"
+				   xmlns:models="models.*"
+                   xmlns:controllers="controllers.*"
+				   xmlns:js="library://ns.apache.org/flexjs/basic" 
+				   >
+	
+	<js:valuesImpl>
+		<js:SimpleCSSValuesImpl />
+	</js:valuesImpl>
+    <js:controller>
+        <controllers:MyController />
+    </js:controller>
+    <js:model>
+        <models:MyModel />
+    </js:model>
+	<js:initialView>
+		<local:MyInitialView />
+	</js:initialView>
+</js:Application>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d5ee78af/manualtests/ProxyTest/src/README.txt
----------------------------------------------------------------------
diff --git a/manualtests/ProxyTest/src/README.txt b/manualtests/ProxyTest/src/README.txt
new file mode 100644
index 0000000..f38df7f
--- /dev/null
+++ b/manualtests/ProxyTest/src/README.txt
@@ -0,0 +1,45 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+DESCRIPTION
+
+The FormExample application demonstrates several FlexJS components and how they
+can be aligned in a column, much like you would see in a form. 
+
+This Flex application may be run as a Flash SWF or cross-compiled (using Falcon JX)
+into JavaScript and HTML and run without Flash.
+
+The components are placed into a Container with a VerticalColumnLayout bead. This bead
+examines each of the children in the Container and aligns them in two columns.
+
+COMPONENTS and BEADS
+
+- Container
+- DateField
+- Label
+- TextInput
+
+- NonVirtualVerticalLayout
+- NumericOnlyTextInputBead
+- VerticalColumnLayout
+
+NOTES
+
+The cross-compilation to JavaScript often results in non-fatal warnings. Some of these warnings
+should be addressed in future releases of the Falcon JX compiler.

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d5ee78af/manualtests/ProxyTest/src/controllers/MyController.as
----------------------------------------------------------------------
diff --git a/manualtests/ProxyTest/src/controllers/MyController.as b/manualtests/ProxyTest/src/controllers/MyController.as
new file mode 100644
index 0000000..0d72c69
--- /dev/null
+++ b/manualtests/ProxyTest/src/controllers/MyController.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 controllers
+{
+	import org.apache.flex.events.Event;
+	
+	import org.apache.flex.core.Application;
+	import org.apache.flex.core.IDocument;
+    
+    import models.MyModel;
+    	
+	public class MyController implements IDocument
+	{
+		public function MyController(app:Application = null)
+		{
+			if (app)
+			{
+				this.app = app as ProxyTest;
+				app.addEventListener("viewChanged", viewChangeHandler);
+			}
+		}
+		
+		private var app:ProxyTest;
+		
+		private function viewChangeHandler(event:Event):void
+		{
+		}
+		        
+		public function setDocument(document:Object, id:String = null):void
+		{
+			this.app = document as ProxyTest;
+			app.addEventListener("viewChanged", viewChangeHandler);
+		}
+
+	}
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d5ee78af/manualtests/ProxyTest/src/models/MyModel.as
----------------------------------------------------------------------
diff --git a/manualtests/ProxyTest/src/models/MyModel.as b/manualtests/ProxyTest/src/models/MyModel.as
new file mode 100644
index 0000000..5a16d02
--- /dev/null
+++ b/manualtests/ProxyTest/src/models/MyModel.as
@@ -0,0 +1,125 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 models
+{
+	import org.apache.flex.events.Event;
+	import org.apache.flex.events.EventDispatcher;
+	
+	public class MyModel extends EventDispatcher
+	{
+		public function MyModel()
+		{
+		}
+		
+		private var _requestedField:String = "Ask";
+		
+		[Bindable("requestedFieldChanged")]
+		public function get requestedField():String
+		{
+			return _requestedField;
+		}
+		
+		public function set requestedField(value:String):void
+		{
+			if (value != _requestedField)
+			{
+				_requestedField = value;
+				dispatchEvent(new Event("requestedFieldChanged"));
+				if (_responseData)
+					dispatchEvent(new Event("responseTextChanged"));
+			}
+		}
+		
+		[Bindable("responseTextChanged")]
+		public function get responseText():String
+		{
+			if (_responseData == null)
+				return "";
+			if (_responseData == "No Data")
+				return _responseData as String;
+			var s:String = _responseData[_requestedField];
+			if (s == null)
+			{
+				if (_requestedField == "Ask")
+					s = _responseData["Bid"];
+			}
+			return s;
+		}
+		
+		private var _responseData:Object;
+		
+		[Bindable("responseDataChanged")]
+		public function get responseData():Object
+		{
+			return _responseData;
+		}
+		
+		public function set responseData(value:Object):void
+		{
+			if (value != _responseData)
+			{
+				_responseData = value;
+				_allData = "";
+				dispatchEvent(new Event("responseDataChanged"));
+				dispatchEvent(new Event("responseTextChanged"));
+			}
+		}
+		
+		private var _allData:String = "";
+		
+		[Bindable("responseDataChanged")]
+		public function get allData():String
+		{
+			if (_allData == "" && _responseData != null)
+			{
+				for (var p:String in _responseData)
+				{
+					_allData += p + ": " + _responseData[p] + "\n";
+				}
+			}
+			return _allData;
+		}
+		
+		
+		private var _stockSymbol:String;
+		
+		[Bindable("stockSymbolChanged")]
+		public function get stockSymbol():String
+		{
+			return _stockSymbol;
+		}
+		
+		public function set stockSymbol(value:String):void
+		{
+			if (value != _stockSymbol)
+			{
+				_stockSymbol = value;
+				dispatchEvent(new Event("stockSymbolChanged"));
+			}
+		}
+
+        private var _strings:Array = ["AAPL", "ADBE", "GOOG", "MSFT", "YHOO"];
+        [Bindable("__NoChangeEvent__")]
+        public function get strings():Array
+        {
+            return _strings;
+        }
+
+	}
+}
\ No newline at end of file


[21/43] git commit: [flex-asjs] [refs/heads/e4x] - fix up approval script and other related files

Posted by ha...@apache.org.
fix up approval script and other related files


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

Branch: refs/heads/e4x
Commit: 3cab6cfe4e166dc9bb037df0a60c1bd245788e3c
Parents: e701358
Author: Alex Harui <ah...@apache.org>
Authored: Mon Mar 14 09:01:12 2016 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Mon Mar 14 09:01:12 2016 -0700

----------------------------------------------------------------------
 ApproveFlexJS.xml | 168 ++++++++++++++++++++++++++++++++++++++++++++++---
 NOTICE            |   2 +-
 RELEASE_NOTES     |  10 +++
 build.xml         |   1 +
 4 files changed, 170 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3cab6cfe/ApproveFlexJS.xml
----------------------------------------------------------------------
diff --git a/ApproveFlexJS.xml b/ApproveFlexJS.xml
index cdf3d85..b01029b 100644
--- a/ApproveFlexJS.xml
+++ b/ApproveFlexJS.xml
@@ -52,7 +52,8 @@
     </condition>
 	<property name="package.suffix" value="tar.gz" />
 	
-	<property name="rat.report" value="${basedir}/rat-report.txt"/>
+    <property name="src.rat.report" value="${basedir}/rat-report-src.txt"/>
+    <property name="bin.rat.report" value="${basedir}/rat-report-bin.txt"/>
 	<property name="apache.rat.jar" value="apache-rat-0.8.jar" />
 	<property name="apache.rat.tasks.jar" value="apache-rat-tasks-0.8.jar" />
 	<property name="apache.rat.url" value="http://people.apache.org/~aharui/rat" />
@@ -138,9 +139,17 @@
             <isset property="rc" />
         </not>
     </condition>
+    <condition property="bin.package.url.path"
+        value="${package.url.path}">
+        <not>
+            <isset property="rc" />
+        </not>
+    </condition>
 
 	<property name="package.url.path" value="https://dist.apache.org/repos/dist/dev/flex/flexjs/${release.version}/rc${rc}" />
 	<property name="package.url.name" value="apache-flex-flexjs-${release.version}-src" />
+    <property name="bin.package.url.path" value="${package.url.path}/binaries" />
+    <property name="bin.package.url.name" value="apache-flex-flexjs-${release.version}-bin" />
 	
     <condition property="zip.package">
         <equals arg1="zip" arg2="${package.suffix}" />
@@ -187,10 +196,10 @@
         classpathref="anttask.classpath"/>
     </target>
 
-    <target name="main" depends="install-rat,download,check-sigs,uncompress,rat-check,check-notices,build,approve" description="Perform required release approval steps">
+    <target name="main" depends="install-rat,download,check-sigs,uncompress,rat-check,binary-rat,check-notices,build,approve" description="Perform required release approval steps">
     </target>
     
-    <target name="main-no-download" depends="install-rat,check-sigs,uncompress,rat-check,check-notices,build,approve" description="Perform required release approval steps">
+    <target name="main-no-download" depends="install-rat,check-sigs,uncompress,rat-check,binary-rat,check-notices,build,approve" description="Perform required release approval steps">
     </target>
 	
     <target name="test" >
@@ -215,12 +224,18 @@
             dest="${basedir}/${package.url.name}.${package.suffix}" />
         <get src="${package.url.path}/${package.url.name}.${package.suffix}.md5"
             dest="${basedir}/${package.url.name}.${package.suffix}.md5" />
+        <get src="${bin.package.url.path}/${bin.package.url.name}.${package.suffix}"
+            dest="${basedir}/${bin.package.url.name}.${package.suffix}" />
+        <get src="${bin.package.url.path}/${bin.package.url.name}.${package.suffix}.md5"
+            dest="${basedir}/${bin.package.url.name}.${package.suffix}.md5" />
         <antcall target="get_asc" />
     </target>
 
     <target name="get_asc" if="rc" >
         <get src="${package.url.path}/${package.url.name}.${package.suffix}.asc"
         dest="${basedir}/${package.url.name}.${package.suffix}.asc" />
+        <get src="${bin.package.url.path}/${bin.package.url.name}.${package.suffix}.asc"
+        dest="${basedir}/${bin.package.url.name}.${package.suffix}.asc" />
     </target>
     
     <target name="check-sigs" description="check md5 and gpg sigs">
@@ -233,6 +248,15 @@
 			</not>
         </condition>
         <fail message="MD5 checksum did not match" if="MD5Invalid" />
+        <replace file="${basedir}/${bin.package.url.name}.${package.suffix}.md5"
+        token=" " />
+        <checksum file="${basedir}/${bin.package.url.name}.${package.suffix}" algorithm="md5" verifyproperty="bin.md5.ok" />
+        <condition property="BinaryMD5Invalid">
+            <not>
+                <equals arg1="${bin.md5.ok}" arg2="true" />
+            </not>
+        </condition>
+        <fail message="Binary Package MD5 checksum did not match" if="BinaryMD5Invalid" />
         <antcall target="gpg_check" />
     </target>
 
@@ -242,30 +266,40 @@
             <arg value="${basedir}/${package.url.name}.${package.suffix}.asc" />
             <arg value="${basedir}/${package.url.name}.${package.suffix}" />
         </exec>
+        <exec executable="gpg" failonerror="true">
+            <arg value="--verify" />
+            <arg value="${basedir}/${bin.package.url.name}.${package.suffix}.asc" />
+            <arg value="${basedir}/${bin.package.url.name}.${package.suffix}" />
+        </exec>
     </target>
     
     <target name="uncompress" depends="pre-clean, untar-file, unzip-file" />
 
     <target name="pre-clean" description="remove old uncompressed package" >
 		<delete dir="${basedir}/${package.url.name}" failonerror="false" />
+        <delete dir="${basedir}/${bin.package.url.name}" failonerror="false" />
 	</target>
 	
     <target name="untar-file" unless="zip.package" description="Untars zipFile">
         <untar src="${basedir}/${package.url.name}.${package.suffix}"
                 dest="${basedir}" compression="gzip"/>
+        <untar src="${basedir}/${bin.package.url.name}.${package.suffix}"
+                dest="${basedir}" compression="gzip"/>
     </target>
 
     <target name="unzip-file" if="zip.package" description="Unzips zipFile">
         <unzip src="${basedir}/${package.url.name}.${package.suffix}"
                 dest="${basedir}/${package.url.name}"/>
+        <unzip src="${basedir}/${bin.package.url.name}.${package.suffix}"
+                dest="${basedir}/${bin.package.url.name}"/>
     </target>
 
     <target name="rat-check" >
 
-        <echo message="Checking files at ${basedir}/${package.url.name}, report is ${rat.report}"/>
+        <echo message="Checking files at ${basedir}/${package.url.name}, report is ${src.rat.report}"/>
 
         <rat:report xmlns:rat="antlib:org.apache.rat.anttasks"
-            reportFile="${rat.report}">
+            reportFile="${src.rat.report}">
             <fileset dir="${basedir}/${package.url.name}">
                 <!-- exclude media (png, gif, jpg, mp3, flv) -->
                 <exclude name="**/*.png"/>
@@ -283,7 +317,7 @@
             </fileset>
         </rat:report>
 		<antcall target="display-text" >
-            <param name="file" value="${rat.report}" />
+            <param name="file" value="${src.rat.report}" />
         </antcall>
         <input
 			message="Check that there are no unknown or unapproved licenses or archives. Is it ok?"
@@ -291,11 +325,11 @@
         defaultvalue="y"
         addproperty="rat.license.ok"/>
 		<echo>filtering out AL files to make it easier to see binary files</echo>
-		<copy file="${rat.report}" tofile="${rat.report}.bin.txt" />
-        <replaceregexp file="${rat.report}.bin.txt" match="..AL.*" replace="__AL" byline="true"/>
-        <replaceregexp file="${rat.report}.bin.txt" flags="gs" match="__AL." replace="" byline="false"/>
+		<copy file="${src.rat.report}" tofile="${src.rat.report}.bin.txt" />
+        <replaceregexp file="${src.rat.report}.bin.txt" match="..AL.*" replace="__AL" byline="true"/>
+        <replaceregexp file="${src.rat.report}.bin.txt" flags="gs" match="__AL." replace="" byline="false"/>
 		<antcall target="display-text" >
-            <param name="file" value="${rat.report}.bin.txt" />
+            <param name="file" value="${src.rat.report}.bin.txt" />
         </antcall>
         <input
 			message="Check that there are no unexpected binaries.  Is it ok?"
@@ -304,6 +338,92 @@
         addproperty="rat.binaries.ok"/>
     </target>
 
+    <target name="binary-rat" >
+        <echo message="Checking files at ${basedir}/${bin.package.url.name}, report is ${bin.rat.report}"/>
+        <rat:report xmlns:rat="antlib:org.apache.rat.anttasks"
+            reportFile="${bin.rat.report}">
+            <fileset dir="${basedir}/${bin.package.url.name}">
+                <!-- exclude media (png, gif, jpg, mp3, flv) -->
+                <exclude name="**/*.png"/>
+                <exclude name="**/*.gif"/>
+                <exclude name="**/*.jpg"/>
+                <exclude name="**/*.mp3"/>
+                <exclude name="**/*.flv"/>
+                <!--          JSON doesn't really have a comment format     -->
+                <exclude name="**/*.json"/>
+                <!--          JSHint properties file           -->
+                <exclude name="frameworks/js/jshint.properties"/>
+                <exclude name="frameworks/js/.jshintrc"/>
+                <!--          fragments           -->
+                <exclude name="LICENSE.bin"/>
+                <!--          Google Closure Library     -->
+                <exclude name="js/lib/google/**"/>
+                <!--          compiled output     -->
+                <exclude name="frameworks/projects/*/target/**"/>
+                <!--          fonts     -->
+                <exclude name="frameworks/fonts/**"/>
+                <!--          swcs     -->
+                <exclude name="frameworks/libs/Binding.swc"/>
+                <exclude name="frameworks/libs/Charts.swc"/>
+                <exclude name="frameworks/libs/Collections.swc"/>
+                <exclude name="frameworks/libs/Core.swc"/>
+                <exclude name="frameworks/libs/CreateJS.swc"/>
+                <exclude name="frameworks/libs/DragDrop.swc"/>
+                <exclude name="frameworks/libs/Effects.swc"/>
+                <exclude name="frameworks/libs/Flat.swc"/>
+                <exclude name="frameworks/libs/Formatters.swc"/>
+                <exclude name="frameworks/libs/GoogleMaps.swc"/>
+                <exclude name="frameworks/libs/Graphics.swc"/>
+                <exclude name="frameworks/libs/HTML.swc"/>
+                <exclude name="frameworks/libs/HTML5.swc"/>
+                <exclude name="frameworks/libs/JQuery.swc"/>
+                <exclude name="frameworks/libs/Mobile.swc"/>
+                <exclude name="frameworks/libs/Network.swc"/>
+                <exclude name="frameworks/libs/Reflection.swc"/>
+                <exclude name="frameworks/libs/Storage.swc"/>
+                <exclude name="frameworks/externs/Binding.swc"/>
+                <exclude name="frameworks/externs/Charts.swc"/>
+                <exclude name="frameworks/externs/Collections.swc"/>
+                <exclude name="frameworks/externs/Core.swc"/>
+                <exclude name="frameworks/externs/CreateJS.swc"/>
+                <exclude name="frameworks/externs/DragDrop.swc"/>
+                <exclude name="frameworks/externs/Effects.swc"/>
+                <exclude name="frameworks/externs/Flat.swc"/>
+                <exclude name="frameworks/externs/Formatters.swc"/>
+                <exclude name="frameworks/externs/GoogleMaps.swc"/>
+                <exclude name="frameworks/externs/Graphics.swc"/>
+                <exclude name="frameworks/externs/HTML.swc"/>
+                <exclude name="frameworks/externs/HTML5.swc"/>
+                <exclude name="frameworks/externs/JQuery.swc"/>
+                <exclude name="frameworks/externs/Mobile.swc"/>
+                <exclude name="frameworks/externs/Network.swc"/>
+                <exclude name="frameworks/externs/Reflection.swc"/>
+                <exclude name="frameworks/externs/Storage.swc"/>
+            </fileset>
+        </rat:report>
+        
+        <antcall target="display-text" >
+            <param name="file" value="${bin.rat.report}" />
+        </antcall>
+        <input
+        message="Check that there are no unknown or unapproved licenses or archives. Is it ok?"
+        validargs="y,n"
+        defaultvalue="y"
+        addproperty="rat.bin.license.ok"/>
+        <echo>filtering out AL files to make it easier to see binary files</echo>
+        <copy file="${bin.rat.report}" tofile="${bin.rat.report}.bin.txt" />
+        <replaceregexp file="${bin.rat.report}.bin.txt" match="..AL.*" replace="__AL" byline="true"/>
+        <replaceregexp file="${bin.rat.report}.bin.txt" flags="gs" match="__AL." replace="" byline="false"/>
+        <antcall target="display-text" >
+            <param name="file" value="${bin.rat.report}.bin.txt" />
+        </antcall>
+        <input
+        message="Check that there are no unexpected binaries.  Is it ok?"
+        validargs="y,n"
+        defaultvalue="n"
+        addproperty="rat.bin.binaries.ok"/>
+    </target>
+
     <target name="check-notices" description="open each notice file for review, grep for a few things" >
         <fail message="README not in package">
 			<condition>
@@ -368,6 +488,23 @@
             validargs="y,n"
         defaultvalue="y"
         addproperty="license.ok"/>
+        <antcall target="display-text" >
+            <param name="file" value="${basedir}/${bin.package.url.name}/NOTICE" />
+        </antcall>
+        <input
+        message="Check the binary package NOTICE for required notices from third-parties. Is it ok?"
+        validargs="y,n"
+        defaultvalue="y"
+        addproperty="bin.notice.ok"/>
+        
+        <antcall target="display-text" >
+            <param name="file" value="${basedir}/${bin.package.url.name}/LICENSE" />
+        </antcall>
+        <input
+        message="Check the binary package LICENSE for the Apache License and third-party licenses. Is it ok?"
+        validargs="y,n"
+        defaultvalue="y"
+        addproperty="bin.license.ok"/>
     </target>
 
     <target name="ask.build">
@@ -540,10 +677,14 @@
 			<and>
 				<equals arg1="${rat.license.ok}" arg2="y" />
 				<equals arg1="${rat.binaries.ok}" arg2="y" />
+                <equals arg1="${rat.bin.license.ok}" arg2="y" />
+                <equals arg1="${rat.bin.binaries.ok}" arg2="y" />
 				<equals arg1="${readme.ok}" arg2="y" />
 				<equals arg1="${releasenotes.ok}" arg2="y" />
 				<equals arg1="${notice.ok}" arg2="y" />
 				<equals arg1="${license.ok}" arg2="y" />
+                <equals arg1="${bin.notice.ok}" arg2="y" />
+                <equals arg1="${bin.license.ok}" arg2="y" />
 			</and>
 		</condition>
 		<property name="vote" value="-1" />
@@ -560,6 +701,13 @@ NOTICE is ok: ${notice.ok}
 LICENSE is ok: ${license.ok}
 No unapproved licenses or archives: ${rat.license.ok}
 No unapproved binaries: ${rat.binaries.ok}
+
+Package ${bin.package.url.path}/${bin.package.url.name}.${package.suffix}
+Binary kit signatures match: y
+NOTICE is ok: ${bin.notice.ok}
+LICENSE is ok: ${bin.license.ok}
+No unapproved licenses or archives in binary package: ${rat.bin.license.ok}
+No unapproved binaries in binary package: ${rat.bin.binaries.ok}
 		</echo>
 		<fail>
 			<condition>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3cab6cfe/NOTICE
----------------------------------------------------------------------
diff --git a/NOTICE b/NOTICE
index 57ccb0c..21cb1dc 100644
--- a/NOTICE
+++ b/NOTICE
@@ -1,5 +1,5 @@
 Apache FlexJS
-Copyright 2012-2015 The Apache Software Foundation
+Copyright 2012-2016 The Apache Software Foundation
 
 This product includes software developed at
 The Apache Software Foundation (http://www.apache.org/).

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3cab6cfe/RELEASE_NOTES
----------------------------------------------------------------------
diff --git a/RELEASE_NOTES b/RELEASE_NOTES
index 898ec3a..94858bb 100644
--- a/RELEASE_NOTES
+++ b/RELEASE_NOTES
@@ -1,3 +1,13 @@
+Apache FlexJS 0.6.0
+=================
+
+Apache FlexJS is a next-generation Flex SDK that provides the capability
+to cross-compile MXML and AS applications to HTML/JS/CSS so they can run
+in a browser without Flash.
+
+This is the fourth release of Apache FlexJS.  It is an ‘beta’ type of release.
+Expect to find lots of bugs and missing features.
+
 Apache FlexJS 0.5.0
 =================
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3cab6cfe/build.xml
----------------------------------------------------------------------
diff --git a/build.xml b/build.xml
index 465b13a..5548c14 100644
--- a/build.xml
+++ b/build.xml
@@ -627,6 +627,7 @@
                 <exclude name="**/*.pbj"/>
                 <exclude name="**/*.swf"/>
                 <exclude name="**/*.mxp"/>
+                <exclude name="fb.properties"/>
                 <exclude name="fonts/**"/>
                 <exclude name="test*/**"/>
                 <exclude name="js/VanillaSDK/**"/>


[10/43] git commit: [flex-asjs] [refs/heads/e4x] - fix example

Posted by ha...@apache.org.
fix example


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

Branch: refs/heads/e4x
Commit: c313d70661022e8b14a474cd33eb4db57d655df8
Parents: 063ac08
Author: Alex Harui <ah...@apache.org>
Authored: Mon Feb 29 17:52:12 2016 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Mon Feb 29 17:52:12 2016 -0800

----------------------------------------------------------------------
 .../src/productsView/CatalogTitleButtons.mxml             |  8 +++++---
 .../src/productsView/ProductCatalogThumbnail.mxml         |  2 +-
 .../src/productsView/ProductListItem.mxml                 | 10 ++++++++++
 3 files changed, 16 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c313d706/examples/flexjs/FlexJSStore_jquery/src/productsView/CatalogTitleButtons.mxml
----------------------------------------------------------------------
diff --git a/examples/flexjs/FlexJSStore_jquery/src/productsView/CatalogTitleButtons.mxml b/examples/flexjs/FlexJSStore_jquery/src/productsView/CatalogTitleButtons.mxml
index 77456be..af9cfd1 100755
--- a/examples/flexjs/FlexJSStore_jquery/src/productsView/CatalogTitleButtons.mxml
+++ b/examples/flexjs/FlexJSStore_jquery/src/productsView/CatalogTitleButtons.mxml
@@ -35,12 +35,14 @@ limitations under the License.
             [Bindable]
             public var cartCount:int;
             
-            private function rollOverLabel(event:Event):void
+            private function rollOverLabel(event:MouseEvent):void
             {
-                Label(event.target).className = "catalogTitleButtonHighlighted";
+                try {
+                    Label(event.target).className = "catalogTitleButtonHighlighted";
+                } catch (e:Error) {}
             }
             
-            private function rollOutLabel(event:Event):void
+            private function rollOutLabel(event:MouseEvent):void
             {
                 Label(event.target).className = "catalogTitleButtonDeselected";
             }

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c313d706/examples/flexjs/FlexJSStore_jquery/src/productsView/ProductCatalogThumbnail.mxml
----------------------------------------------------------------------
diff --git a/examples/flexjs/FlexJSStore_jquery/src/productsView/ProductCatalogThumbnail.mxml b/examples/flexjs/FlexJSStore_jquery/src/productsView/ProductCatalogThumbnail.mxml
index 1d8ce8f..7b415da 100755
--- a/examples/flexjs/FlexJSStore_jquery/src/productsView/ProductCatalogThumbnail.mxml
+++ b/examples/flexjs/FlexJSStore_jquery/src/productsView/ProductCatalogThumbnail.mxml
@@ -118,7 +118,7 @@ limitations under the License.
             }
         }
 
-        public function clickHandler(event:org.apache.flex.events.Event):void
+        public function clickHandler(event:org.apache.flex.events.MouseEvent):void
         {
             if (event.target != purchase &&
                 event.target != compare &&

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c313d706/examples/flexjs/FlexJSStore_jquery/src/productsView/ProductListItem.mxml
----------------------------------------------------------------------
diff --git a/examples/flexjs/FlexJSStore_jquery/src/productsView/ProductListItem.mxml b/examples/flexjs/FlexJSStore_jquery/src/productsView/ProductListItem.mxml
index 2864cca..8e98c3b 100755
--- a/examples/flexjs/FlexJSStore_jquery/src/productsView/ProductListItem.mxml
+++ b/examples/flexjs/FlexJSStore_jquery/src/productsView/ProductListItem.mxml
@@ -60,6 +60,16 @@ limitations under the License.
         {
             _data = value;
         }
+        
+        public function get listData():Object
+        {
+        	return null;
+        }
+        
+        public function set listData(value:Object):void
+        {
+        	// not used
+        }
 
         private var _itemRendererParent:Object;
         


[35/43] git commit: [flex-asjs] [refs/heads/e4x] - fix issues with release packaging, installation and approval

Posted by ha...@apache.org.
fix issues with release packaging, installation and approval


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

Branch: refs/heads/e4x
Commit: 4c94b5519f00cdda6410ec62ef268d40cd1c0a01
Parents: fcb2372
Author: Alex Harui <ah...@apache.org>
Authored: Tue Mar 29 17:39:13 2016 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Tue Mar 29 17:39:13 2016 -0700

----------------------------------------------------------------------
 ApproveFlexJS.xml                       | 116 ++++++++++++++-
 LICENSE.base                            | 203 +++++++++++++++++++++++++++
 LICENSE.bin                             |   4 -
 apache-flex-flexjs-installer-config.xml |   2 +-
 build.xml                               |  12 +-
 installer.xml                           |  18 ++-
 6 files changed, 334 insertions(+), 21 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4c94b551/ApproveFlexJS.xml
----------------------------------------------------------------------
diff --git a/ApproveFlexJS.xml b/ApproveFlexJS.xml
index 727d6c3..2c2a436 100644
--- a/ApproveFlexJS.xml
+++ b/ApproveFlexJS.xml
@@ -54,6 +54,7 @@
 	
     <property name="src.rat.report" value="${basedir}/rat-report-src.txt"/>
     <property name="bin.rat.report" value="${basedir}/rat-report-bin.txt"/>
+    <property name="doc.rat.report" value="${basedir}/rat-report-doc.txt"/>
 	<property name="apache.rat.jar" value="apache-rat-0.11.jar" />
 	<property name="apache.rat.tasks.jar" value="apache-rat-tasks-0.11.jar" />
 	<property name="apache.rat.url" value="http://search.maven.org/remotecontent?filepath=org/apache/rat/apache-rat/0.11" />
@@ -146,11 +147,19 @@
             <isset property="rc" />
         </not>
     </condition>
+    <condition property="doc.package.url.path"
+        value="${package.url.path}">
+        <not>
+            <isset property="rc" />
+        </not>
+    </condition>
 
 	<property name="package.url.path" value="https://dist.apache.org/repos/dist/dev/flex/flexjs/${release.version}/rc${rc}" />
 	<property name="package.url.name" value="apache-flex-flexjs-${release.version}-src" />
     <property name="bin.package.url.path" value="${package.url.path}/binaries" />
     <property name="bin.package.url.name" value="apache-flex-flexjs-${release.version}-bin" />
+    <property name="doc.package.url.path" value="${package.url.path}/doc" />
+    <property name="doc.package.url.name" value="apache-flex-flexjs-${release.version}-asdocs" />
 	
     <condition property="zip.package">
         <equals arg1="zip" arg2="${package.suffix}" />
@@ -197,10 +206,10 @@
         classpathref="anttask.classpath"/>
     </target>
 
-    <target name="main" depends="install-rat,download,check-sigs,uncompress,rat-check,binary-rat,check-notices,build,approve" description="Perform required release approval steps">
+    <target name="main" depends="install-rat,download,check-sigs,uncompress,rat-check,binary-rat,doc-rat,check-notices,build,approve" description="Perform required release approval steps">
     </target>
     
-    <target name="main-no-download" depends="install-rat,check-sigs,uncompress,rat-check,binary-rat,check-notices,build,approve" description="Perform required release approval steps">
+    <target name="main-no-download" depends="install-rat,check-sigs,uncompress,rat-check,binary-rat,doc-rat,check-notices,build,approve" description="Perform required release approval steps">
     </target>
 	
     <target name="test" >
@@ -229,6 +238,10 @@
             dest="${basedir}/${bin.package.url.name}.${package.suffix}" />
         <get src="${bin.package.url.path}/${bin.package.url.name}.${package.suffix}.md5"
             dest="${basedir}/${bin.package.url.name}.${package.suffix}.md5" />
+        <get src="${doc.package.url.path}/${doc.package.url.name}.zip"
+            dest="${basedir}/${doc.package.url.name}.zip" />
+        <get src="${doc.package.url.path}/${doc.package.url.name}.zip.md5"
+            dest="${basedir}/${doc.package.url.name}.zip.md5" />
         <antcall target="get_asc" />
     </target>
 
@@ -237,6 +250,8 @@
         dest="${basedir}/${package.url.name}.${package.suffix}.asc" />
         <get src="${bin.package.url.path}/${bin.package.url.name}.${package.suffix}.asc"
         dest="${basedir}/${bin.package.url.name}.${package.suffix}.asc" />
+        <get src="${doc.package.url.path}/${doc.package.url.name}.zip.asc"
+        dest="${basedir}/${doc.package.url.name}.zip.asc" />
     </target>
     
     <target name="check-sigs" description="check md5 and gpg sigs">
@@ -258,6 +273,15 @@
             </not>
         </condition>
         <fail message="Binary Package MD5 checksum did not match" if="BinaryMD5Invalid" />
+        <replace file="${basedir}/${doc.package.url.name}.zip.md5"
+        token=" " />
+        <checksum file="${basedir}/${doc.package.url.name}.zip" algorithm="md5" verifyproperty="doc.md5.ok" />
+        <condition property="DocMD5Invalid">
+            <not>
+                <equals arg1="${doc.md5.ok}" arg2="true" />
+            </not>
+        </condition>
+        <fail message="Doc Package MD5 checksum did not match" if="DocMD5Invalid" />
         <antcall target="gpg_check" />
     </target>
 
@@ -272,6 +296,11 @@
             <arg value="${basedir}/${bin.package.url.name}.${package.suffix}.asc" />
             <arg value="${basedir}/${bin.package.url.name}.${package.suffix}" />
         </exec>
+        <exec executable="gpg" failonerror="true">
+            <arg value="--verify" />
+            <arg value="${basedir}/${doc.package.url.name}.${package.suffix}.asc" />
+            <arg value="${basedir}/${doc.package.url.name}.${package.suffix}" />
+        </exec>
     </target>
     
     <target name="uncompress" depends="pre-clean, untar-file, unzip-file" />
@@ -279,6 +308,7 @@
     <target name="pre-clean" description="remove old uncompressed package" >
 		<delete dir="${basedir}/${package.url.name}" failonerror="false" />
         <delete dir="${basedir}/${bin.package.url.name}" failonerror="false" />
+        <delete dir="${basedir}/${doc.package.url.name}" failonerror="false" />
 	</target>
 	
     <target name="untar-file" unless="zip.package" description="Untars zipFile">
@@ -286,6 +316,8 @@
                 dest="${basedir}" compression="gzip"/>
         <untar src="${basedir}/${bin.package.url.name}.${package.suffix}"
                 dest="${basedir}" compression="gzip"/>
+        <unzip src="${basedir}/${doc.package.url.name}.zip"
+                dest="${basedir}/${doc.package.url.name}"/>
     </target>
 
     <target name="unzip-file" if="zip.package" description="Unzips zipFile">
@@ -293,6 +325,8 @@
                 dest="${basedir}/${package.url.name}"/>
         <unzip src="${basedir}/${bin.package.url.name}.${package.suffix}"
                 dest="${basedir}/${bin.package.url.name}"/>
+        <unzip src="${basedir}/${doc.package.url.name}.${package.suffix}"
+                dest="${basedir}/${doc.package.url.name}"/>
     </target>
 
     <target name="rat-check" >
@@ -315,6 +349,7 @@
                 <exclude name="frameworks/js/.jshintrc"/>
                 <!--          fragments           -->
                 <exclude name="LICENSE.bin"/>
+                <exclude name="LICENSE.base"/>
             </fileset>
         </rat:report>
 		<antcall target="display-text" >
@@ -357,6 +392,7 @@
                 <exclude name="frameworks/js/.jshintrc"/>
                 <!--          fragments           -->
                 <exclude name="LICENSE.bin"/>
+                <exclude name="LICENSE.base"/>
                 <!--          Google Closure Library     -->
                 <exclude name="js/lib/google/**"/>
                 <!--          compiled output     -->
@@ -423,6 +459,50 @@
         addproperty="rat.bin.binaries.ok"/>
     </target>
 
+    <target name="doc-rat" >
+        <echo message="Checking files at ${basedir}/${doc.package.url.name}, report is ${doc.rat.report}"/>
+        <rat:report xmlns:rat="antlib:org.apache.rat.anttasks"
+            reportFile="${doc.rat.report}">
+            <fileset dir="${basedir}/${doc.package.url.name}">
+                <!-- exclude generated html -->
+                <exclude name="asdoc/index.html"/>
+                <exclude name="asdoc/index-*.html"/>
+                <exclude name="asdoc/google/maps/**/*.html"/>
+                <exclude name="asdoc/org/**/*.html"/>
+                <exclude name="asdoc/package*.html"/>
+                <exclude name="asdoc/all-classes.html"/>
+                <exclude name="asdoc/all-index*.html"/>
+                <exclude name="asdoc/class-*.html"/>
+                <exclude name="asdoc/title-bar.html"/>
+                <exclude name="asdoc/Namespace.html"/>
+                <exclude name="asdoc/QName.html"/>
+                <!-- exclude log -->
+                <exclude name="asdoc/validation_errors.log"/>
+            </fileset>
+        </rat:report>
+        
+        <antcall target="display-text" >
+            <param name="file" value="${doc.rat.report}" />
+        </antcall>
+        <input
+        message="Check that there are no unknown or unapproved licenses or archives. Is it ok?"
+        validargs="y,n"
+        defaultvalue="y"
+        addproperty="rat.doc.license.ok"/>
+        <echo>filtering out AL files to make it easier to see binary files</echo>
+        <copy file="${doc.rat.report}" tofile="${doc.rat.report}.bin.txt" />
+        <replaceregexp file="${doc.rat.report}.bin.txt" match="..AL.*" replace="__AL" byline="true"/>
+        <replaceregexp file="${doc.rat.report}.bin.txt" flags="gs" match="__AL." replace="" byline="false"/>
+        <antcall target="display-text" >
+            <param name="file" value="${doc.rat.report}.bin.txt" />
+        </antcall>
+        <input
+        message="Check that there are no unexpected binaries.  Is it ok?"
+        validargs="y,n"
+        defaultvalue="n"
+        addproperty="rat.doc.binaries.ok"/>
+    </target>
+
     <target name="check-notices" description="open each notice file for review, grep for a few things" >
         <fail message="README not in package">
 			<condition>
@@ -487,6 +567,7 @@
             validargs="y,n"
         defaultvalue="y"
         addproperty="license.ok"/>
+        
         <antcall target="display-text" >
             <param name="file" value="${basedir}/${bin.package.url.name}/NOTICE" />
         </antcall>
@@ -504,6 +585,24 @@
         validargs="y,n"
         defaultvalue="y"
         addproperty="bin.license.ok"/>
+        
+        <antcall target="display-text" >
+            <param name="file" value="${basedir}/${doc.package.url.name}/asdoc/NOTICE" />
+        </antcall>
+        <input
+        message="Check the doc package NOTICE for required notices from third-parties. Is it ok?"
+        validargs="y,n"
+        defaultvalue="y"
+        addproperty="doc.notice.ok"/>
+        
+        <antcall target="display-text" >
+            <param name="file" value="${basedir}/${doc.package.url.name}/asdoc/LICENSE" />
+        </antcall>
+        <input
+        message="Check the doc package LICENSE for the Apache License and third-party licenses. Is it ok?"
+        validargs="y,n"
+        defaultvalue="y"
+        addproperty="doc.license.ok"/>
     </target>
 
     <target name="ask.build">
@@ -678,12 +777,16 @@
 				<equals arg1="${rat.binaries.ok}" arg2="y" />
                 <equals arg1="${rat.bin.license.ok}" arg2="y" />
                 <equals arg1="${rat.bin.binaries.ok}" arg2="y" />
+                <equals arg1="${rat.doc.license.ok}" arg2="y" />
+                <equals arg1="${rat.doc.binaries.ok}" arg2="y" />
 				<equals arg1="${readme.ok}" arg2="y" />
 				<equals arg1="${releasenotes.ok}" arg2="y" />
 				<equals arg1="${notice.ok}" arg2="y" />
 				<equals arg1="${license.ok}" arg2="y" />
                 <equals arg1="${bin.notice.ok}" arg2="y" />
                 <equals arg1="${bin.license.ok}" arg2="y" />
+                <equals arg1="${doc.notice.ok}" arg2="y" />
+                <equals arg1="${doc.license.ok}" arg2="y" />
 			</and>
 		</condition>
 		<property name="vote" value="-1" />
@@ -707,7 +810,14 @@ NOTICE is ok: ${bin.notice.ok}
 LICENSE is ok: ${bin.license.ok}
 No unapproved licenses or archives in binary package: ${rat.bin.license.ok}
 No unapproved binaries in binary package: ${rat.bin.binaries.ok}
-		</echo>
+
+Package ${doc.package.url.path}/${doc.package.url.name}.zip
+Doc kit signatures match: y
+NOTICE is ok: ${doc.notice.ok}
+LICENSE is ok: ${doc.license.ok}
+No unapproved licenses or archives in doc package: ${rat.doc.license.ok}
+No unapproved binaries in doc package: ${rat.doc.binaries.ok}
+        </echo>
 		<fail>
 			<condition>
 	            <equals arg1="-1" arg2="${vote}"/>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4c94b551/LICENSE.base
----------------------------------------------------------------------
diff --git a/LICENSE.base b/LICENSE.base
new file mode 100644
index 0000000..6b0b127
--- /dev/null
+++ b/LICENSE.base
@@ -0,0 +1,203 @@
+
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   Licensed 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.
+

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4c94b551/LICENSE.bin
----------------------------------------------------------------------
diff --git a/LICENSE.bin b/LICENSE.bin
index 2c5e7a2..6ffda73 100644
--- a/LICENSE.bin
+++ b/LICENSE.bin
@@ -2,10 +2,6 @@ Below are the licenses for components included in the binary distribution.
 
 ------------------------------------------------------------------------------------------
 
-This product bundles designmodo’s (http://designmodo.com/flat-free/)
-Flat UI glyph fonts available under an MIT license. For details, see 
-frameworks/fonts/README.md
-
 This product bundles Google Closure Library available under Apache License 2.0.  
 For details see https://developers.google.com/closure/library/
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4c94b551/apache-flex-flexjs-installer-config.xml
----------------------------------------------------------------------
diff --git a/apache-flex-flexjs-installer-config.xml b/apache-flex-flexjs-installer-config.xml
index 7807a0c..42813bf 100755
--- a/apache-flex-flexjs-installer-config.xml
+++ b/apache-flex-flexjs-installer-config.xml
@@ -239,7 +239,7 @@
 			<license>Adobe Flex SDK 授權合約</license>
 		</zh_TW>
 	</component>
-    <component id="STEP_REQUIRED_INSTALL_FLAT_FONTS" required="true" property="do.flat.install">
+    <component id="STEP_REQUIRED_INSTALL_FLAT_FONTS" required="false" property="do.flat.install">
         <el_GR>
             <label>designmodo fonts (Προαιρετικό)</label>
             <message>Για το designmodo fonts ισχύει η συμφωνία χρήσης του CC-BY-NC-ND License. Θέλετε να εγκαταστήσετε το designmodo fonts;</message>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4c94b551/build.xml
----------------------------------------------------------------------
diff --git a/build.xml b/build.xml
index 9bda287..8047641 100644
--- a/build.xml
+++ b/build.xml
@@ -531,6 +531,7 @@
                 <include name="RELEASE_NOTES"/>
                 <include name="LICENSE"/>
                 <include name="LICENSE.bin"/>
+                <include name="LICENSE.base"/>
                 <include name="NOTICE"/>
             </fileset>
         </copy>
@@ -742,7 +743,7 @@
          <!-- fonts
           <copy todir="${basedir}/temp/frameworks/fonts">
               <fileset dir="${basedir}/frameworks/fonts" >
-                  <include name="**/**"/>
+                  <include name="**/*.swf"/>
               </fileset>
           </copy>
           -->
@@ -1006,12 +1007,8 @@
         <copy todir="${basedir}/temp/asdoc">
             <fileset dir="${basedir}/asdoc-output"/>
         </copy>
-        <copy todir="${basedir}/temp/asdoc">
-            <fileset dir="${basedir}">
-                <include name="LICENSE" />
-                <include name="NOTICE" />
-            </fileset>
-        </copy>
+        <copy todir="${basedir}/temp/asdoc" file="${basedir}/NOTICE" />
+        <copy tofile="${basedir}/temp/asdoc/LICENSE" file="${basedir}/LICENSE.base" />
         <zip file="${basedir}/out/${kit.prefix}-asdocs.zip" basedir="${basedir}/temp"/>
         <antcall target="clean-temp"/>
     </target>
@@ -1378,6 +1375,7 @@
         <rat:report xmlns:rat="antlib:org.apache.rat.anttasks" reportFile="${rat.report}">
             <fileset dir="${rat.dir}">
                 <exclude name="LICENSE.bin"/>
+                <exclude name="LICENSE.base"/>
                 <!--          Start of binary files           -->
                 <!-- exclude media (png, gif, jpg, mp3, flv) -->
                 <exclude name="**/*.png"/>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4c94b551/installer.xml
----------------------------------------------------------------------
diff --git a/installer.xml b/installer.xml
index f0806d1..50b213b 100644
--- a/installer.xml
+++ b/installer.xml
@@ -692,6 +692,8 @@
     
     <!-- Because this requires a network connection it downloads Flash SDK only if it doesn't already exist. -->
     <target name="flat-check" description="Checks if Flat fonts has been downloaded.">
+        <!-- make this folder anyway so example scripts don't fail -->
+        <mkdir dir="${FLEXJS_HOME}/frameworks/fonts"/>
         <available file="${FLEXJS_HOME}/frameworks/fonts/flat-ui-icons-regular.woff" property="skip.flat.install"/>
         <condition property="skip.flat.install" value="true">
             <not>
@@ -709,19 +711,23 @@
         dest="${download.dir}/flat-ui_2_2.zip"
         verbose="false"/>
         
-        <mkdir dir="${FLEXJS_HOME}/frameworks/fonts"/>
         <mkdir dir="${download.dir}/flat/fonts"/>
         <unzip src="${download.dir}/flat-ui_2_2.zip" dest="${download.dir}/flat/fonts" />
         <copy file="${download.dir}/flat/fonts/Flat-UI-2.2.2/fonts/glyphicons/flat-ui-icons-regular.eot"
-            todir="${FLEXJS_HOME}/frameworks/fonts"/>
+            tofile="${FLEXJS_HOME}/frameworks/fonts/flat-ui-icons-regular.eot"/>
         <copy file="${download.dir}/flat/fonts/Flat-UI-2.2.2/fonts/glyphicons/flat-ui-icons-regular.ttf"
-            todir="${FLEXJS_HOME}/frameworks/fonts"/>
+            tofile="${FLEXJS_HOME}/frameworks/fonts/flat-ui-icons-regular.ttf"/>
         <copy file="${download.dir}/flat/fonts/Flat-UI-2.2.2/fonts/glyphicons/flat-ui-icons-regular.svg"
-            todir="${FLEXJS_HOME}/frameworks/fonts"/>
+            tofile="${FLEXJS_HOME}/frameworks/fonts/flat-ui-icons-regular.svg"/>
         <copy file="${download.dir}/flat/fonts/Flat-UI-2.2.2/fonts/glyphicons/flat-ui-icons-regular.woff"
-            todir="${FLEXJS_HOME}/frameworks/fonts"/>
+            tofile="${FLEXJS_HOME}/frameworks/fonts/flat-ui-icons-regular.woff"/>
         <copy file="${download.dir}/flat/fonts/Flat-UI-2.2.2/README.md"
-            todir="${FLEXJS_HOME}/frameworks/fonts"/>
+            tofile="${FLEXJS_HOME}/frameworks/fonts/README.md"/>
+            
+        <get src="http://apacheflexbuild.cloudapp.net:8080/job/flat-ui-icons-regular.swf/lastSuccessfulBuild/artifact/frameworks/fonts/flat-ui-icons-regular.swf"
+            dest="${FLEXJS_HOME}/frameworks/fonts/flat-ui-icons-regular.swf"
+            verbose="false"/>
+            
     </target>
     
     <!-- swfobject.js (Version 2.2) -->


[28/43] git commit: [flex-asjs] [refs/heads/e4x] - get ant examples to build from an IDE-compatible folder structure

Posted by ha...@apache.org.
get ant examples to build from an IDE-compatible folder structure


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

Branch: refs/heads/e4x
Commit: f742bc285c2cb97ccddb589e5f4059658ee23a11
Parents: a97af6e
Author: Alex Harui <ah...@apache.org>
Authored: Thu Mar 24 08:50:46 2016 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Thu Mar 24 08:50:46 2016 -0700

----------------------------------------------------------------------
 build.xml                  | 10 ++++++++++
 examples/build_example.xml | 18 ++++++++++++++++++
 2 files changed, 28 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f742bc28/build.xml
----------------------------------------------------------------------
diff --git a/build.xml b/build.xml
index 5548c14..6ec2fbc 100644
--- a/build.xml
+++ b/build.xml
@@ -282,6 +282,11 @@
             property="FALCON_HOME"
             value="${env.FALCON_HOME}"/>
 
+        <available file="${basedir}/lib/falcon-mxmlc.jar"
+            type="file"
+            property="FALCON_HOME"
+            value="${basedir}"/>
+
         <available file="${basedir}/../flex-falcon/compiler/generated/dist/sdk/lib/falcon-mxmlc.jar"
             type="file"
             property="FALCON_HOME"
@@ -306,6 +311,11 @@
             property="FALCONJX_HOME"
             value="${basedir}/../flex-falcon/compiler.jx"/>
 
+        <available file="${basedir}/js/lib/jsc.jar"
+            type="file"
+            property="FALCONJX_HOME"
+            value="${basedir}/js"/>
+
         <fail message="FALCONJX_HOME must be set to a folder with a lib sub-folder containing jsc.jar such as the compiler.jx folder in flex-falcon repo or the js folder if it has been converted into an FB-compatible SDK"
             unless="FALCONJX_HOME"/>
     </target>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f742bc28/examples/build_example.xml
----------------------------------------------------------------------
diff --git a/examples/build_example.xml b/examples/build_example.xml
index 47d2ae8..44c88a7 100644
--- a/examples/build_example.xml
+++ b/examples/build_example.xml
@@ -38,6 +38,15 @@
         </and>
     </condition>
 
+    <condition property="FALCON_HOME" value="${FLEXJS_HOME}">
+        <and>
+            <not>
+                <isset property="FALCON_HOME" />
+            </not>
+            <available file="${FLEXJS_HOME}/lib/falcon-mxmlc.jar" type="file" />
+        </and>
+    </condition>
+
     <condition property="FALCONJX_HOME" value="${env.FALCONJX_HOME}">
         <and>
             <not>
@@ -47,6 +56,15 @@
         </and>
     </condition>
 
+    <condition property="FALCONJX_HOME" value="${FLEXJS_HOME}/js">
+        <and>
+            <not>
+                <isset property="FALCONJX_HOME" />
+            </not>
+            <available file="${FLEXJS_HOME}/js/lib/jsc.jar" type="file" />
+        </and>
+    </condition>
+
     <condition property="FALCONJX_HOME" value="${FLEXJS_HOME}/../flex-falcon/compiler.jx">
         <and>
             <not>


[38/43] git commit: [flex-asjs] [refs/heads/e4x] - remove GCL crypt folder (and upgrade Selenium)

Posted by ha...@apache.org.
remove GCL crypt folder (and upgrade Selenium)


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

Branch: refs/heads/e4x
Commit: e85d9e134f2ae37acec5eb72a981550b4de58ed7
Parents: bfc904c
Author: Alex Harui <ah...@apache.org>
Authored: Thu Mar 31 19:30:31 2016 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Thu Mar 31 19:30:31 2016 -0700

----------------------------------------------------------------------
 build.xml                     | 26 ++++++++++++++++----------
 marmotinni/java/downloads.xml |  6 +++---
 2 files changed, 19 insertions(+), 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e85d9e13/build.xml
----------------------------------------------------------------------
diff --git a/build.xml b/build.xml
index 8047641..651468c 100644
--- a/build.xml
+++ b/build.xml
@@ -782,14 +782,20 @@
 	<target name="copy-gcl-from-goog-home" if="GOOG_HOME">
 		<echo message="Copying GCL from ${GOOG_HOME}"></echo>
 		<copy todir="${basedir}/temp/js/lib/google/closure-library">
-			<fileset dir="${GOOG_HOME}" />
+			<fileset dir="${GOOG_HOME}" >
+                <include name="**"/>
+                <exclude name="closure/goog/crypt/**" />
+            </fileset>
 		</copy>
 	</target>
 	
 	<target name="copy-gcl-from-downloaded" unless="GOOG_HOME">
 		<echo message="Copying GCL from ${basedir}/temp/js/lib/google/closure-library"></echo>
 		<copy todir="${basedir}/temp/js/lib/google/closure-library">
-			<fileset dir="${basedir}/js/lib/google/closure-library" />
+			<fileset dir="${basedir}/js/lib/google/closure-library" >
+                <include name="**"/>
+                <exclude name="closure/goog/crypt/**" />
+            </fileset>
 		</copy>
 	</target>
 	
@@ -1064,7 +1070,7 @@
 		    <arg value="script=${basedir}/mustella/tests/basicTests/halo/scripts/CheckBoxTestScript.mxml" />
 		    <!--<arg value="showSteps=true" />-->
             <classpath>
-                <pathelement location="${basedir}/marmotinni/java/lib/selenium/selenium-java-2.48.2.jar"/>
+                <pathelement location="${basedir}/marmotinni/java/lib/selenium/selenium-java-2.53.0.jar"/>
                 <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/apache-mime4j-0.6.jar"/>
                 <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/bsh-2.0b4.jar"/>
                 <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/cglib-nodep-2.1_3.jar"/>
@@ -1078,7 +1084,7 @@
                 <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/commons-logging-1.2.jar"/>
                 <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/cssparser-0.9.16.jar"/>
                 <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/gson-2.3.1.jar"/>
-                <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/guava-18.0.jar"/>
+                <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/guava-19.0.jar"/>
                 <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/hamcrest-core-1.3.jar"/>
                 <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/hamcrest-library-1.3.jar"/>
                 <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/htmlunit-2.18.jar"/>
@@ -1090,7 +1096,7 @@
                 <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/jasper-compiler-jdt-5.5.15.jar"/>
                 <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/jasper-runtime-5.5.15.jar"/>
                 <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/javax.servlet-api-3.1.0.jar"/>
-                <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/jcommander-1.29.jar"/>
+                <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/jcommander-1.48.jar"/>
                 <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/jetty-continuation-9.2.3.v20150730.jar"/>
                 <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/jetty-http-9.2.3.v20150730.jar"/>
                 <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/jetty-io-9.2.3.v20150730.jar"/>
@@ -1109,7 +1115,7 @@
                 <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/phantomjsdriver-1.2.1.jar"/>
                 <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/sac-1.3.jar"/>
                 <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/serializer-2.7.2.jar"/>
-                <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/testng-6.9.6.jar"/>
+                <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/testng-6.9.9.jar"/>
                 <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/websocket-api-9.2.13.v20150730.jar"/>
                 <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/websocket-client-9.2.13.v20150730.jar"/>
                 <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/websocket-common-9.2.13.v20150730.jar"/>
@@ -1163,7 +1169,7 @@
         <mkdir dir="${basedir}/mustella/java/bin"/>
         <javac srcdir="${basedir}/mustella/java/src/marmotinni" destdir="${basedir}/mustella/java/bin" debug="off" optimize="on">
             <classpath>
-                <pathelement location="${basedir}/marmotinni/java/lib/selenium/selenium-java-2.48.2.jar"/>
+                <pathelement location="${basedir}/marmotinni/java/lib/selenium/selenium-java-2.53.0.jar"/>
                 <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/apache-mime4j-0.6.jar"/>
                 <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/bsh-2.0b4.jar"/>
                 <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/cglib-nodep-2.1_3.jar"/>
@@ -1177,7 +1183,7 @@
                 <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/commons-logging-1.2.jar"/>
                 <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/cssparser-0.9.16.jar"/>
                 <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/gson-2.3.1.jar"/>
-                <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/guava-18.0.jar"/>
+                <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/guava-19.0.jar"/>
                 <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/hamcrest-core-1.3.jar"/>
                 <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/hamcrest-library-1.3.jar"/>
                 <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/htmlunit-2.18.jar"/>
@@ -1189,7 +1195,7 @@
                 <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/jasper-compiler-jdt-5.5.15.jar"/>
                 <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/jasper-runtime-5.5.15.jar"/>
                 <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/javax.servlet-api-3.1.0.jar"/>
-                <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/jcommander-1.29.jar"/>
+                <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/jcommander-1.48.jar"/>
                 <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/jetty-continuation-9.2.3.v20150730.jar"/>
                 <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/jetty-http-9.2.3.v20150730.jar"/>
                 <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/jetty-io-9.2.3.v20150730.jar"/>
@@ -1208,7 +1214,7 @@
                 <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/phantomjsdriver-1.2.1.jar"/>
                 <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/sac-1.3.jar"/>
                 <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/serializer-2.7.2.jar"/>
-                <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/testng-6.9.6.jar"/>
+                <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/testng-6.9.9.jar"/>
                 <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/websocket-api-9.2.13.v20150730.jar"/>
                 <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/websocket-client-9.2.13.v20150730.jar"/>
                 <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/websocket-common-9.2.13.v20150730.jar"/>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e85d9e13/marmotinni/java/downloads.xml
----------------------------------------------------------------------
diff --git a/marmotinni/java/downloads.xml b/marmotinni/java/downloads.xml
index 14c0b15..c644c75 100644
--- a/marmotinni/java/downloads.xml
+++ b/marmotinni/java/downloads.xml
@@ -32,9 +32,9 @@
             selenium (2.32.0) - Apache 2.0
 	-->
 	
-    <property name="selenium2.jar.dir.name" value="2.48"/>
-    <property name="selenium2.jar.name" value="selenium-java-2.48.2"/>
-    <property name="selenium2.dir.name" value="selenium-2.48.2"/>
+    <property name="selenium2.jar.dir.name" value="2.53"/>
+    <property name="selenium2.jar.name" value="selenium-java-2.53.0"/>
+    <property name="selenium2.dir.name" value="selenium-2.53.0"/>
 	
     <!-- 
         Because the downloads requires a network connection and the JARs don't change very often,