Updated code formatting to be more in keeping with other flashls classes

--- src/org/mangui/hls/loader/SubtitlesFragmentLoader.as
+++ src/org/mangui/hls/loader/SubtitlesFragmentLoader.as
@@ -1,8 +1,8 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-package org.mangui.hls.loader
-{
+package org.mangui.hls.loader {
+
 	import flash.events.ErrorEvent;
 	import flash.events.Event;
 	import flash.events.IOErrorEvent;
@@ -23,8 +23,7 @@
 	import org.mangui.hls.model.Subtitles;
 	import org.mangui.hls.utils.WebVTTParser;

-	CONFIG::LOGGING
-	{
+	CONFIG::LOGGING {
 		import org.mangui.hls.utils.Log;
 	}

@@ -32,8 +31,8 @@
 	 * Subtitles fragment loader and sequencer
 	 * @author	Neil Rackett
 	 */
-	public class SubtitlesFragmentLoader
-	{
+	public class SubtitlesFragmentLoader {
+
 		protected var _hls:HLS;
 		protected var _loader:URLLoader;
 		protected var _fragments:Vector.<Fragment>;
@@ -47,8 +46,8 @@
 		protected var _retryTimeout:uint;
 		protected var _emptySubtitles:Subtitles;

-		public function SubtitlesFragmentLoader(hls:HLS)
-		{
+		public function SubtitlesFragmentLoader(hls:HLS) {
+
 			_hls = hls;
 			_hls.addEventListener(HLSEvent.SUBTITLES_TRACK_SWITCH, subtitlesTrackSwitchHandler);
 			_hls.addEventListener(HLSEvent.SUBTITLES_LEVEL_LOADED, subtitlesLevelLoadedHandler);
@@ -67,8 +66,8 @@
 			_emptySubtitles = new Subtitles(-1, -1, '');
 		}

-		public function dispose():void
-		{
+		public function dispose():void {
+
 			stop();

 			_hls.removeEventListener(HLSEvent.SUBTITLES_TRACK_SWITCH, subtitlesTrackSwitchHandler);
@@ -90,33 +89,32 @@
 		/**
 		 * The currently displayed subtitles
 		 */
-		public function get currentSubtitles():Subtitles
-		{
+		public function get currentSubtitles():Subtitles {
 			return _currentSubtitles;
 		}

 		/**
 		 * Stop any currently loading subtitles
 		 */
-		public function stop():void
-		{
+		public function stop():void {
+
 			if (_currentSubtitles)
 			{
 				_currentSubtitles = null;
 				_hls.dispatchEvent(new HLSEvent(HLSEvent.SUBTITLES_CHANGE, _emptySubtitles));
 			}

-			try { _loader.close(); }
-			catch (e:Error) {};
+			try {
+				_loader.close();
+			} catch (e:Error) {};
 		}

 		/**
 		 * Handle the user switching subtitles track
 		 */
-		protected function subtitlesTrackSwitchHandler(event:HLSEvent):void
-		{
-			CONFIG::LOGGING
-			{
+		protected function subtitlesTrackSwitchHandler(event:HLSEvent):void {
+
+			CONFIG::LOGGING {
 				Log.debug("Switching to subtitles track "+event.subtitlesTrack);
 			}

@@ -126,10 +124,8 @@
 			_seqIndex = 0;
 		}

-		protected function playbackStateHandler(event:HLSEvent):void
-		{
-			if (event.state == HLSPlayStates.IDLE)
-			{
+		protected function playbackStateHandler(event:HLSEvent):void {
+			if (event.state == HLSPlayStates.IDLE) {
 				stop();
 			}
 		}
@@ -137,8 +133,7 @@
 		/**
 		 * Preload all of the subtitles listed in the loaded subtitles level definitions
 		 */
-		protected function subtitlesLevelLoadedHandler(event:HLSEvent):void
-		{
+		protected function subtitlesLevelLoadedHandler(event:HLSEvent):void {
 			_fragments = _hls.subtitlesTracks[_hls.subtitlesTrack].level.fragments;
 			loadNextFragment();
 		}
@@ -149,28 +144,24 @@
 		 * Live subtitles are assumed to contain times reletive to the current
 		 * sequence, and VOD content relative to the entire video duration
 		 */
-		protected function fragmentPlayingHandler(event:HLSEvent):void
-		{
+		protected function fragmentPlayingHandler(event:HLSEvent):void {
 			// If subtitles are disabled, there's nothing to do
 			if (_hls.subtitlesTrack == -1) return;

-			if (_hls.type == HLSTypes.LIVE)
-			{
+			if (_hls.type == HLSTypes.LIVE) {
+
 				_currentSubtitles = _emptySubtitles;
 				_seqNum = event.playMetrics.seqnum;
 				_seqStartPosition = _hls.position;
 				_seqIndex = 0;

-				try
-				{
+				try {
 					var targetDuration:Number = _hls.subtitlesTracks[_hls.subtitlesTrack].level.targetduration
 					var dvrWindowDuration:Number = _hls.liveSlidingMain;
 					var firstSeqNum:Number = _seqNum - (dvrWindowDuration/targetDuration);

-					for (var seqNum:* in _seqSubs)
-					{
-						if (seqNum is Number && seqNum < firstSeqNum)
-						{
+					for (var seqNum:* in _seqSubs) {
+						if (seqNum is Number && seqNum < firstSeqNum) {
 							delete _seqSubs[seqNum];
 						}
 					}
@@ -188,8 +179,7 @@
 		 * The current position relative to the start of the current sequence
 		 * (live) or to the entire video (VOD)
 		 */
-		protected function get seqPosition():Number
-		{
+		protected function get seqPosition():Number {
 			return _hls.position - _seqStartPosition;
 		}

@@ -197,8 +187,7 @@
 		 * Match subtitles to the current playhead position and dispatch
 		 * events as appropriate
 		 */
-		protected function mediaTimeHandler(event:HLSEvent):void
-		{
+		protected function mediaTimeHandler(event:HLSEvent):void {
 			// If subtitles are disabled, there's nothing to do
 			if (_hls.subtitlesTrack == -1) return;

@@ -210,25 +199,22 @@
 			// Get the subtitles list for the current sequence (always 0 for VOD)
 			var subs:Vector.<Subtitles> = _seqSubs[_seqNum];

-			if (subs)
-			{
+			if (subs) {
 				var mt:HLSMediatime = event.mediatime;
 				var matchingSubtitles:Subtitles = _emptySubtitles;
 				var i:uint;
 				var length:uint = subs.length;

-				for (i=_seqIndex; i<length; ++i)
-				{
+				for (i=_seqIndex; i<length; ++i) {
+
 					var subtitles:Subtitles = subs[i];

 					// There's no point searching more that we need to!
-					if (subtitles.startPosition > position)
-					{
+					if (subtitles.startPosition > position) {
 						break;
 					}

-					if (isCurrent(subtitles, position))
-					{
+					if (isCurrent(subtitles, position)) {
 						matchingSubtitles = subtitles;
 						break;
 					}
@@ -236,15 +222,13 @@

 				// To keep the search for the next subtitles as inexpensive as possible
 				// for big VOD, we start the next search at the previous jump off point
-				if (_hls.type == HLSTypes.VOD)
-				{
+				if (_hls.type == HLSTypes.VOD) {
 					_seqIndex = i;
 				}

-				if (matchingSubtitles != _currentSubtitles)
-				{
-					CONFIG::LOGGING
-					{
+				if (matchingSubtitles != _currentSubtitles) {
+
+					CONFIG::LOGGING {
 						Log.debug("Changing subtitles to: "+matchingSubtitles);
 					}

@@ -257,8 +241,7 @@
 		/**
 		 * Are the specified subtitles the correct ones for the specified position?
 		 */
-		protected function isCurrent(subtitles:Subtitles, position:Number):Boolean
-		{
+		protected function isCurrent(subtitles:Subtitles, position:Number):Boolean {
 			return subtitles
 				&& subtitles.startPosition <= position
 				&& subtitles.endPosition >= position
@@ -267,27 +250,23 @@
 		/**
 		 * When the media seeks, we reset the index from which we look for the next subtitles
 		 */
-		protected function seekStateHandler(event:Event):void
-		{
+		protected function seekStateHandler(event:Event):void {
 			_seqIndex = 0;
 		}

 		/**
 		 * Load the next subtitles fragment (if it hasn't been loaded already)
 		 */
-		protected function loadNextFragment():void
-		{
+		protected function loadNextFragment():void {
+
 			if (!_fragments || !_fragments.length) return;

 			_remainingRetries = HLSSettings.fragmentLoadMaxRetry;
 			_fragment = _fragments.shift();

-			if (!_seqSubs[_fragment.seqnum])
-			{
+			if (!_seqSubs[_fragment.seqnum]) {
 				loadFragment();
-			}
-			else
-			{
+			} else {
 				loadNextFragment();
 			}
 		}
@@ -295,8 +274,7 @@
 		/**
 		 * The load operation was separated from loadNextFragment() to enable retries
 		 */
-		protected function loadFragment():void
-		{
+		protected function loadFragment():void {
 			clearTimeout(_retryTimeout);
 			_loader.load(new URLRequest(_fragment.url));
 		}
@@ -304,22 +282,18 @@
 		/**
 		 * Parse the loaded WebVTT subtitles
 		 */
-		protected function loader_completeHandler(event:Event):void
-		{
+		protected function loader_completeHandler(event:Event):void {
+
 			var parsed:Vector.<Subtitles> = WebVTTParser.parse(_loader.data);

-			if (_hls.type == HLSTypes.LIVE)
-			{
+			if (_hls.type == HLSTypes.LIVE) {
 				_seqSubs[_fragment.seqnum] = parsed;
-			}
-			else
-			{
+			} else {
 				_seqSubs[_fragment.seqnum] = true;
 				_seqSubs[0] = (_seqSubs[0] is Vector.<Subtitles> ? _seqSubs[0] : new Vector.<Subtitles>).concat(parsed);
 			}

-			CONFIG::LOGGING
-			{
+			CONFIG::LOGGING {
 				Log.debug("Loaded "+parsed.length+" subtitles from "+_fragment.url.split("/").pop()+":\n"+parsed.join("\n"));
 			}

@@ -329,23 +303,19 @@
 		/**
 		 * If the subtitles fail to load, give up and load the next subtitles fragment
 		 */
-		protected function loader_errorHandler(event:ErrorEvent):void
-		{
-			CONFIG::LOGGING
-			{
+		protected function loader_errorHandler(event:ErrorEvent):void {
+
+			CONFIG::LOGGING {
 				Log.error("Error "+event.errorID+" while loading "+_fragment.url+": "+event.text);
 				Log.error(_remainingRetries+" retries remaining");
 			}

 			// We only wait 1s to retry because if we waited any longer the playhead will probably
 			// have moved past the position where these subtitles were supposed to be used
-			if (_remainingRetries--)
-			{
+			if (_remainingRetries--) {
 				clearTimeout(_retryTimeout);
 				_retryTimeout = setTimeout(loadFragment, 1000);
-			}
-			else
-			{
+			} else {
 				loadNextFragment();
 			}
 		}


fix TorusGeometry to be unit sized by default

--- src/aerys/minko/render/geometry/primitive/TorusGeometry.as
+++ src/aerys/minko/render/geometry/primitive/TorusGeometry.as
@@ -20,10 +20,10 @@
 		private var _segmentsT	: uint;
 		private var _arc		: Number;

-		public function TorusGeometry(radius				: Number	= 100.,
-									  tube					: Number	= 40.,
-									  segmentsR				: uint		= 8,
-									  segmentsT				: uint		= 6,
+		public function TorusGeometry(radius				: Number	= .375,
+									  tube					: Number	= .125,
+									  segmentsR				: uint		= 10,
+									  segmentsT				: uint		= 8,
 									  arc					: Number	= Math.PI * 2.,
 									  withUVs				: Boolean	= true,
 									  withNormals			: Boolean	= true,


null gets passed in when reverting states

--- frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/models/TextModel.as
+++ frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/models/TextModel.as
@@ -86,6 +86,8 @@
          */
 		public function set text(value:String):void
 		{
+            if (value == null)
+                value = "";
 			if (value != _text)
 			{
 				_text = value;


Fix bug where syncFound was flagged as false incorrectly

This was causing byte-level sync issues with throttled (and potentially
other) streams

--- HLSPlugin/src/org/denivip/osmf/net/httpstreaming/hls/HTTPStreamingMP2TSFileHandler.as
+++ HLSPlugin/src/org/denivip/osmf/net/httpstreaming/hls/HTTPStreamingMP2TSFileHandler.as
@@ -117,7 +117,6 @@
 				}
 				else
 				{
-					_syncFound = false;
 					var packet:ByteArray = new ByteArray();

 					if (_key) {
@@ -147,6 +146,7 @@
 						input.readBytes(packet, 0, 187);
 					}

+					_syncFound = false;
 					var result:ByteArray = processPacket(packet);
 					if (result !== null) {
 						output.writeBytes(result);


Transferred from the Adobe Open Source Subversion Repository

Revision: 19851
Author:   mcho@adobe.com
Date:     2011-01-20T23:07:11.305461Z

Log Message:
-----------
More precise text alignment for mobile components

QE notes: Components with tend to be narrower and shorter for the View Menu.  Must update baselines that use x, y, width, height.
Doc notes: None
Bugs:
Reviewer: Ryan, Jason Szeto, Jason SJ, Glenn
Tests run:
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableTextField.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/ViewMenuItemSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/MobileSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/IconItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/TabbedViewNavigatorButtonBarButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/TextSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/LabelItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonSkin.as</path>

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/TextSkinBase.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/TextSkinBase.as
@@ -118,6 +118,7 @@
             textDisplay = StyleableTextField(createInFontContext(StyleableTextField));
             textDisplay.styleName = this;
             textDisplay.editable = true;
+			textDisplay.useTightTextBounds = false;
             addChild(textDisplay);
         }

@@ -134,6 +135,7 @@
         prompt.styleName = this;
         prompt.editable = false;
         prompt.mouseEnabled = false;
+		prompt.useTightTextBounds = false;

         return prompt;
     }
@@ -308,6 +310,6 @@
         }

         invalidateDisplayList();
-    }
+    }
 }
 }


Fix perms

Fix perms


move scratchEscapePositions var inside unescapeStream method

--- src/org/mangui/hls/demux/Nalu.as
+++ src/org/mangui/hls/demux/Nalu.as
@@ -12,8 +12,6 @@
     /** Constants and utilities for the H264 video format. **/
     public class Nalu {

-		private static var scratchEscapePositions:Array = new Array(10);
-
         private static var _audNalu : ByteArray;
         // static initializer
         {
@@ -144,7 +142,8 @@

 		public static function unescapeStream(data : ByteArray, position: int,limit: uint):int {
 			var scratchEscapeCount:int = 0;
-
+			var scratchEscapePositions:Array = new Array(10);
+
 			while (position < limit) {
 				position = findNextUnescapeIndex(data, position, limit);
 				if (position < limit) {


FLVTag : declare as const

FLVTag : declare as const

--- src/org/mangui/hls/flv/FLVTag.as
+++ src/org/mangui/hls/flv/FLVTag.as
@@ -21,9 +21,9 @@
         /** metadata Type ID. **/
         public static const METADATA : int = 6;
         /* FLV TAG TYPE */
-        private static var TAG_TYPE_AUDIO : int = 8;
-        private static var TAG_TYPE_VIDEO : int = 9;
-        private static var TAG_TYPE_SCRIPT : int = 18;
+        private static const TAG_TYPE_AUDIO : int = 8;
+        private static const TAG_TYPE_VIDEO : int = 9;
+        private static const TAG_TYPE_SCRIPT : int = 18;
         /** Is this a keyframe. **/
         public var keyframe : Boolean;
         /** Array with data pointers. **/


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

--- frameworks/projects/advancedgrids/src/mx/olap/IOLAPTuple.as
+++ frameworks/projects/advancedgrids/src/mx/olap/IOLAPTuple.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2009 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: 23246
Author:   cframpto@adobe.com
Date:     2011-12-20T17:40:08.069454Z

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

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

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

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

 package mx.olap
 {


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

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

 package mx.utils
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 8
Author:   open-source-svn-admin@adobe.com
Date:     2007-12-15T01:49:31.087529Z

Log Message:
-----------
The beginning of the open-source Flex SDK.

Populated the flex/sdk/trunk directory with an open-source subset of files from //depot/flex/sdk/...@191097 in the Faramir Perforce server. This changelist is a bit past the 3.0rc0 build.

The Ant scripts will not successfully build yet. They need to be adapted to the open-source subset.

Modified Paths:
--------------
2532 paths were modified

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

--- frameworks/projects/mx/src/mx/skins/halo/SwatchPanelSkin.as
+++ frameworks/projects/mx/src/mx/skins/halo/SwatchPanelSkin.as
@@ -0,0 +1,95 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2004-2006 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.skins.halo
+{
+
+import mx.skins.Border;
+
+/**
+ *  The skin for the border of a SwatchPanel.
+ */
+public class SwatchPanelSkin extends Border
+{
+    include "../../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+	 *  Constructor.
+     */
+    public function SwatchPanelSkin()
+    {
+        super();
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+	override protected function updateDisplayList(w:Number, h:Number):void
+    {
+		super.updateDisplayList(w, h);
+
+        if (name == "swatchPanelBorder")
+        {
+            var backgroundColor:uint = getStyle("backgroundColor");
+				// used for darker color in the gradient
+
+            var borderColor:uint = getStyle("borderColor");
+				// used for outer border top
+
+            var highlightColor:uint = getStyle("highlightColor");
+				// used for white edge
+				// and also for lighter color in the gradient
+
+            var shadowColor:uint = getStyle("shadowColor");
+				// used for outer border bottom
+
+            var x:Number = 0;
+            var y:Number = 0;
+
+			graphics.clear();
+
+			// outer border top
+            drawRoundRect(
+				x, y, w, h, 0,
+				borderColor, 1);
+
+ 			// outer border bottom
+            drawRoundRect(
+				x + 1, y + 1, w - 1, h - 1, 0,
+				shadowColor, 1);
+
+			// white edge
+            drawRoundRect(
+				x + 1, y + 1, w - 2, h - 2, 0,
+				highlightColor, 1);
+
+			// gradient fill
+            drawRoundRect(
+				x + 2, y + 2, w - 4, h - 4, 0,
+				[ backgroundColor, highlightColor ], 1,
+				verticalGradientMatrix(x + 2, y + 2, w - 4, h - 4));
+        }
+    }
+}
+
+}


Modify coordinate for pie chart label

Modify coordinate for pie chart label

--- WeaveUI/src/weave/visualization/plotters/PieChartPlotter.as
+++ WeaveUI/src/weave/visualization/plotters/PieChartPlotter.as
@@ -123,8 +123,9 @@
 				coordinate.x = Math.cos(midRadians);
 				coordinate.y = Math.sin(midRadians);
 				dataBounds.projectPointTo(coordinate, screenBounds);
-				coordinate.x += Math.cos(midRadians) * 10;
-				coordinate.y -= Math.sin(midRadians) * 10;
+				coordinate.x += Math.cos(midRadians) * 10 * screenBounds.getXDirection();
+				coordinate.y += Math.sin(midRadians) * 10 * screenBounds.getYDirection();
+
 				var labelText:BitmapText = new BitmapText();
 				labelText.text = ("  " + _labelColumn.getValueFromKey((_filteredData.keys[i] as IQualifiedKey)) + "  ");
 				if (midRadians < (Math.PI / 2) || midRadians > ((3 * Math.PI) / 2))


Rename `tracker' parameter to `streamio:tracker'.

--- src/goplayer/ConfigurationParser.as
+++ src/goplayer/ConfigurationParser.as
@@ -5,10 +5,10 @@
     public static const DEFAULT_STREAMIO_API_URL : String
       = "http://staging.streamio.com/api"
     public static const DEFAULT_SKIN_URL : String = "goplayer-skin.swf"
-    public static const DEFAULT_TRACKER_ID : String = "global"
+    public static const DEFAULT_STREAMIO_TRACKER_ID : String = "global"

     public static const VALID_PARAMETERS : Array = [
-      "streamio:api", "tracker", "skin", "video", "bitrate",
+      "streamio:api", "streamio:tracker", "skin", "video", "bitrate",
       "enablertmp", "autoplay", "loop",
       "skin:showchrome", "skin:showtitle" ]

@@ -26,8 +26,10 @@

     public function execute() : void
     {
-      result.apiURL = getString("streamio:api", DEFAULT_STREAMIO_API_URL)
-      result.trackerID = getString("tracker", DEFAULT_TRACKER_ID)
+      result.apiURL = getString
+        ("streamio:api", DEFAULT_STREAMIO_API_URL)
+      result.trackerID = getString
+        ("streamio:tracker", DEFAULT_STREAMIO_TRACKER_ID)
       result.skinURL = getString("skin", DEFAULT_SKIN_URL)
       result.movieID = getString("video", null)
       result.bitratePolicy = getBitratePolicy("bitrate", BitratePolicy.BEST)


Transferred from the Adobe Open Source Subversion Repository

Revision: 20149
Author:   klin@adobe.com
Date:     2011-02-04T21:39:31.000080Z

Log Message:
-----------
Add and update [Inspectable] metadata across spark components.

QE notes: No
Doc notes: No
Bugs: SDK-28942
Reviewer: Carol
Tests run: cyclone server, checkintests
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/HGroup.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/NumericStepper.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/SliderBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ScrollBarBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/ComboBox.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/TileGroup.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Button.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/List.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/DropDownListBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Spinner.as</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="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/VGroup.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Image.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Grid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBarBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/Range.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/TrackBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Panel.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/modules/ModuleLoader.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/ButtonBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/mediaClasses/DynamicStreamingVideoItem.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ToggleButtonBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/SkinnableDataContainer.as</path>

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

--- frameworks/projects/spark/src/spark/components/mediaClasses/DynamicStreamingVideoItem.as
+++ frameworks/projects/spark/src/spark/components/mediaClasses/DynamicStreamingVideoItem.as
@@ -72,14 +72,14 @@
     //
     //--------------------------------------------------------------------------

-    [Inspectable(category="General", defaultValue="0")]
-
     //----------------------------------
     //  bitrate
     //----------------------------------

     private var _bitrate:Number = 0;

+    [Inspectable(category="General", defaultValue="0")]
+
     /**
      *  The bit rate for the video stream.
      *


indent

indent

--- AS-Spray.as
+++ AS-Spray.as
@@ -8,10 +8,10 @@
 	import flash.events.*;

 	public class Main extends Sprite
-  {
+	{
 		private var spray:Array
-    public function AsSpray():void
-    {
+		public function AsSpray():void
+		{
 			var block:Vector.<Object> = null;
 			var size:uint = 100000;
 			var alignment:uint = 0x1000;
@@ -36,5 +36,5 @@
 			ExternalInterface.call("check","Vector Spray done");
 			ExternalInterface.addCallback("Corruption",Leak);
 		}
-  }
+	}
 }


fixed CameraController.worldToLocalChangedHandler() to use Matrix4x4.deltaTransformVector to compute CameraDataProvider.direction

--- src/aerys/minko/scene/controller/camera/CameraController.as
+++ src/aerys/minko/scene/controller/camera/CameraController.as
@@ -79,7 +79,7 @@
 				.unlock();

 			cameraData.viewToWorld.transformVector(Vector4.ZERO, cameraData.position);
-			cameraData.viewToWorld.transformVector(Vector4.Z_AXIS, cameraData.direction).normalize();
+			cameraData.viewToWorld.deltaTransformVector(Vector4.Z_AXIS, cameraData.direction).normalize();
 		}

 		private function viewportSizeChanged(bindings : DataBindings, key : String, newValue : Object) : void


Fixes: 1) removeChild now invalidates the UIControl 2) addChildAt now correctly places the child at the right index

--- src/org/openPyro/core/UIContainer.as
+++ src/org/openPyro/core/UIContainer.as
@@ -90,7 +90,7 @@

 		override public function addChildAt(child:DisplayObject, index:int):DisplayObject
 		{
-			var ch:DisplayObject = contentPane.addChild(child);
+			var ch:DisplayObject = contentPane.addChildAt(child, index);
 			if(child is MeasurableControl)
 			{
 				var control:MeasurableControl  = child as MeasurableControl;
@@ -107,7 +107,11 @@
 		}

 		override public function removeChild(child:DisplayObject):DisplayObject{
-			return contentPane.removeChild(child)
+			var childToRemove:DisplayObject = contentPane.removeChild(child);
+			this.invalidateSize();
+			this.invalidateDisplayList();
+			return childToRemove;
+
 		}

 		public function removeAllChildren():void{


fix calling FlashFetchBin.init

fix calling FlashFetchBin.init

--- src/org/mangui/hls/HLS.as
+++ src/org/mangui/hls/HLS.as
@@ -20,6 +20,7 @@
     import org.mangui.hls.stream.HLSNetStream;
     import org.hola.WorkerUtils;
     import org.hola.HSettings;
+    import org.hola.FlashFetchBin;
     import flash.external.ExternalInterface;
     import org.hola.ZExternalInterface;

@@ -99,6 +100,7 @@
                 ExternalInterface.addCallback("hola_hls_get_state", HLS.hola_hls_get_state);
                 ExternalInterface.addCallback("hola_hls_get_levels", HLS.hola_hls_get_levels);
                 ExternalInterface.addCallback("hola_hls_get_level", HLS.hola_hls_get_level);
+                FlashFetchBin.init();
             }
             g_curr_id++;
             g_curr_hls = this;


Reduce black screen during seek.

Reduce black screen during seek.

--- HLSPlugin/src/org/osmf/net/httpstreaming/HLSHTTPNetStream.as
+++ HLSPlugin/src/org/osmf/net/httpstreaming/HLSHTTPNetStream.as
@@ -1284,7 +1284,8 @@

 						flushPendingTags();

-						CONFIG::FLASH_10_1
+						// Disabled to reduce black screen during seek.
+						/*CONFIG::FLASH_10_1
 						{
 							CONFIG::LOGGING
 							{
@@ -1292,8 +1293,7 @@
 							}

 							appendBytesAction(NetStreamAppendBytesAction.RESET_SEEK);
-
-						}
+						}*/

 						_initialTime = NaN;


Fix time reporting and live edge seeking on very short window live streams.

--- HLSPlugin/src/org/osmf/net/httpstreaming/HLSHTTPNetStream.as
+++ HLSPlugin/src/org/osmf/net/httpstreaming/HLSHTTPNetStream.as
@@ -470,13 +470,13 @@
 			// This code is optimized because it is frequently called and causes
 			// (on FF FP 17 debug) one second frame drop events when too slow.

-			var startTime:int = getTimer();
-
 			if(isNaN(_initialTime))
 				return _lastValidTimeTime;

+			var startTime:int = getTimer();
+
 			// Do we need to expire the cache?
-			if(getTimer() - _timeCache_LastUpdatedTimestamp > _timeCache_ExpirationPeriod)
+			if(startTime - _timeCache_LastUpdatedTimestamp > _timeCache_ExpirationPeriod)
 				_timeCache_LastUpdatedTimestamp = NaN;

 			// If cache invalid, repopulate it.
@@ -491,30 +491,38 @@
 				{
 					_timeCache_liveEdge = indexHandler.liveEdge;
 					_timeCache_liveEdgeMinusWindowDuration = _timeCache_liveEdge - indexHandler.windowDuration;
+					//trace("   o Perceived live stream (" + _timeCache_liveEdge + ", " + _timeCache_liveEdgeMinusWindowDuration + ")");
 				}
 				else
 				{
+					//trace("   o Perceived VOD stream.");
 					_timeCache_liveEdge = 0;
 					_timeCache_liveEdgeMinusWindowDuration = 0;
 				}

 				_timeCache_streamStartAbsoluteTime = indexHandler.streamStartAbsoluteTime;

-				_timeCache_LastUpdatedTimestamp = getTimer();
+				_timeCache_LastUpdatedTimestamp = startTime;
 			}

 			// First determine our absolute time.
 			var potentialNewTime:Number = super.time + _initialTime;

-			// If we are VOD, then offset time so we start at the beginning.
+			//trace(" super.time (" + super.time + ") + " + _initialTime + " = " + potentialNewTime);
+
+			// If we are VOD, then offset time so 0 seconds is the start of the stream.
 			var lastMan:HLSManifestParser = indexHandler.getLastSequenceManifest();
 			if(lastMan && lastMan.streamEnds == true && _timeCache_streamStartAbsoluteTime)
 				potentialNewTime -= _timeCache_streamStartAbsoluteTime;

 			// Take into account any cached live edge offset.
 			if(_timeCache_liveEdge != Number.MAX_VALUE)
+			{
+				//trace(" minus " + _timeCache_liveEdgeMinusWindowDuration);
 				potentialNewTime -= _timeCache_liveEdgeMinusWindowDuration;
-
+			}
+
+			// Update cache as appropriate.
 			if(!isNaN(potentialNewTime))
 				_lastValidTimeTime = potentialNewTime;


Stopped changing notebook icon to a phone...

--- flexEditor/src/org/arisgames/editor/services/AppServices.as
+++ flexEditor/src/org/arisgames/editor/services/AppServices.as
@@ -310,7 +310,7 @@
     public function saveLocation(gid:Number, loc:Location, imageMatchMediaId:Number, resp:IResponder):void
     {
         var l:Object;
-		if(loc.type == "PlayerNote") loc.iconMediaId = 72; //Set it to notebook- can't reference 'notes' table because notes have no custom icon media
+		if(loc.type == "PlayerNote") loc.iconMediaId = 94; //Set it to notebook- can't reference 'notes' table because notes have no custom icon media
         if (isNaN(loc.locationId))
         {
             trace("AppServices.as: This Location doesn't have an Id, so call create Location. Qr Code = " + loc.qrCode + " QuickTravel = " + loc.quickTravel);


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

--- frameworks/projects/framework/src/mx/events/ToolTipEvent.as
+++ frameworks/projects/framework/src/mx/events/ToolTipEvent.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2005-2006 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.
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
 //
 ////////////////////////////////////////////////////////////////////////////////


Transferred from the Adobe Open Source Subversion Repository

Revision: 5198
Author:   hmuller@adobe.com
Date:     2009-03-06T22:47:28.478141Z

Log Message:
-----------
Added GroupBase::getVirtualElement() per PARB.  This is the final PARB viewport/virtualization change.

Note that although this is a new public method, it should not be called directly by tests or apps.

QE Notes: Mustella DataGroup tests pass
Doc Notes: This is a new method.
Bugs:
Reviewer: Ryan

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/LayoutBase.as</path>

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

--- frameworks/projects/spark/src/spark/components/DataGroup.as
+++ frameworks/projects/spark/src/spark/components/DataGroup.as
@@ -804,32 +804,40 @@
         if ((index < 0) || (dataProvider == null) || (index >= dataProvider.length))
             return null;

+        return indexToRenderer[index];
+    }
+
+    /**
+     *  @private
+     *  Currently, item renderers ("IRs") can only be recycled if they're all
+     *  of the same type, they implement IDataRenderer, and they're all
+     *  produced - by the itemRenderer factory - with the same initial
+     *  configuration.  We can't ever really guarantee this however the case
+     *  for which we're assuming that it's true is when just the itemRenderer
+     *  is specified.  Even in this case, for recycling to work the
+     *  itemRenderer (factory) must be essentially stateless, the IRs
+     *  appearance must be based exclusively on its data.  For this reason
+     *  we're also defeating recycling of IRs that don't implement
+     *  IDataRenderer, see endVirtualLayout().  Although one could recycle
+     *  these IRs, doing so would imply that either all of the IRs were
+     *  the same, or that some did implement IDataRenderer and others
+     *  did not.   We can't handle the latter, and a DataGroup where
+     *  all items are the same wouldn't be worth the trouble.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    override public function getVirtualElementAt(index:int):IVisualElement
+    {
+        if ((index < 0) || (dataProvider == null) || (index >= dataProvider.length))
+            return null;
+
         var elt:IVisualElement = indexToRenderer[index];

         if (virtualLayoutUnderway)
         {
-            /* - Recycling -
-             *
-             *  Currently, item renderers ("IRs") can only be recycled if they're all
-             *  of the same type, they implement IDataRenderer, and they're all
-             *  produced - by the itemRenderer factory - with the same initial
-             *  configuration.  We can't ever really guarantee this however the case
-             *  for which we're assuming that it's true is when just the itemRenderer
-             *  is specified.  Even in this case, for recycling to work the
-             *  itemRenderer (factory) must be essentially stateless, the IRs
-             *  appearance must be based exclusively on its data.  For this reason
-             *  we're also defeating recycling of IRs that don't implement
-             *  IDataRenderer, see endVirtualLayout().  Although one could recycle
-             *  these IRs, doing so would imply that either all of the IRs were
-             *  the same, or that some did implement IDataRenderer and others
-             *  did not.   We can't handle the latter, and a DataGroup where
-             *  all items are the same wouldn't be worth the trouble.
-             *
-             *  @langversion 3.0
-             *  @playerversion Flash 10
-             *  @playerversion AIR 1.5
-             *  @productversion Flex 4
-             */
             if (virtualLayoutStartIndex == -1)  // initialized in updateDisplayList()
             {
                 virtualLayoutStartIndex = index;
@@ -872,12 +880,11 @@
             if ((createdIR || recycledIR) && (elt is IInvalidating))
                 IInvalidating(elt).validateNow();
             if (createdIR)
-                dispatchEvent(new RendererExistenceEvent(RendererExistenceEvent.RENDERER_ADD,
-                                    false, false, elt, index, item));
-        }
-
-        return elt;
-    }
+                dispatchEvent(new RendererExistenceEvent(RendererExistenceEvent.RENDERER_ADD, false, false, elt, index, item));
+        }
+
+        return elt;
+     }

     /**
      *  @inheritDoc


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/spark/src/spark/filters/ShaderFilter.as
+++ frameworks/projects/spark/src/spark/filters/ShaderFilter.as
@@ -9,7 +9,7 @@
 //
 ////////////////////////////////////////////////////////////////////////////////

-package flex.filters {
+package mx.filters {

 import flash.display.Shader;
 import flash.display.ShaderInput;


Transferred from the Adobe Open Source Subversion Repository

Revision: 8
Author:   open-source-svn-admin@adobe.com
Date:     2007-12-15T01:49:31.087529Z

Log Message:
-----------
The beginning of the open-source Flex SDK.

Populated the flex/sdk/trunk directory with an open-source subset of files from //depot/flex/sdk/...@191097 in the Faramir Perforce server. This changelist is a bit past the 3.0rc0 build.

The Ant scripts will not successfully build yet. They need to be adapted to the open-source subset.

Modified Paths:
--------------
2532 paths were modified

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

--- frameworks/projects/framework/src/mx/events/ItemClickEvent.as
+++ frameworks/projects/framework/src/mx/events/ItemClickEvent.as
@@ -0,0 +1,162 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2005-2006 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
+{
+
+import flash.display.InteractiveObject;
+import flash.events.Event;
+
+/**
+ *  Represents events that are dispatched when a navigation item on a navigator bar,
+ *  such as a ButtonBar, LinkBar, or TabBar control, has been clicked.
+ *
+ *  @see mx.controls.NavBar
+ *  @see mx.controls.Button
+ *  @see mx.controls.List
+ */
+public class ItemClickEvent extends Event
+{
+    include "../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Class constants
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  The ItemClickEvent.ITEM_CLICK constant defines the value of the
+	 *  type property of the event object for an itemClick event.
+	 *
+	 *
The properties of the event object have the following values:

+	 *

+	 *
Property	Value

+     *
bubbles	false

+     *
cancelable	false

+     *
currentTarget	The Object that defines the
+     *       event listener that handles the event. For example, if you use
+     *       myButton.addEventListener() to register an event listener,
+     *       myButton is the value of the currentTarget.

+     *
index	The index of the navigation item that was clicked.

+     *
item	The item in the data provider of the navigation
+     * 	   item that was clicked.

+     *
label	The label of the navigation item that was clicked.

+     *
relatedObject	The child object that generated the event.

+     *
target	The Object that dispatched the event;
+     *       it is not always the Object listening for the event.
+     *       Use the currentTarget property to always access the
+     *       Object listening for the event.

+	 *

+	 *
+     *  @eventType itemClick
+	 */
+	public static const ITEM_CLICK:String = "itemClick";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Constructor
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Constructor.
+	 *
+	 *  @param type The event type; indicates the action that caused the event.
+	 *
+	 *  @param bubbles Specifies whether the event can bubble
+	 *  up the display list hierarchy.
+	 *
+	 *  @param cancelable Specifies whether the behavior
+	 *  associated with the event can be prevented.
+	 *
+	 *  @param label The label of the associated navigation item.
+	 *
+	 *  @param index The index of the associated navigation item.
+	 *
+	 *  @param relatedObject The child object that generated the event.
+	 *
+	 *  @param item The item in the data provider for the associated navigation item.
+	 */
+	public function ItemClickEvent(type:String, bubbles:Boolean = false,
+								   cancelable:Boolean = false,
+								   label:String = null, index:int = -1,
+								   relatedObject:InteractiveObject = null,
+								   item:Object = null)
+	{
+		super(type, bubbles, cancelable);
+
+		this.label = label;
+		this.index = index;
+		this.relatedObject = relatedObject;
+		this.item = item;
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Properties
+	//
+	//--------------------------------------------------------------------------
+
+	//----------------------------------
+	//  index
+	//----------------------------------
+
+	/**
+	 *  The index of the associated navigation item.
+	 */
+	public var index:int;
+
+	//----------------------------------
+	//  item
+	//----------------------------------
+
+	/**
+	 *  The item in the data provider of the associated navigation item.
+	 */
+	public var item:Object;
+
+	//----------------------------------
+	//  label
+	//----------------------------------
+
+	/**
+	 *  The label of the associated navigation item.
+	 */
+	public var label:String;
+
+	//----------------------------------
+	//  relatedObject
+	//----------------------------------
+
+	/**
+	 *  The child object that generated the event; for example,
+	 *  the button that a user clicked in a ButtonBar control.
+	 */
+	public var relatedObject:InteractiveObject;
+
+	//--------------------------------------------------------------------------
+	//
+	//  Overridden methods: Event
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	override public function clone():Event
+	{
+		return new ItemClickEvent(type, bubbles, cancelable,
+								  label, index, relatedObject, item);
+	}
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/mx/src/mx/accessibility/LinkButtonAccImpl.as
+++ frameworks/projects/mx/src/mx/accessibility/LinkButtonAccImpl.as
@@ -21,6 +21,11 @@
 /**
  *  LinkButtonAccImpl is a subclass of AccessibilityImplementation
  *  which implements accessibility for the LinkButton class.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class LinkButtonAccImpl extends ButtonAccImpl
 {
@@ -40,6 +45,11 @@
 	 *  Afterwards, when instances of LinkButton are initialized,
 	 *  their accessibilityImplementation property
 	 *  will be set to an instance of this class.

+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public static function enableAccessibility():void
 	{
@@ -71,6 +81,11 @@
 	 *
 	 *  @param master The UIComponent instance that this AccImpl instance
 	 *  is making accessible.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function LinkButtonAccImpl(master:UIComponent)
 	{


Transferred from the Adobe Open Source Subversion Repository

Revision: 4380
Author:   rfrishbe@adobe.com
Date:     2008-12-23T10:00:21.848800Z

Log Message:
-----------
Mostly rename changes in Group and FxContainer.

1.  GraphicElement.elementHost:GroupBase -> GraphicElement.parent:DisplayObjectContainer (parent already exists in the current code-base...I’m just removing elementHost now)

2.  Group content APIs now use “element” instead of “item.”  The new methods were added a while ago, but the old ones co-existed.  These particular changes remove the old methods and strongly type the new ones to deal with IVisualElements rather than Objects.  Here are the overall changes:

numItems:int -> numElements:int
getItemAt(int):Object -> getElementAt(int):IVisualElement
addItem(Object):Object -> addElement(IVisualElement):IVisualElement
addItemAt(Object, int):Object -> addElementAt(IVisualElement, int):IVisualElement
removeItem(Object):Object -> removeElement(IVisualElement):IVisualElement
removeItemAt(int):Object -> removeElementAt(int):IVisualElement
getItemIndex(Object):int -> getElementIndex(IVisualElement):int
setItemIndex(Object, int):void -> setElementIndex(IVisualElement, int):void
swapItems(Object, Object):void -> swapElements(IVisualElement, IVisualElement):void
swapItemsAt(int, int):void -> swapElementsAt(int, int):void

3.  Group and FxContainer's mxmlContent property is now strongly typed as an Array of IVisualElements instead of an Object

4.  Removing ITransformable...there's no need for it.

5.  Had to update Mustella for these changes (the Perforce changes are checked in, and here's the mustella.swc change for checkintests)

QE Notes: Joan and Steve worked with me on changing all the SDK QA tests.
Doc Notes: None
Bugs: SDK-18063
Reviewer: Jason
tests: checkintests, Mustella FxContainer, Group, and DataGroup (Joan ran all tests on an earlier version of these changes, so hopefully nothing broke in the meantime).  Some of the Group/DataGroup ones were failing for me, but I'm pretty sure they're all excluded (tests don't seem to exclude for me when I VPN in...)

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/TransformOffsets.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxScroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/layouts/WheelLayout.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/ITransformable.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/ItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/RemoveAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/flex4/flex4test_testScript.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/core/IViewport.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/testWheel.mxml</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/wireframe/src/wireframe/FxDefaultComplexItemRenderer.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxAnimateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElementContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/states/AddItems.as</path>
<path kind="file" action="M">/flex/sdk/trunk/mustella/mustella.swc</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxDefaultComplexItemRenderer.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/AddAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxContainer.as</path>

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

--- frameworks/projects/framework/src/mx/geom/TransformOffsets.as
+++ frameworks/projects/framework/src/mx/geom/TransformOffsets.as
@@ -17,7 +17,6 @@
 	import flash.events.EventDispatcher;
 	import flash.events.Event;
 	import mx.core.mx_internal;
-	import mx.geom.ITransformable;
 	import mx.core.AdvancedLayoutFeatures;
 	import flash.geom.Point;
 	use namespace mx_internal;
@@ -25,7 +24,7 @@
 	/**
 	 *  A CompoundTransform represents a 2D or 3D matrix transform. It can be used in the offsets property on a UIComponent or GraphicElement.
 	 */
-	public class TransformOffsets extends EventDispatcher implements ITransformable
+	public class TransformOffsets extends EventDispatcher
 	{
     //--------------------------------------------------------------------------
     //


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

--- frameworks/projects/spark/src/spark/filters/ColorMatrixFilter.as
+++ frameworks/projects/spark/src/spark/filters/ColorMatrixFilter.as
@@ -9,11 +9,12 @@
 //
 ////////////////////////////////////////////////////////////////////////////////

-package mx.filters
+package spark.filters
 {
 import flash.filters.BitmapFilter;
 import flash.filters.ColorMatrixFilter;
-
+import mx.filters.BaseFilter;
+import mx.filters.IBitmapFilter;
 /**
  *  The ColorMatrixFilter class lets you apply a 4 x 5 matrix transformation on the
  *  RGBA color and alpha values of every pixel in the input image to produce a result


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/spark/src/spark/components/Application.as
+++ frameworks/projects/spark/src/spark/components/Application.as
@@ -81,7 +81,7 @@
  */
 [Frame(factoryClass="mx.managers.SystemManager")]

-[ResourceBundle("core")]
+[ResourceBundle("components")]

 /**
  *  Flex defines a default, or FxApplication, container that lets you start
@@ -679,7 +679,7 @@
         // "View Source" on the context menu
         if (viewSourceCMI)
         {
-            viewSourceCMI.caption = resourceManager.getString("core", "viewSource");
+            viewSourceCMI.caption = resourceManager.getString("components", "viewSource");
         }
     }

@@ -766,7 +766,7 @@
         if (_viewSourceURL)
         {
             // don't worry! this gets updated in resourcesChanged()
-            const caption:String = resourceManager.getString("core", "viewSource");
+            const caption:String = resourceManager.getString("components", "viewSource");

             viewSourceCMI = new ContextMenuItem(caption, true);
             viewSourceCMI.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, viewSourceMenuItemSelectHandler);


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

--- frameworks/projects/spark/src/spark/filters/GradientFilter.as
+++ frameworks/projects/spark/src/spark/filters/GradientFilter.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 spark.filters
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 20208
Author:   smgilson@adobe.com
Date:     2011-02-08T21:40:02.122057Z

Log Message:
-----------
Several ASDoc bug fixes

QE notes:
Doc notes:
Bugs: FLEXDOCS-1342, FLEXDOCS-1330, FLEXDOCS-1323
Reviewer:
Tests run:
Is noteworthy for integration:

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/EmbeddedFont.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/spark/asdoc/en_US/spark/components/examples/ScrollerExample.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/primitives/BitmapImage.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/primitives/RectangularDropShadow.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/airspark/src/spark/skins/spark/windowChrome/MacTitleBarSkin.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/states/AddItems.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/airframework/src/mx/core/FlexHTMLLoader.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/IFocusManagerComponent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/utils/ObjectUtil.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/DeferredInstanceFromClass.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/DeferredInstanceFromFunction.as</path>

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

--- frameworks/projects/spark/src/spark/primitives/BitmapImage.as
+++ frameworks/projects/spark/src/spark/primitives/BitmapImage.as
@@ -824,7 +824,7 @@
      *
      *  @default true
      *
-     *  @langversion 4.0
+     *  @langversion 3.0
      *  @playerversion Flash 9
      *  @playerversion AIR 1.5
      *  @productversion Flex 4.5


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

--- frameworks/projects/spark/src/spark/components/supportClasses/InteractionStateDetector.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/InteractionStateDetector.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2010 Adobe Systems Incorporated
-//  All Rights Reserved.
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
 //
-//  NOTICE: Adobe permits you to use, modify, and distribute this file
-//  in accordance with the terms of the license agreement accompanying it.
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
 //
 ////////////////////////////////////////////////////////////////////////////////


Fixed problem where alpha value was being included in color when it was
only for internal use.

Change-Id: I3ab96667ad51591c1a9a820c24f7fc5b0ca7bcf7

--- WeaveUI/src/weave/ui/CustomColorPicker.as
+++ WeaveUI/src/weave/ui/CustomColorPicker.as
@@ -42,8 +42,21 @@
 		private function handleOpen(event:DropdownEvent):void
 		{
 			// This makes it so the same color can be selected again while still triggering a change event.
-			super.selectedColor = super.selectedColor | 0x1000000;
-			dropdown.selectedColor = super.selectedColor & 0xFFFFFF;
+			super.selectedColor = selectedColor | 0xFF000000;
+			dropdown.selectedColor = selectedColor;
+		}
+
+		[Bindable("change")]
+		[Bindable("valueCommit")]
+		[Inspectable(category="General", defaultValue="0", format="Color")]
+		override public function get selectedColor():uint
+		{
+			return super.selectedColor & 0xFFFFFF;
+		}
+
+		override public function set selectedColor(value:uint):void
+		{
+			super.selectedColor = value;
 		}
 	}
 }


Suppress ID3 tag parsing from best effort fetches.

--- HLSPlugin/src/com/kaltura/hls/m2ts/M2TSFileHandler.as
+++ HLSPlugin/src/com/kaltura/hls/m2ts/M2TSFileHandler.as
@@ -474,7 +474,7 @@

 		private function handleID3(message:ByteArray, timestamp:Number):void
 		{
-			if (!message)
+			if (!message || isBestEffort)
 				return;

 			CONFIG::LOGGING


Transferred from the Adobe Open Source Subversion Repository

Revision: 12392
Author:   smgilson@adobe.com
Date:     2009-12-02T22:32:51.640117Z

Log Message:
-----------
ASDoc localization prep, and added a new example

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airspark/src/spark/components/windowClasses/TitleBar.as</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/spark/asdoc/en_US/spark/core/examples</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/asdoc/en_US/spark/core/examples/IViewportExample.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/asdoc/en_US/spark/core/examples/assets/logo.jpg</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/IViewport.as</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/spark/asdoc/en_US/spark/core</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/spark/asdoc/en_US/spark/core/examples/assets</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/events/TrackBaseEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/events/TextOperationEvent.as</path>

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

--- frameworks/projects/spark/src/spark/events/TrackBaseEvent.as
+++ frameworks/projects/spark/src/spark/events/TrackBaseEvent.as
@@ -15,7 +15,9 @@
 import flash.events.Event;

 /**
- *  Represents events that are dispatched from a TrackBase component
+ *  Represents events that are dispatched from a TrackBase component.
+ *
+ *  @see spark.components.supportClasses.TrackBase
  *
  *  @langversion 3.0
  *  @playerversion Flash 10


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

--- frameworks/projects/spark/src/spark/styles/metadata/AdvancedNonInheritingTextStyles.as
+++ frameworks/projects/spark/src/spark/styles/metadata/AdvancedNonInheritingTextStyles.as
@@ -1,4 +1,29 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.
+//
+////////////////////////////////////////////////////////////////////////////////

+/**
+ *  Number of text columns.
+ *
+ *
For the Spark theme, see
+ *  flashx.textLayout.formats.ITextLayoutFormat.columnCount.

+ *
+ *
For the Mobile theme, this is not supported.

+ *
+ *  @see flashx.textLayout.formats.ITextLayoutFormat#columnCount
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
 [Style(name="columnCount", type="Object", inherit="no")]

 /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 22564
Author:   tkraikit@adobe.com
Date:     2011-09-14T19:50:07.656843Z

Log Message:
-----------
Update ASDoc "@productversion Flex 4.5.2" => "@productversion Flex 4.6"

Modified Paths:
--------------
<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/mobilecomponents/src/spark/components/LabelItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/collections/OnDemandDataProvider.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/DateSpinnerSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/framework/src/mx/graphics/BitmapScaleMode.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/ContentBackgroundAppearance.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/framework/src/mx/core/FlexVersion.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/ArrowDirection.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/globalization/supportClasses/FormatPattern.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/DefaultTransparentNavigationButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/supportClasses/DropDownController.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/core/ISoftKeyboardHintClient.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/CalloutArrow.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/CalloutButton.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/CalloutActionBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/calendarClasses/YearProvider.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/calendarClasses/DateSelectorDisplayMode.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/ToggleSwitch.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/DefaultBeveledBackButtonSkin.as</path>
<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/spark/src/spark/components/ScrollSnappingMode.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/StageTextSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/DefaultTransparentActionButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/StageTextAreaSkin.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/spark/src/spark/components/List.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/ToggleSwitchSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/calendarClasses/DateAndTimeProvider.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/CalloutViewNavigatorSkin.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/CalloutPosition.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/preloaders/SplashScreenImageSource.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/SkinnablePopUpContainer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/SplitViewNavigator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/Callout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/StageTextInputSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/collections/NumericDataProvider.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableStageText.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/preloaders/SplashScreenImage.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/calendarClasses/DateSpinnerItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/SpinnerList.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/DateSpinner.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/globalization/supportClasses/CalendarDate.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/CalloutSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/DefaultBeveledActionButtonSkin.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/globalization/supportClasses/DateTimeFormatterEx.as</path>

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

--- frameworks/projects/spark/src/spark/globalization/supportClasses/DateTimeFormatterEx.as
+++ frameworks/projects/spark/src/spark/globalization/supportClasses/DateTimeFormatterEx.as
@@ -52,7 +52,7 @@
  *  @langversion 3.0
  *  @playerversion Flash 11
  *  @playerversion AIR 3
- *  @productversion Flex 4.5.2
+ *  @productversion Flex 4.6
  */
 public class DateTimeFormatterEx extends DateTimeFormatter
 {
@@ -314,7 +314,7 @@
      *  @langversion 3.0
      *  @playerversion Flash 11
      *  @playerversion AIR 3
-     *  @productversion Flex 4.5.2
+     *  @productversion Flex 4.6
      */
     public function DateTimeFormatterEx()
     {
@@ -430,7 +430,7 @@
      *  @langversion 3.0
      *  @playerversion Flash 11
      *  @playerversion AIR 3
-     *  @productversion Flex 4.5.2
+     *  @productversion Flex 4.6
      */
     public function get dateTimeSkeletonPattern():String
     {
@@ -731,7 +731,7 @@
      *  @langversion 3.0
      *  @playerversion Flash 11
      *  @playerversion AIR 3
-     *  @productversion Flex 4.5.2
+     *  @productversion Flex 4.6
      */
     public function getYearPosition():int
     {
@@ -766,7 +766,7 @@
      *  @langversion 3.0
      *  @playerversion Flash 11
      *  @playerversion AIR 3
-     *  @productversion Flex 4.5.2
+     *  @productversion Flex 4.6
      */
     private function get elementPatternList():Object
     {
@@ -1105,7 +1105,7 @@
      *  @langversion 3.0
      *  @playerversion Flash 11
      *  @playerversion AIR 3
-     *  @productversion Flex 4.5.2
+     *  @productversion Flex 4.6
      */
     private static function analysePattern(pattern:String,
                                            analyseDateElements:Boolean,
@@ -1140,7 +1140,7 @@
      *  @langversion 3.0
      *  @playerversion Flash 11
      *  @playerversion AIR 3
-     *  @productversion Flex 4.5.2
+     *  @productversion Flex 4.6
      */
     private static function extractDateElements(
         pattern:String, elementList:Array):void
@@ -1192,7 +1192,7 @@
      *  @langversion 3.0
      *  @playerversion Flash 11
      *  @playerversion AIR 3
-     *  @productversion Flex 4.5.2
+     *  @productversion Flex 4.6
      */
     private static function extractTimeElements(
         pattern:String, elementList:Array):void


MDL-20808 "Create AMF test client" Some updates to client

--- webservice/amf/testclient/customValidators/JSONValidator.as
+++ webservice/amf/testclient/customValidators/JSONValidator.as
@@ -31,7 +31,7 @@
             }
             if (this.required && JSONstring == ''){
             	errors.push(new ValidationResult(true, null, "Required",
-	                    "You must enter a value for this argument."));
+	                    "You must enter a value for this argument - for a string argument an empty string can be entered as \"\" or you can disable an optional argument."));
             }
             return errors;
         }


playTo(): if we're already on the stop frame, don't play

--- runtime/src/main/as/flump/display/Movie.as
+++ runtime/src/main/as/flump/display/Movie.as
@@ -115,7 +115,8 @@
     */
     public function playTo (position :Object) :Movie {
        _stopFrame = extractFrame(position);
-       _playing = true;
+       // don't play if we're already at the stop frame
+       _playing = (_frame != _stopFrame);
        return this;
     }


Fixed 'random

Fixed 'random

--- src/LevelStates/LevelState.as
+++ src/LevelStates/LevelState.as
@@ -292,7 +292,7 @@
 				var randomButton:MenuButton = new GraphicButton(90, 90, _random_sprite, function _():void {
 					initialMemory = level.goal.genMem();
 					memory = initialMemory.slice();
-					upperLayer.add(new DMemory(memory));
+					upperLayer.add(new DMemory(memory, level.goal.genExpectedMem()));
 				}, "Generate new memory", new Key("R"));
 				upperLayer.add(randomButton);
 			}


Transferred from the Adobe Open Source Subversion Repository

Revision: 8
Author:   open-source-svn-admin@adobe.com
Date:     2007-12-15T01:49:31.087529Z

Log Message:
-----------
The beginning of the open-source Flex SDK.

Populated the flex/sdk/trunk directory with an open-source subset of files from //depot/flex/sdk/...@191097 in the Faramir Perforce server. This changelist is a bit past the 3.0rc0 build.

The Ant scripts will not successfully build yet. They need to be adapted to the open-source subset.

Modified Paths:
--------------
2532 paths were modified

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

--- frameworks/projects/framework/src/mx/controls/IFlexContextMenu.as
+++ frameworks/projects/framework/src/mx/controls/IFlexContextMenu.as
@@ -0,0 +1,45 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 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.controls
+{
+
+/**
+ *  The IFlexContextMenu interface defines the interface for a
+ *  Flex context menus.
+ *
+ *  @see mx.core.UIComponent#flexContextMenu
+ */
+public interface IFlexContextMenu
+{
+	import flash.display.InteractiveObject;
+
+	/**
+	 *  Sets the context menu of an InteractiveObject.  This will do
+	 *  all the necessary steps to add ourselves as the context
+	 *  menu for this InteractiveObject, such as adding listeners, etc..
+	 *
+	 *  @param component InteractiveObject to set context menu on
+	 */
+	function setContextMenu(component:InteractiveObject):void;
+
+	/**
+	 *  Unsets the context menu of a InteractiveObject.  This will do
+	 *  all the necessary steps to remove ourselves as the context
+	 *  menu for this InteractiveObject, such as removing listeners, etc..
+	 *
+	 *  @param component InteractiveObject to unset context menu on
+	 */
+	function unsetContextMenu(component:InteractiveObject):void;
+
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 12480
Author:   klin@adobe.com
Date:     2009-12-04T02:07:06.480679Z

Log Message:
-----------
Fix for http://bugs.adobe.com/jira/browse/SDK-22602. initialWidth/initialHeight are set in the completeHandler to the loader's width and height. However, the loader's width and height in this case default to an arbitrary size rather than the expected content height and width. Therefore, we should use the contentLoaderInfo to get the correct width and height for the embedded swf instead of clobbering the content's size.

QE notes: No
Doc notes: No
Bugs: SDK-22602
Reviewer: Glenn
Tests run: checkintests, various mustella tests that embed swfs.
Is noteworthy for integration: Yes

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/MovieClipLoaderAsset.as

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

--- frameworks/projects/framework/src/mx/core/MovieClipLoaderAsset.as
+++ frameworks/projects/framework/src/mx/core/MovieClipLoaderAsset.as
@@ -257,8 +257,8 @@
 	{
 		initialized = true;

-		initialWidth = loader.width;
-		initialHeight = loader.height;
+		initialWidth = loader.contentLoaderInfo.width;
+		initialHeight = loader.contentLoaderInfo.height;

 		if (!isNaN(requestedWidth))
 			loader.width = requestedWidth;


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

--- frameworks/projects/mx/src/mx/styles/metadata/BackgroundStyles.as
+++ frameworks/projects/mx/src/mx/styles/metadata/BackgroundStyles.as
@@ -1,28 +1,4 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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.
-//
-////////////////////////////////////////////////////////////////////////////////

-/**
- *  Alpha level of the color defined by the backgroundColor
- *  property, of the image or SWF file defined by the backgroundImage
- *  style.
- *  Valid values range from 0.0 to 1.0. For most controls, the default value is 1.0,
- *  but for ToolTip controls, the default value is 0.95 and for Alert controls, the default value is 0.9.
- *
- *  @default 1.0
- *
- *  @langversion 3.0
- *  @playerversion Flash 9
- *  @playerversion AIR 1.1
- *  @productversion Flex 3
- */
 [Style(name="backgroundAlpha", type="Number", inherit="no", theme="halo")]

 /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 11070
Author:   rfrishbe@adobe.com
Date:     2009-10-21T23:56:10.882948Z

Log Message:
-----------
This has two changes: one is adding index to IItemRenderer and the other is adding handleHighlightBackground to ItemRenderer.  Adding an index property should speed things up a little bit, and it'll help fix a bug with renderers that have index-dependent drawing, like when alternatingItemColors is set.  handleHighlightBackground is a new shortcut property that will automatically handle drawing the background for selection/highlight in an item renderer.  For now, handleHighlightBackground defaults to false, so it shouldn’t affect anything.

The two new properties still need to be PARBed, and the handleHighlightBackround property in particular may change names and default values.

QE notes: We'll need to add new tests for this
Doc notes: We'll need some new documentation around the handleHighlightBackground property and the suggested approach for custom item renderers.
Bugs: SDK-22908
Reviewer: Deepa, Evtim
Tests run: checkintests, Mustella List, DataGroup, SkinnableDataContainer, ButtonBar, DropDownList
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ButtonBarButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/IItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DataGroup.as</path>

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

--- frameworks/projects/spark/src/spark/components/ButtonBarButton.as
+++ frameworks/projects/spark/src/spark/components/ButtonBarButton.as
@@ -165,6 +165,33 @@
     }

     //----------------------------------
+    //  index
+    //----------------------------------
+    /**
+     *  @private
+     *  storage for the index property
+     */
+    private var _index:int;
+
+    /**
+     *  @inheritDoc
+     *
+     *  @default false
+     */
+    public function get index():int
+    {
+        return _index;
+    }
+
+    /**
+     *  @private
+     */
+    public function set index(value:int):void
+    {
+        _index = value;
+    }
+
+    //----------------------------------
     //  label
     //----------------------------------


 - Application
 	- changed back stylesheet path

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

--- src/reprise/core/Application.as
+++ src/reprise/core/Application.as
@@ -37,8 +37,7 @@
 		/***************************************************************************
 		*							protected properties							   *
 		***************************************************************************/
-		protected static const CSS_URL : String = 'style/slider.css';
-
+		protected static const CSS_URL : String = 'flash.css';
 		protected var m_rootElement : DocumentView;
 		protected var m_currentView : UIObject;
 		protected var m_lastView : UIObject;


Fixed bug in RegInstruction toValue

Fixed bug in RegInstruction toValue

--- src/Testing/Instructions/RegInstruction.as
+++ src/Testing/Instructions/RegInstruction.as
@@ -21,7 +21,7 @@
 		}

 		override public function toMemValue():InstructionValue {
-			return new InstructionValue(getOpcode(), args[0].value, args[1].value, args[2].value);
+			return new InstructionValue(getOpcode(), args[2].value, args[1].value, args[0].value);
 		}

 		protected function getOpcode():OpcodeValue {


Add parameter "clonedObjects" in Cloner.doClone() method.

--- dolly-framework/src/main/actionscript/dolly/Cloner.as
+++ dolly-framework/src/main/actionscript/dolly/Cloner.as
@@ -4,6 +4,8 @@
 import dolly.core.errors.CloningError;
 import dolly.core.metadata.MetadataName;
 import dolly.utils.PropertyUtil;
+
+import flash.utils.Dictionary;

 import org.as3commons.reflect.Accessor;
 import org.as3commons.reflect.AccessorAccess;
@@ -41,8 +43,12 @@
 		return result;
 	}

-	dolly_internal static function doClone(source:*, deep:int, type:Type = null):* {
-		if(!type) {
+	dolly_internal static function doClone(source:*, deep:int, clonedObjectsMap:Dictionary = null, type:Type = null):* {
+		if (!clonedObjectsMap) {
+			clonedObjectsMap = new Dictionary();
+		}
+
+		if (!type) {
 			type = Type.forInstance(source);
 		}

@@ -63,7 +69,7 @@

 		const deep:int = 2;

-		return doClone(source, deep, type);
+		return doClone(source, deep, null, type);
 	}
 }
 }


Remove private static method Copier.isAccessorCopyable().

--- dolly-framework/src/main/actionscript/dolly/Copier.as
+++ dolly-framework/src/main/actionscript/dolly/Copier.as
@@ -4,6 +4,7 @@
 import dolly.core.metadata.MetadataName;

 import org.as3commons.reflect.Accessor;
+import org.as3commons.reflect.AccessorAccess;
 import org.as3commons.reflect.Field;
 import org.as3commons.reflect.IMetadataContainer;
 import org.as3commons.reflect.Type;
@@ -12,11 +13,6 @@
 use namespace dolly_internal;

 public class Copier {
-
-	private static function isAccessorCopyable(accessor:Accessor, skipMetadataChecking:Boolean = true):Boolean {
-		return !accessor.isStatic && accessor.isReadable() && accessor.isWriteable() &&
-				(skipMetadataChecking || accessor.hasMetadata(MetadataName.COPYABLE));
-	}

 	dolly_internal static function findCopyableFieldsForType(type:Type):Vector.<Field> {
 		const result:Vector.<Field> = new Vector.<Field>();
@@ -32,7 +28,7 @@
 				}
 			}
 			for each(accessor in type.accessors) {
-				if (isAccessorCopyable(accessor)) {
+				if (!accessor.isStatic && accessor.access == AccessorAccess.READ_WRITE) {
 					result.push(accessor);
 				}
 			}
@@ -46,7 +42,9 @@
 					}
 				} else if (metadataContainer is Accessor) {
 					accessor = metadataContainer as Accessor;
-					if (isAccessorCopyable(accessor, false)) {
+					if (!accessor.isStatic
+							&& accessor.access == AccessorAccess.READ_WRITE
+							&& accessor.hasMetadata(MetadataName.COPYABLE)) {
 						result.push(accessor);
 					}
 				}


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

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

 package mx.effects
 {