Transferred from the Adobe Open Source Subversion Repository

Revision: 4748
Author:   dsubrama@adobe.com
Date:     2009-01-30T00:31:42.781368Z

Log Message:
-----------
Externalizing strings for the flex4 project. We now produce a resource bundle swc (flex4_rb.swc) that has all of the externalized strings for the flex4 project. We include 3 new bundles: components, layout and sparkEffects for the en_US locale. Other locales will come shortly.

QA: Yes, please doublecheck error messages are thrown with the correct error message.
Checkintests: Pass
Reviewer: Gordon

Modified Paths:
--------------
<path kind="file" action="A">/flex/sdk/trunk/components.properties</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxScroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/LinearLayoutVector.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/build.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/build.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/interpolation/ArrayInterpolator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxAnimateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/FxAnimateShaderTransition.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/Animation.as</path>
<path kind="file" action="A">/flex/sdk/trunk/layout.properties</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/interpolation/NumberInterpolator.as</path>
<path kind="file" action="A">/flex/sdk/trunk/sparkEffects.properties</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as
@@ -55,6 +55,12 @@
 [Exclude(name="focusBlendMode", kind="style")]
 [Exclude(name="focusThickness", kind="style")]
 [Exclude(name="themeColor", kind="style")]
+
+//--------------------------------------
+//  Other metadata
+//--------------------------------------
+
+[ResourceBundle("components")]

 /**
  *  The FxComponent class defines the base class for skinnable components.
@@ -379,7 +385,7 @@
         }
         else
         {
-            throw(new Error("Skin for " + this + " cannot be found."));
+            throw(new Error(resourceManager.getString("components", "skinNotFound", [this])));
         }

         findSkinParts();
@@ -407,7 +413,7 @@
                 if (part.required)
                 {
                     if (!(part.id in skin) || skin[part.id] == null)
-                        throw(new Error("Required skin part \"" + part.id + "\" cannot be found."));
+                        throw(new Error(resourceManager.getString("components", "requiredSkinPartNotFound", [part.id])));
                 }

                 if (part.id in skin)
@@ -835,8 +841,7 @@
      */
     override public function addChild(child:DisplayObject):DisplayObject
     {
-        throw(new Error("addChild is not available in FxComponent. " +
-                "Instead, modify the skin directly or use addItem."));
+        throw(new Error(resourceManager.getString("components", "addChildError")));
     }

     /**
@@ -844,8 +849,7 @@
      */
     override public function addChildAt(child:DisplayObject, index:int):DisplayObject
     {
-        throw(new Error("addChildAt is not available in FxComponent. " +
-                "Instead, modify the skin directly or use addItemAt."));
+        throw(new Error(resourceManager.getString("components", "addChildAtError")));
     }

     /**
@@ -853,8 +857,7 @@
      */
     override public function removeChild(child:DisplayObject):DisplayObject
     {
-        throw(new Error("removeChild is not available in FxComponent. " +
-                "Instead, modify the skin directly or use removeItem."));
+        throw(new Error(resourceManager.getString("components", "removeChildError")));
     }

     /**
@@ -862,8 +865,7 @@
      */
     override public function removeChildAt(index:int):DisplayObject
     {
-        throw(new Error("removeChildAt is not available in FxComponent. " +
-                "Instead, modify the skin directly or use removeItemAt."));
+        throw(new Error(resourceManager.getString("components", "removeChildAtError")));
     }

     /**
@@ -871,8 +873,7 @@
      */
     override public function setChildIndex(child:DisplayObject, index:int):void
     {
-        throw(new Error("setChildIndex is not available in FxComponent. " +
-                "Instead, modify the skin directly or setItemIndex."));
+        throw(new Error(resourceManager.getString("components", "setChildIndexError")));
     }

     /**
@@ -880,8 +881,7 @@
      */
     override public function swapChildren(child1:DisplayObject, child2:DisplayObject):void
     {
-        throw(new Error("swapChildren is not available in FxComponent. " +
-                "Instead, modify the skin directly or use swapItems."));
+        throw(new Error(resourceManager.getString("components", "swapChildrenError")));
     }

     /**
@@ -889,8 +889,7 @@
      */
     override public function swapChildrenAt(index1:int, index2:int):void
     {
-        throw(new Error("swapChildrenAt is not available in FxComponent. " +
-                "Instead, modify the skin directly or use swapItemsAt."));
+        throw(new Error(resourceManager.getString("components", "swapChildrenAtError")));
     }

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


Print stack trace when error occurs in test program

--- test/src/FRESteamWorksTest.as
+++ test/src/FRESteamWorksTest.as
@@ -58,7 +58,8 @@
 				}
 			} catch(e:Error) {
 				tf.appendText("*** ERROR ***");
-				tf.appendText(e.message);
+				tf.appendText(e.message + "\n");
+				tf.appendText(e.getStackTrace() + "\n");
 			}

 		}


Transferred from the Adobe Open Source Subversion Repository

Revision: 3509
Author:   jimurphy@adobe.com
Date:     2008-10-07T18:19:17.646255Z

Log Message:
-----------
Rename of flex -> mx.

For compatibility reasons it was decided that the new functionality remain integrated with the old framework, although we will continue to build two separate SWCs, one with primarily existing framework classes, and one with new Flex 4 classes. This change removes duplicate names from the Flex 4 framework to avoid class name overlapping with the old framework code.  The naming overlap consists of two major areas:  New Components, and New Effects

Modified Paths:
--------------
386 paths were modified

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

--- frameworks/projects/spark/src/spark/effects/supportClasses/AnimateFilterInstance.as
+++ frameworks/projects/spark/src/spark/effects/supportClasses/AnimateFilterInstance.as
@@ -9,19 +9,19 @@
 //
 ////////////////////////////////////////////////////////////////////////////////

