Transferred from the Adobe Open Source Subversion Repository

Revision: 5098
Author:   gauravj@adobe.com
Date:     2009-02-27T02:21:27.489350Z

Log Message:
-----------
Update action script files with asdoc version tags.

QE Notes: None.
Doc Notes: Please review and update as necessary.
tests: checkintests

Modified Paths:
--------------
151 paths were modified

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1279151 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/spark/src/spark/components/Group.as
+++ frameworks/projects/spark/src/spark/components/Group.as
@@ -43,6 +43,11 @@
  *  event.element is the visual element that was added.
  *
  *  @eventType mx.events.ElementExistenceEvent.ELEMENT_ADD
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
  */
 [Event(name="elementAdd", type="mx.events.ElementExistenceEvent")]

@@ -51,6 +56,11 @@
  *  event.element is the visual element that's being removed.
  *
  *  @eventType mx.events.ElementExistenceEvent.ELEMENT_REMOVE
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
  */
 [Event(name="elementRemove", type="mx.events.ElementExistenceEvent")]

@@ -75,11 +85,21 @@
  *
  *  @includeExample examples/GroupExample.mxml
  *
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
  */
 public class Group extends GroupBase implements IVisualElementContainer, ISharedGraphicsDisplayObject
 {
     /**
      *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function Group():void
     {
@@ -177,6 +197,11 @@
      *
      *  @see flash.display.DisplayObject#blendMode
      *  @see flash.display.BlendMode
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     override public function get blendMode():String
     {
@@ -234,6 +259,11 @@
      *  directly. Use the methods defined on Group to do this.

      *
      *  @default null
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function get mxmlContent():Array
     {
@@ -264,6 +294,11 @@
     /**
      *  Adds the elements in mxmlContent to the Group.
      *  Flex calls this method automatically; you do not call it directly.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     private function setMxmlContent(value:Array):void
     {
@@ -560,6 +595,11 @@

     /**
      *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function addElement(element:IVisualElement):IVisualElement
     {
@@ -576,6 +616,11 @@

     /**
      *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function addElementAt(element:IVisualElement, index:int):IVisualElement
     {
@@ -615,6 +660,11 @@

     /**
      *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function removeElement(element:IVisualElement):IVisualElement
     {
@@ -623,6 +673,11 @@

     /**
      *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function removeElementAt(index:int):IVisualElement
     {
@@ -657,6 +712,11 @@

     /**
      *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function setElementIndex(element:IVisualElement, index:int):void
     {
@@ -670,6 +730,11 @@

     /**
      *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function swapElements(element1:IVisualElement, element2:IVisualElement):void
     {
@@ -678,6 +743,11 @@

     /**
      *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function swapElementsAt(index1:int, index2:int):void
     {
@@ -725,6 +795,11 @@
      *  @param item The item that was added.
      *
      *  @param index The index where the item was added.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     mx_internal function elementAdded(element:IVisualElement, index:int):void
     {
@@ -770,6 +845,11 @@
      *  Flex calls this method automatically; you do not call it directly.
      *
      *  @param index The index of the item that is being removed.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     mx_internal function elementRemoved(element:IVisualElement, index:int):void
     {
@@ -846,6 +926,11 @@
      *
      *  @param element The graphic element whose display object will be discarded.
      *  @see #graphicElementLayerChanged
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function discardDisplayObject(element:IGraphicElement):void
     {
@@ -1147,6 +1232,11 @@
      *  @param index Index position where the display object is added.
      *
      *  @return DisplayObject that was added.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     protected function addItemToDisplayList(child:DisplayObject, element:IVisualElement, index:int = -1):DisplayObject
     {
@@ -1178,6 +1268,11 @@
      *  to give it a chance to redraw.
      *
      *  @param element The element that has changed.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function graphicElementChanged(element:IGraphicElement):void
     {
@@ -1194,6 +1289,11 @@
      *  to give it a chnace to commit its properties.
      *
      *  @param element The element that has changed.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function graphicElementPropertiesChanged(element:IGraphicElement):void
     {
@@ -1206,6 +1306,11 @@
      *  to give it a chance to validate its size.
      *
      *  @param element The element that has changed size.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function graphicElementSizeChanged(element:IGraphicElement):void
     {
@@ -1220,6 +1325,11 @@
      *  and may re-assign the DisplayObjects and redraw the sequences as a result.
      *
      *  @param element The element that has layers size.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function graphicElementLayerChanged(element:IGraphicElement):void
     {
@@ -1246,6 +1356,11 @@

     /**
      * Specfies the bottom coordinate of the scale grid.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function get scaleGridBottom():Number
     {
@@ -1276,6 +1391,11 @@

     /**
      * Specfies the left coordinate of the scale grid.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function get scaleGridLeft():Number
     {
@@ -1307,6 +1427,11 @@

     /**
      * Specfies the right coordinate of the scale grid.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function get scaleGridRight():Number
     {
@@ -1338,6 +1463,11 @@

     /**
      * Specfies the top coordinate of the scale grid.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function get scaleGridTop():Number
     {
@@ -1369,6 +1499,11 @@
      *  addElement().
      *
      *  @see mx.components.Group#addElement
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     override public function addChild(child:DisplayObject):DisplayObject
     {
@@ -1384,6 +1519,11 @@
      *  addElementAt().
      *
      *  @see mx.components.Group#addElementAt
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     override public function addChildAt(child:DisplayObject, index:int):DisplayObject
     {
@@ -1399,6 +1539,11 @@
      *  removeElement().
      *
      *  @see mx.components.Group#removeElement
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     override public function removeChild(child:DisplayObject):DisplayObject
     {
@@ -1414,6 +1559,11 @@
      *  removeElementAt().
      *
      *  @see mx.components.Group#removeElementAt
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     override public function removeChildAt(index:int):DisplayObject
     {
@@ -1429,6 +1579,11 @@
      *  setElementIndex().
      *
      *  @see mx.components.Group#setElementIndex
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     override public function setChildIndex(child:DisplayObject, index:int):void
     {
@@ -1444,6 +1599,11 @@
      *  swapElements().
      *
      *  @see mx.components.Group#swapElements
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     override public function swapChildren(child1:DisplayObject, child2:DisplayObject):void
     {
@@ -1459,6 +1619,11 @@
      *  swapElementsAt().
      *
      *  @see mx.components.Group#swapElementsAt
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     override public function swapChildrenAt(index1:int, index2:int):void
     {
@@ -1480,6 +1645,11 @@
      *  True when any of the IGraphicElement objects, that share
      *  this DisplayObject, needs to redraw.  This is used internally
      *  by the Group class and developers don't typically use this.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function get redrawRequested():Boolean
     {


Remove redundant code.

Remove redundant code.

--- src/modules/supportClasses/LayerSettings.as
+++ src/modules/supportClasses/LayerSettings.as
@@ -61,20 +61,9 @@
         if (fields && fields.length > 0)
         {
             var fieldsXML:XML = <fields/>;
-            var fieldXML:XML;
             for each (var field:FieldSettings in fields)
             {
-                fieldXML = <field name={field.name}/>;
-                if (field.alias)
-                {
-                    fieldXML.@alias = field.alias;
-                }
-                if (field.tooltip)
-                {
-                    fieldXML.@tooltip = field.tooltip;
-                }
-
-                fieldsXML.appendChild(fieldXML);
+                fieldsXML.appendChild(field.toXML());
             }

             if (fieldsXML.children().length() > 0)


openvv.swc doent work with this part of code in our project

--- src/org/openvv/OVVAsset.as
+++ src/org/openvv/OVVAsset.as
@@ -180,9 +180,8 @@
 		private static const VPAID_EVENTS:Array = ([VPAIDEvent.AdLoaded, VPAIDEvent.AdClickThru, VPAIDEvent.AdExpandedChange,
 			VPAIDEvent.AdImpression, VPAIDEvent.AdLinearChange, VPAIDEvent.AdLog, VPAIDEvent.AdPaused, VPAIDEvent.AdPlaying,
 			VPAIDEvent.AdStarted,VPAIDEvent.AdStopped, VPAIDEvent.AdUserAcceptInvitation,  VPAIDEvent.AdUserClose, VPAIDEvent.AdUserMinimize, VPAIDEvent.AdVideoComplete,
-			VPAIDEvent.AdVideoFirstQuartile, VPAIDEvent.AdVideoMidpoint, VPAIDEvent.AdVideoThirdQuartile, VPAIDEvent.AdVolumeChange, VPAIDEvent.AdSkipped,
-			VPAIDEvent.AdSkippableStateChange, VPAIDEvent.AdSizeChange, VPAIDEvent.AdDurationChange,
-			VPAIDEvent.AdInteraction, VPAIDEvent.AdVideoStart]);
+			VPAIDEvent.AdVideoFirstQuartile, VPAIDEvent.AdVideoMidpoint, VPAIDEvent.AdVideoThirdQuartile, VPAIDEvent.AdVolumeChange,
+			VPAIDEvent.AdVideoStart]);

 		/**
 		 * A vector of all OVV events
@@ -244,9 +243,6 @@

             _id = (id !== null) ? id : "ovv" + Math.floor(Math.random() * 1000000000).toString();

-            if ( !!adRef ) {
-                _ad = adRef as DisplayObject;
-            }
             setStage();

             var beaconSwfUrl:String = "";


changed eventhandlers to generic events to prevent runtime casting errors

--- src/org/openvv/OVVAsset.as
+++ src/org/openvv/OVVAsset.as
@@ -24,9 +24,8 @@
     import flash.events.TimerEvent;
     import flash.external.ExternalInterface;
     import flash.utils.Timer;
-
     import org.openvv.events.OVVEvent;
-	import net.iab.VPAIDEvent;
+    import net.iab.VPAIDEvent;

     /**
      * The event dispatched when the asset has been viewable for 5 contiguous seconds
@@ -451,7 +450,7 @@
 		 * @return a Function for injection the JavaScript resource
 		 */
 		private function onInjectJavaScriptResource(tagUrl:String):Function  {
-			 return function(event:VPAIDEvent):void {
+			 return function(event:Event):void {
 				if (!externalInterfaceIsAvailable()) {
 					return;
 				}
@@ -501,7 +500,7 @@
 		 * In case when the event is AdVideoComplete the internal interval that measures the asset will be stopped
 		 * @param	event the VPAID event to handle
 		 */
-		public function handleVPaidEvent(event:VPAIDEvent):void
+		public function handleVPaidEvent(event:Event):void
 		{
 			var ovvData:OVVCheck = checkViewability();

@@ -516,7 +515,7 @@
 					// do nothing
 			}

-			publishToJavascript(event.type, event.data, ovvData);
+			publishToJavascript(event.type, getEventData(event), ovvData);
 		}

 		/**
@@ -538,6 +537,22 @@
 			ExternalInterface.call(jsOvvPublish, eventType ,_id, publishedData);
 		}

+		private function getEventData(event:Event):Object
+		{
+			var data:Object;
+
+			try
+			{
+				data = event['data'];
+			}
+			catch (e:ReferenceError)
+			{
+				data = null;
+			}
+
+			return data;
+		}
+
 		private function raiseImpression(ovvData:*):void
 		{
 			dispatchEvent(new OVVEvent(OVVEvent.OVVImpression, ovvData));


this file was using an interface that got deleted but there was no compile error

--- frameworks/projects/HTML/as/src/org/apache/flex/html/beads/layouts/DataGridLayout.as
+++ frameworks/projects/HTML/as/src/org/apache/flex/html/beads/layouts/DataGridLayout.as
@@ -19,7 +19,6 @@
 package org.apache.flex.html.beads.layouts
 {
 	import org.apache.flex.core.IBeadLayout;
-	import org.apache.flex.core.IDataGridLayout;
 	import org.apache.flex.core.IDataGridModel;
 	import org.apache.flex.core.IStrand;
 	import org.apache.flex.core.IUIBase;
@@ -39,7 +38,7 @@
 	 *  @playerversion AIR 2.6
 	 *  @productversion FlexJS 0.0
 	 */
-	public class DataGridLayout implements IBeadLayout, IDataGridLayout
+	public class DataGridLayout implements IBeadLayout
 	{
 		/**
 		 *  constructor


Transferred from the Adobe Open Source Subversion Repository

Revision: 23243
Author:   cframpto@adobe.com
Date:     2011-12-20T00:59:57.384047Z

Log Message:
-----------
In frameworks, remove Adobe headers from all files except xml/mxml file types.  There are also a few .txt files that are license files that I didn't touch yet.

Modified Paths:
--------------
2361 paths were modified

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1264800 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/mobilecomponents/src/spark/transitions/FlipViewTransitionMode.as
+++ frameworks/projects/mobilecomponents/src/spark/transitions/FlipViewTransitionMode.as
@@ -1,13 +1,3 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2010 Adobe Systems Incorporated
-//  All Rights Reserved.
-//
-//  NOTICE: Adobe permits you to use, modify, and distribute this file
-//  in accordance with the terms of the license agreement accompanying it.
-//
-////////////////////////////////////////////////////////////////////////////////

 package spark.transitions
 {


FragmentLoader.as: remove magic constants

--- src/org/mangui/hls/stream/FragmentLoader.as
+++ src/org/mangui/hls/stream/FragmentLoader.as
@@ -83,6 +83,10 @@
         /** reference to previous/current fragment */
         private var _frag_previous : Fragment;
         private var _frag_current : Fragment;
+        /* loading state variable */
+        private static const LOADING_IN_PROGRESS : int = 0;
+        private static const LOADING_WAITING : int = 1;
+        private static const LOADING_OUTDATED : int = -1;

         /** Create the loader. **/
         public function FragmentLoader(hls : HLS, audioTrackController : AudioTrackController) : void {
@@ -144,7 +148,7 @@
                         CONFIG::LOGGING {
                             Log.debug("_checkLoading : playlist not received for level:" + level);
                         }
-                        loadstatus = 1;
+                        loadstatus = LOADING_WAITING;
                     } else {
                         // just after seek, load first fragment
                         loadstatus = _loadfirstfragment(_seek_pos, level);
@@ -185,7 +189,7 @@
                         CONFIG::LOGGING {
                             Log.debug("loadnextfragment : playlist not received for level:" + level);
                         }
-                        loadstatus = 1;
+                        loadstatus = LOADING_WAITING;
                     } else {
                         loadstatus = _loadnextfragment(_level, _frag_previous);
                     }
@@ -193,10 +197,10 @@
                     // no need to load any new fragment, buffer is full already
                     return;
                 }
-                if (loadstatus == 0) {
+                if (loadstatus == LOADING_IN_PROGRESS) {
                     // good, new fragment being loaded
                     _frag_loading = true;
-                } else if (loadstatus < 0) {
+                } else if (loadstatus == LOADING_OUTDATED) {
                     /* it means PTS requested is smaller than playlist start PTS.
                     it could happen on live playlist :
                     - if bandwidth available is lower than lowest quality needed bandwidth
@@ -208,7 +212,7 @@
                     _timer.stop();
                     seek(-1, _tags_callback);
                     return;
-                } else if (loadstatus > 0) {
+                } else if (loadstatus == LOADING_WAITING) {
                     // seqnum not available in playlist
                     _frag_loading = false;
                 }
@@ -570,7 +574,7 @@
                 Log.debug("Loading       " + frag.seqnum + " of [" + (_levels[level].start_seqnum) + "," + (_levels[level].end_seqnum) + "],level " + level);
             }
             _loadfragment(frag);
-            return 0;
+            return LOADING_IN_PROGRESS;
         }

         /** Load a fragment **/
@@ -608,7 +612,7 @@
                          * in case playlist of new level is outdated
                          * return 1 to retry loading later.
                          */
-                        return 1;
+                        return LOADING_WAITING;
                     } else if (last_seqnum == -1) {
                         // if we are here, it means that we have no PTS info for this continuity index, we need to do some PTS probing to find the right seqnum
                         /* we need to perform PTS analysis on fragments from same continuity range
@@ -619,7 +623,7 @@
                         }
                         if (last_seqnum == Number.NEGATIVE_INFINITY) {
                             // playlist not yet received
-                            return 1;
+                            return LOADING_WAITING;
                         }
                         /* when probing PTS, take previous sequence number as reference if possible */
                         new_seqnum = Math.min(frag_previous.seqnum + 1, _levels[level].getLastSeqNumfromContinuity(frag_previous.continuity));
@@ -638,20 +642,20 @@
                         // stop loading timer as well, as no other fragments can be loaded
                         _timer.stop();
                     }
-                    return 1;
+                    return LOADING_WAITING;
                 } else {
                     // if previous segment is not the last one, increment it to get new seqnum
                     new_seqnum = last_seqnum + 1;
                     if (new_seqnum < _levels[level].start_seqnum) {
                         // we are late ! report to caller
-                        return -1;
+                        return LOADING_OUTDATED;
                     }
                     frag = _levels[level].getFragmentfromSeqNum(new_seqnum);
                     if (frag == null) {
                         CONFIG::LOGGING {
                             Log.warn("error trying to load " + new_seqnum + " of [" + (_levels[level].start_seqnum) + "," + (_levels[level].end_seqnum) + "],level " + level);
                         }
-                        return 1;
+                        return LOADING_WAITING;
                     }
                     // check whether there is a discontinuity between last segment and new segment
                     _hasDiscontinuity = (frag.continuity != frag_previous.continuity);
@@ -664,7 +668,7 @@
                 Log.debug(log_prefix + new_seqnum + " of [" + (_levels[level].start_seqnum) + "," + (_levels[level].end_seqnum) + "],level " + level);
             }
             _loadfragment(frag);
-            return 0;
+            return LOADING_IN_PROGRESS;
         };

         private function _loadfragment(frag : Fragment) : void {


Fixing data index -> column name mapping.

--- driver/src/main/flex/org/postgresql/db/SimpleResultHandler.as
+++ driver/src/main/flex/org/postgresql/db/SimpleResultHandler.as
@@ -1,6 +1,7 @@
 package org.postgresql.db {
 	import org.postgresql.log.ILogger;
 	import org.postgresql.log.Log;
+	import org.postgresql.util.assert;

 	public class SimpleResultHandler implements IResultHandler {
@@ -44,6 +45,7 @@
 		}

 		public function handleRow(rowData:Array):void {
+			assert("Received data before metadata", _data);
 			if (rowData.length != _columns.length) {
 				LOGGER.error("Unexpected row data: got {0} fields, expected {1}; skipping", rowData.length, _columns.length);
 				return;
@@ -51,13 +53,13 @@
 			var row:Object = {};
 			// Re-map values based on column names. This is problematic when multiple
 			// columns with the same name are present, but that rarely happens in
-			// practice so this is a reasonable default implementation
+			// practice so this is a reasonable default implementation.
 			for (var i:int = 0; i < rowData.length; i++) {
 				var col:IColumn = _columns[i];
 				var data:Object = rowData[i];
 				row[col.name] = data;
 			}
-			_data.push(rowData);
+			_data.push(row);
 		}

 		public function handleCompletion(command:String, rows:int, oid:int):void {


remove unused file

remove unused file

--- src/com/mangui/HLS/muxing/MP3.as
+++ src/com/mangui/HLS/muxing/MP3.as
@@ -1,19 +0,0 @@
-package com.mangui.HLS.muxing {
-
-
-    import com.mangui.HLS.utils.*;
-    import flash.utils.ByteArray;
-
-
-    /** Constants and utilities for the MP3 audio format. **/
-    public class MP3 {
-
-
-        /** MP3 Syncword (111111111111), ID (MPEG1), layer (3) and no_protection (1).**/
-        public static const SYNCWORD:uint =  0xFFFB;
-
-
-    }
-
-
-}


Transferred from the Adobe Open Source Subversion Repository

Revision: 2246
Author:   jimurphy@adobe.com
Date:     2008-06-26T14:32:58.899755Z

Log Message:
-----------
Merged 3.0.x revisions [2190,2200,2206,2209-2210,2215,2218,2225,2245] -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/build.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/templates/html-templates/client-side-detection-with-history/history/history.js</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/templates/html-templates/no-player-detection-with-history/history/history.js</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/javascript/FABridge/samples/srcview/source/fabridge/javascript/FABridge.js</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools_en.properties</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/javascript/FABridge/src/bridge/FABridge.js</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/CursorManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/templates/html-templates/express-installation-with-history/history/history.js</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/videoClasses/VideoPlayer.as</path>

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1249891 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/airframework/src/mx/core/WindowedApplication.as
+++ frameworks/projects/airframework/src/mx/core/WindowedApplication.as
@@ -2891,14 +2891,22 @@
      */
     private function window_resizeHandler(event:NativeWindowBoundsEvent):void
     {
-        windowBoundsChanged= true;
-        invalidateProperties();
-        invalidateViewMetricsAndPadding();
-        invalidateDisplayList();
-        validateNow();
+        // Only validateNow if we don't already have a window bounds
+	// update pending. Otherwise, we'll miss a chance to layout with
+        // the modified bounds.  ** We really should revisit why we call
+        // validateNow here to begin with **.
+        if (!windowBoundsChanged)
+        {
+            windowBoundsChanged= true;
+            invalidateProperties();
+            invalidateViewMetricsAndPadding();
+            invalidateDisplayList();
+            validateNow();
+        }
+
         var e:FlexNativeWindowBoundsEvent =
                 new FlexNativeWindowBoundsEvent(FlexNativeWindowBoundsEvent.WINDOW_RESIZE, event.bubbles, event.cancelable,
-                    event.beforeBounds, event.afterBounds);
+                event.beforeBounds, event.afterBounds);
         dispatchEvent(e);
      }


Transferred from the Adobe Open Source Subversion Repository

Revision: 17739
Author:   doug.lee@ssbbartgroup.com
Date:     2010-09-16T23:16:46.534946Z

Log Message:
-----------
Reversed the commit that disabled the silencing of would-be repeated formItems.
Merge revision from /flex/sdk/trunk: 13607
Original revision log (before merge):
      r13548 | gosmith@adobe.com | 2010-01-15 21:13:33 -0500 (Fri, 15 Jan 2010) | 10 lines

      Commented out code in AccImpl that makes FormItems have 'silent' accessibility.

      It seems to cause JAWS's accessibility model to get our of sync with the Player's accessibility model, resulting in various symptoms such as incorrect child counts, non-functioning virtual pc mode, and IE crashes (due to Player problems).

      SDK-25042 ------------------------------------------------------------------------

QE notes:
Doc notes:
Bugs:
Reviewer:
Tests run: checkin
Is noteworthy for integration: no

Modified Paths:
--------------
/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/accessibility/AccImpl.as

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1258448 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/framework/src/mx/accessibility/AccImpl.as
+++ frameworks/projects/framework/src/mx/accessibility/AccImpl.as
@@ -381,21 +381,12 @@
         if (formItem.accessibilityProperties)
         {
             f = formItem.accessibilityProperties.name
-            // TODO (gosmith) The purpose of the following two lines is to
+            // The purpose of the following two lines is to
             // make the FormItem "silent" so that its MSAA Name doesn't get
             // spoken. It doesn't need to be spoken since the Name of each
             // control inside the FormItem includes the FormItem's Name.
-            // However, they seem to cause SDK-25042 and other problems.
-            // Apparently, setting accessibilityProperties.silent to true
-            // can make the accessibility models of JAWS and the Player
-            // get out of sync, causing problems with child counts,
-            // disabling virtual cursor mode in JAWS, and even causing
-            // the Player to crash when JAWS asks for an object
-            // that the Player thinks is no longer accessible.
-            // Since we need a last-minute safe fix for these problems
-            // I'm commenting these lines out.
-//          if (formItem.itemLabel && formItem.itemLabel.accessibilityEnabled)
-//              formItem.itemLabel.accessibilityEnabled = false;
+            if (formItem.itemLabel && formItem.itemLabel.accessibilityEnabled)
+                formItem.itemLabel.accessibilityEnabled = false;
         }
         if (f == "")
             f = formItem.label;


Transferred from the Adobe Open Source Subversion Repository

Revision: 11500
Author:   jon.avila@ssbbartgroup.com
Date:     2009-11-06T15:15:47.672458Z

Log Message:
-----------
Updated to include support for event_object_show and event_object_hide and to only create an accessibilityProperties object if one does not already exist.
QE notes: none
Doc notes: none
Bugs: n/a
Reviewer: Gordon
Tests run: checkintests
Is noteworthy for integration: no

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AccImpl.as

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1258434 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/framework/src/mx/accessibility/AccImpl.as
+++ frameworks/projects/framework/src/mx/accessibility/AccImpl.as
@@ -74,6 +74,16 @@
      */
     private static const EVENT_OBJECT_NAMECHANGE:uint = 0x800C;

+    /**
+     *  @private
+     */
+    private static const EVENT_OBJECT_SHOW:uint = 0x8002;
+
+    /**
+     *  @private
+     */
+    private static const EVENT_OBJECT_HIDE:uint = 0x8003;
+
     //--------------------------------------------------------------------------
     //
     //  Class methods
@@ -187,7 +197,8 @@
         stub = false;

         // Hook in UIComponentAccProps setup here!
-        master.accessibilityProperties = new AccessibilityProperties();
+        if (!master.accessibilityProperties)
+            master.accessibilityProperties = new AccessibilityProperties();

         // Hookup events to listen for
         var events:Array = eventsToHandle;
@@ -245,7 +256,7 @@
      */
     protected function get eventsToHandle():Array
     {
-        return [ "errorStringChanged", "toolTipChanged" ];
+        return [ "errorStringChanged", "toolTipChanged", "show", "hide" ];
     }

     //--------------------------------------------------------------------------
@@ -436,6 +447,18 @@
                 Accessibility.updateProperties();
                 break;
             }
+            case "show":
+            {
+                Accessibility.sendEvent(master, 0, EVENT_OBJECT_SHOW);
+                Accessibility.updateProperties();
+                break;
+            }
+            case "hide":
+            {
+                Accessibility.sendEvent(master, 0, EVENT_OBJECT_HIDE);
+                Accessibility.updateProperties();
+                break;
+            }
         }
     }
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 4516
Author:   gosmith@adobe.com
Date:     2009-01-13T23:23:14.594709Z

Log Message:
-----------
Accessibility changes to Panel and TitleWindow, as requested by Freedom Scientific.

These components now report their accessibility role as "grouping" rather than "window". Their accessibility name is now simply their title. They no longer report any child items. Their accessibility location is the bounding rect of the entire Panel or TitleWindow.

The AccessibilityImplementation continues to be attached to the titleBar, not to the Panel/TitleWindow, because the Flash Player ignores Sprites with an AccessibilityImplementation that are inside other Sprites with an AccessibilityImplementation. (The Flash accessibility model is flat, not hierarchical, and "child IDs" are only used for things like list items, not for controls in titled container.)

So although in the display hierarchy the Panel is a parent of its content controls, in the MSAA model it appears as their preceding sibling. JAWS will look at the "grouping" role and understand that because the bounding rect of the grouping includes some of its following siblings, they are "inside". (I don't know what this means in terms of what JAWS will actually speak.)

Also, the AccImpl class now implements getChildIDArray() to return an empty array, so that by default all components have 0 child items (rather than reporting an error).

Finally, subclasses with child items now compute how many they have and then call a new AccImpl utility method, createChildIDArray(), to create an Array that looks like [ 1, 2, 3, 4, 5 ].

QE Notes: None
Doc Notes: None
Bugs: SDK-12390, SDK-16340
Reviewer: Deepa

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/TabBarAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ColorPickerAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/DataGridAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/PanelAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/TreeAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/SliderAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ListBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/MenuBarAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/TitleWindowAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ComboBaseAccImpl.as</path>

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1267433 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/mx/src/mx/accessibility/MenuBarAccImpl.as
+++ frameworks/projects/mx/src/mx/accessibility/MenuBarAccImpl.as
@@ -259,18 +259,11 @@
 	 */
 	override public function getChildIDArray():Array
 	{
-		var childIDs:Array = [];
-
-		if (MenuBar(master).menuBarItems)
-		{
-			var n:int = MenuBar(master).menuBarItems.length;
-			for (var i:int = 0; i < n; i++)
-			{
-				childIDs[i] = i + 1;
-			}
-		}
-
-		return childIDs;
+		var n:int = MenuBar(master).menuBarItems ?
+					MenuBar(master).menuBarItems.length :
+					0;
+
+		return createChildIDArray(n);
 	}

  	/**


Transferred from the Adobe Open Source Subversion Repository

Revision: 5098
Author:   gauravj@adobe.com
Date:     2009-02-27T02:21:27.489350Z

Log Message:
-----------
Update action script files with asdoc version tags.

QE Notes: None.
Doc Notes: Please review and update as necessary.
tests: checkintests

Modified Paths:
--------------
151 paths were modified

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1278181 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/spark/src/spark/components/Application.as
+++ frameworks/projects/spark/src/spark/components/Application.as
@@ -44,6 +44,11 @@
  *  processed by the LayoutManager, and attached to the display list.
  *
  *  @eventType mx.events.FlexEvent.APPLICATION_COMPLETE
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
  */
 [Event(name="applicationComplete", type="mx.events.FlexEvent")]

@@ -52,6 +57,11 @@
  *  such as when an HTTPService, WebService, or RemoteObject fails.
  *
  *  @eventType flash.events.ErrorEvent.ERROR
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
  */
 [Event(name="error", type="flash.events.ErrorEvent")]

@@ -78,6 +88,11 @@
  *  This factoryClass will be automatically subclassed by any
  *  MXML applications that don't explicitly specify a different
  *  factoryClass.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
  */
 [Frame(factoryClass="mx.managers.SystemManager")]

@@ -113,6 +128,11 @@
  *  />
  *

  *
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
  */
 public class FxApplication extends FxContainer
 {
@@ -132,6 +152,11 @@

     /**
      *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function FxApplication()
     {
@@ -205,6 +230,11 @@
      *  Background color of a component.
      *  This property specifies the background color, both while the application
      *  loads, and while it is running.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function get backgroundColor():Object /* Color (int or String) */
     {
@@ -240,6 +270,11 @@
     *  instance or via an event (there is no framework event for this purpose).
     *
     *  @default ColorCorrection.DEFAULT
+    *
+    *  @langversion 3.0
+    *  @playerversion Flash 10
+    *  @playerversion AIR 1.5
+    *  @productversion Flex 4
     */
     public function get colorCorrection():String
     {
@@ -294,6 +329,11 @@
      *
Note: This property cannot be set by ActionScript code; it must be set in MXML code.

      *
      *    @default 24
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public var frameRate:Number;

@@ -309,6 +349,11 @@
      *
Note: This property cannot be set by ActionScript code; it must be set in MXML code.

      *
      *    @default ""
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public var pageTitle:String;

@@ -326,6 +371,11 @@
      *    web application.
      *
      *
Note: This property cannot be set by ActionScript code; it must be set in MXML code.

+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public var preloader:Object;

@@ -343,6 +393,11 @@
      *
Note: This property cannot be set by ActionScript code; it must be set in MXML code.

      *
      *    @default 1000
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public var scriptRecursionLimit:int;

@@ -359,6 +414,11 @@
      *    The maximum allowable value that you can set is 60 seconds.
      *
      *  @default 60
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public var scriptTimeLimit:Number;

@@ -374,6 +434,11 @@
      *
Note: This property cannot be set by ActionScript code; it must be set in MXML code.

      *
      *    @default true
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public var usePreloader:Boolean;

@@ -485,6 +550,11 @@
      *
There are two sources of parameters: the query string of the
      *  FxApplication's URL, and the value of the FlashVars HTML parameter
      *  (this affects only the main FxApplication).

+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function get parameters():Object
     {
@@ -504,6 +574,11 @@

     /**
      *  The URL from which this FxApplication's SWF file was loaded.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function get url():String
     {
@@ -534,6 +609,11 @@
      *      ...
      *    </FxApplication>

      *
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function get viewSourceURL():String
     {


Transferred from the Adobe Open Source Subversion Repository

Revision: 19787
Author:   jszeto@adobe.com
Date:     2011-01-17T23:30:59.383799Z

Log Message:
-----------
Mobile support for SoftKeyboard

Initial checkin.

Added support to Application to resize the application when the softKeyboard is shown and hidden.
Added support to Scroller to scroll the focused element into view.

QE notes: none
Doc notes: none
Bugs: none
Reviewer: Glenn
Tests run: checkintests
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ListSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Application.as</path>

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1278236 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/spark/src/spark/components/Application.as
+++ frameworks/projects/spark/src/spark/components/Application.as
@@ -17,8 +17,10 @@
 import flash.display.Stage;
 import flash.events.ContextMenuEvent;
 import flash.events.Event;
+import flash.events.SoftKeyboardEvent;
 import flash.events.UncaughtErrorEvent;
 import flash.external.ExternalInterface;
+import flash.geom.Rectangle;
 import flash.net.URLRequest;
 import flash.net.navigateToURL;
 import flash.system.Capabilities;
@@ -26,6 +28,7 @@
 import flash.ui.ContextMenuItem;
 import flash.utils.setInterval;

+import mx.core.EventPriority;
 import mx.core.FlexGlobals;
 import mx.core.IInvalidating;
 import mx.core.InteractionMode;
@@ -36,6 +39,7 @@
 import mx.managers.IActiveWindowManager;
 import mx.managers.ILayoutManager;
 import mx.managers.ISystemManager;
+import mx.managers.SystemManager;
 import mx.managers.ToolTipManager;
 import mx.styles.CSSStyleDeclaration;
 import mx.styles.StyleManager;
@@ -303,6 +307,13 @@
     /**
      *  @private
      */
+    private var softKeyboardHandlersAdded:Boolean = false;
+
+    private static var _softKeyboardBehavior:String = null;
+
+    /**
+     *  @private
+     */
     private var synchronousResize:Boolean = false;

     /**
@@ -996,6 +1007,33 @@
     }

     //----------------------------------
+    //  resizeForSoftKeyboard
+    //----------------------------------
+    private var _resizeForSoftKeyboard:Boolean = true;
+    private var resizeForSoftKeyboardChanged:Boolean = true;
+
+    /**
+     *  A value of true means the application is resized when the softKeyboard is actiaved or
+     *  deactivated.
+     *
+     *  @default true
+     */
+    public function get resizeForSoftKeyboard():Boolean
+    {
+        return _resizeForSoftKeyboard;
+    }
+
+    public function set resizeForSoftKeyboard(value:Boolean):void
+    {
+        if (_resizeForSoftKeyboard != value)
+        {
+            _resizeForSoftKeyboard = value;
+            resizeForSoftKeyboardChanged = true;
+            invalidateProperties();
+        }
+    }
+
+    //----------------------------------
     //  url
     //----------------------------------

@@ -1148,6 +1186,33 @@
                 systemManager.removeEventListener(Event.RESIZE, resizeHandler);
                 resizeHandlerAdded = false;
             }
+        }
+
+        if (resizeForSoftKeyboardChanged)
+        {
+            // Check for softKeyboardBehavior == none
+            if (softKeyboardBehavior == "none")
+            {
+                if (resizeForSoftKeyboard && !softKeyboardHandlersAdded)
+                {
+                    // Use a high priority so that the application resize will occur first
+                    systemManager.stage.addEventListener(SoftKeyboardEvent.SOFT_KEYBOARD_ACTIVATE,
+                                                         softKeyboardActivateHandler, false,
+                                                         EventPriority.BINDING, true);
+                    systemManager.stage.addEventListener(SoftKeyboardEvent.SOFT_KEYBOARD_DEACTIVATE,
+                                                         softKeyboardDeactivateHandler, false,
+                                                         EventPriority.BINDING, true);
+                    softKeyboardHandlersAdded = true;
+                }
+                else if (!resizeForSoftKeyboard && softKeyboardHandlersAdded)
+                {
+                    systemManager.stage.removeEventListener(SoftKeyboardEvent.SOFT_KEYBOARD_ACTIVATE, softKeyboardActivateHandler, false);
+                    systemManager.stage.removeEventListener(SoftKeyboardEvent.SOFT_KEYBOARD_DEACTIVATE, softKeyboardDeactivateHandler, false);
+                    softKeyboardHandlersAdded = false;
+                }
+            }
+
+            resizeForSoftKeyboardChanged = false;
         }

         if (percentBoundsChanged)
@@ -1404,6 +1469,92 @@

         synchronousResize = (parseFloat(version[0]) > 10 ||
                              (parseFloat(version[0]) == 10 && parseFloat(version[1]) >= 1)) && (Capabilities.playerType != "Desktop" || runningOnMobile);
+    }
+
+    /**
+     *  @private
+     *  Called if resizeForSoftKeyboard is true and the softKeyboard
+     *  has been activated.
+     */
+    private function softKeyboardActivateHandler(event:SoftKeyboardEvent):void
+    {
+        if (this === FlexGlobals.topLevelApplication)
+        {
+            // Get the keyboard size
+            var keyboardRect:Rectangle = stage.softKeyboardRect;
+
+            var sm:SystemManager = systemManager as SystemManager;
+            var scaleFactor:Number = 1;
+
+            // Account for any density scaling
+            if (sm)
+                scaleFactor = sm.densityScale;
+
+            var appHeight:Number = (stage.stageHeight - keyboardRect.height) / scaleFactor;
+
+            if (appHeight != height)
+            {
+                setActualSize(width, appHeight);
+                validateNow(); // Validate so that other listeners like Scroller get the updated dimensions
+            }
+        }
+    }
+
+    /**
+     *  @private
+     *  Called if resizeForSoftKeyboard is true and the softKeyboard
+     *  has been deactivated.
+     */
+    private function softKeyboardDeactivateHandler(event:SoftKeyboardEvent):void
+    {
+        if (this === FlexGlobals.topLevelApplication)
+        {
+            // Get the keyboard size
+            var keyboardRect:Rectangle = stage.softKeyboardRect;
+
+            var sm:SystemManager = systemManager as SystemManager;
+            var scaleFactor:Number = 1;
+
+            // Account for any density scaling
+            if (sm)
+                scaleFactor = sm.densityScale;
+
+            // Restore the original values
+            setActualSize(stage.stageWidth / scaleFactor, stage.stageHeight / scaleFactor);
+
+            validateNow(); // Validate so that other listeners like Scroller get the updated dimensions
+        }
+    }
+
+    /**
+     *  Helper function to get the AIR application descriptor attribute called "softKeyboardBehavior".
+     */
+    mx_internal static function get softKeyboardBehavior():String
+    {
+        if (_softKeyboardBehavior != null)
+        {
+            return _softKeyboardBehavior;
+        }
+        else
+        {
+            // Since we might not be running on AIR, need to get the class by name.
+            // Also, make sure to cache the value so we only run this once
+            var nativeApp:Object = FlexGlobals.topLevelApplication.systemManager.getDefinitionByName("flash.desktop.NativeApplication");
+
+            if (nativeApp)
+            {
+                var appXML:XML = XML(nativeApp["nativeApplication"]["applicationDescriptor"]);
+                var ns:Namespace = appXML.namespace();
+
+                _softKeyboardBehavior = String(appXML..ns::softKeyboardBehavior);
+            }
+            else
+            {
+                _softKeyboardBehavior = "";
+            }
+
+            return _softKeyboardBehavior;
+        }
     }

     //--------------------------------------------------------------------------


Transferred from the Adobe Open Source Subversion Repository

Revision: 7740
Author:   rfrishbe@adobe.com
Date:     2009-06-11T08:03:46.086049Z

Log Message:
-----------
Make sure to push down muted property in VolumeBar to muteButton.

Also, change MUTED_CHANGE to only dispatch when the muted property changes based on user-interaction (based on being pushed down from videoplayer).

Fix PopUpAnchor TODO around closing the popup when removing the popup from the stage.

QE Notes: -
Doc Notes: -
Bugs: SDK-21727
Reviewer: Chiedo
tests: checkintest (seem to fail due to local changes to ScrollBar, which I'm not checking in here)

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/mediaClasses/VolumeBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/PopUpAnchor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/mediaClasses/MuteButton.as</path>

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1279861 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/spark/src/spark/components/PopUpAnchor.as
+++ frameworks/projects/spark/src/spark/components/PopUpAnchor.as
@@ -455,18 +455,26 @@
         }
         else if (popUp.parent != null && displayPopUp == false)
         {
-            PopUpManager.removePopUp(popUp);
-            popUpIsDisplayed = false;
-            popUp.explicitWidth = popUpWidth;
-            popUp.explicitHeight = popUpHeight;
-
-            /*if (popUpFactory)
-            {
-                _popUp.styleName = null;
-                _popUp = null;
-                popUpFactory.reset();
-            }*/
+            removeAndResetPopUp();
         }
+    }
+
+    /**
+     *  @private
+     */
+    private function removeAndResetPopUp():void
+    {
+        PopUpManager.removePopUp(popUp);
+        popUpIsDisplayed = false;
+        popUp.explicitWidth = popUpWidth;
+        popUp.explicitHeight = popUpHeight;
+
+        /*if (popUpFactory)
+        {
+            _popUp.styleName = null;
+            _popUp = null;
+            popUpFactory.reset();
+        }*/
     }

     /**
@@ -573,8 +581,10 @@
      */
     private function removedFromStageHandler(event:Event):void
     {
+        if (popUp.parent != null)
+            removeAndResetPopUp();
+
         addedToStage = false;
-        // TODO (jszeto) Remove popup from PopUpManager
     }

 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 12573
Author:   rfrishbe@adobe.com
Date:     2009-12-05T01:17:53.474736Z

Log Message:
-----------
After the video player goes in to full screen mode, text styles no longer inherit properly. This is because in the skin, we set color.fullScreenStates="white".  When leaving fullScreen state, the states code sets fullScreen state explicitly back to what it was--no longer allowing for the style to inherit.  To fix this, I explicitly set color back to undefined.  I also filed another bug about how states/styles should be smarter about calling setStyle() and should only do it on inline styles.

I'm also cleaning up some dead styles in the wireframe VideoPlayerSkin.

I'm also fixing an AIR bug I found when on a Mac (it's Mac-only) when going exiting fullscreen mode because AIR reports the nativeWindow isn't visible when leaving fullscreen mode.  This was causing the video playback to stop when pauseWhenHidden = true.

QE notes: Need to test more on Mac and Windows AIR VideoPlayer FullScreen.
Doc notes: -
Bugs: SDK-24554
Reviewer: Kevin
Tests run: checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VideoDisplay.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VideoPlayer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/VideoPlayerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/VideoPlayerSkin.mxml</path>

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1281210 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/spark/src/spark/components/VideoPlayer.as
+++ frameworks/projects/spark/src/spark/components/VideoPlayer.as
@@ -698,6 +698,21 @@
      */
     private var videoDisplayProperties:Object = {};

+    /**
+     *  @private
+     *  The value of the pauseWhenHidden property before exiting
+     *  fullScreen.  We need to store it away here so we can
+     *  restore it at commitProperties() time because of an AIR
+     *  Mac bug.
+     */
+    private var exitingFullScreenPauseWhenHidden:Boolean;
+
+    /**
+     *  @private
+     *  Whether the pauseWhenHidden property needs to be updated.
+     */
+    private var needsToUpdatePauseWhenHidden:Boolean = false;
+
     //--------------------------------------------------------------------------
     //
     //  Properties
@@ -1060,7 +1075,11 @@
      */
     public function get pauseWhenHidden():Boolean
     {
-        if (videoDisplay)
+        if (needsToUpdatePauseWhenHidden)
+        {
+            return exitingFullScreenPauseWhenHidden;
+        }
+        else if (videoDisplay)
         {
             return videoDisplay.pauseWhenHidden;
         }
@@ -1076,7 +1095,11 @@
      */
     public function set pauseWhenHidden(value:Boolean):void
     {
-        if (videoDisplay)
+        if (needsToUpdatePauseWhenHidden)
+        {
+            exitingFullScreenPauseWhenHidden = value;
+        }
+        else if (videoDisplay)
         {
             videoDisplay.pauseWhenHidden = value;
             videoDisplayProperties = BitFlagUtil.update(videoDisplayProperties as uint,
@@ -1723,6 +1746,23 @@
         }
     }

+    /**
+     *  @private
+     */
+    override protected function commitProperties():void
+    {
+        super.commitProperties();
+
+        // if coming from full screen mode, we reset the
+        // pauseWhenHidden property here because of an AIR bug
+        // that requires us to defer it.
+        if (needsToUpdatePauseWhenHidden)
+        {
+            needsToUpdatePauseWhenHidden = false;
+            pauseWhenHidden = exitingFullScreenPauseWhenHidden;
+        }
+    }
+
     //--------------------------------------------------------------------------
     //
     //  Methods
@@ -2131,7 +2171,7 @@
         // keep track of pauseWhenHidden b/c we will set it to false temporarily
         // so that the video does not pause when we reparent it to the top
         // level application
-        var oldPauseWhenHidden:Boolean = pauseWhenHidden;
+        exitingFullScreenPauseWhenHidden = pauseWhenHidden;
         pauseWhenHidden = false;

         // set the fullScreen variable back to false and remove this event listener
@@ -2182,7 +2222,17 @@
             beforeFullScreenInfo.parent.addChildAt(this, beforeFullScreenInfo.childIndex);

         includeInLayout = beforeFullScreenInfo.includeInLayout;
-        pauseWhenHidden = oldPauseWhenHidden;
+
+        // want to update pauseWhenHidden, but can't do it here
+        // b/c the AIR window thinks it's invisible at this point
+        // if we're on a Mac (a bug), so let's just defer this check
+        // to commitProperties().
+        if (exitingFullScreenPauseWhenHidden)
+        {
+            // if we need to set it back to true
+            needsToUpdatePauseWhenHidden = true;
+            invalidateProperties();
+        }

         beforeFullScreenInfo = null;


FLEX-33921 fix rounding issue

FLEX-33921 fix rounding issue

--- frameworks/projects/spark/src/spark/primitives/BitmapImage.as
+++ frameworks/projects/spark/src/spark/primitives/BitmapImage.as
@@ -1095,7 +1095,7 @@
                 if ((!isNaN(percentWidth) && isNaN(percentHeight) && isNaN(explicitHeight)) ||
                     (!isNaN(percentHeight) && isNaN(percentWidth) && isNaN(explicitWidth)))
                 {
-                    if (aspectRatio != imageAspectRatio)
+                    if (Math.abs(aspectRatio - imageAspectRatio) > 0.001)
                     {
                         invalidateSize();
                         return;


Transferred from the Adobe Open Source Subversion Repository

Revision: 18438
Author:   chiedozi@adobe.com
Date:     2010-11-03T22:09:03.321654Z

Log Message:
-----------
Added comments to MobileApplication and MobileApplicationBase

QE notes:
Doc notes:
Bugs:
Reviewer:
Tests run:
Is noteworthy for integration:

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/MobileApplication.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/MobileApplicationBase.as</path>

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1264354 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/mobilecomponents/src/spark/components/ViewNavigatorApplication.as
+++ frameworks/projects/mobilecomponents/src/spark/components/ViewNavigatorApplication.as
@@ -30,7 +30,30 @@
 [DefaultProperty("navigationStack")]

 /**
+ *  MobileApplication is an application class meant to provide a simple
+ *  framework for applications that employ a view-based navigation model.
+ *  When used, this class functions as the main entry point for the application
+ *  and provides support for hardware device keys, orientation detection and
+ *  application session persistence.
  *
+ *
A view=based navigation model is characterized by a user interface
+ *  where the end user navigates between a series of full screen views in
+ *  response to user interaction.  This is a paradigm commonly used by
+ *  mobile applications and is accomplished through the use of a built in
+ *  ViewNavigator that lives in the application's skin.

+ *
+ *
The firstView property can be used to define
+ *  what View should be displayed first when the application is
+ *  initialized.

+ *
+ *
Unlike Application, MobileApplication is not meant to accept
+ *  UIComponents has children.  Instead, all visual components should
+ *  children of the various views managed by the application.

+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10.1
+ *  @playerversion AIR 2.5
+ *  @productversion Flex 4.5
  */
 public class MobileApplication extends MobileApplicationBase
 {
@@ -90,6 +113,14 @@
     //  Constructor
     //
     //--------------------------------------------------------------------------
+    /**
+     *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
     public function MobileApplication()
     {
         super();
@@ -118,6 +149,7 @@

     /**
      *  @private
+     *  Proxy setter for the view navigator's navigationStack property.
      */
     private function get navigationStack():NavigationStack
     {
@@ -164,6 +196,28 @@
     //--------------------------------------------------------------------------

     //----------------------------------
+    //  actionBar
+    //----------------------------------
+
+    /**
+     *  Provides access to the main navigator's actionBar
+     *  if one exists.  This property will only be valid after the
+     *  navigator has been added to the display list.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    public function get actionBar():ActionBar
+    {
+        if (navigator)
+            return navigator.actionBar;
+
+        return null;
+    }
+
+    //----------------------------------
     //  exitApplicationOnBackKey
     //----------------------------------
     /**
@@ -189,8 +243,17 @@
     private var _firstViewData:Object;

     /**
-     * This is the initialization data to pass to the
-     * root screen when it is created.
+     *  This is the initialization data to pass to the
+     *  first view when it is created.  This object will need to be set
+     *  before the first initialization pass for it to be considered
+     *  by the view navigator.
+     *
+     *  @default null
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
      */
     public function get firstViewData():Object
     {
@@ -215,8 +278,14 @@
     private var _firstView:Class;

     /**
-     *  This property is the object to use to initialize the first view
-     *  of the stack.
+     *  The class used to create the first view of the view navigator.
+     *  This property must be set before the first initialization pass
+     *  it to be considered by the application's navigator.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
      */
     public function get firstView():Class
     {
@@ -243,10 +312,14 @@

     [ArrayElementType("mx.core.IVisualElement")]
     /**
-     *  Array of visual elements that are used as the ActionBar's
-     *  actionContent when this view is active.
+     *  The default array of visual elements that are used as the
+     *  ActionBar's actionContent when the current view does not
+     *  define one.
      *
      *  @default null
+     *
+     *  @see spark.components.View#actionContent
+     *  @see spark.components.ViewNavigator#actionContent
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -281,10 +354,14 @@
     //----------------------------------

     /**
-     *  Layout for the ActionBar's action content group.
+     *  The default layout to apply to the ActionBar's action content
+     *  container when the current view does not define one.
      *
      *  @default null
      *
+     *  @see spark.components.View#actionLayout
+     *  @see spark.components.ViewNavigator#actionLayout
+     *
      *  @langversion 3.0
      *  @playerversion Flash 10
      *  @playerversion AIR 2.5
@@ -317,14 +394,17 @@
     //  navigationContent
     //----------------------------------

-
     [ArrayElementType("mx.core.IVisualElement")]
     /**
-     *  Array of visual elements that are used as the ActionBar's
-     *  navigationContent when this view is active.
+     *  The default array of visual elements that are used as the
+     *  ActionBar's navigation content when the current view doesn't
+     *  define any.
      *
      *  @default null
      *
+     *  @see spark.components.View#navigationContent
+     *  @see spark.components.ViewNavigator#navigationContent
+     *
      *  @langversion 3.0
      *  @playerversion Flash 10
      *  @playerversion AIR 2.5
@@ -358,10 +438,14 @@
     //----------------------------------

     /**
-     *  Layout for the ActionBar navigation content group.
+     *  The default layout for the ActionBar navigation content container
+     *  when the active view doesn't define one.
      *
      *  @default null
      *
+     *  @see spark.components.View#navigationLayout
+     *  @see spark.components.ViewNavigator#navigationLayout
+     *
      *  @langversion 3.0
      *  @playerversion Flash 10
      *  @playerversion AIR 2.5
@@ -397,10 +481,13 @@
     [Bindable]
     /**
      *  The default title that should be used by the ActionBar if the
-     *  view doesn't provide one.
+     *  active view doesn't provide one.
      *
      *  @default null
      *
+     *  @see spark.components.View#title
+     *  @see spark.components.ViewNavigator#title
+     *
      *  @langversion 3.0
      *  @playerversion Flash 10.1
      *  @playerversion AIR 2.5
@@ -435,11 +522,15 @@

     [ArrayElementType("mx.core.IVisualElement")]
     /**
-     *  Array of visual elements that are used as the ActionBar's
-     *  titleContent when this view is active.
+     *  The default array of visual elements that are used as the
+     *  ActionBar's title content when the active view doesn't define
+     *  one.
      *
      *  @default null
      *
+     *  @see spark.components.View#titleContent
+     *  @see spark.components.ViewNavigator#titleContent
+     *
      *  @langversion 3.0
      *  @playerversion Flash 10
      *  @playerversion AIR 2.5
@@ -473,9 +564,13 @@
     //----------------------------------

     /**
-     *  Layout for the ActionBar's titleContent group.
+     *  The default layout for the ActionBar's title content container
+     *  when the active view doesn't define one.
      *
      *  @default null
+     *
+     *  @see spark.components.View#titleLayout
+     *  @see spark.components.ViewNavigator#titleLayout
      *
      *  @langversion 3.0
      *  @playerversion Flash 10


Transferred from the Adobe Open Source Subversion Repository

Revision: 23246
Author:   cframpto@adobe.com
Date:     2011-12-20T17:40:08.069454Z

Log Message:
-----------
Rollback 23243.  If comment followed header it was stripped as well.

Modified Paths:
--------------
2361 paths were modified

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1261557 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/framework/src/mx/managers/HistoryManagerImpl.as
+++ frameworks/projects/framework/src/mx/managers/HistoryManagerImpl.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2006-2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////

 package mx.managers
 {


Do not show confirm when importing species in empty list

--- collect-client/src/main/flex/org/openforis/collect/presenter/SpeciesImportPresenter.as
+++ collect-client/src/main/flex/org/openforis/collect/presenter/SpeciesImportPresenter.as
@@ -1,5 +1,6 @@
 package org.openforis.collect.presenter {

+	import flash.events.Event;
 	import flash.events.MouseEvent;
 	import flash.net.URLRequest;
 	import flash.net.URLRequestMethod;
@@ -91,6 +92,14 @@
 			}
 		}

+		override protected function fileReferenceSelectHandler(event:Event):void {
+			if ( _view.summaryDataGrid.dataProvider.length > 0 ) {
+				super.fileReferenceSelectHandler(event);
+			} else {
+				startUpload();
+			}
+		}
+
 		protected function getExportUrlRequest():URLRequest {
 			if ( _selectedTaxonomy == null ) {
 				AlertUtil.showError(messageKeys.SELECT_TAXONOMY);


Transferred from the Adobe Open Source Subversion Repository

Revision: 23243
Author:   cframpto@adobe.com
Date:     2011-12-20T00:59:57.384047Z

Log Message:
-----------
In frameworks, remove Adobe headers from all files except xml/mxml file types.  There are also a few .txt files that are license files that I didn't touch yet.

Modified Paths:
--------------
2361 paths were modified

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1259273 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/framework/src/mx/core/IDeferredContentOwner.as
+++ frameworks/projects/framework/src/mx/core/IDeferredContentOwner.as
@@ -1,13 +1,3 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2008 Adobe Systems Incorporated
-//  All Rights Reserved.
-//
-//  NOTICE: Adobe permits you to use, modify, and distribute this file
-//  in accordance with the terms of the license agreement accompanying it.
-//
-////////////////////////////////////////////////////////////////////////////////

 package mx.core
 {


fixed bug where null values were created at end of csv columns

--- WeaveData/src/weave/data/DataSources/CSVDataSource.as
+++ WeaveData/src/weave/data/DataSources/CSVDataSource.as
@@ -422,7 +422,7 @@
 		 */
 		private function getColumnValues(rows:Array, columnIndex:int, outputArrayOrVector:*):void
 		{
-			outputArrayOrVector.length = rows.length;
+			outputArrayOrVector.length = rows.length - 1;
 			var i:int;
 			if (columnIndex < 0)
 			{


Transferred from the Adobe Open Source Subversion Repository

Revision: 7766
Author:   dloverin@adobe.com
Date:     2009-06-11T23:14:47.510089Z

Log Message:
-----------
WindowedApplication and Window bug fixes.

QE Notes: None.
Doc Notes: Changed some ASDoc comments.
Bugs: SDK-21672, SDK-21625, SDK-21628
Reviewer: Glenn
tests: checkintests

On 6/11/09 6:54 AM, "Darrell Loverin" <dloverin@adobe.com> wrote:
http://bugs.adobe.com/jira/browse/SDK-21672 When using system chrome, setting height to 0 moves the status bar to the top of the app. and does not resize the app.

Modified commitProperties(). This looks like an AIR bug. I worked around the problem by first setting the nativeWindow to the correct size and then setting the stage.stageHeight.

http://bugs.adobe.com/jira/browse/SDK-21625 minWidth and minHeight default to incorrect values.
Modified ASDoc @default comment for minWidth, minHeight, maxWidth, and maxHeight.

http://bugs.adobe.com/jira/browse/SDK-21628 minWidth and minHeight override the width and height when set in MXML.

The height and width are set by the auto generated code before the application window is created. The problem was that maxHeight is initialized to zero and is used if there is no nativeWindow. So when the height property is set to 500 and the autogenerated code sets it before the nativeWindow is created, the height setting will see the height is greater than maxHeight and set it to zero.

I fixed the problem by initializing _maxHeight and _maxWidth to 2880 (the documented maximum width and height of an AIR window).

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as</path>

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1249904 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/airframework/src/mx/core/WindowedApplication.as
+++ frameworks/projects/airframework/src/mx/core/WindowedApplication.as
@@ -844,7 +844,7 @@
      *  @private
      *  Storage for the maxHeight property.
      */
-    private var _maxHeight:Number = 0;
+    private var _maxHeight:Number = 2880;

     /**
      *  @private
@@ -870,6 +870,8 @@
     /**
      *  Specifies the maximum height of the application's window.
      *
+     *  @default dependent on the operating system and the AIR systemChrome setting.
+     *
      *  @langversion 3.0
      *  @playerversion AIR 1.1
      *  @productversion Flex 3
@@ -889,7 +891,7 @@
      *  @private
      *  Storage for the maxWidth property.
      */
-    private var _maxWidth:Number = 0;
+    private var _maxWidth:Number = 2880;

     /**
      *  @private
@@ -915,6 +917,8 @@
     /**
      *  Specifies the maximum width of the application's window.
      *
+     *  @default dependent on the operating system and the AIR systemChrome setting.
+     *
      *  @langversion 3.0
      *  @playerversion AIR 1.1
      *  @productversion Flex 3
@@ -947,6 +951,8 @@

     /**
      *  Specifies the minimum height of the application's window.
+     *
+     *  @default dependent on the operating system and the AIR systemChrome setting.
      *
      *  @langversion 3.0
      *  @playerversion AIR 1.1
@@ -992,6 +998,8 @@

     /**
      *  Specifies the minimum width of the application's window.
+     *
+     *  @default dependent on the operating system and the AIR systemChrome setting.
      *
      *  @langversion 3.0
      *  @playerversion AIR 1.1
@@ -2200,6 +2208,12 @@

         if (boundsChanged)
         {
+            // Work around an AIR issue setting the stageHeight to zero when
+            // using system chrome. The set of the stage.stageHeight property
+            // is rejected unless the nativeWindow is first set to the proper height.
+            if (_bounds.height == 0 && systemChrome == NativeWindowSystemChrome.STANDARD)
+                nativeWindow.height = chromeHeight() + _bounds.height;
+
             systemManager.stage.stageWidth = _width = _bounds.width;
             systemManager.stage.stageHeight = _height =  _bounds.height;
             boundsChanged = false;


Transferred from the Adobe Open Source Subversion Repository

Revision: 2535
Author:   jimurphy@adobe.com
Date:     2008-07-21T13:50:50.145075Z

Log Message:
-----------
Merged 3.0.x revisions [2518,2527-2528,2531] -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/templates/html-templates/metadata/AC_OETags.js</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/MarshalDragEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/SandboxUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/FocusRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/sandbox/ISandboxBridgeProvider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/MarshalEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/IFocusManagerBridge.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/sandbox/ISandboxBridgeGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/utils/RPCObjectUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/ModalWindowRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/IFocusManager2.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/sandbox/ISandboxBridgeAccess.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/EventListenerRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/MarshalMouseEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ISystemManager2.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/sandbox/IChildAccess.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/EventUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/PopUpRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SandboxBridgeEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/sandbox/IParentAccess.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/ShowAlertRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/sandbox/SandboxBridgeGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SizeRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SandboxBridgeRequest.as</path>

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1260582 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/framework/src/mx/events/EventListenerRequest.as
+++ frameworks/projects/framework/src/mx/events/EventListenerRequest.as
@@ -11,21 +11,23 @@

 package mx.events
 {
+
 import flash.events.Event;
-import flash.events.IEventDispatcher;

 /**
- *  Request an application in another sandbox or compiled with a different
+ *  Requests an application in another sandbox or compiled with a different
  *  version of Flex to add a listener to a specified event on your behalf.
  *  When the requestee is notified the event has occurred
  *  in its domain, the message is sent to the requestor over the
  *  requestor bridge passed in the original request.
  *
  *  @sendTo parent and/or children
- *  @reply  none
+ *  @reply none
  */
 public class EventListenerRequest extends SandboxBridgeRequest
 {
+    include "../core/Version.as";
+
     //--------------------------------------------------------------------------
     //
     //  Class constants
@@ -35,12 +37,34 @@
 	/**
 	 *  Request to add an event listener.
 	 */
-	public static const ADD:String = "mx.managers.SystemManager.addEventListener";
+	public static const ADD:String =
+        "mx.managers.SystemManager.addEventListener";

 	/**
 	 *  Request to remove an event listener.
 	 */
-	public static const REMOVE:String = "mx.managers.SystemManager.removeEventListener";
+	public static const REMOVE:String =
+        "mx.managers.SystemManager.removeEventListener";
+
+
+	//--------------------------------------------------------------------------
+	//
+	//  Class methods
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Marshals an event by copying the relevant parameters
+     *  from the event into a new event
+	 */
+	public static function marshal(event:Event):Event
+	{
+		var eventObj:Object = event;
+
+		return new EventListenerRequest(eventObj.type, eventObj.userType,
+                                        eventObj.useCapture, eventObj.priority,
+                                        eventObj.useWeakReference);
+	}

 	//--------------------------------------------------------------------------
 	//
@@ -49,7 +73,7 @@
 	//--------------------------------------------------------------------------

 	/**
-	 *  Create a new request to add or remove an event listener.
+	 *  Creates a new request to add or remove an event listener.
 	 *
 	 *  @param userType type of message your would normally pass to
 	 * 		  addEventListener.
@@ -58,14 +82,15 @@
 	 *  @param useWeakReference, as in addEventListener.
 	 */
 	public function EventListenerRequest(requestType:String,
-								userType:String,
-								useCapture:Boolean = false,
-								priority:int = 0,
-								useWeakReference:Boolean = false)
+								         userType:String,
+								         useCapture:Boolean = false,
+								         priority:int = 0,
+								         useWeakReference:Boolean = false)

 	{
 		super(requestType, false, false);
-		_type = userType;
+
+		_userType = userType;
 		_useCapture = useCapture;
 		_priority = priority;
 		_useWeakReference = useWeakReference;
@@ -78,60 +103,79 @@
 	//--------------------------------------------------------------------------

 	//----------------------------------
+	//  priority
+	//----------------------------------
+
+	/**
+     *  @private
+     */
+	private var _priority:int;
+
+	/**
+	 *  The priority parameter
+     *  to addEventListener().
+     *
+	 *  @see flash.events.IEventDispatcher#addEventListener
+	 */
+	public function get priority():int
+	{
+		return _priority;
+	}
+
+	//----------------------------------
+	//  useCapture
+	//----------------------------------
+
+	/**
+     *  @private
+     */
+	private var _useCapture:Boolean;
+
+	/**
+	 *  The useCapture parameter
+     *  to addEventListener().
+     *
+	 *  @see flash.events.IEventDispatcher#addEventListener
+	 */
+	public function get useCapture():Boolean
+	{
+		return _useCapture;
+	}
+
+	//----------------------------------
 	//  userType
 	//----------------------------------

-	private var _type:String;
-
-	/**
-	 *  the type of the event to listen to.
+	/**
+     *  @private
+     */
+    private var _userType:String;
+
+	/**
+	 *  The type of the event to listen to.
+     *
 	 *  @see flash.events.Event#type
 	 */
 	public function get userType():String
 	{
-		return _type;
-	}
-
-	//----------------------------------
-	//  useCapture
-	//----------------------------------
-
-	private var _useCapture:Boolean;
-
-	/**
-	 *  the useCapture parameter to addEventListener.
+		return _userType;
+	}
+
+	//----------------------------------
+	//  useWeakReference
+	//----------------------------------
+
+	/**
+     *  @private
+     */
+	private var _useWeakReference:Boolean;
+
+	/**
+	 *  The useWeakReference parameter
+     *  to addEventListener().
+     *
 	 *  @see flash.events.IEventDispatcher#addEventListener
 	 */
-	public function get useCapture():Boolean
-	{
-		return _useCapture;
-	}
-
-	//----------------------------------
-	//  priority
-	//----------------------------------
-
-	private var _priority:int;
-
-	/**
-	 *  the priority parameter to addEventListener.
-	 *  @see flash.events.IEventDispatcher#addEventListener
-	 */
-	public function get priority():int
-	{
-		return _priority;
-	}
-
-	//----------------------------------
-	//  useWeakReference
-	//----------------------------------
-
-	private var _useWeakReference:Boolean;
-
-	/**
-	 *  the useWeakReference parameter to addEventListener.
-	 *  @see flash.events.IEventDispatcher#addEventListener
-	 */
 	public function get useWeakReference():Boolean
 	{
 		return _useWeakReference;
@@ -148,19 +192,9 @@
 	 */
 	override public function clone():Event
 	{
-		return new EventListenerRequest(type, userType, useCapture, priority,
-							useWeakReference);
-	}
-
-	/**
-	 *  Marshal an event by copying the relevant parameters from the event into a new event
-	 */
-	public static function marshal(event:Event):Event
-	{
-		var eventObj:Object = event;
-		return new EventListenerRequest(eventObj.type, eventObj.userType, eventObj.useCapture,
-							eventObj.priority, eventObj.useWeakReference);
+		return new EventListenerRequest(type, userType, useCapture,
+                                        priority, useWeakReference);
 	}
 }

-}+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 5101
Author:   gauravj@adobe.com
Date:     2009-02-27T05:22:45.887116Z

Log Message:
-----------
Update action script files with asdoc version tags.

QE Notes: None.
Doc Notes: Please review and update as necessary.
tests: checkintests

Modified Paths:
--------------
663 paths were modified

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1261406 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/framework/src/mx/managers/BrowserManagerImpl.as
+++ frameworks/projects/framework/src/mx/managers/BrowserManagerImpl.as
@@ -28,6 +28,11 @@
  *  or by code setting the property.
  *
  *  @eventType mx.events.BrowserChangeEvent.URL_CHANGE
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Event(name="urlChange", type="flash.events.Event")]

@@ -36,6 +41,11 @@
  *  by the browser.
  *
  *  @eventType mx.events.BrowserChangeEvent.BROWSER_URL_CHANGE
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Event(name="browserURLChange", type="mx.events.BrowserChangeEvent")]

@@ -44,6 +54,11 @@
  *  by the application via setFragment
  *
  *  @eventType mx.events.BrowserChangeEvent.APPLICATION_URL_CHANGE
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Event(name="applicationURLChange", type="mx.events.BrowserChangeEvent")]

@@ -114,6 +129,11 @@

     /**
      *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function BrowserManagerImpl()
     {
@@ -190,6 +210,11 @@
     /**
      *  The portion of current URL before the '#' as it appears
      *  in the browser address bar.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get base():String
     {
@@ -208,6 +233,11 @@
      *  in the browser address bar, or the default fragment
 	 *  used in setup() if there is nothing after the '#'.
 	 *  Use setFragment to change this value.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get fragment():String
     {
@@ -227,6 +257,11 @@
     /**
      *  The title of the app as it should appear in the
      *  browser history
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get title():String
     {
@@ -242,6 +277,11 @@
     [Bindable("urlChange")]
     /**
      *  The current URL as it appears in the browser address bar.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get url():String
     {
@@ -261,6 +301,11 @@
      *
      *  @param defaultFragment the fragment to use if no fragment in the initial URL.
      *  @param defaultTitle the title to use if no fragment in the initial URL.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function init(defaultFragment:String = "", defaultTitle:String = ""):void
     {
@@ -277,6 +322,11 @@
 	 *  not supported, so the init() method sets
 	 *  ApplicationGlobals.application.historyManagementEnabled to false to disable
 	 *  the HistoryManager
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
 	public function initForHistoryManager():void
 	{
@@ -345,6 +395,11 @@
      *
      *  When set, the APPLICATION_URL_CHANGE event is sent.  If the event
      *  is cancelled the setBrowserURL() will not be called.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function setFragment(value:String):void
     {
@@ -387,6 +442,11 @@
      *  Change the title in the browser.
      *  Does not affect the browser's
      *  history.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function setTitle(value:String):void
     {


Transferred from the Adobe Open Source Subversion Repository

Revision: 2086
Author:   dloverin@adobe.com
Date:     2008-06-15T13:16:43.591317Z

Log Message:
-----------
Fix SDK-15782.
Fix restoring focus to the form after closing a window.
Misc. cleanup.

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/marshall-plan-3.0.x/frameworks/projects/framework/src/mx/events/SandboxBridgeEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/marshall-plan-3.0.x/frameworks/projects/framework/src/mx/managers/FocusManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/marshall-plan-3.0.x/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/marshall-plan-3.0.x/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/marshall-plan-3.0.x/frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/marshall-plan-3.0.x/frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as</path>

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1261891 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as
+++ frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as
@@ -203,7 +203,7 @@
 		_systemManager.removeEventListenerFromStage(type, listener, useCapture);
 	}

-		/**
+	/**
 	 *  @inheritDoc
 	 */
 	override public function activate(f:IFocusManagerContainer):void
@@ -241,7 +241,6 @@
 																		NameUtil.displayObjectToString(this));
 			bridge.dispatchEvent(bridgeEvent);
 		}
-
 	}

 	public function activateProxy(f:IFocusManagerContainer):void