SoundParameterContoller で値が変わらなかった際に COMPLETE イベントを出すように修正

--- project/SoundConductor/src/jp/hiiragi/managers/soundConductor/ParameterController.as
+++ project/SoundConductor/src/jp/hiiragi/managers/soundConductor/ParameterController.as
@@ -84,6 +84,7 @@
 			if (!_tweening && value == currentValue)
 			{
 				// 値は変わらないので、何もしない
+				dispatchEvent(new Event(Event.COMPLETE));
 			}
 			else
 			{


Added a way to extend JavaScript.as's JSON replacers and revivers.

Change-Id: If4c935bf7878c428e70aa8b687ac135b1ef7b018

--- WeaveAPI/src/JavaScript.as
+++ WeaveAPI/src/JavaScript.as
@@ -72,6 +72,12 @@
 		private static const JSON_CALL:String = "_jsonCall";

 		/**
+		 * The name of a JavaScript property of this flash instance which contains an Array of JSON replacer/reviver extensions.
+		 * Each object in the Array can contain "replacer" and "reviver" properties containing the extension functions.
+		 */
+		public static const JSON_EXTENSIONS:String = "_jsonExtensions";
+
+		/**
 		 * Used as the second parameter to JSON.stringify
 		 */
 		private static const JSON_REPLACER:String = "_jsonReplacer";
@@ -113,6 +119,16 @@
 		 * This flag will be set to true whenever _jsonReplacer makes a replacement that requires _jsonReviver to interpret.
 		 */
 		private static var _needsReviving:Boolean = false;
+
+		/**
+		 * Extensions to _jsonReplacer.
+		 */
+		private static const _jsonReplacerExtensions:Array = [];
+
+		/**
+		 * Extensions to _jsonReviver.
+		 */
+		private static const _jsonReviverExtensions:Array = [];

 		/**
 		 * Alias for ExternalInterface.available
@@ -203,6 +219,7 @@
 				exec(
 					{
 						"JSON_FUNCTION_PREFIX": JSON_FUNCTION_PREFIX,
+						"JSON_EXTENSIONS": JSON_EXTENSIONS,
 						"JSON_REPLACER": JSON_REPLACER,
 						"JSON_REVIVER": JSON_REVIVER,
 						"JSON_SUFFIX": JSON_SUFFIX,
@@ -212,6 +229,7 @@
 					"var flash = this;",
 					"var functionCounter = 0;",
 					"var lookup = flash[JSON_LOOKUP] = {};",
+					"var extensions = flash[JSON_EXTENSIONS] = [];",
 					"var symbols = [NaN, Infinity, -Infinity];",
 					"for (var i in symbols)",
 					"    lookup[symbols[i] + JSON_SUFFIX] = symbols[i];",
@@ -223,35 +241,56 @@
 					"            value[JSON_FUNCTION_PREFIX] = id;",
 					"            lookup[id] = value;",
 					"        }",
-					"        return value[JSON_FUNCTION_PREFIX];",
+					"        value = value[JSON_FUNCTION_PREFIX];",
 					"    }",
-					"    if (typeof value === 'number' && !isFinite(value))",
-					"        return value + JSON_SUFFIX;",
-					"    if (Array.isArray(value) && !(value instanceof Array))",
-					"        return Array.prototype.slice.call(value);",
+					"    else if (typeof value === 'number' && !isFinite(value))",
+					"        value = value + JSON_SUFFIX;",
+					"    else if (Array.isArray(value) && !(value instanceof Array))",
+					"        value = Array.prototype.slice.call(value);",
+					"    for (var i in extensions)",
+					"        if (typeof extensions[i] === 'object' && typeof extensions[i].replacer === 'function')",
+					"            value = extensions[i].replacer.call(flash, key, value);",
 					"    return value;",
 					"};",

 					"flash[JSON_REVIVER] = function(key, value) {",
 					"    if (typeof value === 'string') {",
 					"        if (lookup.hasOwnProperty(value))",
-					"            return lookup[value];",
-					"        if (value.substr(0, JSON_FUNCTION_PREFIX.length) == JSON_FUNCTION_PREFIX) {",
-					"            lookup[value] = function() {",
+					"            value = lookup[value];",
+					"        else if (value.substr(0, JSON_FUNCTION_PREFIX.length) == JSON_FUNCTION_PREFIX) {",
+					"            var id = value;",
+					"            var func = function() {",
 					"                var params = Array.prototype.slice.call(arguments);",
 					"                var paramsJson = JSON.stringify(params, flash[JSON_REPLACER]);",
-					"                var resultJson = flash[JSON_CALL](value, paramsJson);",
+					"                var resultJson = flash[JSON_CALL](id, paramsJson);",
 					"                return JSON.parse(resultJson, flash[JSON_REVIVER]);",
 					"            };",
-					"            lookup[value][JSON_FUNCTION_PREFIX] = value;",
-					"            return lookup[value];",
+					"            func[JSON_FUNCTION_PREFIX] = id;",
+					"            value = lookup[id] = func;",
 					"        }",
 					"    }",
+					"    for (var i in extensions)",
+					"        if (typeof extensions[i] === 'object' && typeof extensions[i].reviver === 'function')",
+					"            value = extensions[i].reviver.call(flash, key, value);",
 					"    return value;",
 					"};"
 				);
 			}
 		}
+
+		/*var replace = weave._jsonReplacer, revive = weave._jsonReviver;
+		weave._jsonReplacer = (k, v) => {
+		var r = replace.call(weave, k, v);
+		console.log('replace', k, v, r);
+		return r;
+		}
+		weave._jsonReviver = (k, v) => {
+		var r = revive.call(weave, k, v);
+		console.log('revive', k, v, r);
+		return r;
+		}
+		JSON.stringify({x: Math.round}, weave._jsonReplacer)
+		//*/

 		/**
 		 * Handles a JavaScript request.
@@ -295,13 +334,15 @@
 					_jsonLookup[id] = value;
 				}
 				_needsReviving = true;
-				return id;
-			}
-			if (value is Number && !isFinite(value as Number))
+				value = id;
+			}
+			else if (value is Number && !isFinite(value as Number))
 			{
 				_needsReviving = true;
-				return value + JSON_SUFFIX;
-			}
+				value = value + JSON_SUFFIX;
+			}
+			for each (var extension:Function in _jsonReplacerExtensions)
+				value = extension(key, value);
 			return value;
 		}

@@ -314,15 +355,16 @@
 			if (value is String)
 			{
 				if (_jsonLookup.hasOwnProperty(value))
-					return _jsonLookup[value];
+					value = _jsonLookup[value];
 				// ID -> Function
-				if ((value as String).substr(0, JSON_FUNCTION_PREFIX.length) == JSON_FUNCTION_PREFIX)
-				{
+				else if ((value as String).substr(0, JSON_FUNCTION_PREFIX.length) == JSON_FUNCTION_PREFIX)
+				{
+					var id:String = value as String;
 					var func:Function = function():*{
 						return exec(
 							{
 								"JSON_REVIVER": JSON_REVIVER,
-								"id": value,
+								"id": id,
 								"args": arguments,
 								"catch": false
 							},
@@ -330,12 +372,37 @@
 							"return func.apply(func['this'], args);"
 						);
 					} as Function;
-					_jsonLookup[func] = value;
-					_jsonLookup[value] = func;
-					return func as Function;
-				}
-			}
+					_jsonLookup[func] = id;
+					_jsonLookup[id] = func;
+					value = func as Function;
+				}
+			}
+			for each (var extension:Function in _jsonReviverExtensions)
+				value = extension(key, value);
 			return value;
+		}
+
+		/**
+		 * Extends JavaScript JSON communication to support new types of objects passed between ActionScript and JavaScript.
+		 * This only extends the ActionScript side. Corresponding JavaScript code must written if specialized JavaScript
+		 * Objects are to be supported.
+		 * @param replacer function(key:String, value:*):* ; Replaces an Object with a JSON-serializable representation.
+		 * @param reviver function(key:String, value:*):* ; Revives an Object from its JSON representation.
+		 *
+		 * @example Example JavaScript code (func1 and func2 should be function definitions)
+		 * <listing version="3.0">
+		 * JavaScript.exec(
+		 *     {"JSON_EXTENSIONS": JavaScript.JSON_EXTENSIONS},
+		 *     'this[JSON_EXTENSIONS].push({"replacer": func1, "reviver": func2});'
+		 * );
+		 * </listing>
+		 */
+		public static function extendJson(replacer:Function, reviver:Function):void
+		{
+			if (replacer != null)
+				_jsonReplacerExtensions.push(replacer);
+			if (reviver != null)
+				_jsonReviverExtensions.push(reviver);
 		}

 		/**


Transferred from the Adobe Open Source Subversion Repository

Revision: 8044
Author:   chaase@adobe.com
Date:     2009-06-22T17:01:54.701660Z

Log Message:
-----------
Final (!) PARB changes for effects.
- renamed ArrayInterpolator to MultiValueInterpolator (and enhanced behavior to handle Vectors as well as Arrays).
- Created new AnimateTransform3D subclass of AnimateTransform (to hold 3D-specific properties/defaults), and moved Move3D, Rotate3D, Scale3D to subclass from this new class.

QE Notes: Change to default value of applyLocalProjection (matches former default on 3D effects, but not default on AnimateTransform).
Doc Notes: None
Bugs: None
Reviewer: Hans
Tests: checkintests, effects cyclone from QE

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/SimpleMotionPath.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Move3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Animate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Scale3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/Animation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/spark-manifest.xml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransform3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/MotionPath.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/interpolation/ArrayInterpolator.as" copyfrom-rev="7917" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/interpolation/MultiValueInterpolator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Rotate3D.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/interpolation/ArrayInterpolator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateTransformInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransform.as</path>

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

--- frameworks/projects/spark/src/spark/effects/supportClasses/AnimateTransformInstance.as
+++ frameworks/projects/spark/src/spark/effects/supportClasses/AnimateTransformInstance.as
@@ -247,7 +247,7 @@
     /**
      * @private
      *
-     * Insert a new keyframe into an existing keyframe array. Keyframes are sorted by
+     * Insert a new keyframe into an existing keyframe Vector. Keyframes are sorted by
      * time, so the new keyframe must be inserted in the proper place according to its
      * time value and the startDelay time passed in
      */
@@ -470,6 +470,15 @@
                 }
             }
         }