-package flex.effects.effectClasses
+package mx.effects.effectClasses
 {

 import mx.filters.IBitmapFilter;
-import flex.effects.AnimateFilter;
-import flex.filters.ShaderFilter;
+import mx.effects.FxAnimateFilter;
+import mx.filters.ShaderFilter;

 /**
  * The AnimateFilterInstance class implements the instance class for the
  * AnimateFilter effect. Flex creates an instance of this class when
  * it plays a AnimateFilter effect; you do not create one yourself.
  */
-public class AnimateFilterInstance extends AnimateInstance
+public class FxAnimateFilterInstance extends FxAnimateInstance
 {
     //--------------------------------------------------------------------------
     //
@@ -32,7 +32,7 @@
     /**
      *  Constructor.
      */
-    public function AnimateFilterInstance(target:Object)
+    public function FxAnimateFilterInstance(target:Object)
     {
         super(target);
     }


Gave Grid usePositions property to use x/y positions instead of columns/rows.

--- net/flashpunk/masks/Grid.as
+++ net/flashpunk/masks/Grid.as
@@ -12,6 +12,11 @@
 	 */
 	public class Grid extends Hitbox
 	{
+		/**
+		 * If x/y positions should be used instead of columns/rows.
+		 */
+		public var usePositions:Boolean;
+
 		/**
 		 * Constructor.
 		 * @param	width			Width of the grid, in pixels.
@@ -116,6 +121,11 @@
 		 */
 		public function setCell(x:uint = 0, y:uint = 0, solid:Boolean = true):void
 		{
+			if (usePositions)
+			{
+				x /= _cell.width;
+				y /= _cell.height;
+			}
 			_data.setPixel32(x, y, solid ? 0xFFFFFFFF : 0);
 		}

@@ -129,6 +139,13 @@
 		 */
 		public function setRect(x:uint = 0, y:uint = 0, width:int = 1, height:int = 1, solid:Boolean = true):void
 		{
+			if (usePositions)
+			{
+				x /= _cell.width;
+				y /= _cell.height;
+				width /= _cell.width;
+				height /= _cell.height;
+			}
 			_rect.x = x;
 			_rect.y = y;
 			_rect.width = width;
@@ -144,6 +161,11 @@
 		 */
 		public function getCell(x:uint = 0, y:uint = 0):Boolean
 		{
+			if (usePositions)
+			{
+				x /= _cell.width;
+				y /= _cell.height;
+			}
 			return _data.getPixel32(x, y) > 0;
 		}


Updated Flare/Flex integration

Updated Flare/Flex integration

git-svn-id: 6aa7ccb0a2048310a30f08a72aaff4ca39d980ed@111 91848ab2-c4ae-4e4f-8e6a-6a52ea0dccc3

--- flare.vis/flare/vis/scale/TimeScale.as
+++ flare.vis/flare/vis/scale/TimeScale.as
@@ -13,8 +13,8 @@
 	 */
 	public class TimeScale extends Scale
 	{
-		private var _dmin:Date;
-		private var _dmax:Date;
+		private var _dmin:Date = new Date(0);
+		private var _dmax:Date = new Date(0);
 		private var _smin:Date;
 		private var _smax:Date;
 		private var _autofmt:Boolean = true;
@@ -29,8 +29,8 @@
 		public function TimeScale(min:Date=null, max:Date=null,
 			flush:Boolean=false, labelFormat:String=null)
 		{
-			this.dataMin = min==null ? new Date(0) : min;
-			this.dataMax = max==null ? new Date(0) : max;
+			if (min) this.dataMin = min;
+			if (max) this.dataMax = max;
 			this.flush = flush;
 			this.labelFormat = labelFormat;
 		}


Remove instance property

Remove instance property

--- actionscript/src/com/freshplanet/ane/AirAACPlayer/AirAACPlayer.as
+++ actionscript/src/com/freshplanet/ane/AirAACPlayer/AirAACPlayer.as
@@ -122,10 +122,7 @@
         //                                                                                //
         // --------------------------------------------------------------------------------------//

-        private static const EXTENSION_ID:String = "com.freshplanet.AirAACPlayer";
-
-        private static var _instance:AirAACPlayer;
-
+        private static const EXTENSION_ID:String = "com.freshplanet.AirAACPlayer";
         private var _context:ExtensionContext;

         private function onStatus( event:StatusEvent ):void


fixed TextureLoader constructor to re-use the same dummy BitmapData reference

--- src/aerys/minko/type/loader/TextureLoader.as
+++ src/aerys/minko/type/loader/TextureLoader.as
@@ -19,6 +19,8 @@

 	public class TextureLoader implements ILoader
 	{
+		private static const EMPTY_BITMAPDATA	: BitmapData	= new BitmapData(1, 1, false, 0);
+
 		private var _progress			: Signal;
 		private var _error				: Signal;
 		private var _complete			: Signal;
@@ -59,7 +61,7 @@
 			_mipmap				= enableMipmapping;

 			_textureResource 	= new TextureResource();
-			_textureResource.setContentFromBitmapData(new BitmapData(1, 1), enableMipmapping);
+			_textureResource.setContentFromBitmapData(EMPTY_BITMAPDATA, enableMipmapping);

 			_isComplete 		= false;
 			_error				= new Signal('TextureLoader.error');


Transferred from the Adobe Open Source Subversion Repository

Revision: 23247
Author:   cframpto@adobe.com
Date:     2011-12-20T19:21:13.134833Z

Log Message:
-----------
Remove ADOBE SYSTEMS license and replace with Apache license in headers - frameworks.  A 2nd pass will be needed to get the files not handled up by the scripts.

Modified Paths:
--------------
4959 paths were modified

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

--- frameworks/projects/mobilecomponents/src/spark/transitions/ZoomViewTransitionMode.as
+++ frameworks/projects/mobilecomponents/src/spark/transitions/ZoomViewTransitionMode.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2010 Adobe Systems Incorporated
-//  All Rights Reserved.
+//  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
 //
-//  NOTICE: Adobe permits you to use, modify, and distribute this file
-//  in accordance with the terms of the license agreement accompanying it.
+//      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.
 //
 ////////////////////////////////////////////////////////////////////////////////


marking functions private that should only be used for testing

--- WeaveASJS/src/Weave.as
+++ WeaveASJS/src/Weave.as
@@ -244,7 +244,7 @@
 		 * @return A value of true if the callbacks for the linkableObject have triggered since the last time this function was called
 		 *         with the same observer and linkableObject parameters.
 		 */
-		public static function _internalDetectChange(observer:Object, linkableObject:ILinkableObject, clearChangedNow:Boolean = true):Boolean
+		private static function _internalDetectChange(observer:Object, linkableObject:ILinkableObject, clearChangedNow:Boolean = true):Boolean
 		{
 			var previousCount:* = d2d_linkableObject_observer_triggerCounter.get(linkableObject, observer); // untyped to handle undefined value
 			var newCount:uint = WeaveAPI.SessionManager.getCallbackCollection(linkableObject).triggerCounter;
@@ -684,7 +684,7 @@
 		/**
 		 * For testing purposes.
 		 */
-		public function triggerColumns():void
+		private function triggerColumns():void
 		{
 			triggerAll('ReferencedColumn');
 		}
@@ -692,7 +692,7 @@
 		/**
 		 * For testing purposes.
 		 */
-		public function triggerAll(filter:*):void
+		private function triggerAll(filter:*):void
 		{
 			if (filter is String)
 				filter = getDefinition(filter);
@@ -703,7 +703,7 @@
 		/**
 		 * For testing purposes.
 		 */
-		public function populateColumns():void
+		private function populateColumns():void
 		{
 			var RefCol:Class = Weave.getDefinition('ReferencedColumn');
 			var ExtDynCol:Class = Weave.getDefinition('ExtendedDynamicColumn');
@@ -727,7 +727,7 @@
 		/**
 		 * For testing purposes.
 		 */
-		public function stringifyState(...pathOrType):String
+		private function stringifyState(...pathOrType):String
 		{
 			var object:ILinkableObject;
 			if (JS.isClass(pathOrType[0]))
@@ -749,14 +749,14 @@
 			return DebugUtils.debugId(arg);
 		}

-		public static const watch:/*/typeof DebugUtils.watch/*/Function = DebugUtils.watch;
-		public static const unwatch:/*/typeof DebugUtils.unwatch/*/Function = DebugUtils.unwatch;
-		public static const watchState:/*/typeof DebugUtils.watchState/*/Function = DebugUtils.watchState;
+		private static const watch:/*/typeof DebugUtils.watch/*/Function = DebugUtils.watch;
+		private static const unwatch:/*/typeof DebugUtils.unwatch/*/Function = DebugUtils.unwatch;
+		private static const watchState:/*/typeof DebugUtils.watchState/*/Function = DebugUtils.watchState;

 		/**
 		 * Temporary solution
 		 */
-		public function createScript(name:String, targets:/*/{[name:string]:string[]}/*/Object, script:String, groupedCallback:Boolean = false):/*/weavejs.core.LinkableCallbackScript/*/Object
+		private function createScript(name:String, targets:/*/{[name:string]:string[]}/*/Object, script:String, groupedCallback:Boolean = false):/*/weavejs.core.LinkableCallbackScript/*/Object
 		{
 			var lcs:Object = root.requestObject(name, Weave.getDefinition('LinkableCallbackScript'));
 			var array:Array = [];


Spaces fix

Spaces fix

--- source/npathfinding/base/Pathfinder.as
+++ source/npathfinding/base/Pathfinder.as
@@ -88,7 +88,7 @@
 		};

 		public function setUnWalkable(pIndexX:int, pIndexY:int):void {
-			var node:Node     = _pathgrid.take(pIndexX, pIndexY) as Node;
+			var node:Node = _pathgrid.take(pIndexX, pIndexY) as Node;

             if (!node) {
                 return;


Refactored function

Refactored function

--- MP3-Flashback.as
+++ MP3-Flashback.as
@@ -63,11 +63,11 @@
  */
 function playProgress(e:Event) {
 	if (isLoaded) {
-		var minutes:uint	= Math.floor(soundChannel.position / 1000  / 60);
-		var seconds:uint	= Math.floor(soundChannel.position / 1000) % 60;
-		var loaded:Number   =  soundFile.bytesLoaded / soundFile.bytesTotal;
+		var minutes:uint    = Math.floor(soundChannel.position / 1000  / 60);
+		var seconds:uint    = Math.floor(soundChannel.position / 1000) % 60;
+		var duration:String = minutes + ':' + seconds;
+		var loaded:Number   = soundFile.bytesLoaded  / soundFile.bytesTotal;
 		var percent:Number  = (soundChannel.position / soundFile.length * loaded);
-		var duration:String = minutes + ':' + seconds;
 		ExternalInterface.call('playingFile', duration, percent);
 		isPlaying = true;
 	}


Transferred from the Adobe Open Source Subversion Repository

Revision: 20073
Author:   rfrishbe@adobe.com
Date:     2011-02-02T22:32:18.438038Z

Log Message:
-----------
Fixing up TextArea ScrollBar thumbs so that they are an appropriate minimum size.

QE notes: -
Doc notes:
Bugs: SDK-29175
Reviewer: Eric Day
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/TextAreaVScrollBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaVScrollBarThumbSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaHScrollBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaHScrollBarThumbSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/VScrollBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HScrollBarSkin.as</path>

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaVScrollBarThumbSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaVScrollBarThumbSkin.as
@@ -1,10 +1,40 @@
 package spark.skins.mobile
 {
 import mx.core.DPIClassification;
+import mx.core.mx_internal;

+use namespace mx_internal;

 public class TextAreaVScrollBarThumbSkin extends VScrollBarThumbSkin
 {
+    //--------------------------------------------------------------------------
+    //
+    //  Class constants
+    //
+    //--------------------------------------------------------------------------
+
+    // These constants are also accessed from TextAreaVScrollBarSkin
+    mx_internal static const PADDING_RIGHT_320DPI:int = 8;
+    mx_internal static const PADDING_VERTICAL_320DPI:int = 12;
+    mx_internal static const PADDING_RIGHT_240DPI:int = 6;
+    mx_internal static const PADDING_VERTICAL_240DPI:int = 6;
+    mx_internal static const PADDING_RIGHT_DEFAULTDPI:int = 4;
+    mx_internal static const PADDING_VERTICAL_DEFAULTDPI:int = 6;
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+    /**
+     *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     *
+     */
     public function TextAreaVScrollBarThumbSkin()
     {
         super();
@@ -14,20 +44,20 @@
         {
             case DPIClassification.DPI_320:
             {
-                paddingRight = 8;
-                paddingVertical = 12;
+                paddingRight = PADDING_RIGHT_320DPI;
+                paddingVertical = PADDING_VERTICAL_320DPI;
                 break;
             }
             case DPIClassification.DPI_240:
             {
-                paddingRight = 6;
-                paddingVertical = 6;
+                paddingRight = PADDING_RIGHT_240DPI;
+                paddingVertical = PADDING_VERTICAL_240DPI;
                 break;
             }
             default:
             {
-                paddingRight = 4;
-                paddingVertical = 6;
+                paddingRight = PADDING_RIGHT_DEFAULTDPI;
+                paddingVertical = PADDING_VERTICAL_DEFAULTDPI;
                 break;
             }
         }


code cleanup

code cleanup

--- WeaveJS/src/weavejs/util/JSByteArray.as
+++ WeaveJS/src/weavejs/util/JSByteArray.as
@@ -32,44 +32,41 @@
 {
 	public class JSByteArray
 	{
-		public static const ENCODING_AMF0:int = 0;
-		public static const ENCODING_AMF3:int = 3;
+		public const ENCODING_AMF0:int = 0;
+		public const ENCODING_AMF3:int = 3;

-		private static const Amf0Types_kNumberType:int        =  0;
-		private static const Amf0Types_kBooleanType:int       =  1;
-		private static const Amf0Types_kStringType:int        =  2;
-		private static const Amf0Types_kObjectType:int        =  3;
-		private static const Amf0Types_kMovieClipType:int     =  4;
-		private static const Amf0Types_kNullType:int          =  5;
-		private static const Amf0Types_kUndefinedType:int     =  6;
-		private static const Amf0Types_kReferenceType:int     =  7;
-		private static const Amf0Types_kECMAArrayType:int     =  8;
-		private static const Amf0Types_kObjectEndType:int     =  9;
-		private static const Amf0Types_kStrictArrayType:int   = 10;
-		private static const Amf0Types_kDateType:int          = 11;
-		private static const Amf0Types_kLongStringType:int    = 12;
-		private static const Amf0Types_kUnsupportedType:int   = 13;
-		private static const Amf0Types_kRecordsetType:int     = 14;
-		private static const Amf0Types_kXMLObjectType:int     = 15;
-		private static const Amf0Types_kTypedObjectType:int   = 16;
-		private static const Amf0Types_kAvmPlusObjectType:int = 17;
+		private const AMF0_Number:int        =  0;
+		private const AMF0_Boolean:int       =  1;
+		private const AMF0_String:int        =  2;
+		private const AMF0_Object:int        =  3;
+		private const AMF0_MovieClip:int     =  4;
+		private const AMF0_Null:int          =  5;
+		private const AMF0_Undefined:int     =  6;
+		private const AMF0_Reference:int     =  7;
+		private const AMF0_ECMAArray:int     =  8;
+		private const AMF0_ObjectEnd:int     =  9;
+		private const AMF0_StrictArray:int   = 10;
+		private const AMF0_Date:int          = 11;
+		private const AMF0_LongString:int    = 12;
+		private const AMF0_Unsupported:int   = 13;
+		private const AMF0_Recordset:int     = 14;
+		private const AMF0_XMLObject:int     = 15;
+		private const AMF0_TypedObject:int   = 16;
+		private const AMF0_AvmPlusObject:int = 17;

-		private static const Amf3Types_kUndefinedType:int  = 0;
-		private static const Amf3Types_kNullType:int       = 1;
-		private static const Amf3Types_kFalseType:int      = 2;
-		private static const Amf3Types_kTrueType:int       = 3;
-		private static const Amf3Types_kIntegerType:int    = 4;
-		private static const Amf3Types_kDoubleType:int     = 5;
-		private static const Amf3Types_kStringType:int     = 6;
-		private static const Amf3Types_kXMLType:int        = 7;
-		private static const Amf3Types_kDateType:int       = 8;
-		private static const Amf3Types_kArrayType:int      = 9;
-		private static const Amf3Types_kObjectType:int     = 10;
-		private static const Amf3Types_kAvmPlusXmlType:int = 11;
-		private static const Amf3Types_kByteArrayType:int  = 12;
-
-		private static const TWOeN23:Number = Math.pow(2, -23);
-		private static const TWOeN52:Number = Math.pow(2, -52);
+		private const AMF3_Undefined:int  = 0;
+		private const AMF3_Null:int       = 1;
+		private const AMF3_False:int      = 2;
+		private const AMF3_True:int       = 3;
+		private const AMF3_Integer:int    = 4;
+		private const AMF3_Double:int     = 5;
+		private const AMF3_String:int     = 6;
+		private const AMF3_XML:int        = 7;
+		private const AMF3_Date:int       = 8;
+		private const AMF3_Array:int      = 9;
+		private const AMF3_Object:int     = 10;
+		private const AMF3_AvmPlusXml:int = 11;
+		private const AMF3_ByteArray:int  = 12;

 		public var data:/*Uint8*/Array;
 		public var dataView:Object; // DataView
@@ -326,23 +323,23 @@
 			var marker:int = data[pos++] & 0xFF;
 			var value:Object, o:Object;

-			if (marker == Amf0Types_kNumberType)
+			if (marker == AMF0_Number)
 			{
 				return this.readDouble();
 			}
-			else if (marker == Amf0Types_kBooleanType)
+			else if (marker == AMF0_Boolean)
 			{
 				return this.readBoolean();
 			}
-			else if (marker == Amf0Types_kStringType)
+			else if (marker == AMF0_String)
 			{
 				return this.readUTF();
 			}
-			else if ((marker == Amf0Types_kObjectType) || (marker == Amf0Types_kECMAArrayType))
+			else if ((marker == AMF0_Object) || (marker == AMF0_ECMAArray))
 			{
 				o = {};

-				var ismixed:Boolean = (marker == Amf0Types_kECMAArrayType);
+				var ismixed:Boolean = (marker == AMF0_ECMAArray);

 				if (ismixed)
 					this.readUInt30();
@@ -353,7 +350,7 @@
 					var c2:int = data[pos++] & 0xFF;
 					var name:String = this.readString((c1 << 8) | c2);
 					var k:int = data[pos++] & 0xFF;
-					if (k == Amf0Types_kObjectEndType)
+					if (k == AMF0_ObjectEnd)
 						break;

 					this.pos--;
@@ -363,7 +360,7 @@

 				return o;
 			}
-			else if (marker == Amf0Types_kStrictArrayType)
+			else if (marker == AMF0_StrictArray)
 			{
 				var size:int = this.readInt();

@@ -376,7 +373,7 @@

 				return a;
 			}
-			else if (marker == Amf0Types_kTypedObjectType)
+			else if (marker == AMF0_TypedObject)
 			{
 				o = {};

@@ -384,7 +381,7 @@

 				var propertyName:String = this.readUTF();
 				var type:int = data[pos++] & 0xFF;
-				while (type != Amf0Types_kObjectEndType)
+				while (type != AMF0_ObjectEnd)
 				{
 					value = this.readObject();
 					o[propertyName] = value;
@@ -395,19 +392,19 @@

 				return o;
 			}
-			else if (marker == Amf0Types_kAvmPlusObjectType)
+			else if (marker == AMF0_AvmPlusObject)
 			{
 				return this.readAMF3Object();
 			}
-			else if (marker == Amf0Types_kNullType)
+			else if (marker == AMF0_Null)
 			{
 				return null;
 			}
-			else if (marker == Amf0Types_kUndefinedType)
+			else if (marker == AMF0_Undefined)
 			{
 				return undefined;
 			}
-			else if (marker == Amf0Types_kReferenceType)
+			else if (marker == AMF0_Reference)
 			{
 				var refNum:int = this.readUnsignedShort();

@@ -415,15 +412,15 @@

 				return value;
 			}
-			else if (marker == Amf0Types_kDateType)
+			else if (marker == AMF0_Date)
 			{
 				return this.readDate();
 			}
-			else if (marker == Amf0Types_kLongStringType)
+			else if (marker == AMF0_LongString)
 			{
 				return this.readLongUTF();
 			}
-			else if (marker == Amf0Types_kXMLObjectType)
+			else if (marker == AMF0_XMLObject)
 			{
 				return this.readXML();
 			}
@@ -435,39 +432,39 @@
 			var marker:int = data[pos++] & 0xFF;
 			var ref:int, len:int, i:int, value:Object;

-			if (marker == Amf3Types_kUndefinedType)
+			if (marker == AMF3_Undefined)
 			{
 				return undefined;
 			}
-			else if (marker == Amf3Types_kNullType)
+			else if (marker == AMF3_Null)
 			{
 				return null;
 			}
-			else if (marker == Amf3Types_kFalseType)
+			else if (marker == AMF3_False)
 			{
 				return false;
 			}
-			else if (marker == Amf3Types_kTrueType)
+			else if (marker == AMF3_True)
 			{
 				return true;
 			}
-			else if (marker == Amf3Types_kIntegerType)
+			else if (marker == AMF3_Integer)
 			{
 				return this.readUInt29();
 			}
-			else if (marker == Amf3Types_kDoubleType)
+			else if (marker == AMF3_Double)
 			{
 				return this.readDouble();
 			}
-			else if (marker == Amf3Types_kStringType)
+			else if (marker == AMF3_String)
 			{
 				return this.readStringAMF3();
 			}
-			else if (marker == Amf3Types_kXMLType)
+			else if (marker == AMF3_XML)
 			{
 				return this.readXML();
 			}
-			else if (marker == Amf3Types_kDateType)
+			else if (marker == AMF3_Date)
 			{
 				ref = this.readUInt29();

@@ -480,7 +477,7 @@

 				return value;
 			}
-			else if (marker == Amf3Types_kArrayType)
+			else if (marker == AMF3_Array)
 			{
 				ref = this.readUInt29();

@@ -521,7 +518,7 @@

 				return result;
 			}
-			else if (marker == Amf3Types_kObjectType)
+			else if (marker == AMF3_Object)
 			{
 				var o:Object = {};

@@ -568,7 +565,7 @@

 				return o;
 			}
-			else if (marker == Amf3Types_kAvmPlusXmlType)
+			else if (marker == AMF3_AvmPlusXml)
 			{
 				ref = this.readUInt29();

@@ -589,7 +586,7 @@

 				return xml;
 			}
-			else if (marker == Amf3Types_kByteArrayType)
+			else if (marker == AMF3_ByteArray)
 			{
 				ref = this.readUInt29();
 				if ((ref & 1) == 0)


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@1258542 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/framework/src/mx/binding/RepeatableBinding.as
+++ frameworks/projects/framework/src/mx/binding/RepeatableBinding.as
@@ -1,13 +1,3 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2003-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.binding
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 21169
Author:   chiedozi@adobe.com
Date:     2011-04-29T17:24:48.144427Z

Log Message:
-----------
Force a application resize and validation when an orientationChanging event is received on an iOS device.  This removes flickering and rendering issues that occurred after iOS' orientation change animation.

QE notes:
Doc notes:
Bugs: SDK-30133
Reviewer: Glenn
Tests run: checkintests
Is noteworthy for integration:

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/Application.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/View.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/View.as
+++ frameworks/projects/mobilecomponents/src/spark/components/View.as
@@ -19,6 +19,7 @@
 import mx.core.mx_internal;
 import mx.events.FlexEvent;
 import mx.events.PropertyChangeEvent;
+import mx.events.ResizeEvent;

 import spark.core.ContainerDestructionPolicy;
 import spark.events.ViewNavigatorEvent;
@@ -961,7 +962,7 @@
     /**
      *  @private
      */
-    private function stage_orientationChangeHandler(event:StageOrientationEvent):void
+    private function application_resizeHandler(event:Event):void
     {
         if (isActive)
 			updateOrientationState();
@@ -999,10 +1000,10 @@
         removeEventListener(FlexEvent.CREATION_COMPLETE, creationCompleteHandler);

         // Create a weak listener so stage doesn't hold a reference to the view
-        systemManager.stage.addEventListener(StageOrientationEvent.ORIENTATION_CHANGE,
-            stage_orientationChangeHandler, false, 0, true);
-
-		updateOrientationState();
+        FlexGlobals.topLevelApplication.addEventListener(ResizeEvent.RESIZE,
+            application_resizeHandler, false, 0, true);
+
+        updateOrientationState();
     }

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 88
Author:   open-source-svn-admin@adobe.com
Date:     2008-01-03T22:47:56.499469Z

Log Message:
-----------
Perforce Change 191925 by proberts@proberts-laptop-flex on 2008/01/03 16:47:12 Severity: ignore Details: doc additions/clean up for FlexNativeMenu. Also FLEXDOCS-320 (update documentation for FlexNativeMenuEvent.MENU_SHOW to explain that the index, label, and item properties are null) Affected files ...

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/in/air/air_version.txt</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/Consumer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/errors/NoChannelAvailableError.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemHistoryButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/DirectHTTPChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemTree.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/HTML.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/config/ServerConfig.as</path>
<path kind="file" action="M">/flex/sdk/trunk/in/air/mac/AIR Integration Kit.tbz2</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/StreamingConnectionHandler.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/HTTPChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/errors/MessagingError.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/errors/InvalidChannelError.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/amfx/AMFXDecoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/AbstractProducer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/errors/MessageSerializationError.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/config/ConfigMap.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/Channel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/SecureStreamingAMFChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/StreamingHTTPChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/in/air/win/AIR Integration Kit.zip</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/AbstractConsumer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemDataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/SecureStreamingHTTPChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/amfx/AMFXContext.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/AMFChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FlexNativeMenuEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/PollingChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/lib/flex-messaging-common.jar</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/NetConnectionChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/amfx/AMFXHeader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/remoting/mxml/RemoteObject.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/SecureAMFChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Tree.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/StreamingAMFChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/Grammar.jj</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/ConsumerMessageDispatcher.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/SecureHTTPChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/errors/InvalidDestinationError.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/amfx/AMFXResult.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/amfx/AMFXEncoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/ChannelSet.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FlexNativeMenu.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/AbstractMessageStore.as</path>

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

--- frameworks/projects/rpc/src/mx/messaging/errors/MessagingError.as
+++ frameworks/projects/rpc/src/mx/messaging/errors/MessagingError.as
@@ -1,21 +1,14 @@
-/*************************************************************************
- *
- * ADOBE CONFIDENTIAL
- * __________________
- *
- *  [2002] - [2007] Adobe Systems Incorporated
- *  All Rights Reserved.
- *
- * NOTICE:  All information contained herein is, and remains
- * the property of Adobe Systems Incorporated and its suppliers,
- * if any.  The intellectual and technical concepts contained
- * herein are proprietary to Adobe Systems Incorporated
- * and its suppliers and may be covered by U.S. and Foreign Patents,
- * patents in process, and are protected by trade secret or copyright law.
- * Dissemination of this information or reproduction of this material
- * is strictly forbidden unless prior written permission is obtained
- * from Adobe Systems Incorporated.
- */
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2005-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.messaging.errors
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 5545
Author:   jimurphy@adobe.com
Date:     2009-03-25T19:00:52.330680Z

Log Message:
-----------
1st pass of rename according to the spec http://opensource.adobe.com/wiki/display/flexsdk/Dropping+the+Fx+Prefix

Flex now requires CSS Style declarations to declare @namespace rules and disambiguate between halo and spark components using CSS 3 namespace prefixes on type selectors. At compile time, this namespace information will be used to map type names to qualified ActionScript class names. At runtime, type selectors are matched on qualified ActionScript class name (for example mx.controls.Button rather than just Button). Flex 3 applications must be compiled with -compatibility-version=3.0.0 to get unqualified CSS type selector behavior.

QE: Yes, this build may help in updating test cases to use the new namespaces and class names.
Dev: Not yet
Doc: Not yet

Modified Paths:
--------------
748 paths were modified

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

--- frameworks/projects/spark/src/spark/components/ButtonBarButton.as
+++ frameworks/projects/spark/src/spark/components/ButtonBarButton.as
@@ -9,11 +9,11 @@
 //
 ////////////////////////////////////////////////////////////////////////////////

-package mx.components
+package spark.components
 {
 import flash.events.MouseEvent;

-import mx.components.IItemRenderer;
+import spark.components.IItemRenderer;
 import mx.core.mx_internal;

 /**
@@ -21,7 +21,7 @@
  *  and proxies the label property with the data
  *  property. Used in the default skin for the ButtonBar.
  */
-public class ButtonBarButton extends FxToggleButton implements IItemRenderer
+public class ButtonBarButton extends ToggleButton implements IItemRenderer
 {
     /**
      *  Constructor.


refactor imports

refactor imports

--- src/aerys/minko/render/shader/Shader.as
+++ src/aerys/minko/render/shader/Shader.as
@@ -3,6 +3,7 @@
 	import aerys.minko.ns.minko_render;
 	import aerys.minko.ns.minko_shader;
 	import aerys.minko.render.RenderTarget;
+	import aerys.minko.render.ShaderDataBindingsProxy;
 	import aerys.minko.render.resource.Context3DResource;
 	import aerys.minko.render.resource.Program3DResource;
 	import aerys.minko.render.shader.compiler.graph.ShaderGraph;
@@ -10,10 +11,9 @@
 	import aerys.minko.render.shader.part.ShaderPart;
 	import aerys.minko.type.Signal;
 	import aerys.minko.type.binding.DataBindings;
+	import aerys.minko.type.binding.Signature;

 	import flash.utils.getQualifiedClassName;
-	import aerys.minko.type.binding.Signature;
-	import aerys.minko.render.ShaderDataBindingsProxy;

 	use namespace minko_shader;


don't need insert - you can add values with ArrayUtil.splice()

git-svn-id: a1a4b28b82a3276cc491891159dd9963a0a72fae@4888 542714f4-19e9-0310-aa3c-eee0fc999fb1

--- src/as/com/threerings/util/ArrayUtil.as
+++ src/as/com/threerings/util/ArrayUtil.as
@@ -145,19 +145,6 @@
     }

     /**
-     * Inserts the element into the array at the given index, increasing the index on all
-     * remaining elements by one.  This function modifies the array passed in, rather than creating
-     * a new one.
-     */
-    public static function insert (arr :Array, index :int, element :Object) :void
-    {
-        for (var ii :int = arr.length; ii > index; ii--) {
-            arr[ii] = arr[ii - 1];
-        }
-        arr[index] = element;
-    }
-
-    /**
      * Implementation of remove methods.
      */
     private static function removeImpl (


FLEX-33989 saved MultiDPIBitmapSource information for icon when saving view data

--- frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorBase.as
+++ frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorBase.as
@@ -440,7 +440,7 @@
      *  Serializes all data related to
      *  the navigator's children into an object that can be saved
      *  by the persistence manager.
-     *  This returned object is passed to the restoreViewData()
+     *  This returned object is passed to the loadViewData()
      *  method when the navigator is reinstantiated.
      *
      *  @return The object that represents the navigators state
@@ -452,13 +452,12 @@
     public function saveViewData():Object
     {
         var iconData:Object = icon;
-
-        if (iconData is MultiDPIBitmapSource)
-            iconData = MultiDPIBitmapSource(iconData).getMultiSource();
-
+
         if (iconData is Class)
-            return {label:label, iconClassName:getQualifiedClassName(iconData)};
-        if (iconData is String)
+            return {label:label, iconClassName:getQualifiedClassName(iconData),
+				multiSource:(iconData is MultiDPIBitmapSource)};
+
+		if (iconData is String)
             return {label:label, iconStringName: iconData};

         return {label:label};
@@ -478,14 +477,20 @@
      */
     public function loadViewData(value:Object):void
     {
+		var iconClassName:String;
+
         label = value.label;

-        var iconClassName:String = value.iconClassName;
-
-        if (iconClassName == null)
+		if ("iconClassName" in value) {
+			iconClassName =  value.iconClassName;
+			if (value.multiSource)
+				icon = MultiDPIBitmapSource(getDefinitionByName(iconClassName)).getMultiSource();
+			else
+				icon = getDefinitionByName(iconClassName);
+		}
+		else if ("iconStringName" in value) {
             icon = value.iconStringName;
-        else if (iconClassName != null)
-            icon = getDefinitionByName(iconClassName);
+		}

         // TODO (chiedozi): This is not module safe because of its use of
         // getDefinitionByName.  Should use systemManager to do this. (SDK-27424)


- allows Flash controls to work with JavaScript

--- src/flash/FlashMediaElement.as
+++ src/flash/FlashMediaElement.as
@@ -148,9 +148,8 @@
 			_pauseButton.visible = false;
 			_duration = _controlBar.getChildByName("duration_txt") as TextField;
 			_currentTime = _controlBar.getChildByName("currentTime_txt") as TextField;
-			if (!_showControls) {
-				_controlBar.visible = false;
-			}
+
+			_controlBar.visible = _showControls;
 			addChild(_controlBar);

 						// put back on top
@@ -181,7 +180,7 @@
 			positionControls();

-			if (ExternalInterface.available && !_showControls) {
+			if (ExternalInterface.available) { //  && !_showControls

 				_output.appendText("Adding callbacks...\n");
 				try {
@@ -434,9 +433,9 @@
 			*/

 			// use set timeout for performance reasons
-			if (!_showControls) {
+			//if (!_showControls) {
 				ExternalInterface.call("setTimeout", "mejs.MediaPluginBridge.fireEvent('" + ExternalInterface.objectID + "','" + eventName + "'," + eventValues + ")",0);
-			}
+			//}
 		}

 		function secondsToTimeCode(seconds:Number):String {


- fixing currentTime when paused

- fixing currentTime when paused

--- src/flash/htmlelements/AudioElement.as
+++ src/flash/htmlelements/AudioElement.as
@@ -192,7 +192,7 @@

 			_timer.stop();
 			if (_soundChannel != null) {
-				_currentTime = _soundChannel.position;
+				_currentTime = _soundChannel.position/1000;
 				_soundChannel.stop();
 			}


Transferred from the Adobe Open Source Subversion Repository

Revision: 23247
Author:   cframpto@adobe.com
Date:     2011-12-20T19:21:13.134833Z

Log Message:
-----------
Remove ADOBE SYSTEMS license and replace with Apache license in headers - frameworks.  A 2nd pass will be needed to get the files not handled up by the scripts.

Modified Paths:
--------------
4959 paths were modified

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

--- frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableTextField.as
+++ frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableTextField.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2010 Adobe Systems Incorporated
-//  All Rights Reserved.
+//  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
 //
-//  NOTICE: Adobe permits you to use, modify, and distribute this file
-//  in accordance with the terms of the license agreement accompanying it.
+//      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.
 //
 ////////////////////////////////////////////////////////////////////////////////


Transferred from the Adobe Open Source Subversion Repository

Revision: 18126
Author:   gruehle@adobe.com
Date:     2010-10-11T18:03:16.346900Z

Log Message:
-----------
Change name MobileTextField to StyleableTextField.

QE notes: Tests using MobileTextField by name will need updating.
Doc notes: Docs mentioning MobileTextField will need updating.
Bugs: SDK-27849
Reviewer: Ryan
Tests run: checkintests, QE cyclone
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" copyfrom-path="/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/MobileTextField.as" copyfrom-rev="18115" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableTextField.as</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/styles/metadata/MobileTextFieldTextStyles.as</path>
<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="D">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/MobileTextField.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/MobileItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/TextInputOperation.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextInputSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ActionBar.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/styles/metadata/StyleableTextFieldTextStyles.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/MobileComponentsClasses.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/MobileIconItemRenderer.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/supportClasses/TextInputOperation.as
+++ frameworks/projects/mobilecomponents/src/spark/components/supportClasses/TextInputOperation.as
@@ -15,7 +15,7 @@

 /**
  *  The TextInputOperation class represents a text input operation.
- *  This class is only used by MobileTextField when sending the
+ *  This class is only used by StyleableTextField when sending the
  *  CHANGING event.
  *
  *  @langversion 3.0


get model directly

get model directly

--- frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/ImageAndTextButtonView.as
+++ frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/ImageAndTextButtonView.as
@@ -32,6 +32,7 @@
 	import org.apache.flex.core.IBead;
 	import org.apache.flex.core.IBeadView;
 	import org.apache.flex.core.IStrand;
+    import org.apache.flex.core.IStrandWithModel;
     import org.apache.flex.core.ITextModel;
 	import org.apache.flex.core.ValuesManager;

@@ -86,7 +87,7 @@
 		override public function set strand(value:IStrand):void
 		{
 			super.strand = value;
-            textModel = value.getBeadByType(ITextModel) as ITextModel;
+            textModel = IStrandWithModel(value).model as ITextModel;
             textModel.addEventListener("textChange", textChangeHandler);
             textModel.addEventListener("htmlChange", htmlChangeHandler);


Transferred from the Adobe Open Source Subversion Repository

Revision: 20839
Author:   mhorn@adobe.com
Date:     2011-03-14T14:04:15.007456Z

Log Message:
-----------
merge 20790 and 20805

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/SolidColorStroke.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/advancedgrids/src/mx/collections/HierarchicalCollectionViewCursor.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/Transform.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSCondition.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSStyleDeclaration.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/BitmapFill.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/spark/src/spark/globalization/StringTools.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/GradientStroke.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/CompoundTransform.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/ArrayList.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/GradientBase.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/AdvancedStyleClient.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/ColorDodgeShader.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/LinearGradientStroke.as</path>

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

--- frameworks/projects/advancedgrids/src/mx/collections/HierarchicalCollectionViewCursor.as
+++ frameworks/projects/advancedgrids/src/mx/collections/HierarchicalCollectionViewCursor.as
@@ -304,6 +304,9 @@
     /**
      *  @inheritDoc
      *
+     *
Note that for this class, the view does not need to be sorted in order to
+     *  call this method.

+     *
      *  @langversion 3.0
      *  @playerversion Flash 9
      *  @playerversion AIR 1.1
@@ -340,6 +343,9 @@
     /**
      *  @inheritDoc
      *
+     *
Note that for this class, the view does not need to be sorted in order to
+     *  call this method.

+     *
      *  @langversion 3.0
      *  @playerversion Flash 9
      *  @playerversion AIR 1.1
@@ -352,6 +358,9 @@

     /**
      *  @inheritDoc
+     *
+     *
Note that for this class, the view does not need to be sorted in order to
+     *  call this method.

      *
      *  @langversion 3.0
      *  @playerversion Flash 9
@@ -421,8 +430,8 @@
                     try
                     {
                         currentNode = childCursor.current;
-						// update parent map
-						updateParentMap(currentNode);
+                        // update parent map
+                        updateParentMap(currentNode);
                     }
                     catch (e:ItemPendingError)
                     {
@@ -580,8 +589,8 @@
                 }
             }
         }
-
-		updateParentMap(currentNode);
+
+        updateParentMap(currentNode);

         currentIndex++;
         return true;
@@ -739,7 +748,7 @@
             }
         }

-		updateParentMap(currentNode);
+        updateParentMap(currentNode);

         currentIndex--;
         return true;
@@ -899,20 +908,20 @@
         }
         return true;
     }
-
-	/**
-	 * @private
-	 * Update the parent map.
-	 */
-	private function updateParentMap(currentNode:Object):void
-	{
-		if (currentNode != null)
-		{
-			var uid:String = UIDUtil.getUID(currentNode);
-			if (!collection.parentMap.hasOwnProperty(uid))
-				collection.parentMap[uid] = parentNodes[parentNodes.length - 1];
-		}
-	}
+
+    /**
+     * @private
+     * Update the parent map.
+     */
+    private function updateParentMap(currentNode:Object):void
+    {
+        if (currentNode != null)
+        {
+            var uid:String = UIDUtil.getUID(currentNode);
+            if (!collection.parentMap.hasOwnProperty(uid))
+                collection.parentMap[uid] = parentNodes[parentNodes.length - 1];
+        }
+    }

     /**
      *  @private
@@ -1298,14 +1307,14 @@
             // dispatch CURSOR_UPDATE event
             collection.dispatchEvent(new FlexEvent(FlexEvent.CURSOR_UPDATE));
         }
-		else if (event.kind == CollectionEventKind.REFRESH)
-		{
-			// find the correct index of the item
-			if (!(beforeFirst || afterLast))
-			{
-				findFirst(current);
-			}
-		}
+        else if (event.kind == CollectionEventKind.REFRESH)
+        {
+            // find the correct index of the item
+            if (!(beforeFirst || afterLast))
+            {
+                findFirst(current);
+            }
+        }
     }
 }


added default value for priority

added default value for priority

git-svn-id: e38e7cdd6ace00d8230583a2d3b43e9a55f5c011@622 bc4816be-ef27-423a-9c4d-fc420be121a2

--- src/reprise/commands/AbstractCommand.as
+++ src/reprise/commands/AbstractCommand.as
@@ -22,8 +22,8 @@
 		*                           Protected properties                           *
 		***************************************************************************/
 		protected var m_didSucceed : Boolean;
-		protected var m_id:Number;
-		protected var m_priority:Number;
+		protected var m_id:Number = 0;
+		protected var m_priority:Number = 0;

 		/***************************************************************************


Transferred from the Adobe Open Source Subversion Repository

Revision: 20649
Author:   smgilson@adobe.com
Date:     2011-03-07T20:19:16.700368Z

Log Message:
-----------
ASDoc updates

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/ILayoutElement.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/effects/animation/SimpleMotionPath.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/core/ContentRequest.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/effects/animation/Animation.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/effects/Fade.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/effects/animation/MotionPath.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/effects/interpolation/NumberInterpolator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/effects/interpolation/RGBInterpolator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/core/ContentCache.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/core/NavigationUnit.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/core/IGraphicElement.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/effects/supportClasses/AnimateTransformInstance.as</path>

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

--- frameworks/projects/spark/src/spark/effects/supportClasses/AnimateTransformInstance.as
+++ frameworks/projects/spark/src/spark/effects/supportClasses/AnimateTransformInstance.as
@@ -215,13 +215,18 @@
     public var transformCenter:Vector3D;

     /**
-     * If autoCenterTransform is true, the transform
-     * center will be recalculated as the effect progresses, updating to
-     * any changes in the width and height of the object. If the
-     * property is false, the transformCenter property
-     * will be used instead.
+     *  If autoCenterTransform is true, the transform
+     *  center is recalculated as the effect progresses, updating to
+     *  any changes in the width and height of the object. If the
+     *  property is false, the transformCenter property
+     *  is used instead.
      *
-     * @copy spark.effects.AnimateTransform#animateTransform
+     *  @copy spark.effects.AnimateTransform#animateTransform
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public var autoCenterTransform:Boolean;


- Bugfix: fixed regression from last checkin

git-svn-id: e38e7cdd6ace00d8230583a2d3b43e9a55f5c011@635 bc4816be-ef27-423a-9c4d-fc420be121a2

--- src/reprise/css/CSS.as
+++ src/reprise/css/CSS.as
@@ -139,8 +139,11 @@
 		}
 		reprise function getStyleForEscapedSelectorPath(sp : String) : CSSDeclaration
 		{
-			return m_declarationList && m_declarationList.getStyleForSelectorsPath(sp) ||
-				new CSSDeclaration();
+			if (!m_declarationList)
+			{
+				return new CSSDeclaration();
+			}
+			return m_declarationList.getStyleForSelectorsPath(sp);
 		}

 		public function stylesheetURLs() : Array


Fixed bug introduced due to yesterday's refactor. Missing paranethesis in TextInput was causing infinite loop when no text or promptText value was set


Transferred from the Adobe Open Source Subversion Repository

Revision: 13038
Author:   hneelu@adobe.com
Date:     2009-12-17T09:45:13.816497Z

Log Message:
-----------
Reverting P4 changes made for automation project.

Modified Paths:
--------------
228 paths were modified

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

--- frameworks/projects/automation/src/mx/automation/tabularData/CartesianChartTabularData.as
+++ frameworks/projects/automation/src/mx/automation/tabularData/CartesianChartTabularData.as
@@ -103,7 +103,8 @@
 			maxItems = 0;
 			// code modified to avoid the usage of numAutomationChildren and
 			// getAutomationChildAt in a loop
-			var childList:Array  = delegate.getAutomationChildren();
+			//var childList:Array  = delegate.getAutomationChildren();
+			var childList:Array  = Automation.automationManager2.getAutomationChildrenArray(delegate);
 			var n:int = childList.length;
 			//for(var i:int = 0; i < delegate.numAutomationChildren; ++i)
 			for (var i:int = 0; i < n; ++i)
@@ -156,7 +157,8 @@
 			var j:int;
 			// code modified to avoid the usage of numAutomationChildren and
 			// getAutomationChildAt in a loop
-			var childList:Array  = delegate.getAutomationChildren();
+			//var childList:Array  = delegate.getAutomationChildren();
+			var childList:Array  = Automation.automationManager2.getAutomationChildrenArray(delegate);
 			var n:int = childList.length;
 			end = end>n?n:end;
 			for (i = start; i <= end; ++i)


ProgressIndicator now resets max count when count reaches 1 (instead of 0).

--- WeaveCore/src/weave/core/ProgressIndicator.as
+++ WeaveCore/src/weave/core/ProgressIndicator.as
@@ -87,9 +87,9 @@
 			delete _taskToProgressMap[taskToken];
 			delete _taskToStackTraceMap[taskToken];
 			_taskCount--;
-			// reset max count when count goes to zero
-			if (_taskCount == 0)
-				_maxTaskCount = 0;
+			// reset max count when count drops to 1
+			if (_taskCount == 1)
+				_maxTaskCount = _taskCount;

 			getCallbackCollection(this).triggerCallbacks();
 		}


Hightlighted RTMP video size change, as last commit 100% diff.

--- actionscript/happyworm/jPlayer/JplayerRtmp.as
+++ actionscript/happyworm/jPlayer/JplayerRtmp.as
@@ -363,8 +363,8 @@
 			{
 				//this.dispatchEvent(new JplayerEvent(JplayerEvent.DEBUG_MSG,myStatus,"onMetaDataHandler: " + myStatus.duration));

-				// Allow multiple onResult Handlers to affect size. As per PR #131 and #98
-				// myStatus.metaDataReady = true;// Set flag so that this event only effects jPlayer the 1st time.
+				// Allow multiple onResult Handlers to affect size. As per PR #131 and #98.
+				// myStatus.metaDataReady = true;

 				/*var info:Object = new Object();
 				info.duration=myStatus.duration


git-svn-id: http://svn.rails2u.com/as3rails2u/trunk@15 96db6a20-122f-0410-8d9f-89437bbe4005

--- src/com/asual/SWFAddress.as
+++ src/com/asual/SWFAddress.as
@@ -1,137 +0,0 @@
-/**
- * SWFAddress v1.1: Deep linking for Flash - http://www.asual.com/swfaddress/
- *
- * SWFAddress is (c) 2006 Rostislav Hristov and is released under the MIT License:
- * http://www.opensource.org/licenses/mit-license.php
- *
- */
-
-package com.asual{
-
-    import flash.external.ExternalInterface;
-    import flash.utils.clearInterval;
-    import flash.utils.setInterval;
-
-    public class SWFAddress {
-
-        private static var _value:String = '';
-        private static var _availability:Boolean = ExternalInterface.available;
-
-        public static var onChange:Function;
-
-        private static function _check():void {
-            if (SWFAddress.onChange != null) {
-                clearInterval(SWFAddress._interval);
-                if (_availability) {
-                    ExternalInterface.addCallback('getSWFAddressValue',
-                        function():String {return _value});
-                    ExternalInterface.addCallback('setSWFAddressValue',
-                        SWFAddress.setValue);
-                }
-                SWFAddress.setValue(SWFAddress.getValue());
-            }
-        }
-        private static var _interval:Number = setInterval(SWFAddress._check, 10);
-
-        public static function getTitle():String {
-            var title:String = (_availability) ?
-                ExternalInterface.call('SWFAddress.getTitle') as String : '';
-            if (title == 'undefined' || title == null) title = '';
-            return title;
-        }
-
-        public static function setTitle(title:String):void {
-            if (_availability) ExternalInterface.call('SWFAddress.setTitle', title);
-        }
-
-        public static function getStatus():String {
-            var status:String = (_availability) ?
-                ExternalInterface.call('SWFAddress.getStatus') as String : '';
-            if (status == 'undefined' || status == null) status = '';
-            return status;
-        }
-
-        public static function setStatus(status:String):void {
-            if (_availability) ExternalInterface.call('SWFAddress.setStatus', status);
-        }
-
-        public static function resetStatus():void {
-            if (_availability) ExternalInterface.call('SWFAddress.resetStatus');
-        }
-
-        public static function getPath():String {
-            var value:String = SWFAddress.getValue();
-            if (value.indexOf('?') != 1) {
-                return value.split('?')[0];
-            } else {
-                return value;
-            }
-        }
-
-        public static function getQueryString():String {
-            var value:String = SWFAddress.getValue();
-            var index:Number = value.indexOf('?');
-            if (index != -1 && index < value.length) {
-                return value.substr(index + 1);
-            }
-            return '';
-        }
-
-        public static function getParameter(param:String):String {
-            var value:String = SWFAddress.getValue();
-            var index:Number = value.indexOf('?');
-            if (index != -1) {
-                value = value.substr(index + 1);
-                var params:Array = value.split('&');
-                var p:Array;
-                var i:Number = params.length;
-                while(i--) {
-                    p = params[i].split('=');
-                    if (p[0] == param) {
-                        return p[1];
-                    }
-                }
-            }
-            return '';
-        }
-
-        public static function getParameterNames():Array {
-            var value:String = SWFAddress.getValue();
-            var index:Number = value.indexOf('?');
-            var names:Array = new Array();
-            if (index != -1) {
-                value = value.substr(index + 1);
-                if (value != '' && value.indexOf('=') != -1) {
-                    var params:Array = value.split('&');
-                    var i:Number = 0;
-                    while(i < params.length) {
-                        names.push(params[i].split('=')[0]);
-                        i++;
-                    }
-                }
-            }
-            return names;
-        }
-
-        public static function getValue():String {
-            var addr:String, id:String = null;
-            if (_availability) {
-                addr = ExternalInterface.call('SWFAddress.getValue') as String;
-                id = ExternalInterface.call('SWFAddress.getId') as String;
-            }
-            if (id == null || !_availability) {
-                addr = SWFAddress._value;
-            } else {
-                if (addr == 'undefined' || addr == null) addr = '';
-            }
-            return addr;
-        }
-
-        public static function setValue(addr:String):void {
-            if (addr == 'undefined' || addr == null) addr = '';
-            SWFAddress._value = addr;
-            if (_availability) ExternalInterface.call('SWFAddress.setValue', addr);
-            if (SWFAddress.onChange != null) SWFAddress.onChange();
-        }
-    }
-}


updated last fm app to new facet creation methods

--- demos/lastfm/src/LastFmDataConnector.as
+++ demos/lastfm/src/LastFmDataConnector.as
@@ -26,14 +26,14 @@
 			Logger.info("data loaded");
 			var f : Facet ;

-			f = model.createFacet("position");
+			f = model.registerFacet(new Facet("position"));
 			f.sortFields = ["label"];
 			f.sortOptions = Array.NUMERIC;

-			f = model.createFacet("location");
+			f = model.registerFacet(new Facet("location"));

-			model.createFacet("tag");
-			model.createFacet("listeners");
+			model.registerFacet(new Facet("tag"));
+			model.registerFacet(new Facet("listeners"));

 			var xml : XML = new XML(e.target.data);
 			for each (var artistXML:XML in xml..artist) {
@@ -159,7 +159,8 @@
 				var value : String = a[1];
 				var facet : Facet;

-				if(facet = model.getFacetByName(key)) {
+				if(model.facet(key)) {
+					facet = model.facet(key);
 					// field belongs to a facet
 					// wll create facet value if needed
 					model.assignFacetValueToContentItemByName(c.id, facet.name, value);


Serving a secure ad, where the OVVBeacon is served from a secure domain, while in a non-secure page generated JS runtime exception in the attempt to invoke a method in the OVVBeacon.

--- src/org/openvv/OVVBeacon.as
+++ src/org/openvv/OVVBeacon.as
@@ -96,6 +96,7 @@
             super();

             Security.allowDomain("*");
+            Security.allowInsecureDomain("*");

             _id = loaderInfo.parameters.id;
             _index = loaderInfo.parameters.index;
@@ -222,4 +223,4 @@
             graphics.endFill();
         }
     }
-}+}


added support for for-loops.

added support for for-loops.

Change-Id: I146a99aa008dd4b39b4f59c2111465f5a255594a


Transferred from the Adobe Open Source Subversion Repository

Revision: 17703
Author:   dthakkar@adobe.com
Date:     2010-09-14T21:06:11.351066Z

Log Message:
-----------
Added errorText property for spark formatters and included some bug fixes.

QE notes: This changelist has some behavior changes for spark formatters and will cause some failures to existing spark formatter mustell test cases. Globalization QE team knows about this and will update test cases after this submission.
Doc notes:
Bugs: SDK-27420,SDK-27449,SDK-26939,SDK-27240,SDK-27340,SDK-27341,SDK-26937,SDK-27038,SDK-26969,SDK-26970,SDK-26971,SDK-27036,SDK-27491,SDK-27037,SDK-26968,SDK-27450
Reviewer: Gordon, Craig, Dipti
Tests run: Checkintests
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/supportClasses/CollatorBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/formatters/NumberFormatter.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/formatters/supportClasses/NumberBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/formatters/CurrencyFormatter.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/formatters/DateTimeFormatter.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/scripts/NumberFormatterTestScript.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/scripts/CurrencyFormatterTestScript.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/formatters/Formatter.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/views/NumberFormatterTests.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/scripts/DateTimeFormatterTestScript.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/views/CurrencyFormatterTests.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/views/DateTimeFormatterTests.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/supportClasses/GlobalizationBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/formatters/IFormatter.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/LastOperationStatus.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/controls/advancedDataGridClasses/AdvancedDataGridColumn.as</path>

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

--- frameworks/projects/advancedgrids/src/mx/controls/advancedDataGridClasses/AdvancedDataGridColumn.as
+++ frameworks/projects/advancedgrids/src/mx/controls/advancedDataGridClasses/AdvancedDataGridColumn.as
@@ -27,6 +27,7 @@
 import mx.core.Singleton;
 import mx.core.mx_internal;
 import mx.formatters.Formatter;
+import mx.formatters.IFormatter;
 import mx.styles.CSSStyleDeclaration;
 import mx.utils.StringUtil;

@@ -1480,7 +1481,7 @@
     /**
      *  @private
      */
-    private var _formatter:Formatter;
+    private var _formatter:IFormatter;

     /**
      *  An instance of a subclasses of mx.formatters.Formatter.
@@ -1493,7 +1494,7 @@
      *  @playerversion AIR 1.1
      *  @productversion Flex 3
      */
-    public function get formatter():Formatter
+    public function get formatter():IFormatter
     {
         return _formatter;
     }
@@ -1501,7 +1502,7 @@
     /**
      *  @private
      */
-    public function set formatter(value:Formatter):void
+    public function set formatter(value:IFormatter):void
     {
         _formatter = value;

@@ -1657,7 +1658,8 @@
             // the property corresponding to the dataField is not present in the
             // row object i.e. it'll be empty and it's not anybody's fault that
             // it's an error.
-            if (formatter.error)
+            const mxFormatter:Formatter = formatter as Formatter;
+            if (mxFormatter && mxFormatter.error)
                 return null;

             return label;


We actually want to refuse to stream either int or Number
plainly. Actionscript prevents us from reliably using them.

git-svn-id: a1a4b28b82a3276cc491891159dd9963a0a72fae@5619 542714f4-19e9-0310-aa3c-eee0fc999fb1


Transferred from the Adobe Open Source Subversion Repository

Revision: 12862
Author:   cframpto@adobe.com
Date:     2009-12-11T21:13:05.311449Z

Log Message:
-----------
RET.calculateFontMetrics() was measuring a sample line of text using embedded and since the font wasn’t embedded it was using the player’s default font rather than the device font – hence the 1 pixel difference in height.  Now the code uses the same resolveFontLookup method that the rest of the code uses to implement the fallback to device lookup if the font isn't embedded.

Uncommented the checkin test and removed fontLookup="device" since it wasn't orginally there.

QE notes:
Doc notes: see above
Bugs: broken spark TextInput checkin test
Reviewer: Corey
Tests run: checkintests
Is noteworthy for integration:  no

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/basicTests/spark/scripts/TextInputTestScript.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/basicTests/spark/views/TextInputTests.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RichEditableText.as</path>

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

--- frameworks/projects/spark/src/spark/components/RichEditableText.as
+++ frameworks/projects/spark/src/spark/components/RichEditableText.as
@@ -3398,11 +3398,11 @@
             // set to "auto", in which case we automatically
             // determine it based on whether the CSS styles
             // specify an embedded font.
-            if (s == "auto")
+            if (s != "device")
             {
-                s = _textContainerManager.swfContext ?
-                    FontLookup.EMBEDDED_CFF :
-                    FontLookup.DEVICE;
+                s = TextUtil.resolveFontLookup(
+                    _textContainerManager.swfContext,
+                    _textContainerManager.hostFormat);
             }
             fontDescription.fontLookup = s;
         }


added the RenderTarget.resize(width, height) method

--- src/aerys/minko/render/RenderTarget.as
+++ src/aerys/minko/render/RenderTarget.as
@@ -96,5 +96,14 @@
 					'The texture resource and the render target must have the same size.'
 				);
 		}
+
+		public function resize(width : uint, height	: uint) : void
+		{
+			_width = width;
+			_height = height;
+
+			if (_resource)
+				_resource.setSize(width, height);
+		}
 	}
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 22074
Author:   smgilson@adobe.com
Date:     2011-08-18T18:48:26.478480Z

Log Message:
-----------
ASDoc edits for Callout

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/CalloutPosition.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/ContentBackgroundAppearance.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/CalloutSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/Callout.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/ContentBackgroundAppearance.as
+++ frameworks/projects/mobilecomponents/src/spark/components/ContentBackgroundAppearance.as
@@ -17,7 +17,7 @@
  *  allowed values of the contentBackgroundAppearance style of
  *  Callout.
  *
- *  @see spark.components.Callout#contentBackgroundAppearance
+ *  @see spark.components.Callout#style:contentBackgroundAppearance
  *
  *  @langversion 3.0
  *  @playerversion AIR 3


Added error message for unsupported functionality

--- WeaveCore/src/weave/compiler/Compiler.as
+++ WeaveCore/src/weave/compiler/Compiler.as
@@ -1149,7 +1149,8 @@
 				constant = call.compiledMethod as CompiledConstant;
 				if (constant && constant.name === constant.value)
 					return name;
-				return "(#" + name + ")";
+				throw new Error("Unable to decompile dynamic variable lookup");
+				//return "(#" + name + ")";
 			}

 			// decompile each paramter


added joinItems()

added joinItems()

Change-Id: Ie69d54ffd27fa04f4d124eec11e16d7474cc3969

--- WeaveData/src/weave/utils/VectorUtils.as
+++ WeaveData/src/weave/utils/VectorUtils.as
@@ -279,10 +279,37 @@
 					destination.push(source[i]);
 			return destination;
 		}
-
-		/*
-		trace(VectorUtils.copy(["Abc","aAc","abb","Aab"],new Vector.<String>()).sort(0));
-		trace(VectorUtils.copy(["Abc","aAc","abd","Aab"],new Vector.<String>()).sort(Array.CASEINSENSITIVE));
-		*/
+
+		/**
+		 * This will take an Array of Arrays of String items and produce a single list of String-joined items.
+		 * @param arrayOfArrays An Array of Arrays of String items.
+		 * @param separator The separator String used between joined items.
+		 * @param includeEmptyItems Set this to true to include empty-strings and undefined items in the nested Arrays.
+		 * @return An Array of String-joined items in the same order they appear in the nested Arrays.
+		 */
+		public static function joinItems(arrayOfArrays:Array, separator:String, includeEmptyItems:Boolean):Array
+		{
+			var maxLength:int = 0;
+			var itemList:Array;
+			for each (itemList in arrayOfArrays)
+				maxLength = Math.max(maxLength, itemList.length);
+
+			var result:Array = [];
+			for (var itemIndex:int = 0; itemIndex < maxLength; itemIndex++)
+			{
+				var joinedItem:Array = [];
+				for (var listIndex:int = 0; listIndex < arrayOfArrays.length; listIndex++)
+				{
+					itemList = arrayOfArrays[listIndex] as Array;
+					var item:String = '';
+					if (itemList && itemIndex < itemList.length)
+						item = itemList[itemIndex] || '';
+					if (item || includeEmptyItems)
+						joinedItem.push(item);
+				}
+				result.push(joinedItem.join(separator));
+			}
+			return result;
+		}
 	}
 }


test: fixed swf-version test to use integer

--- test/src/tests/CompilerOptionsTests.as
+++ test/src/tests/CompilerOptionsTests.as
@@ -716,7 +716,7 @@
 		[Test]
 		public function testSWFVersion():void
 		{
-			var value:String = "30";
+			var value:int = 30;
 			var args:Object = {};
 			args[CompilerOptions.SWF_VERSION] = value;
 			var result:Array = CompilerOptionsParser.parse(args);


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@1251431 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/automation/src/mx/automation/delegates/controls/ListItemRendererAutomationImpl.as
+++ frameworks/projects/automation/src/mx/automation/delegates/controls/ListItemRendererAutomationImpl.as
@@ -1,13 +1,3 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2009 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.automation.delegates.controls
 {


switched from trace to reportError

switched from trace to reportError

--- WeaveCore/src/weave/core/LibraryUtils.as
+++ WeaveCore/src/weave/core/LibraryUtils.as
@@ -312,7 +312,7 @@
 					var classDef:Class = ClassUtils.getClassDefinition(classQName);
 					if (!classDef)
 					{
-						trace(StandardLib.substitute('When loading library "{0}", unable to get class definition "{1}"', _url, classQName));
+						WeaveAPI.ErrorManager.reportError(StandardLib.substitute('While loading library "{0}", unable to get class definition "{1}"', _url, classQName));
 						continue;
 					}