+        // FIXME (chaase): autoProps automatically animates all transform properties
+        // that are not explicitly specified via the effect properties.
+        // This handles, for example, transitions, to pick up all changes and turn
+        // them into motionPaths on the transform properties.
+        // This is great, but may have unintended consequences, such as performing
+        // an animated Rotate when only a Move was requested (but the rotation angle
+        // change was picked up automatically).
+        // Ideally, we would have this behavior for the superclass effect, but not
+        // carry over into the Move/Rotate/etc. effects.
         for (s in autoProps)
         {
             var mp:MotionPath = new MotionPath(s);


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

--- frameworks/projects/framework/src/mx/events/FocusRequestDirection.as
+++ frameworks/projects/framework/src/mx/events/FocusRequestDirection.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.events
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 19344
Author:   egeorgie@adobe.com
Date:     2010-12-14T00:38:13.222484Z

Log Message:
-----------
PARB changes for density scaling

- authorDensity -> applicationDPI, type changed to int
- DensityUtil not visible in the documentation anymore [ExcludeClass]
- DensityUtil. screenDPIToDeviceDensity() -> classifyDPI(), returns int now
- DensityUtil. getDensityScale() -> getDPIScale(), takes int now
- DeviceDensity enum -> DPIClassification enum
- ISystemManager.densityScale property has been removed.
- New property to Application -> runtimeDPI.

QE notes: can start writing automated tests now
Doc notes:
Bugs:
Reviewer: Alex, Glenn, Jason SJ,
Tests run: checkintest
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/MobileSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/utils/DensityUtil.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/mobiletheme/src/spark/skins/mobile/TextInputSkin.as</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/DeviceDensity.as" copyfrom-rev="19256" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/DPIClassification.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/NavigationAngledButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/VScrollBarThumbSkin.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/framework/src/mx/managers/ISystemManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionButtonSkin.as</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/DeviceDensity.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderDataTip.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="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderTrackSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ActionBarButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/CheckBoxSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderThumbSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/preloaders/SplashScreen.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/RadioButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HScrollBarThumbSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HScrollBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/NavigationButtonSkin.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@1265203 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonSkin.as
@@ -15,7 +15,7 @@
 import flash.display.DisplayObject;
 import flash.display.Graphics;

-import mx.core.DeviceDensity;
+import mx.core.DPIClassification;
 import mx.core.mx_internal;
 import mx.events.FlexEvent;

@@ -68,9 +68,9 @@

         useChromeColor = true;

-        switch (authorDensity)
+        switch (applicationDPI)
         {
-            case DeviceDensity.PPI_320:
+            case DPIClassification.DPI_320:
             {
                 upBorderSkin = spark.skins.mobile320.assets.Button_up;
                 downBorderSkin = spark.skins.mobile320.assets.Button_down;
@@ -87,7 +87,7 @@

                 break;
             }
-            case DeviceDensity.PPI_240:
+            case DPIClassification.DPI_240:
             {
                 upBorderSkin = spark.skins.mobile240.assets.Button_up;
                 downBorderSkin = spark.skins.mobile240.assets.Button_down;


Transferred from the Adobe Open Source Subversion Repository

Revision: 2846
Author:   hmuller@adobe.com
Date:     2008-08-14T18:55:21.991879Z

Log Message:
-----------
Partial commit of the "Group as Viewport" feature.  Enables
simple scrolling for Groups with VerticalLayout.

Doc: No
Checkintests: Pass
Reviewer: Evtim

- Group.as
Adde vertical,horizontalScrollPosition properties.
They're default 0 and they're mapped to the origin of the Group's
scrollRect.  Added Number type contentWidth,Height properties.

Changed the layout property type and implementation.  The type is now
Object (was Class) to allow one to specify one of the predefined
layout class names, or a layout instance.

Currently only flex.layout.Basic,Horizontal,VerticalLayout can be
named using the (string class name valued) layout attribute.

- ItemsComponent.as
Changed the type of the layout property to Object to match the
similar change in Group.

- VerticalLayout.as
Replaced private static GAP:int constant with a similar "gap"
property.  Gap is the vertical space between rows, default is 6.

Added a rowCount:int property and a protected explicitRowCount var.
The rowCount property specifies the number of visible rows, which
implies the layoutTarget's height.  The default is -1 which means
that all rows should be visible.

Added rowHeight:Number and colWidth:Number properties, along with
their protected explicitFoo counterparts.  Currently unused.

Changed the measure function: if rowCount wasn't explicitly set
to -1, then the layoutTarget's height is the height of the first
rowCount items (plus the gap).  The layoutTarget's contentHeight
is set to the items' total height.

Changed the updateDisplayList function to set the scrollRect
to the layoutTarget's width/height.

- manifests
Added the layout classes to frameworks/projejcts/flex4/manifest.xml and to
frameworks/gumbo-manifest.xml, mxml-2009-manifest.xml.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4test/.actionScriptProperties</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/layout/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/mxml-2009-manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/ItemsComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/gumbo-manifest.xml</path>

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

--- frameworks/projects/spark/src/spark/components/SkinnableContainer.as
+++ frameworks/projects/spark/src/spark/components/SkinnableContainer.as
@@ -161,29 +161,26 @@
 	//  layout
 	//----------------------------------

-	private var _layout:Class;
-
 	/**
 	 *  @copy flex.core.Group#layout
 	 */
-	public function get layout():Class
-	{
-		if (contentGroup)
-			return contentGroup.layout;
-
-		return _layout;
-	}
-
-	public function set layout(value:Class):void
-	{
-		if (value == _layout)
-			return;
-
-		_layout = value;
-
-		if (contentGroup)
-			contentGroup.layout = _layout;
-	}
+
+	private var _layout:Object;
+
+    public function get layout():Object
+    {
+    	return (contentGroup) ? contentGroup.layout : _layout;
+    }
+
+    public function set layout(value:Object):void
+    {
+		if (value != _layout) {
+    		_layout = value;
+    		if (contentGroup) {
+    			contentGroup.layout = _layout;
+    		}
+		}
+    }

 	//----------------------------------
 	//  itemRenderer


start playTime at 0 instead of -1.  fixes adRule playback issue.

--- plugins/doubleclickPlugin/src/doubleclickPluginCode.as
+++ plugins/doubleclickPlugin/src/doubleclickPluginCode.as
@@ -48,7 +48,7 @@

 	public dynamic class doubleclickPluginCode extends UIComponent implements IPlugin, ISequencePlugin
 	{
-		public var debugMode:Boolean	=	false;
+		public var debugMode:Boolean	=	true;

 		public var contentPlayhead:Object = {};

@@ -143,16 +143,16 @@
 			Security.allowDomain("*");
 		}

-		public function get adTagUrl():String
+		public function get adTagUrl():String
 		{
 			return _adTagUrl;
 		}
-
-		public function set adTagUrl(value:String):void
+
+		public function set adTagUrl(value:String):void
 		{
 			_adTagUrl = unescape(value);
 		}
-
+
 		public function initializePlugin(facade:IFacade):void
 		{

@@ -324,9 +324,13 @@
 			// provides current playhead position for the content.
 			contentPlayhead		= {
 				time:function():Number {
+
 					var playTime:Number = _playerMediator.player.currentTime;
 					//correct the .25 sec delay on ads during adrule playback
 					playTime	= _mediator.playheadTime;//(playTime)*1000;
+					if(playTime < 0){
+						playTime = 0;
+					}

 					return playTime; // Make time in ms.
 				}
@@ -428,13 +432,16 @@
 				});

 				adsManager.addEventListener(AdEvent.LOADED, function(e:AdEvent):void{
-					log("AdEvent.LOADED");
+					log("AdEvent.LOADED	totalAds:"+e.ad.adPodInfo.totalAds );
+					log("AdEvent.LOADED	position:"+e.ad.adPodInfo.adPosition );
+					log("AdEvent.LOADED	isBumper:"+e.ad.adPodInfo.isBumper );
 					if(e.target.cuePoints.length > 0){
+						log("cuepont lenght:::: "+e.target.cuePoints.length);
 						_isAdRule		= true;
 					}

 					//if overlay or adrule, resume content
-					if (!adsManager.linear || _isAdRule)
+					if (!adsManager.linear)
 						contentResumeRequestedHandler(e);
 				});

@@ -498,7 +505,7 @@
 		}

 		private function adCompletedHandler(event:AdEvent):void{
-			log("AdEvent.adCompletedHandler");
+			log("AdEvent.adCompletedHandler	"+event.ad.adPodInfo.adPosition +" of "+ event.ad.adPodInfo.totalAds);
 			if (!disableCompanionAds && flashCompanion)
 				flashCompanion.destroy();
 		}
@@ -555,6 +562,7 @@

 				_mediator.stopPlayback();
 				_mediator.disableControls();
+
 			}

 			// This loads and displays the Companion Ads
@@ -607,30 +615,30 @@
 		 */
 		private function contentResumeRequestedHandler(event:AdEvent	= null):void
 		{
+			adInProgress		= false;

 			if(_background.parent)
 				_background.parent.removeChild(_background);

-
-			log("contentResumeRequestedHandler	isAdRulex:"+_isAdRule +"		:isLinear : ");
+			log("contentResumeRequestedHandler	");

 			// Rewire controls to affect content instead of the ads manager.
 			//tell sequence proxy, hey this sequence item is done. do your thang.
-
+			_mediator.enableControls();
 			//we tell it that we're done if the current ad was requested by the sequenceProxy
-			if(_sequenceProxy.vo.isInSequence)
+			if(_sequenceProxy.vo.isInSequence && !event.ad)
 				_facade.sendNotification(NotificationType.SEQUENCE_ITEM_PLAY_END);
-
-			//adRules are not managed by the sequenceProxy, so we force playback
-			if(!_mediator.playbackComplete)
+			else if (event.ad){
+				if(!event.ad.linear && _sequenceProxy.vo.isInSequence)
+					_facade.sendNotification(NotificationType.SEQUENCE_ITEM_PLAY_END);
+			}
+			else if (!_mediator.playbackComplete){
+				//this is called when there's an adRule and midrolls are complete
 				_facade.sendNotification(NotificationType.DO_PLAY);
-
-			//			if(event){
-			//				_facade.sendNotification(NotificationType.DO_PLAY);
-			//			}
-
-			adInProgress		= false;
-			_mediator.enableControls();
+			}
+
+
+

 		}


Transferred from the Adobe Open Source Subversion Repository

Revision: 19060
Author:   harishs@adobe.com
Date:     2010-12-06T17:34:15.020965Z

Log Message:
-----------
QE notes: Did checkintests, performed full cyclone run. There were 19 failures in mustella report. QE Judy (Mingzhou Gao and Joann Chung Anderson) confirmed that they are known problems.
Doc notes: As part of Sort and Sortfield updates, the asdoc comments were updated to reflect globalization changes.
Bugs: Fixed sdk-28493, 28691,28494, 28345, 28320, 28387, 28314, 28145
Reviewer: Gordon Smith
Tests run: cyclone, checkintests, bugs testfiles
Is noteworthy for integration: Sort and Sortfield updated with globalization support using the new spark globalization sort classes.
Number and CurrencyValidators support national digits and unicode minus symbols.
groupingPattern property dropped for Number and Currency Validators.

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/BasicTests-config.xml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/collections/SortField.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/validators/supportClasses/NumberValidatorBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/collections/ICollectionView.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/collections/ISort.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/spark-manifest.xml</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/collections/ISortField.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/BasicTests.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGrid.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/collections/Sort.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/validators/NumberValidator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/advancedgrids/src/mx/olap/OLAPCube.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/validators/CurrencyValidator.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/collections/SortField.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/bundles/en_US/validators.properties</path>
<path kind="dir" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/collections</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/treeClasses/HierarchicalCollectionView.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/collections/ListCollectionView.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Group.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/validators/supportClasses/GlobalizationUtils.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/advancedgrids/src/mx/olap/DefaultCubeImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGridBaseEx.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/scripts/SortTestScript.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/advancedgrids/src/mx/collections/HierarchicalCollectionView.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/collections/Sort.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/collections/ModifiedCollectionView.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/views/SortTests.mxml</path>

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

--- frameworks/projects/spark/src/spark/validators/supportClasses/GlobalizationUtils.as
+++ frameworks/projects/spark/src/spark/validators/supportClasses/GlobalizationUtils.as
@@ -11,13 +11,16 @@

 package spark.validators.supportClasses
 {
+
+import flash.globalization.NationalDigitsType;
+
 /**
  *  A utility class containing Unicode related functionality not supported in
  *  Flex or ActionScript.
  *
- *
This class contains the utility routines needed for all Validators. Examples
- *  of typical routines are checking for unicode white space, trimming all
- *  spaces in a string at the beginning and end.

+ *
This class contains the utility routines needed for all Validators.
+ *  Examples of typical routines are checking for unicode white space,
+ *  trimming all spaces in a string at the beginning and end.

  *
  *  @langversion 3.0
  *  @playerversion Flash 10.1
@@ -36,6 +39,7 @@
     //--------------------------------------------------------------------------

     private static const ASCII_SPACE:uint = 0x20;
+    private static const ASCII_ZERO:uint = 0x30;
     private static const NO_BREAK_SPACE:uint = 0xA0;
     private static const UNICODE_OGHAM_SPACE_MARK:uint = 0x1680;
     private static const UNICODE_MONGOLIAN_VOWEL_SEPARATOR:uint = 0x180E;
@@ -45,6 +49,105 @@
     private static const UNICODE_MEDIUM_MATHEMATICAL_SPACE:uint = 0x205F;
     private static const UNICODE_IDEOGRAPHIC_SPACE:uint = 0x3000;
     private static const UNICODE_ZEROWIDTH_NOBREAK_SPACE:uint = 0xFEFF;
+    private static const UNICODE_HIGH_SURROGATE_FRONT:uint = 0xd800;
+    private static const UNICODE_HIGH_SURROGATE_BACK:uint = 0xdbff;
+    private static const UNICODE_LOW_SURROGATE_FRONT:uint = 0xdc00;
+    private static const UNICODE_LOW_SURROGATE_BACK:uint = 0xdfff;
+    private static const UNICODE_DIGITS:Array = new Array(
+                                 ASCII_ZERO,
+                                 NationalDigitsType.ARABIC_INDIC ,
+                                 NationalDigitsType.BALINESE  ,
+                                 NationalDigitsType.BENGALI ,
+                                 NationalDigitsType.CHAM ,
+                                 NationalDigitsType.DEVANAGARI ,
+                                 NationalDigitsType.EUROPEAN ,
+                                 NationalDigitsType.EXTENDED_ARABIC_INDIC ,
+                                 NationalDigitsType.FULL_WIDTH ,
+                                 NationalDigitsType.GUJARATI ,
+                                 NationalDigitsType.GURMUKHI ,
+                                 NationalDigitsType.KANNADA ,
+                                 NationalDigitsType.KAYAH_LI ,
+                                 NationalDigitsType.KHMER ,
+                                 NationalDigitsType.LAO ,
+                                 NationalDigitsType.LEPCHA ,
+                                 NationalDigitsType.LIMBU ,
+                                 NationalDigitsType.MALAYALAM ,
+                                 NationalDigitsType.MONGOLIAN ,
+                                 NationalDigitsType.MYANMAR ,
+                                 NationalDigitsType.MYANMAR_SHAN ,
+                                 NationalDigitsType.NEW_TAI_LUE ,
+                                 NationalDigitsType.NKO ,
+                                 NationalDigitsType.OL_CHIKI ,
+                                 NationalDigitsType.ORIYA ,
+                                 NationalDigitsType.OSMANYA ,
+                                 NationalDigitsType.SAURASHTRA ,
+                                 NationalDigitsType.SUNDANESE ,
+                                 NationalDigitsType.TAMIL ,
+                                 NationalDigitsType.TELUGU ,
+                                 NationalDigitsType.THAI ,
+                                 NationalDigitsType.TIBETAN ,
+                                 NationalDigitsType.VAI
+                               );
+
+    //--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------
+    /**
+     *
 Check if codepoint is a numeric digit.

+     *
+     *  @param int input codepoint
+     *  @returns Boolean true or false.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10.1
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    public static function isDigit(ccode:uint):Boolean
+    {
+        for (var i:int = 0; i < UNICODE_DIGITS.length; i++)
+        {
+            if ((ccode >= UNICODE_DIGITS[i]) && (ccode <= (UNICODE_DIGITS[i] + 9)))
+                return true;
+        }
+        return false;
+    }
+
+    /**
+     *
 Check if codepoint is a leading surrogate.

+     *
+     *  @param int input codepoint
+     *  @returns Boolean true or false.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10.1
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    public static function isLeadingSurrogate(ccode:uint):Boolean
+    {
+        return ((ccode >= UNICODE_HIGH_SURROGATE_FRONT) &&
+            (ccode <= UNICODE_HIGH_SURROGATE_BACK));
+    }
+
+    /**
+     *
 Check if codepoint is a trailing surrogate.

+     *
+     *  @param int input codepoint
+     *  @returns Boolean true or false.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10.1
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    public static function isTrailingSurrogate(ccode:uint):Boolean
+    {
+        return ((ccode >= UNICODE_LOW_SURROGATE_FRONT) &&
+            (ccode <= UNICODE_LOW_SURROGATE_BACK));
+    }

     /**
      *
 Check if codepoint is a white space.
@@ -59,7 +162,7 @@
      *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
-    public static function isWhiteSpace(ccode:int):Boolean
+    public static function isWhiteSpace(ccode:uint):Boolean
     {
         if ((ccode == ASCII_SPACE) || (ccode == NO_BREAK_SPACE) ||
             (ccode == 0x9))
@@ -127,6 +230,38 @@
         //substring() gets characters up to one index before.
         return input.substring(i, j+1);
     }
+
+    /**
+     *
 Convert a surrogate pair to UTF32

+     *
+     *  @param int  High surrogate c0
+     *  @param int  Low surrogate c1
+     *  @return uint UTF32 equivalent
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10.1
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    public static function surrogateToUTF32(c0:uint, c1:uint):uint
+    {
+        var out:uint = 0;
+
+        var tmp:int = c0 & 0xffff;
+        if ((tmp < UNICODE_HIGH_SURROGATE_FRONT) ||
+            (tmp > UNICODE_LOW_SURROGATE_BACK ))
+        {
+            out = tmp;
+        }
+        else
+        {
+            out = (tmp - 0xd7C0) << 10;
+            out += c1 & 0x03FF;
+        }
+
+        return out;
+    }
+
 }

 }


Rearranging CubicBezer root of first derivative calculation to reflect what Mathematica spits out. It's equivalent (well I hope it is) but it'll save headaches when eyeballing the math

--- raw/src/org/yellcorp/lib/geom/curves/CubicBezier.as
+++ raw/src/org/yellcorp/lib/geom/curves/CubicBezier.as
@@ -180,32 +180,6 @@
         }
     }

-    private static function appendFirstDerivRoots(a:Number, b:Number, c:Number, d:Number, out:Array):void
-    {
-        var divisor:Number = -a + 3 * b - 3 * c + d;
-        var radicand:Number;
-        var root:Number;
-
-        if (divisor != 0)
-        {
-            radicand = a * (d - c) + b * (b - c - d) + c * c;
-            if (radicand >= 0)
-            {
-                root = (Math.sqrt(radicand) - a + 2 * b - c) / divisor;
-                out.push(root);
-                if (root != 0) out.push(-root);
-            }
-        }
-        else
-        {
-            divisor = a - 2 * b + c;
-            if (divisor != 0)
-            {
-                out.push((a - b) / (2 * divisor));
-            }
-        }
-    }
-
     public function boundingBox(out:Rectangle):Rectangle
     {
         var xs:Array = [ p0.x, p3.x ];
@@ -242,6 +216,36 @@
         return out;
     }

+    private static function appendFirstDerivRoots(a:Number, b:Number, c:Number, d:Number, out:Array):void
+    {
+        var divisor:Number = a - 3 * (b * c) - d;
+        var a_2b_c:Number = a - 2 * b + c;
+        var radicand:Number;
+
+        if (divisor != 0)
+        {
+            radicand = a * (d - c) + b * (b - c - d) + c * c;
+
+            if (radicand == 0)
+            {
+                out.push(a_2b_c / divisor);
+            }
+            else
+            {
+                var sqrt:Number = Math.sqrt(radicand);
+                out.push( (a_2b_c + sqrt) / divisor,
+                          (a_2b_c - sqrt) / divisor );
+            }
+        }
+        else
+        {
+            if (a_2b_c != 0)
+            {
+                out.push((a - b) / (2 * a_2b_c));
+            }
+        }
+    }
+
 /*
     public function draw(target:Graphics):void
     {


add optional Effect argument to BasicMaterial constructor

--- src/aerys/minko/render/material/basic/BasicMaterial.as
+++ src/aerys/minko/render/material/basic/BasicMaterial.as
@@ -145,9 +145,9 @@
 			setProperty(BasicProperties.STENCIL_WRITE_MASK, value);
 		}

-		public function BasicMaterial(properties : Object = null, name : String = DEFAULT_NAME)
+		public function BasicMaterial(properties : Object = null, effect : Effect = null, name : String = DEFAULT_NAME)
 		{
-			super(DEFAULT_EFFECT, properties, name);
+			super(effect || DEFAULT_EFFECT, properties, name);
 		}
 	}
 }


fixed typo in if condition

fixed typo in if condition

--- WeaveData/src/weave/data/DataSources/WeaveDataSource.as
+++ WeaveData/src/weave/data/DataSources/WeaveDataSource.as
@@ -544,7 +544,7 @@
 				try {
 					sqlParams = Compiler.parseConstant(params[SQLPARAMS]) as Array;
 				} catch (e:Error) { }
-				if (!sqlParams is Array)
+				if (!(sqlParams is Array))
 					sqlParams = WeaveAPI.CSVParser.parseCSVRow(params[SQLPARAMS]);
 				query = _service.getColumn(id, params[ColumnMetadata.MIN], params[ColumnMetadata.MAX], sqlParams);
 			}


Logging.

Logging.

--- HLSPlugin/src/org/osmf/net/httpstreaming/HLSHTTPNetStream.as
+++ HLSPlugin/src/org/osmf/net/httpstreaming/HLSHTTPNetStream.as
@@ -1358,6 +1358,7 @@
 					// Switch to a backup stream if available
 					if (currentStream)
 					{
+						trace("Marking manifest not gotten.");
 						hasGottenManifest = false;
 						indexHandler.switchToBackup(currentStream);
 					}


Transferred from the Adobe Open Source Subversion Repository

Revision: 3672
Author:   clucier@adobe.com
Date:     2008-10-15T23:54:51.581066Z

Log Message:
-----------
Removing the commonly used getUnqualifiedClassName out of the less commonly used utility class to reduce SWF size for the general case.
Reviewer: Gordon
QE: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Effect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/OrderedObject.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/NameUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/TextGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/EffectInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/ObjectUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>

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

--- frameworks/projects/framework/src/mx/utils/OrderedObject.as
+++ frameworks/projects/framework/src/mx/utils/OrderedObject.as
@@ -14,7 +14,6 @@
 import flash.utils.Proxy;
 import flash.utils.flash_proxy;
 import mx.utils.object_proxy;
-import mx.utils.ObjectUtil;

 use namespace flash_proxy;
 use namespace object_proxy;


Transferred from the Adobe Open Source Subversion Repository

Revision: 13208
Author:   chaase@adobe.com
Date:     2009-12-23T21:49:14.524642Z

Log Message:
-----------
Dealt with my FIXMEs in the code. Some went away (no longer issues), some became TODOs (still issues, but nothing that we have to solve in this release), a couple were actually resolved in this change (like the bug filed/fixed: 24848).

QE notes: 10 failures in Mustella of tests that need to be changed. They're excluded for now and QE has local fixes.
Doc notes: None
Bugs: SDK-24848
Reviewer: Jason
Tests run: checkintests, Mustella (spark/effects, mx/effects)
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/supportClasses/AnimateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Move3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/animation/Animation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Rotate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/supportClasses/AnimateTransitionShaderInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/CompositeEffect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/animation/MotionPath.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Move.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/PropertyChanges.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateTransform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/SliderBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Effect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Scale3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Rotate3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/animation/Timeline.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/supportClasses/MoveInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AddAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Scale.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/SequenceInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/supportClasses/AnimateTransformInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/EffectTargetFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/RemoveAction.as</path>

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

--- frameworks/projects/spark/src/spark/effects/RemoveAction.as
+++ frameworks/projects/spark/src/spark/effects/RemoveAction.as
@@ -161,8 +161,6 @@
         {
             if (target.parent == null)
             {
-                // FIXME (chaase): workaround for current situation of mis-match between
-                // Group having 'item's and Flex3 components having 'parent's
                 if (value is IVisualElementContainer)
                     IVisualElementContainer(value).addElementAt(target as IVisualElement, Math.min(props.index,
                         IVisualElementContainer(value).numElements));


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

--- frameworks/projects/spark/src/spark/events/DropDownEvent.as
+++ frameworks/projects/spark/src/spark/events/DropDownEvent.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2005-2006 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: 2724
Author:   egeorgie@adobe.com
Date:     2008-08-04T17:33:18.787713Z

Log Message:
-----------
Add target property to ILayoutItem
Make ILayoutItemUIC work with IUIComponent
Switch Group.GetLayoutItemAt() to return ILayoutItem

Reviewed by Ryan, Gordon

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/layout/BasicLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/layout/LayoutItemFactory.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/layout/LayoutItemFDO.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/layout/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/layout/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/graphicsClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/intf/ILayoutItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/layout/LayoutItemHelper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/layout/LayoutItemUIC.as</path>

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

--- frameworks/projects/framework/src/mx/core/ILayoutElement.as
+++ frameworks/projects/framework/src/mx/core/ILayoutElement.as
@@ -39,6 +39,12 @@
  */
 public interface ILayoutItem
 {
+    /**
+     *  @return Returns a reference to the object in the layout tree
+     *  represented by this interface.
+     */
+    function get target():Object;
+
     /**
      *  Indicates whether to layout should ignore this item or not.
      */


Transferred from the Adobe Open Source Subversion Repository

Revision: 4492
Author:   gosmith@adobe.com
Date:     2009-01-12T22:47:10.154251Z

Log Message:
-----------
Simplified how an accessibility class gets hooked into its corresponding component class.

We now do the hooking in the static method enableAccessibility(), which is called by code that is autogenerated by the compiler. Previously this method did nothing and the hooking happened at static initialization time. This allows us to remove the static var accessibilityHooked and the static method hookAccessibility() in each accessibility class.

QE Notes: None
Doc Notes: None
Bugs: None
Reviewer: Deepa and Alex

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ButtonAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ListAccImpl.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/DateFieldAccImpl.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/accessibility/CheckBoxAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/LinkButtonAccImpl.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/RadioButtonAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ComboBaseAccImpl.as</path>
<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/TreeAccImpl.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/DateChooserAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/UIComponentAccProps.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/MenuAccImpl.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/AlertAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ComboBoxAccImpl.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/AccordionHeaderAccImpl.as</path>

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

--- frameworks/projects/mx/src/mx/accessibility/AlertAccImpl.as
+++ frameworks/projects/mx/src/mx/accessibility/AlertAccImpl.as
@@ -23,11 +23,8 @@
 use namespace mx_internal;

 /**
- *  The AlertAccImpl class is the accessibility class for Alert.
- *
- *  @helpid 3030
- *  @tiptext This is the Alert Accessibility Class.
- *  @review
+ *  AlertAccImpl is a subclass of AccessibilityImplementation
+ *  which implements accessibility for the Alert class.
  */
 public class AlertAccImpl extends TitleWindowAccImpl
 {
@@ -35,60 +32,37 @@

 	//--------------------------------------------------------------------------
 	//
-	//  Class initialization
-	//
-	//--------------------------------------------------------------------------
-
-	/**
-	 *  @private
-	 *  Static variable triggering the hookAccessibility() method.
-	 *  This is used for initializing AlertAccImpl class to hook its
-	 *  createAccessibilityImplementation() method to Alert class
-	 *  before it gets called from UIComponent.
-	 */
-	private static var accessibilityHooked:Boolean = hookAccessibility();
-
-	/**
-	 *  @private
-	 *  Static method for swapping the createAccessibilityImplementation()
-	 *  method of Alert with the AlertAccImpl class.
-	 */
-	private static function hookAccessibility():Boolean
+	//  Class methods
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Enables accessibility in the Alert class.
+	 *
+	 *
This method is called by application startup code
+	 *  that is autogenerated by the MXML compiler.
+	 *  Afterwards, when instances of Alert are initialized,
+	 *  their accessibilityImplementation property
+	 *  will be set to an instance of this class.

+	 */
+	public static function enableAccessibility():void
 	{
 		Alert.createAccessibilityImplementation =
 			createAccessibilityImplementation;
-
-		return true;
-	}
-
-	//--------------------------------------------------------------------------
-	//
-	//  Class methods
-	//
-	//--------------------------------------------------------------------------
-
-	/**
-	 *  @private
-	 *  Method for creating the Accessibility class.
-	 *  This method is called from UIComponent.
-	 *  @review
+	}
+
+	/**
+	 *  @private
+	 *  Creates an Alert's AccessibilityImplementation object.
+	 *  This method is called from UIComponent's
+	 *  initializeAccessibility() method.
 	 */
 	mx_internal static function createAccessibilityImplementation(
 								component:UIComponent):void
 	{
 		var titleBar:UIComponent = Alert(component).getTitleBar();
-
 		var titleBarAccImpl:AlertAccImpl = new AlertAccImpl(component);
 		titleBar.accessibilityImplementation = titleBarAccImpl;
-	}
-
-	/**
-	 *  Method call for enabling accessibility for a component.
-	 *  This method is required for the compiler to activate
-	 *  the accessibility classes for a component.
-	 */
-	public static function enableAccessibility():void
-	{
 	}

 	//--------------------------------------------------------------------------
@@ -143,7 +117,6 @@
 	 *  @param childID uint
 	 *
 	 *  @return Name String
-	 *  @review
 	 */
 	override protected function getName(childID:uint):String
 	{


Transferred from the Adobe Open Source Subversion Repository

Revision: 10633
Author:   dloverin@adobe.com
Date:     2009-09-28T13:24:30.559033Z

Log Message:
-----------
Use styleManager instance instead of StyleManager singleton (framework and compiler generated code)

Modified compiler generated style code for the FlexInit class. The style related changes are only available with the -keep option. AST generation is coming later.

Only the framework project is changed here. The other projects are will be changed soon.

QE notes: None.
Doc notes: None.
Bugs:
Reviewer: Alex and Paul
Tests run: checkintests, all Mustella tests(no new failures)
Is noteworthy for integration: no.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ButtonBarButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/HaloBorder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/accordionClasses/AccordionHeader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/utilityClasses/CanvasLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateChooser.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/dragClasses/DragProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ScrollArrowSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/configuration_en.properties</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/CompilerConfiguration.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ProgressIndeterminateSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/DateChooserMonthArrowSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/SliderThumbSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/DividedBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/DragManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ScrollThumbSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridColumn.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/IStyleModule.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/framework/src/mx/containers/Form.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/IStyleManager2.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/PreLink.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Label.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/gen/ClassDefLib.vm</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ProgressTrackSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/TitleBackground.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/NumericStepperDownSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/PopUpButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/ProgrammaticSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/TabSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/textClasses/TextRange.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/LayoutContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/AccordionHeaderSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/CheckBoxIcon.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/NumericStepperUpSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/RadioButtonIcon.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/states/SetStyle.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ComboBoxArrowSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridHeaderBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/FormItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridHeader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/MenuBarBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ProgressBarSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/BusyCursor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/Request.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/MenuBar.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/styles/CSSStyleDeclaration.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Accordion.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/SliderTrackSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleModule.vm</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ScrollTrackSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/TileBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/DataGridHeaderBackgroundSkin.as</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/framework/src/mx/modules/ModuleManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/SetStyleActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleDef.vm</path>

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

--- frameworks/projects/mx/src/mx/skins/halo/ScrollThumbSkin.as
+++ frameworks/projects/mx/src/mx/skins/halo/ScrollThumbSkin.as
@@ -143,7 +143,7 @@
 		var cornerRadius:Number = getStyle("cornerRadius");
 		var fillAlphas:Array = getStyle("fillAlphas");
 		var fillColors:Array = getStyle("fillColors");
-		StyleManager.getColorNames(fillColors);
+        styleManager.getColorNames(fillColors);
 		var highlightAlphas:Array = getStyle("highlightAlphas");
 		var themeColor:uint = getStyle("themeColor");


Transferred from the Adobe Open Source Subversion Repository

Revision: 8386
Author:   srahim@adobe.com
Date:     2009-07-06T19:50:00.014831Z

Log Message:
-----------
ASDoc updates for Spark components

QE Notes: None
Doc Notes: None
Bugs: -
checkintests: passed

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ToggleButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/PopUpAnchor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Spinner.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/components/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/CheckBox.as</path>

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

--- frameworks/projects/spark/src/spark/components/TextInput.as
+++ frameworks/projects/spark/src/spark/components/TextInput.as
@@ -80,6 +80,26 @@
  *  of single-styled text. Can contain alphanumeric data, but
  *  input is interpreted as a String.
  *
+ *
The TextInput control has the following default characteristics:

+ *

+ *

+ *           Characteristic
+ *           Description
+ *

+ *

+ *           Default size
+ *           188 pixels wide by 22 pixels high
+ *

+ *

+ *           Minimum size
+ *           2 pixels wide and 2 pixels high
+ *

+ *

+ *           Maximum size
+ *           10000 pixels wide and 10000 pixels high
+ *

+ *

+ *
  *  @includeExample examples/TextInputExample.mxml
  *
  *  @mxml


Transferred from the Adobe Open Source Subversion Repository

Revision: 4752
Author:   rfrishbe@adobe.com
Date:     2009-01-30T01:54:14.279718Z

Log Message:
-----------
SkinStates metadata change.  Now each skin state is enumerated on its own line with its own metadata ([SkinState("normal")] instead of [SkinStates("normal", "disabled")])

Also changed the builds so that we don't keep unnecessary metadata around anymore at runtime (SkinStates, HostComponent, and States fall into this category).

QE Notes: None
Doc Notes: None
Bugs: SDK-18939
Reviewer: Hans, Glenn
tests: checkintests, mustella SkinnableComponent, FxButton, FxToggleButton, Group, DataGroup

Modified Paths:
--------------
<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/FxTextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxContainerBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxTrackBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4/.actionScriptProperties</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxTextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxToggleButton.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/FxSpinner.as</path>

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

--- frameworks/projects/spark/src/spark/components/TextInput.as
+++ frameworks/projects/spark/src/spark/components/TextInput.as
@@ -42,9 +42,14 @@
 [IconFile("FxTextInput.png")]

 /**
- *  The built-in set of states for the FxTextInput component.
+ *  Normal State
  */
-[SkinStates("normal", "disabled")]
+[SkinState("normal")]
+
+/**
+ *  Disabled State
+ */
+[SkinState("disabled")]

 /**
  *  Documentation is not currently available.


added support for regular expressions

added support for regular expressions

--- WeaveData/src/weave/data/KeySets/ColumnDataFilter.as
+++ WeaveData/src/weave/data/KeySets/ColumnDataFilter.as
@@ -17,13 +17,12 @@
 {
 	import flash.utils.Dictionary;

+	import weave.api.newLinkableChild;
+	import weave.api.registerLinkableChild;
 	import weave.api.core.ILinkableObjectWithNewProperties;
 	import weave.api.data.ColumnMetadata;
 	import weave.api.data.IKeyFilter;
 	import weave.api.data.IQualifiedKey;
-	import weave.api.getSessionState;
-	import weave.api.newLinkableChild;
-	import weave.api.registerLinkableChild;
 	import weave.api.ui.IObjectWithDescription;
 	import weave.core.LinkableBoolean;
 	import weave.core.LinkableVariable;
@@ -37,6 +36,8 @@
 			return lang("Filter for {0}", ColumnUtils.getTitle(column));
 		}

+		public static const REGEXP:String = 'regexp';
+
 		public const enabled:LinkableBoolean = registerLinkableChild(this, new LinkableBoolean(true), _cacheVars);
 		public const includeMissingKeyTypes:LinkableBoolean = registerLinkableChild(this, new LinkableBoolean(true), _cacheVars);
 		public const column:DynamicColumn = newLinkableChild(this, DynamicColumn, _resetKeyLookup);
@@ -54,6 +55,7 @@
 		private var _stringLookup:Object;
 		private var _numberLookup:Object;
 		private var _ranges:Array;
+		private var _regexps:Array;
 		private var _keyType:String;
 		private var _keyLookup:Dictionary = new Dictionary(true);

@@ -67,12 +69,14 @@
 			var state:Array = values.getSessionState() as Array;
 			var value:*;
 			var range:Range;
+			var regexp:RegExp;

 			_keyType = column.getMetadata(ColumnMetadata.KEY_TYPE);
 			_keyLookup = new Dictionary(true);
 			_numberLookup = null;
 			_stringLookup = null;
 			_ranges = null;
+			_regexps = null;

 			for each (value in state)
 			{
@@ -88,7 +92,7 @@
 						_stringLookup = {};
 					_stringLookup[value] = true;
 				}
-				else
+				else if (Range.isRange(value))
 				{
 					try
 					{
@@ -102,6 +106,13 @@
 						// ignore this value
 					}
 				}
+				else if (isRegExp(value))
+				{
+					if (!_regexps)
+						_regexps = [];
+					regexp = new RegExp(value[REGEXP]);
+					_regexps.push(regexp);
+				}
 			}

 			// last step - canonicalize session states containing ranges
@@ -109,10 +120,20 @@
 			{
 				var newState:Array = [];
 				for each (value in state)
+				{
 					if (value is Number || value is String)
 						newState.push(value);
+				}
 				for each (range in _ranges)
+				{
 					newState.push(range.getState());
+				}
+				for each (regexp in _regexps)
+				{
+					value = {};
+					value[REGEXP] = regexp.source;
+					newState.push(value);
+				}
 				values.setSessionState(newState);
 			}
 		}
@@ -123,45 +144,54 @@
 				return true;

 			var number:Number;
-			var cached:* = _keyLookup[key];
-			if (cached === undefined)
-			{
-				cached = false;
+			var string:String;
+			var result:* = _keyLookup[key];
+			if (result === undefined)
+			{
+				result = false;
+
+				if (_numberLookup || _ranges)
+					number = column.getValueFromKey(key, Number);
+				if (_stringLookup || _regexps)
+					string = column.getValueFromKey(key, String);

 				if (_numberLookup)
-				{
-					number = column.getValueFromKey(key, Number);
-					cached = _numberLookup.hasOwnProperty(number);
-				}
-
-				if (!cached && _stringLookup)
-				{
-					var string:String = column.getValueFromKey(key, String);
-					cached = _stringLookup.hasOwnProperty(string);
-				}
-
-				if (!cached && _includeMissingKeyTypes && key.keyType != _keyType)
-					cached = true;
-
-				if (!cached)
-				{
-					// only retrieve number if it wasn't retrieved above
-					if (!_numberLookup)
-						number = column.getValueFromKey(key, Number);
-
+					result = _numberLookup.hasOwnProperty(number);
+
+				if (!result && _stringLookup)
+					result = _stringLookup.hasOwnProperty(string);
+
+				if (!result && _includeMissingKeyTypes && key.keyType != _keyType)
+					result = true;
+
+				if (!result && _ranges)
+				{
 					for each (var range:Range in _ranges)
 					{
 						if (range.minInclusive ? number < range.min : number <= range.min)
 							continue;
 						if (range.maxInclusive ? number > range.max : number >= range.max)
 							continue;
-						cached = true;
+						result = true;
 						break;
 					}
 				}
-				_keyLookup[key] = cached;
-			}
-			return cached;
+
+				if (!result && _regexps)
+				{
+					for each (var regexp:RegExp in _regexps)
+					{
+						if (regexp.test(string))
+						{
+							result = true;
+							break;
+						}
+					}
+				}
+
+				_keyLookup[key] = result;
+			}
+			return result;
 		}

 		public function stringifyValues():Array
@@ -180,13 +210,24 @@
 			{
 				return ColumnUtils.deriveStringFromNumber(column, value);
 			}
-			else
+			else if (Range.isRange(value))
 			{
 				var range:Range = new Range(value);
 				var leftBracket:String = range.minInclusive ? "[" : "(";
 				var rightBracket:String = range.maxInclusive ? "]" : ")";
 				return leftBracket + stringifyValue(range.min) + ", " + stringifyValue(range.max) + rightBracket;
 			}
+			else if (isRegExp(value))
+			{
+				return new RegExp(value[REGEXP]).toString();
+			}
+
+			return null;
+		}
+
+		private static function isRegExp(obj:Object):Boolean
+		{
+			return obj != null && typeof obj == 'object' && obj.hasOwnProperty(REGEXP);
 		}

 		private var _deprecatedRangeState:Object;
@@ -212,6 +253,25 @@

 internal class Range
 {
+	public static function isRange(obj:Object):Boolean
+	{
+		var count:int = 0;
+		var prop:String;
+
+		for each (prop in [MIN, MIN_INCLUSIVE, MIN_EXCLUSIVE])
+			if (obj.hasOwnProperty(prop))
+				count++;
+		if (!count)
+			return false;
+
+		count = 0;
+		for each (prop in [MAX, MAX_INCLUSIVE, MAX_EXCLUSIVE])
+			if (obj.hasOwnProperty(prop))
+				count++;
+
+		return count > 0;
+	}
+
 	public static const MIN:String = 'min';
 	public static const MIN_INCLUSIVE:String = 'minInclusive';
 	public static const MIN_EXCLUSIVE:String = 'minExclusive';


removed manual dispose()

removed manual dispose()

--- src/org/openvv/OVVAsset.as
+++ src/org/openvv/OVVAsset.as
@@ -59,8 +59,6 @@
       _impressionTimer = new Timer(IMPRESSION_DELAY);
       _impressionTimer.addEventListener(TimerEvent.TIMER, timerHandler);
       _impressionTimer.start();
-
-	  setTimeout(dispose, 5 * 1000);
     }

 	public function dispose():void


add info about seeking_position to SEEK_STATE event

--- src/org/mangui/hls/HLSJS.as
+++ src/org/mangui/hls/HLSJS.as
@@ -71,6 +71,7 @@
             hls.addEventListener(HLSEvent.MANIFEST_LOADING,
 	        on_manifest_loading);
             hls.addEventListener(HLSEvent.PLAYBACK_STATE, on_playback_state);
+            hls.addEventListener(HLSEvent.SEEK_STATE, on_seek_state);
             // notify js events
             hls.addEventListener(HLSEvent.MANIFEST_LOADING, on_event);
             hls.addEventListener(HLSEvent.MANIFEST_PARSED, on_event);
@@ -96,7 +97,6 @@
             hls.addEventListener(HLSEvent.ERROR, on_event);
             hls.addEventListener(HLSEvent.MEDIA_TIME, on_event);
             hls.addEventListener(HLSEvent.PLAYBACK_STATE, on_event);
-            hls.addEventListener(HLSEvent.SEEK_STATE, on_event);
             hls.addEventListener(HLSEvent.STREAM_TYPE_DID_CHANGE, on_event);
             hls.addEventListener(HLSEvent.PLAYBACK_COMPLETE, on_event);
             hls.addEventListener(HLSEvent.PLAYLIST_DURATION_UPDATED,
@@ -144,6 +144,11 @@
 	private static function on_level_loaded(e: HLSEvent): void
 	{
             JSAPI.postMessage('flashls.'+e.type, {level: level_to_object(_hls.levels[e.loadMetrics.level])});
+	}
+
+	private static function on_seek_state(e: HLSEvent): void
+	{
+            JSAPI.postMessage('flashls.'+e.type, {state: e.state, seek_pos: _hls.position});
 	}

         private static function on_event(e:HLSEvent):void{


Just as clear without this const.

Just as clear without this const.

git-svn-id: b675b909355d5cf946977f44a8ec5a6ceb3782e4@713 ed5b42cb-e716-0410-a449-f6a68f950b19

--- src/as/com/threerings/flash/media/Mp3AudioPlayer.as
+++ src/as/com/threerings/flash/media/Mp3AudioPlayer.as
@@ -172,8 +172,7 @@
     {
         const needTimer :Boolean = (_state == MediaPlayerCodes.STATE_PLAYING) &&
             hasEventListener(MediaPlayerCodes.POSITION);
-        const isRunning :Boolean = _positionChecker.running;
-        if (needTimer != isRunning) {
+        if (needTimer != _positionChecker.running) {
             if (needTimer) {
                 _positionChecker.start();
             } else {


Wow, when you tell a sound to loop, the position just continues
to increase, up past the duration. Seeking in those mode also
causes it to get wiggy and freak out. So don't have flash loop it,
but just loop it ourselves by autorewinding and playing again.
Also, just autorewind and pause if not looping, which I had
wanted to do anyway.

git-svn-id: b675b909355d5cf946977f44a8ec5a6ceb3782e4@709 ed5b42cb-e716-0410-a449-f6a68f950b19

--- src/as/com/threerings/flash/media/Mp3AudioPlayer.as
+++ src/as/com/threerings/flash/media/Mp3AudioPlayer.as
@@ -42,9 +42,9 @@
         _isComplete = false;
         _lastPosition = 0;
         _sound = new Sound();
-        _sound.addEventListener(Event.ID3, handleId3); // TODO
+        _sound.addEventListener(Event.ID3, handleId3);
         _sound.addEventListener(IOErrorEvent.IO_ERROR, handleError);
-        _sound.addEventListener(Event.COMPLETE, handleSoundComplete);
+        _sound.addEventListener(Event.COMPLETE, handleLoadingComplete);
         _sound.load(new URLRequest(url), new SoundLoaderContext(1000, true));
         play();
     }
@@ -66,7 +66,7 @@
     // from AudioPlayer
     public function pause () :void
     {
-        handlePositionCheck(null); // update _lastPosition and dispatch an event
+        handlePositionCheck(); // update _lastPosition and dispatch an event
         pause0();
         updateState(MediaPlayerCodes.STATE_PAUSED);
     }
@@ -86,7 +86,8 @@
         if (_chan == null) {
             return _lastPosition;
         }
-        return _chan.position / 1000;
+        // we mod by the duration because when we loop the position is ever-growing. hahah!
+        return (_chan.position / 1000);
     }

     // from AudioPlayer
@@ -98,7 +99,7 @@
             play0();

         } else {
-            handlePositionCheck(null);
+            handlePositionCheck();
         }
     }

@@ -126,6 +127,7 @@
     // from AudioPlayer
     public function unload () :void
     {
+        pause0();
         if (_sound != null) {
             try {
                 _sound.close();
@@ -133,7 +135,6 @@
                 // ignore
             }
         }
-        pause0();
         _positionChecker.reset();
         _lastPosition = NaN;
     }
@@ -144,9 +145,11 @@
     protected function play0 () :void
     {
         pause0();
-        _chan = _sound.play(_lastPosition * 1000, _loop ? int.MAX_VALUE : 0,
-            new SoundTransform(_volume));
-        if (_chan == null) {
+        _chan = _sound.play(_lastPosition * 1000, 0, new SoundTransform(_volume));
+        if (_chan != null) {
+            _chan.addEventListener(Event.SOUND_COMPLETE, handlePlaybackComplete);
+
+        } else {
             Log.getLog(this).warning("All sound channels are in use; " +
                 "unable to play sound.");
         }
@@ -163,7 +166,7 @@
         }
     }

-    protected function handlePositionCheck (event :TimerEvent) :void
+    protected function handlePositionCheck (event :TimerEvent = null) :void
     {
         if (!_isComplete) {
             dispatchEvent(new ValueEvent(MediaPlayerCodes.DURATION, getDuration()));
@@ -194,10 +197,22 @@

     /**
      */
-    protected function handleSoundComplete (event :Event) :void
-    {
-        handlePositionCheck(null); // also updates duration
+    protected function handleLoadingComplete (event :Event) :void
+    {
+        handlePositionCheck(); // also updates duration
         _isComplete = true;
+    }
+
+    protected function handlePlaybackComplete (event :Event) :void
+    {
+        _lastPosition = 0;
+        pause0();
+        handlePositionCheck();
+        if (_loop) {
+            play0();
+        } else {
+            updateState(MediaPlayerCodes.STATE_PAUSED);
+        }
     }

     protected function handleError (event :IOErrorEvent) :void


Transferred from the Adobe Open Source Subversion Repository

Revision: 16545
Author:   chiedozi@adobe.com
Date:     2010-06-14T03:42:53.505665Z

Log Message:
-----------
Added MobileApplication, ViewNavigator, PersistenceManager and ViewTransition prototypes to mobile components swc.

mobilecomponents and mobiletheme eclipse projects now link to airglobal.swc instead of playerglobal.swc so that MobileApplication can respond to StageOrientation and NativeApplication events.

QE notes:
Doc notes:
Bugs:
Reviewer:
Tests run: checkintests

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/manifest.xml</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/View.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/.actionScriptProperties</path>
<path kind="file" action="A">/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/mobiletheme/defaults.css</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/core/managers/PersistenceManager.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/effects/ViewTransition.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/MobileThemeClasses.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/core/managers/IPersistenceManager.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/effects/IViewTransition.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/MobileApplication.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewData.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/.actionScriptProperties</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewNavigatorSkin.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/effects/SlideViewTransition.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ActionBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/events/FlexEvent.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorSection.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/events/ViewNavigatorEvent.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/MobileApplicationSkin.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/ActionBar.as
+++ frameworks/projects/mobilecomponents/src/spark/components/ActionBar.as
@@ -0,0 +1,117 @@
+package spark.components
+{
+    import spark.components.supportClasses.SkinnableComponent;
+    import spark.events.ViewNavigatorEvent;
+
+    public class ActionBar extends SkinnableComponent
+    {
+        public function ActionBar()
+        {
+            super();
+
+            title = "Title";
+        }
+
+
+        [SkinPart(required="false")]
+        public var titleField:Label;
+
+        [SkinPart(required="false")]
+        public var contentGroup:Group;
+
+        private var _titleChanged:Boolean = false;
+
+        // dataProvider
+        private var _dataProvider:ViewNavigator;
+        public function get dataProvider():ViewNavigator
+        {
+            return _dataProvider;
+        }
+        public function set dataProvider(value:ViewNavigator):void
+        {
+            if (_dataProvider)
+            {
+                _dataProvider.removeEventListener(ViewNavigatorEvent.VIEW_ADD, viewChanged);
+            }
+
+            _dataProvider = value;
+            _dataProvider.addEventListener(ViewNavigatorEvent.VIEW_ADD, viewChanged);
+        }
+
+        // title
+        private var _title:String;
+        public function get title():String
+        {
+            return _title;
+        }
+        public function set title(value:String):void
+        {
+            setTitle(value, true);
+        }
+        public function setTitle(value:String, animate:Boolean):void
+        {
+            _title = value;
+            _titleChanged = true;
+
+            invalidateProperties();
+        }
+
+        // titleContent
+        private var _titleContent:Array;
+        public function get titleContent():Array
+        {
+            return _titleContent;
+        }
+        public function set titleContent(value:Array):void
+        {
+        }
+        public function setTitleContent(value:Array, animate:Boolean):void
+        {
+        }
+
+        protected function viewChanged(event:ViewNavigatorEvent):void
+        {
+            if (event.view)
+                title = event.view.title;
+            else
+                title = "";
+        }
+
+
+        override protected function commitProperties():void
+        {
+            super.commitProperties();
+
+            if (titleField && _titleChanged)
+            {
+                titleField.text = _title;
+                titleField.includeInLayout = (_title != "" && _title != null);
+            }
+        }
+
+        override protected function partAdded(partName:String, instance:Object):void
+        {
+            super.partAdded(partName, instance);
+
+            if (instance == contentGroup)
+            {
+                if (_titleContent == null)
+                {
+                    if (titleField != null)
+                        contentGroup.mxmlContent = [titleField];
+                }
+                else
+                {
+                    contentGroup.mxmlContent = _titleContent;
+                }
+
+                _titleChanged = true;
+            }
+            else if (instance == titleField)
+            {
+                if (contentGroup && _titleContent == null)
+                    contentGroup.mxmlContent = [titleField];
+            }
+        }
+    }
+}


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

--- frameworks/projects/rpc/src/mx/messaging/channels/SecureHTTPChannel.as
+++ frameworks/projects/rpc/src/mx/messaging/channels/SecureHTTPChannel.as
@@ -1,13 +1,3 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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.channels
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 22606
Author:   mhorn@adobe.com
Date:     2011-09-16T15:41:49.539150Z

Log Message:
-----------
asdoc updates

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/SpinnerListScrollerSkin.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/SpinnerListSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/SpinnerListContainerSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/SpinnerListContainer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/SpinnerListItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/collections/NumericDataProvider.as</path>

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

--- frameworks/projects/spark/src/spark/collections/NumericDataProvider.as
+++ frameworks/projects/spark/src/spark/collections/NumericDataProvider.as
@@ -23,21 +23,31 @@
  *  This IList class generates items that are a sequential series of numbers.
  *  The numbers range between the minimum and maximum
  *  properties. The stepSize property defines the difference between
- *  an item and the next item.
+ *  an item and the next item.
  *
- *  The advantage of this class is that the item values are calculated on demand,
- *  instead of stored.
+ *
This class is used primarily as a data provider for the SpinnerList control; for example:

+ *

+ * <s:SpinnerList>
+ *   <s:dataProvider>
+ *     <s:NumericDataProvider minimum="0" maximum="23" stepSize="1"/>
+ *   </s:dataProvider>
+ * </s:SpinnerList>
+ *

  *
- *  Since the values are calculated instead of stored, the addItem, addItemAt,
- *  removeAll, removeItemAt, itemUpdated and setItemAt IList functions are not
- *  supported.
+ *
The advantage of this class is that the item values are calculated on demand,
+ *  instead of stored.

+ *
+ *
Because the values are calculated instead of stored, the addItem(), addItemAt(),
+ *  removeAll(), removeItemAt(), itemUpdated() and setItemAt() IList methods are not
+ *  supported.

  *
+ *  @see spark.components.SpinnerList
+ *  @see mx.collections.IList
+ *
  *  @langversion 3.0
  *  @playerversion Flash 11
  *  @playerversion AIR 3
  *  @productversion Flex 4.6
- *
- *  @see
  */
 public class NumericDataProvider extends OnDemandEventDispatcher implements IList
 {
@@ -84,7 +94,12 @@
     //  length
     //----------------------------------
     /**
-     *  @inherit
+     *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 11
+     *  @playerversion AIR 3
+     *  @productversion Flex 4.6
      */
     public function get length():int
     {
@@ -115,6 +130,9 @@
         return _maximum;
     }

+    /**
+     *  @private
+     */
     public function set maximum(value:Number):void
     {
         if (_maximum == value)
@@ -209,7 +227,7 @@
     //----------------------------------------------------------------------------------------------

     /**
-     *  This function is not supported
+     *  This function is not supported.
      *
      *  @langversion 3.0
      *  @playerversion Flash 11
@@ -224,7 +242,7 @@
     }

     /**
-     *  This function is not supported
+     *  This function is not supported.
      *
      *  @langversion 3.0
      *  @playerversion Flash 11
@@ -239,7 +257,12 @@
     }

     /**
-     *  @inherit
+     *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 11
+     *  @playerversion AIR 3
+     *  @productversion Flex 4.6
      */
     public function getItemAt(index:int, prefetch:int=0):Object
     {
@@ -279,7 +302,7 @@
     }

     /**
-     *  @inherit
+     *  @inheritDoc
      */
     public function getItemIndex(item:Object):int
     {
@@ -292,7 +315,7 @@
     }

     /**
-     *  This function is not supported
+     *  This function is not supported.
      *
      *  @langversion 3.0
      *  @playerversion Flash 11
@@ -307,7 +330,7 @@
     }

     /**
-     *  This function is not supported
+     *  This function is not supported.
      *
      *  @langversion 3.0
      *  @playerversion Flash 11
@@ -322,7 +345,7 @@
     }

     /**
-     *  This function is not supported
+     *  This function is not supported.
      *
      *  @langversion 3.0
      *  @playerversion Flash 11
@@ -338,7 +361,7 @@
     }

     /**
-     *  This function is not supported
+     *  This function is not supported.
      *
      *  @langversion 3.0
      *  @playerversion Flash 11
@@ -354,7 +377,12 @@
     }

     /**
-     *  @inherit
+     *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 11
+     *  @playerversion AIR 3
+     *  @productversion Flex 4.6
      */
     public function toArray():Array
     {