Transferred from the Adobe Open Source Subversion Repository

Revision: 8483
Author:   smgilson@adobe.com
Date:     2009-07-09T17:52:48.367800Z

Log Message:
-----------
Second checkin to update the namespace in ASDoc MXML syntax descriptions for Spark components

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/easing/EaseInOutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Fade.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/animation/MotionPath.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/ColorMatrixFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/easing/Power.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/BlurFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/DisplacementMapFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/ShaderFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/DropShadowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/CallAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GradientBevelFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateColor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Scale3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Animate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateTransitionShader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Rotate3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AddAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Scale.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/Graphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Move3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Rotate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/BasicLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Resize.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateTransform3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Wipe.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/easing/Sine.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Move.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GlowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateTransform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/TileLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/ConvolutionFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/easing/Linear.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/animation/Keyframe.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GradientGlowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/SetAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/RemoveAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/BevelFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GradientFilter.as</path>

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

--- frameworks/projects/spark/src/spark/effects/Scale3D.as
+++ frameworks/projects/spark/src/spark/effects/Scale3D.as
@@ -47,7 +47,7 @@
  *  and adds the following tag attributes:

  *
  *

- *  <mx:Scale3D
+ *  <s:Scale3D
  *    Properties
  *    id="ID"
  *    scaleXBy="no default"


Transferred from the Adobe Open Source Subversion Repository

Revision: 2644
Author:   egeorgie@adobe.com
Date:     2008-07-28T23:58:09.872940Z

Log Message:
-----------
First pass at unifying layout APIs between UIComponent and GraphicElement, more to come with additional check-ins.

reviewed by Ryan, Glenn, Gordon, Chet

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/Path.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/Ellipse.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/Rect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/TextBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/IGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/TextGraphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/StrokedElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/graphicsClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/Line.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/FilledElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/BitmapGraphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/graphicsClasses/TextGraphicElement.as</path>

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

--- frameworks/projects/spark/src/spark/primitives/Rect.as
+++ frameworks/projects/spark/src/spark/primitives/Rect.as
@@ -71,7 +71,8 @@
 		{
 			_radiusX = value;
 			dispatchPropertyChangeEvent("radiusX", oldValue, value);
-			notifyElementChanged();
+			invalidateDisplayList();
+			// No need to invalidateSize() since we don't use radiusX to compute size
 		}
 	}

@@ -100,7 +101,8 @@
 		{
 			_radiusY = value;
 			dispatchPropertyChangeEvent("radiusY", oldValue, value);
-			notifyElementChanged();
+			invalidateDisplayList();
+			// No need to invalidateSize() since we don't use radiusY to compute size
 		}
 	}

@@ -112,7 +114,9 @@

 	override public function get bounds():Rectangle
 	{
-		return new Rectangle(0, 0, width, height);
+		return new Rectangle(0, 0,
+		                     isNaN(explicitWidth) ? 0 : explicitWidth,
+		                     isNaN(explicitHeight) ? 0 : explicitHeight);
 	}

 	/**
@@ -121,9 +125,9 @@
 	override protected function drawElement(g:Graphics):void
 	{
 		if (radiusX != 0 || radiusY != 0)
-			g.drawRoundRect(0, 0, drawWidth, drawHeight, radiusX * 2, radiusY * 2);
+			g.drawRoundRect(0, 0, width, height, radiusX * 2, radiusY * 2);
 		else
-			g.drawRect(0, 0, drawWidth, drawHeight);
+			g.drawRect(0, 0, width, height);
 	}

 }


Avoid loading duplicate modules.

Avoid loading duplicate modules.

--- src/com/esri/builder/controllers/supportClasses/WidgetTypeLoader.as
+++ src/com/esri/builder/controllers/supportClasses/WidgetTypeLoader.as
@@ -29,6 +29,7 @@
 import flash.filesystem.FileStream;
 import flash.system.ApplicationDomain;
 import flash.utils.ByteArray;
+import flash.utils.Dictionary;

 import modules.IBuilderModule;
 import modules.supportClasses.CustomXMLModule;
@@ -59,6 +60,8 @@
         var moduleFiles:Array = getModuleFiles(WellKnownDirectories.getInstance().bundledModules)
             .concat(getModuleFiles(WellKnownDirectories.getInstance().customModules));

+        moduleFiles = getUniqueModuleFiles(moduleFiles);
+
         //TODO: remove XML files from found SWF files
         modulesToLoad = moduleFiles.length;

@@ -82,6 +85,49 @@
         }

         checkIfNoMoreModuleInfosLeft();
+    }
+
+    //TODO: optimize
+    private function getUniqueModuleFiles(moduleFiles:Array):Array
+    {
+        var uniqueFileNameToFile:Dictionary = new Dictionary();
+
+        //swfs have precedence over xml files
+
+        //so we store all SWF files
+        for each (var swfPassFile:File in moduleFiles)
+        {
+            if (swfPassFile.extension == "swf")
+            {
+                uniqueFileNameToFile[getFilename(swfPassFile)] = swfPassFile;
+            }
+        }
+
+        //then we store XML files that do not have overlapping names
+        for each (var xmlPassFile:File in moduleFiles)
+        {
+            if (xmlPassFile.extension == "xml")
+            {
+                var xmlFileName:String = getFilename(xmlPassFile);
+                if (!uniqueFileNameToFile[xmlFileName])
+                {
+                    uniqueFileNameToFile[xmlFileName] = xmlPassFile;
+                }
+            }
+        }
+
+        var uniqueModuleFiles:Array = [];
+        for (var key:String in uniqueFileNameToFile)
+        {
+            uniqueModuleFiles.push(uniqueFileNameToFile[key]);
+        }
+
+        return uniqueModuleFiles;
+    }
+
+    private function getFilename(file:File):String
+    {
+        return file.name.replace("." + file.extension, "");
     }

     private function loadModule(moduleFile:File):void


Bug in trackIOSInAppPurchaseEvent

Bug in trackIOSInAppPurchaseEvent

There was a bug in trackIOSInAppPurchaseEvent, the productID parameter was given twice to extContext.call. I removed the wrong one.

--- actionscript/src/com/chartboost/plugin/air/Chartboost.as
+++ actionscript/src/com/chartboost/plugin/air/Chartboost.as
@@ -260,7 +260,7 @@
 		/** Chartboost in-app purchase analytics */
 		public function trackIOSInAppPurchaseEvent(title:String, description:String, price:Number, currency:String, productID:String, receipt:String):void {
 			if (isPluginSupported() && isIOS()) {
-				extContext.call("trackInAppPurchaseEvent", receipt, title, description, price, productID, currency, productID);
+				extContext.call("trackInAppPurchaseEvent", receipt, title, description, price, currency, productID);
 			}
 		}

@@ -391,4 +391,4 @@
 }

 // cause error if we instantiate Chartboost from anywhere other than this file
-internal class SingletonEnforcer { }+internal class SingletonEnforcer { }


Transferred from the Adobe Open Source Subversion Repository

Revision: 842
Author:   genovese@adobe.com
Date:     2008-03-17T21:51:41.069586Z

Log Message:
-----------
Minor ASDoc changes

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/LoadEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AbstractOperation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/AbstractWebService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AsyncRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/remoting/RemoteObject.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/IResponder.as</path>

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

--- frameworks/projects/rpc/src/mx/rpc/AsyncRequest.as
+++ frameworks/projects/rpc/src/mx/rpc/AsyncRequest.as
@@ -105,9 +105,12 @@
 	}

    /**
-    * Returns true if there are any pending requests for the passed in message.
+    * Returns true if there are any pending requests for the passed in message.
     *
     * @param msg The message for which the existence of pending requests is checked.
+    *
+    * @return true if there are any pending requests for the passed in message;
+    * otherwise, returns false
     */
 	override public function hasPendingRequestForMessage(msg:IMessage):Boolean
 	{
@@ -119,6 +122,10 @@
 	/**
 	 *  Dispatches the asynchronous request and stores the responder to call
 	 *  later.
+         *
+         * @param msg The message to be sent asynchronously.
+         *
+         * @param responder The responder to be called later.
 	 */
 	public function invoke(msg:IMessage, responder:IResponder):void
 	{


Transferred from the Adobe Open Source Subversion Repository

Revision: 13210
Author:   gosmith@adobe.com
Date:     2009-12-23T23:59:36.729401Z

Log Message:
-----------
Added ASDoc for the Spark VideoPlayerAccImpl and the MX AccImpl classes, based on the opensource specs. This completes our planned accessibility-ASDoc improvements.

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/VideoPlayerAccImpl.as</path>

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

--- frameworks/projects/spark/src/spark/accessibility/VideoPlayerAccImpl.as
+++ frameworks/projects/spark/src/spark/accessibility/VideoPlayerAccImpl.as
@@ -36,14 +36,214 @@
 import spark.events.SkinPartEvent;
 import spark.events.VideoEvent;

-
 use namespace mx_internal;

 [ResourceBundle("components")]

 /**
- *  VideoPlayerAccImpl is a subclass of AccessibilityImplementation
- *  which implements accessibility for the VideoPlayer class.
+ *  VideoPlayerAccImpl is the accessibility implementation class
+ *  for spark.components.VideoPlayer.
+ *
+ *
When a Spark VideoPlayer is created,
+ *  its accessibilityImplementation property
+ *  is set to an instance of this class.
+ *  The Flash Player then uses this class to allow MSAA clients
+ *  such as screen readers to see and manipulate the VideoPlayer.
+ *  See the mx.accessibility.AccImpl and
+ *  flash.accessibility.AccessibilityImplementation classes
+ *  for background information about accessibility implementation
+ *  classes and MSAA.

+ *
+ *
Children

+ *
+ *
The VideoPlayer has six MSAA children:
+ *

+ *
Play/Pause control

+ *
Scrub control

+ *
Play time indicator

+ *
Mute control

+ *
Volume control

+ *
Full Screen control

+ *

+ *
+ *
The controls will always appear in the same order for accessibility
+ *  regardless of the order of controls in the skin.

+ *
+ *
Role

+ *
+ *
The MSAA Role of a VideoPlayer is ROLE_SYSTEM_PANE.

+ *
+ *
The Role of each child control is:
+ *

+ *
Play/Pause control: ROLE_SYSTEM_BUTTON

+ *
Scrub control: ROLE_SYSTEM_SLIDER

+ *
Play time indicator: ROLE_SYSTEM_STATICTEXT

+ *
Mute control: ROLE_SYSTEM_BUTTON

+ *
Volume control: ROLE_SYSTEM_SLIDER

+ *
Full Screen control: ROLE_SYSTEM_BUTTON

+ *

+ *
+ *
Name

+ *
+ *
The MSAA Name of a VideoPlayer is, by default,
+ *  specified by a locale-dependent resource.
+ *  For the en_US locale, the name is "VideoPlayer".
+ *  When wrapped in a FormItem element,
+ *  this name is combined with the FormItem's label.
+ *  To override this behavior,
+ *  set the VideoPlayer's's accessibilityName property.

+ *
+ *
The Name of each child control is similarly specified by a resource.
+ *  The en_US names are:
+ *

+ *
Play/Pause control: "Play" or "Pause"

+ *
Scrub control: "Scrub Bar"

+ *
Play time indicator: the displayed text

+ *
Mute control: "Muted" or "Not muted"

+ *
Volume control: "Volume Bar"

+ *
Full Screen control: "Full Screen"

+ *

+ *
+ *
To override the names of these child controls, reskin the VideoPlayer
+ *  and set the accessibilityName of the controls.

+ *
+ *
Note that the Play/Pause control and the Mute control
+ *  have MSAA Names which change as you interact with them.
+ *  To specify them, set accessibilityName
+ *  to a comma-separated list of MSAA Names,
+ *  such as "Play,Pause" or "Not Muted,Muted".

+ *
+ *
When the Name of the VideoPlayer or one of its child controls changes,
+ *  a VideoPlayer dispatches the MSAA event EVENT_OBJECT_NAMECHANGE
+ *  with the proper childID for the control or 0 for itself.

+ *
+ *
Description

+ *
+ *
The MSAA Description of a VideoPlayer is, by default, the empty string,
+ *  but you can set the VideoPlayer's accessibilityDescription
+ *  property.

+ *
+ *
The Description of each child control is the empty string.

+ *
+ *
State

+ *
+ *
The MSAA State of a VideoPlayer is STATE_SYSTEM_NORMAL.

+ *
+ *
The State of each child control is:
+ *

+ *
Play/Pause control:
+ *

+ *
STATE_SYSTEM_UNAVAILABLE

+ *
STATE_SYSTEM_FOCUSABLE

+ *
STATE_SYSTEM_FOCUSED

+ *

+ *
Scrub control:
+ *

+ *
STATE_SYSTEM_UNAVAILABLE

+ *
STATE_SYSTEM_FOCUSABLE

+ *
STATE_SYSTEM_FOCUSED

+ *

+ *
Play time indicator:
+ *

+ *
STATE_SYSTEM_UNAVAILABLE

+ *
STATE_SYSTEM_READONLY

+ *

+ *
Mute control:
+ *

+ *
STATE_SYSTEM_UNAVAILABLE

+ *
STATE_SYSTEM_FOCUSABLE

+ *
STATE_SYSTEM_FOCUSED

+ *

+ *
Volume control:
+ *

+ *
STATE_SYSTEM_UNAVAILABLE

+ *
STATE_SYSTEM_FOCUSABLE

+ *
STATE_SYSTEM_FOCUSED

+ *

+ *
Full Screen control:
+ *

+ *
STATE_SYSTEM_UNAVAILABLE

+ *
STATE_SYSTEM_FOCUSABLE

+ *
STATE_SYSTEM_FOCUSED

+ *

+ *

+ *
+ *
When the State of the VideoPlayer or one of its child controls changes,
+ *  a VideoPlayer dispatches the MSAA event EVENT_OBJECT_STATECHANGE
+ *  with the proper childID for the control or 0 for itself.

+ *
+ *
Value

+ *
+ *
A VideoPlayer does not have an MSAA Value.

+ *
+ *
THe Value of each child control is:
+ *

+ *
Play/Pause control: no Value

+ *
Scrub control: Value of slider as an amount of time

+ *
Play time indicator: no Value

+ *
Mute control: no Value

+ *
Volume control: Value of slider

+ *
Full Screen control: no Value

+ *

+ *
+ *
When the Value of a child control changes,
+ *  a VideoPlayer dispatches the MSAA event EVENT_OBJECT_VALUECHANGE
+ *  with the proper childID for the control.

+ *
+ *
Location

+ *
+ *
The MSAA Location of a VideoPlayer, or one of its child controls,
+ *  is its bounding rectangle.

+ *
+ *
Default Action

+ *
+ *
A VideoPlayer does not have an MSAA DefaultAction.

+ *
+ *
The DefaultAction of each child control is:
+ *

+ *
Play/Pause control: "Press"

+ *
Scrub control: none

+ *
Play time indicator: none

+ *
Mute control: "Press"

+ *
Volume control: none

+ *
Full Screen control: "Press"

+ *

+ *
+ *
Performing the default action of one of the child controls
+ *  will have the following effect:
+ *

+ *
Play/Pause control: toggle between Play and Pause

+ *
Scrub control: none

+ *
Play time indicator: none

+ *
Mute control: toggle between Mute and Not Muted

+ *
Volume control: none

+ *
Full Screen control: toogle Full Screen on and off

+ *

+ *
+ *
Focus

+ *
+ *
A VideoPlayer accepts focus.
+ *  When it does so, it dispatches the MSAA event EVENT_OBJECT_FOCUS event.

+ *
+ *
Some of its child controls also accept focus:
+ *

+ *
Play/Pause control: accepts focus

+ *
Scrub control: accepts focus

+ *
Play time indicator: does not accept focus

+ *
Mute control: transfers focus to Volume Bar

+ *
Volume control: accepts focus

+ *
Full Screen control: accepts focus

+ *

+ *
+ *
When reporting focus, the VideoPlayer reports itself
+ *  if it is focused and none of its child controls is focused.
+ *  Otherwise, the focus may be reported as being on
+ *  the Play/Pause control, the Scrub control,
+ *  the Volume control, or the Full Screen control.

+ *
+ *
Selection

+ *
+ *
A VideoPlayer does not support selection in the MSAA sense.

  *
  *  @langversion 3.0
  *  @playerversion Flash 10


FLEX-34979 Adding Apache header.

FLEX-34979 Adding Apache header.

--- frameworks/projects/spark/src/spark/collections/AdvancedStyleClient_.as
+++ frameworks/projects/spark/src/spark/collections/AdvancedStyleClient_.as
@@ -1,3 +1,22 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+
 package spark.collections {
     import mx.core.FlexGlobals;
     import mx.core.UIComponent;


Transferred from the Adobe Open Source Subversion Repository

Revision: 7929
Author:   hmuller@adobe.com
Date:     2009-06-17T23:06:42.698986Z

Log Message:
-----------
Range et al PARB changes, Opus #1.   In addition to the changes listed below, updated
flex4tests, notably ScrollBarFrenzy, for the new API.   These changes will break
performance test suite (TwoThumbSlider.as).

Range
  valueInterval => snapInterval
  step() => changeValueByStep()
  remove protected nearestValidSize() method

Slider
  Add protected pendingValue property
  Remove protected pointClickToPosition() method

TrackBase
  Add two new protected methods: updateSkinDisplayList(), pointToValue()
  Remove the following protected properties: get trackSize:Number, thumbSize:Number
  Remove the following protected methods:
      clickOffset()
      positionToValue()
      valueToPosition()
      pointToPosition()
      positionThumb()
      sizeThumb()
      calculateThumbSize()
      calculateNewValue()

ScrollBar
  page() => changeValueByPage()

Spinner
  valueWrap => allowValueWrap

NumericStepper
  displayFormatFunction => valueFormatFunction
  extractValueFunction => valueParseFunction
  commitTextInput => make private

QE Notes: Most Mustella tests passed after the protected API changes but prior to the renames.
Doc Notes:
Bugs:
Reviewer: Jason, Chet

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/Range.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/TrackBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/HSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/HScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/mediaClasses/ScrubBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/VideoPlayerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/spark/VideoPlayerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/SkinTest.mxml</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/flex4/src/spark/components/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Spinner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/ScrollbarFrenzy.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/flex4test.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/components/CircularScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/skins/CircularScrollBarSkin.mxml</path>

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

--- frameworks/projects/spark/src/spark/components/mediaClasses/ScrubBar.as
+++ frameworks/projects/spark/src/spark/components/mediaClasses/ScrubBar.as
@@ -193,11 +193,24 @@
     /**
      *  @private
      */
-    override protected function completeTrackLayout():void
-    {
-        super.completeTrackLayout();
-        sizeBufferedArea(valueToPosition(bufferedEnd) + thumbSize);
-        sizePlayedArea(valueToPosition(value) + thumbSize);
+    private function calculateAreaSize(value:Number):Number
+    {
+        var trackPos:Number = track.getLayoutBoundsX();
+        var trackSize:Number = track.getLayoutBoundsWidth();
+        var thumbSize:Number = thumb.getLayoutBoundsWidth();
+        var range:Number = maximum - minimum;
+        var thumbPos:Number = (range > 0) ? (pendingValue - minimum) * ((trackSize - thumbSize) / range) : 0;
+        return thumbSize + thumbPos;
+    }
+
+    /**
+     *  @private
+     */
+    override protected function updateSkinDisplayList():void
+    {
+        super.updateSkinDisplayList();
+        sizeBufferedArea(calculateAreaSize(bufferedEnd));
+        sizePlayedArea(calculateAreaSize(value));
     }

     /**


F Minor correction due to error in last commit

--- src/aerys/minko/render/shader/SFloat.as
+++ src/aerys/minko/render/shader/SFloat.as
@@ -122,7 +122,7 @@
 			var propertyNode		: AbstractNode	= getNode(value);

 			_node = new Overwriter(
-				new <AbstractNode>[node, propertyNode],
+				new <AbstractNode>[_node, propertyNode],
 				new <uint>[nodeComponent, propertyComponent]
 			);
 		}


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

--- frameworks/projects/framework/src/mx/core/IDisplayObjectInterface.as
+++ frameworks/projects/framework/src/mx/core/IDisplayObjectInterface.as
@@ -14,22 +14,42 @@
  *  but for backward compatibility, they have to be included
  *  directly into IFlexDisplayObject, so they are kept in
  *  this separate include file.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */

     /**
      *  @copy flash.display.DisplayObject#root
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get root():DisplayObject;

     /**
      *  @copy flash.display.DisplayObject#stage
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get stage():Stage;

     /**
      *  @copy flash.display.DisplayObject#name
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get name():String;
     function set name(value:String):void;
@@ -37,12 +57,22 @@

     /**
      *  @copy flash.display.DisplayObject#parent
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get parent():DisplayObjectContainer;

     /**
      *  @copy flash.display.DisplayObject#mask
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get mask():DisplayObject;
     function set mask(value:DisplayObject):void;
@@ -50,6 +80,11 @@

     /**
      *  @copy flash.display.DisplayObject#visible
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get visible():Boolean;
     function set visible(value:Boolean):void;
@@ -57,6 +92,11 @@

     /**
      *  @copy flash.display.DisplayObject#x
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get x():Number;
     function set x(value:Number):void;
@@ -64,6 +104,11 @@

     /**
      *  @copy flash.display.DisplayObject#y
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get y():Number;
     function set y(value:Number):void;
@@ -71,6 +116,11 @@

     /**
      *  @copy flash.display.DisplayObject#scaleX
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get scaleX():Number;
     function set scaleX(value:Number):void;
@@ -78,6 +128,11 @@

     /**
      *  @copy flash.display.DisplayObject#scaleY
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get scaleY():Number;
     function set scaleY(value:Number):void;
@@ -85,18 +140,33 @@

     /**
      *  @copy flash.display.DisplayObject#mouseX
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get mouseX():Number; // note: no setter

     /**
      *  @copy flash.display.DisplayObject#mouseY
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get mouseY():Number; // note: no setter

     /**
      *  @copy flash.display.DisplayObject#rotation
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get rotation():Number;
     function set rotation(value:Number):void;
@@ -104,6 +174,11 @@

     /**
      *  @copy flash.display.DisplayObject#alpha
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get alpha():Number;
     function set alpha(value:Number):void;
@@ -111,12 +186,22 @@

     /**
      *  @copy flash.display.DisplayObject#width
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get width():Number;
     function set width(value:Number):void;

     /**
      *  @copy flash.display.DisplayObject#height
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get height():Number;
     function set height(value:Number):void;
@@ -124,12 +209,22 @@

     /**
      *  @copy flash.display.DisplayObject#cacheAsBitmap
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get cacheAsBitmap():Boolean;
     function set cacheAsBitmap(value:Boolean):void;

     /**
      *  @copy flash.display.DisplayObject#opaqueBackground
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get opaqueBackground():Object;
     function set opaqueBackground(value:Object):void;
@@ -137,6 +232,11 @@

     /**
      *  @copy flash.display.DisplayObject#scrollRect
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get scrollRect():Rectangle;
     function set scrollRect(value:Rectangle):void;
@@ -144,65 +244,125 @@

     /**
      *  @copy flash.display.DisplayObject#filters
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get filters():Array;
     function set filters(value:Array):void;

     /**
      *  @copy flash.display.DisplayObject#blendMode
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get blendMode():String;
     function set blendMode(value:String):void;

     /**
      *  @copy flash.display.DisplayObject#transform
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get transform():Transform;
     function set transform(value:Transform):void;

     /**
      *  @copy flash.display.DisplayObject#scale9Grid
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get scale9Grid():Rectangle;
     function set scale9Grid(innerRectangle:Rectangle):void;

     /**
      *  @copy flash.display.DisplayObject#globalToLocal()
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function globalToLocal(point:Point):Point;

     /**
      *  @copy flash.display.DisplayObject#localToGlobal()
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function localToGlobal(point:Point):Point;

     /**
      *  @copy flash.display.DisplayObject#getBounds()
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function getBounds(targetCoordinateSpace:DisplayObject):Rectangle;

     /**
      *  @copy flash.display.DisplayObject#getRect()
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function getRect(targetCoordinateSpace:DisplayObject):Rectangle;

     /**
      *  @copy flash.display.DisplayObject#loaderInfo
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get loaderInfo() : LoaderInfo;

     /**
      *  @copy flash.display.DisplayObject#hitTestObject()
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function hitTestObject(obj:DisplayObject):Boolean;

     /**
      *  @copy flash.display.DisplayObject#hitTestPoint()
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function hitTestPoint(x:Number, y:Number, shapeFlag:Boolean=false):Boolean;

     /**
      *  @copy flash.display.DisplayObject#accessibilityProperties
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get accessibilityProperties() : AccessibilityProperties;
     function set accessibilityProperties( value : AccessibilityProperties ) : void;


Transferred from the Adobe Open Source Subversion Repository

Revision: 11660
Author:   rfrishbe@adobe.com
Date:     2009-11-11T18:42:54.860139Z

Log Message:
-----------
Change IItemRendererOwner’s updateRenderer() method definition to:

/**
 *  Updates the renderer for re-use. This first prepares the item
 *  renderer for re-use by clearing out any stale properties
 *  as well as updating it with new properties.
 *
 *
The last thing this method should do is set the data property
 *  on the renderer.

 *
 *  @param renderer The item renderer.
 *  @param itemIndex The index of the data in the data provider
 *  @param data The data object this item renderer is representing
 *
 *  @langversion 3.0
 *  @playerversion Flash 10
 *  @playerversion AIR 1.5
 *  @productversion Flex 4
 */
function updateRenderer(renderer:IVisualElement, itemIndex:int, data:Object):void;

Before, it only took one parameter, the renderer.  Now it takes 3.

The reason for this change is to make the code a little cleaner in terms of the separation between DataGroup and List.  Now DataGroup won’t do any work if the mx_internal _rendererUpdateDelegate is set.  If it is set (to a List for instance), then _rendererUpdateDelegate.updateRenderer(renderer, itemIndex, data) will be called.  This makes the updateRenderer() pass more clear because it’s all done in the rendererUpdateDelegate (rather than splitting it in DataGroup and ListBase).  It also makes it easier to get the ordering of properties correctly as we want the “data” property to be the last set property as part of the “item renderer contract”.

As part of this change, DataGroup is the default _rendererUpdateDelegate, and because of this it now implements IItemRendererOwner.  The only other method on IItemRendererOwner besides updateRenderer() is itemToLabel().  DataGroup already had a private itemToLabel() method, so I’m just making it public.

Also, I'm making label and itemIndex bindable to the "dataChange" event now.

QE notes: Please test that the data property is the last thing set
Doc notes: You could update the documentation around item renderers to mention that the data property should be the last thing set.
Bugs: SDK-19870, SDK-24086
Reviewer: Deepa
Tests run: checkintest, mustella list, listdragdrop, dropdownlist, combobox, buttonbar
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/IItemRendererOwner.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/supportClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableDataContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ListItemDragProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DataGroup.as</path>

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

--- frameworks/projects/spark/src/spark/components/IItemRendererOwner.as
+++ frameworks/projects/spark/src/spark/components/IItemRendererOwner.as
@@ -52,17 +52,22 @@

     /**
      *  Updates the renderer for re-use. This first prepares the item
-     *  renderer for re-use by clearning out any stale properties
-     *  as well as updating it with new properties.
+     *  renderer for re-use by cleaning out any stale properties
+     *  as well as updating it with new properties.
+     *
+     *
The last thing this method should do is set the data property
+     *  on the renderer.

      *
      *  @param renderer The item renderer.
+     *  @param itemIndex The index of the data in the data provider
+     *  @param data The data object this item renderer is representing
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    function updateRenderer(renderer:IVisualElement):void;
+    function updateRenderer(renderer:IVisualElement, itemIndex:int, data:Object):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@1284593 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/spark/src/spark/events/RendererExistenceEvent.as
+++ frameworks/projects/spark/src/spark/events/RendererExistenceEvent.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 spark.events
 {


CHANGED:applied the event meta data for code completion at MQTTSocket.as;

--- MQTTClient_AS3/src/com/godpaper/mqtt/as3/impl/MQTTSocket.as
+++ MQTTClient_AS3/src/com/godpaper/mqtt/as3/impl/MQTTSocket.as
@@ -46,12 +46,18 @@

 	import mx.logging.ILogger;

-//TODO:event metdata declare
-//	/** Dispatched when a new MQTT server is connected. */
-//	[Event(name="mqttConnect", type="flash.events.Event")]
-//
-//	/** Dispatched when a new  MQTT server is closed. */
-//	[Event(name="mqttClose", type="flash.events.Event")]
+//event metdata declare
+	/** Dispatched when a new MQTT server is connected. */
+	[Event(name="mqttConnect", type="com.godpaper.mqtt.as3.core.MQTTEvent")]
+
+	/** Dispatched when a new  MQTT server is closed. */
+	[Event(name="mqttClose", type="com.godpaper.mqtt.as3.core.MQTTEvent")]
+
+	/** Dispatched when a new MQTT server is messag-ed. */
+	[Event(name="mqttMessage", type="com.godpaper.mqtt.as3.core.MQTTEvent")]
+
+	/** Dispatched when a new  MQTT server is error-ed. */
+	[Event(name="mqttError", type="com.godpaper.mqtt.as3.core.MQTTEvent")]
 	/**
 	 * Pure Action Script 3 that implements the MQTT (Message Queue Telemetry Transport) protocol, a lightweight protocol for publish/subscribe messaging. </br>
 	 * AS3 socket is a mechanism used to send data over a network (e.g. the Internet), it is the combination of an IP address and a port. </br>


qnd: add referrer and ks on thumbURl, if needed

git-svn-id: 3f608e5a9a704dd448217c0a64c508e7f145cfa1@85989 6b8eccd3-e8c5-4e7d-8186-e12b5326b719

--- plugins/playlistApiPlugin/src/playlistAPIPluginCode.as
+++ plugins/playlistApiPlugin/src/playlistAPIPluginCode.as
@@ -6,6 +6,8 @@
 	import com.akamai.rss.Media;
 	import com.kaltura.base.types.MediaTypes;
 	import com.kaltura.events.KalturaEvent;
+	import com.kaltura.kdpfl.model.ConfigProxy;
+	import com.kaltura.kdpfl.model.ServicesProxy;
 	import com.kaltura.kdpfl.model.type.NotificationType;
 	import com.kaltura.kdpfl.plugin.IPlugin;
 	import com.kaltura.kdpfl.plugin.component.KDataProvider;
@@ -13,6 +15,7 @@
 	import com.kaltura.kdpfl.plugin.component.PlaylistEntryVO;
 	import com.kaltura.kdpfl.plugin.type.PlaylistNotificationType;
 	import com.kaltura.kdpfl.util.Functor;
+	import com.kaltura.kdpfl.util.URLUtils;
 	import com.kaltura.utils.KConfigUtil;
 	import com.kaltura.vo.KalturaPlayableEntry;

@@ -22,6 +25,7 @@
 	import flash.events.Event;

 	import org.puremvc.as3.interfaces.IFacade;
+	import org.puremvc.as3.patterns.facade.Facade;

 	/**
 	 * playlistAPIPluginCode needs to be dynamic so it can receive
@@ -251,7 +255,15 @@
 				}
 				kalturaEntry.duration = parseInt(contentTo.duration);
 				if (itemTo.media.thumbnail)
+				{
 					kalturaEntry.thumbnailUrl = itemTo.media.thumbnail.url;
+					if (kalturaEntry.thumbnailUrl.indexOf( "thumbnail/entry_id" ) != -1)
+					{
+						kalturaEntry.thumbnailUrl +=  URLUtils.getThumbURLPostfix((Facade.getInstance().retrieveProxy(ConfigProxy.NAME) as ConfigProxy).vo.flashvars,
+						(Facade.getInstance().retrieveProxy(ServicesProxy.NAME) as ServicesProxy).vo.kalturaClient.ks);
+					}
+
+				}
 				kalturaEntry.name = itemTo.media.title;
 				kalturaEntry.description = itemTo.media.description;
 				kalturaEntry['partnerLandingPage'] = itemTo.link;


Make LifeCycleObject subclass of EventDispatcher

--- as3/smartform/src/com/rpath/raf/util/LifecycleObject.as
+++ as3/smartform/src/com/rpath/raf/util/LifecycleObject.as
@@ -16,8 +16,9 @@
     import flash.utils.Dictionary;

     import mx.core.FlexGlobals;
+    import flash.events.EventDispatcher;

-    public class LifecycleObject
+    public class LifecycleObject extends EventDispatcher
     {
         public function LifecycleObject()
         {


Transferred from the Adobe Open Source Subversion Repository

Revision: 16970
Author:   aharui@adobe.com
Date:     2010-07-19T17:08:49.340875Z

Log Message:
-----------
add better error handling to LayoutManager.  It now tracks which object is being validated and adds that object to the callLaterError event.
Also add code to UIComponent to propagate nestLevel=0 through to its children on being removed from a parent.  That way nestLevel now represents whether a UIComponent is on the display list or not.  LayoutManager now uses that and will not validated objects not on the display list (and removes them from the validation queue).

QE notes: removing children will be slower, but should be insignificant more most trees of objects
Doc notes: new field in callLaterError event, but this is specifically for Catalyst, not really for the public
Bugs: SDK-26539, SDK-26540
Reviewer: Corey
Tests run: checkintests cyclone server
Is noteworthy for integration: yes

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/LayoutManager.as</path>

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

--- frameworks/projects/framework/src/mx/core/UIComponent.as
+++ frameworks/projects/framework/src/mx/core/UIComponent.as
@@ -4025,23 +4025,30 @@

             updateCallbacks();

-            var childList:IChildList = (this is IRawChildrenContainer) ?
-                IRawChildrenContainer(this).rawChildren : IChildList(this);
-            var n:int = childList.numChildren;
-            for (var i:int = 0; i < n; i++)
+			value ++;
+		}
+		else if (value == 0)
+			_nestLevel = value = 0;
+		else
+			value ++;
+
+		var childList:IChildList = (this is IRawChildrenContainer) ?
+			IRawChildrenContainer(this).rawChildren : IChildList(this);
+
+        var n:int = childList.numChildren;
+        for (var i:int = 0; i < n; i++)
+        {
+            var ui:ILayoutManagerClient  = childList.getChildAt(i) as ILayoutManagerClient;
+            if (ui)
             {
-                var ui:ILayoutManagerClient  = childList.getChildAt(i) as ILayoutManagerClient;
-                if (ui)
-                {
-                    ui.nestLevel = value + 1;
-                }
-                else
-                {
-                    var textField:IUITextField = childList.getChildAt(i) as IUITextField;
-
-                    if (textField)
-                        textField.nestLevel = value + 1;
-                }
+                ui.nestLevel = value;
+            }
+            else
+            {
+                var textField:IUITextField = childList.getChildAt(i) as IUITextField;
+
+                if (textField)
+                    textField.nestLevel = value;
             }
         }
     }
@@ -7184,7 +7191,7 @@
         if (!p)
         {
             _parent = null;
-            _nestLevel = 0;
+            nestLevel = 0;
         }
         else if (p is IStyleClient)
         {
@@ -7581,7 +7588,7 @@
         {
             invalidatePropertiesFlag = true;

-            if (parent && UIComponentGlobals.layoutManager)
+            if (nestLevel && UIComponentGlobals.layoutManager)
                 UIComponentGlobals.layoutManager.invalidateProperties(this);
         }
     }
@@ -7614,7 +7621,7 @@
         {
             invalidateSizeFlag = true;

-            if (parent && UIComponentGlobals.layoutManager)
+            if (nestLevel && UIComponentGlobals.layoutManager)
                 UIComponentGlobals.layoutManager.invalidateSize(this);
         }
     }
@@ -7669,7 +7676,7 @@
         {
             invalidateDisplayListFlag = true;

-            if (isOnDisplayList() && UIComponentGlobals.layoutManager)
+            if (nestLevel && UIComponentGlobals.layoutManager)
                 UIComponentGlobals.layoutManager.invalidateDisplayList(this);
         }
     }
@@ -7679,7 +7686,7 @@
         if (_layoutFeatures && _layoutFeatures.updatePending == false)
         {
             _layoutFeatures.updatePending = true;
-            if (isOnDisplayList() && UIComponentGlobals.layoutManager &&
+            if (nestLevel && UIComponentGlobals.layoutManager &&
                 invalidateDisplayListFlag == false)
             {
                 UIComponentGlobals.layoutManager.invalidateDisplayList(this);
@@ -7753,22 +7760,6 @@
         invalidateTransform();
     }

-    private function isOnDisplayList():Boolean
-    {
-        var p:DisplayObjectContainer;
-
-        try
-        {
-            p = _parent ? _parent : super.parent;
-        }
-        catch (e:SecurityError)
-        {
-            // trace("UIComponent.isOnDisplayList(): " + e);
-            return true;        // we are on the display list but the parent is in another sandbox
-        }
-
-        return p ? true : false;
-    }

     /**
      *  Flex calls the stylesInitialized() method when


Transferred from the Adobe Open Source Subversion Repository

Revision: 2462
Author:   jimurphy@adobe.com
Date:     2008-07-14T19:13:06.620116Z

Log Message:
-----------
gumbo push to trunk

Modified Paths:
--------------
214 paths were modified

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

--- frameworks/projects/framework/src/mx/core/UIComponent.as
+++ frameworks/projects/framework/src/mx/core/UIComponent.as
@@ -2078,7 +2078,7 @@
                 if (e)
                     e.addEventListener("change", filterChangeHandler);
             }
-        }
+       }

         super.filters = _filters;
     }
@@ -4365,18 +4365,31 @@
     //----------------------------------
     //  states
     //----------------------------------
+
+    private var _states:Array /* of State */ = [];

     [Inspectable(arrayType="mx.states.State")]
     [ArrayElementType("mx.states.State")]
-
+
     /**
      *  The view states that are defined for this component.
      *  You can specify the states property only on the root
      *  of the application or on the root tag of an MXML component.
      *  The compiler generates an error if you specify it on any other control.
      */
-    public var states:Array /* of State */ = [];
-
+    public function get states():Array
+    {
+        return _states;
+    }
+
+    /**
+     *  @private
+     */
+    public function set states(value:Array):void
+    {
+        _states = value;
+    }
+
     //----------------------------------
     //  transitions
     //----------------------------------
@@ -4386,18 +4399,30 @@
      *  Transition effect currently playing.
      */
     private var _currentTransitionEffect:IEffect;
+
+    private var _transitions:Array /* of Transition */ = [];

     [Inspectable(arrayType="mx.states.Transition")]
     [ArrayElementType("mx.states.Transition")]
-
+
     /**
      *  An Array of Transition objects, where each Transition object defines a
      *  set of effects to play when a view state change occurs.
      *
      *  @see mx.states.Transition
      */
-    public var transitions:Array /* of Transition */ = [];
-
+    public function get transitions():Array
+    {
+        return _transitions;
+    }
+
+    /**
+     *  @private
+     */
+    public function set transitions(value:Array):void
+    {
+        _transitions = value;
+    }
     //--------------------------------------------------------------------------
     //
     //  Properties: Other
@@ -7094,6 +7119,10 @@
     public function setCurrentState(stateName:String,
                                     playTransition:Boolean = true):void
     {
+        // Flex 4 has no concept of an explicit base state, so ensure we
+        // fall back to something appropriate.
+        stateName = isBaseState(stateName) ? getDefaultState() : stateName;
+
         // Only change if the requested state is different. Since the root
         // state can be either null or "", we need to add additional check
         // to make sure we're not going from null to "" or vice-versa.
@@ -7131,6 +7160,17 @@
         return !stateName || stateName == "";
     }

+    /**
+     *  @private
+     *  Returns the default state. For Flex 4 and later we return the base
+     *  the first defined state, otherwise (Flex 3 and earlier), we return
+     *  the base (null) state.
+     */
+    private function getDefaultState():String
+    {
+        return (this is IStateClient2 && (states.length > 0)) ? states[0].name : null;
+    }
+
     /**
      *  @private
      *  Commit a pending current state change.
@@ -8358,6 +8398,17 @@
             if (!indices)
             {
                 parentDocument[id] = this;
+
+                // TODO: Determine if we want "idAssigned" to be an event or
+                // callback function. If this is changed, it alse needs to be
+                // updated in:
+                // modules/compiler/src/java/flex2/compiler/mxml/rep/init/ValueInitializer.java
+                var e:PropertyChangeEvent = new PropertyChangeEvent("idAssigned");
+                e.source = parentDocument;
+                e.property = id;
+                e.oldValue = null;
+                e.newValue = this;
+                parentDocument.dispatchEvent(e);
             }
             else
             {


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

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

--- frameworks/projects/framework/src/mx/core/UIComponent.as
+++ frameworks/projects/framework/src/mx/core/UIComponent.as
@@ -77,8 +77,8 @@
 import mx.styles.IAdvancedStyleClient;
 import mx.styles.ISimpleStyleClient;
 import mx.styles.IStyleClient;
+import mx.styles.IStyleManager2;
 import mx.styles.StyleManager;
-import mx.styles.IStyleManager2;
 import mx.styles.StyleProtoChain;
 import mx.utils.ColorUtil;
 import mx.utils.GraphicsUtil;
@@ -3436,7 +3436,7 @@
     /**
      *  @private
      *
-     *  Returns the StyleManager object used by this component.
+     *  Returns the style manager used by this component.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -3445,16 +3445,7 @@
      */
     public function get styleManager():IStyleManager2
     {
-        var styleManager:IStyleManager2;
-
-        if (moduleFactory)
-            styleManager = moduleFactory.getImplementation("mx.styles::IStyleManager2") as IStyleManager2;
-
-        if (!styleManager)
-            styleManager = SystemManagerGlobals.topLevelSystemManagers[0].
-                getImplementation("mx.styles::IStyleManager2") as IStyleManager2;
-
-        return styleManager;
+        return StyleManager.getStyleManager(moduleFactory);
     }

     //----------------------------------
@@ -3997,8 +3988,9 @@
     [Inspectable(environment="none")]

     /**
-     *  The moduleFactory that is used to create TextFields in the correct SWF context. This is necessary so that
-     *  embedded fonts will work.
+     *  A module factory is used as context for using embeded fonts and for
+     *  finding the style manager that controls the styles for this
+     *  component.
      *
      *  @langversion 3.0
      *  @playerversion Flash 9
@@ -9868,8 +9860,8 @@
     protected function stateChanged(oldState:String, newState:String, recursive:Boolean):void
     {
         if (currentCSSState && oldState != newState &&
-               (StyleManager.hasPseudoCondition(oldState) ||
-                StyleManager.hasPseudoCondition(newState)))
+               (styleManager.hasPseudoCondition(oldState) ||
+                styleManager.hasPseudoCondition(newState)))
         {
             regenerateStyleCache(recursive);
             initThemeColor();
@@ -9906,8 +9898,8 @@
      *  not the same as false, "",
      *  NaN, 0, or null.
      *  No valid style value is ever undefined.
-     *  You can use the static method
-     *  StyleManager.isValidStyleValue()
+     *  You can use the method
+     *  IStyleManager2.isValidStyleValue()
      *  to test whether the value was set.

      *
      *  @param styleProp Name of the style property.
@@ -9921,7 +9913,7 @@
      */
     public function getStyle(styleProp:String):*
     {
-        return StyleManager.inheritingStyles[styleProp] ?
+        return styleManager.inheritingStyles[styleProp] ?
                _inheritingStyles[styleProp] :
                _nonInheritingStyles[styleProp];
     }
@@ -10028,11 +10020,11 @@
             sc = _styleDeclaration.getStyle("selectionColor");
         }

-        if (StyleManager.hasAdvancedSelectors())
+        if (styleManager.hasAdvancedSelectors())
         {
             // Next look for matching selectors (working backwards, starting
             // with the most specific selector)
-            if (tc === null || !StyleManager.isValidStyleValue(tc))
+            if (tc === null || !styleManager.isValidStyleValue(tc))
             {
                 var styleDeclarations:Array = StyleProtoChain.getMatchingStyleDeclarations(this);
                 for (i = styleDeclarations.length - 1; i >= 0; i--)
@@ -10045,7 +10037,7 @@
                         sc = decl.getStyle("selectionColor");
                     }

-                    if (tc !== null && StyleManager.isValidStyleValue(tc))
+                    if (tc !== null && styleManager.isValidStyleValue(tc))
                         break;
                 }
             }
@@ -10053,12 +10045,12 @@
         else
         {
             // Next look for class selectors
-            if ((tc === null || !StyleManager.isValidStyleValue(tc)) &&
+            if ((tc === null || !styleManager.isValidStyleValue(tc)) &&
                 (styleName && !(styleName is ISimpleStyleClient)))
             {
                 var classSelector:Object =
                     styleName is String ?
-                    StyleManager.getStyleDeclaration("." + styleName) :
+                    styleManager.getStyleDeclaration("." + styleName) :
                     styleName;

                 if (classSelector)
@@ -10070,7 +10062,7 @@
             }

             // Finally look for type selectors
-            if (tc === null || !StyleManager.isValidStyleValue(tc))
+            if (tc === null || !styleManager.isValidStyleValue(tc))
             {
                 var typeSelectors:Array = getClassStyleDeclarations();

@@ -10085,7 +10077,7 @@
                         sc = typeSelector.getStyle("selectionColor");
                     }

-                    if (tc !== null && StyleManager.isValidStyleValue(tc))
+                    if (tc !== null && styleManager.isValidStyleValue(tc))
                         break;
                 }
             }
@@ -10094,13 +10086,13 @@
         // If we have a themeColor but no rollOverColor or selectionColor, call
         // setThemeColor here which will calculate rollOver/selectionColor based
         // on the themeColor.
-        if (tc !== null && StyleManager.isValidStyleValue(tc) && isNaN(rc) && isNaN(sc))
+        if (tc !== null && styleManager.isValidStyleValue(tc) && isNaN(rc) && isNaN(sc))
         {
             setThemeColor(tc);
             return true;
         }

-        return (tc !== null && StyleManager.isValidStyleValue(tc)) && !isNaN(rc) && !isNaN(sc);
+        return (tc !== null && styleManager.isValidStyleValue(tc)) && !isNaN(rc) && !isNaN(sc);
     }

     /**
@@ -10117,7 +10109,7 @@
             newValue = Number(value);

         if (isNaN(newValue))
-            newValue = StyleManager.getColorName(value);
+            newValue = styleManager.getColorName(value);

         var newValueS:Number = ColorUtil.adjustBrightness2(newValue, 50);


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

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

 package mx.events
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 5797
Author:   jimurphy@adobe.com
Date:     2009-03-31T15:35:34.544076Z

Log Message:
-----------
Merged revisions 3.x 5505,5526-5527,5535,5540,5542,5572,5616-5617,5656-5657,5671,5674,5683,5687-5688,5690,5698,5708-5709,5713-5716,5719-5723,5726,5728-5729,5736,5752,5754,5761,5774,5780,5784 -> trunk

most of these are user submitted patches! very cool.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/VideoDisplay.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/resources/IResourceManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ToggleButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Menu.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/CalendarLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ProgressIndeterminateSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/NavBar.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="D">/flex/sdk/trunk/modules/compiler/FlexCompilerShell-license.txt</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/DividedBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/formatters/DateFormatter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/FormItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/NativeDragManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridColumn.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/validators/PhoneNumberValidator.as</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/3.x/frameworks/projects/framework/src/mx/validators/NumberValidatorDomainType.as" copyfrom-rev="5784" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/validators/NumberValidatorDomainType.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/PopUpButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ToolTipManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/ObjectUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/validators/NumberValidator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/FocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/validators/CurrencyValidator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Form.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/resources/ResourceManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Label.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/CalendarLayoutChangeEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/DataGridEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/sliderClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/PopUpMenuButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Text.as</path>

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

--- frameworks/projects/framework/src/mx/utils/ObjectUtil.as
+++ frameworks/projects/framework/src/mx/utils/ObjectUtil.as
@@ -1169,7 +1169,10 @@
                             if (existing is Array)
                                 existingArray = existing as Array;
                             else
-                                existingArray = [];
+                            {
+                                existingArray = [existing];
+                                delete metadata[mdName];
+                            }
                             existingArray.push(value);
                             existing = existingArray;
                         }


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

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

 package mx.utils
 {


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

--- frameworks/projects/spark/src/spark/effects/SetAction.as
+++ frameworks/projects/spark/src/spark/effects/SetAction.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2008 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.
 //
 ////////////////////////////////////////////////////////////////////////////////


preventing infinite recursion

preventing infinite recursion

--- WeaveData/src/weave/data/AttributeColumns/EquationColumn.as
+++ WeaveData/src/weave/data/AttributeColumns/EquationColumn.as
@@ -175,6 +175,8 @@
 			if (_cachedMetadata.hasOwnProperty(propertyName))
 				return _cachedMetadata[propertyName] as String;

+			_cachedMetadata[propertyName] = undefined; // prevent infinite recursion
+
 			var value:String = metadata.value ? metadata.value[propertyName] as String : null;
 			if (value != null)
 			{


fixed crash bug.

fixed crash bug.

--- WeaveUI/src/weave/ui/CustomDataGrid/DataGridCellRenderer.as
+++ WeaveUI/src/weave/ui/CustomDataGrid/DataGridCellRenderer.as
@@ -87,6 +87,9 @@
 		{
 			super.updateDisplayList(unscaledWidth, unscaledHeight);

+			if (!owner)
+				return;
+
 			var g:Graphics = graphics;
 			g.clear();


Hide the viewport when it is removed from stage.

--- src/aerys/minko/render/Viewport.as
+++ src/aerys/minko/render/Viewport.as
@@ -319,6 +319,8 @@
 				_stage3d.addEventListener(Event.CONTEXT3D_CREATE, resetStage3D);
 				_stage3d.requestContext3D(Context3DRenderMode.AUTO);
 			}
+
+			_stage3d.visible = true;

 			if (!_logoIsHidden)
 				showLogo();
@@ -354,6 +356,8 @@
 		{
 			if (event.target != this)
 				return ;
+
+			_stage3d.visible = false;

 //			_stage3d.removeEventListener(Event.CONTEXT3D_CREATE, resetStage3D);
 //			_stage3d.context3D.dispose();


bug fix

bug fix

--- src/as3isolib/display/IsoSprite.as
+++ src/as3isolib/display/IsoSprite.as
@@ -32,7 +32,6 @@
 	import as3isolib.core.IFactory;
 	import as3isolib.core.IsoDisplayObject;
 	import as3isolib.core.as3isolib_internal;
-	import as3isolib.graphics.ISpriteAsset;

 	import flash.display.Bitmap;
 	import flash.display.BitmapData;


fixed bug incorrectly loading defaults, making it potentially save incorrect information regarding note sharing permissions

--- flexEditor/src/org/arisgames/editor/view/CreateOrOpenGameSelectorView.as
+++ flexEditor/src/org/arisgames/editor/view/CreateOrOpenGameSelectorView.as
@@ -98,8 +98,8 @@
 			g.pcMediaId = obj.result.data.list.getItemAt(j).pc_media_id;
 			g.introNodeId = obj.result.data.list.getItemAt(j).on_launch_node_id;
 			g.completeNodeId = obj.result.data.list.getItemAt(j).game_complete_node_id;
-			g.noteShareToMap = obj.result.data.list.getItemAt(j).allow_share_to_map;
-			g.noteShareToBook = obj.result.data.list.getItemAt(j).allow_share_to_book;
+			g.noteShareToMap = obj.result.data.list.getItemAt(j).allow_share_note_to_map;
+			g.noteShareToBook = obj.result.data.list.getItemAt(j).allow_share_note_to_book;
 			g.playerCreateComments = obj.result.data.list.getItemAt(j).allow_note_comments;
 			g.playerCreateTags = obj.result.data.list.getItemAt(j).allow_player_tags;
 			g.isLocational = obj.result.data.list.getItemAt(j).is_locational;


Transferred from the Adobe Open Source Subversion Repository

Revision: 11247
Author:   klin@adobe.com
Date:     2009-10-28T21:59:11.963883Z

Log Message:
-----------
Fix for https://bugs.adobe.com/jira/browse/SDK-23184.

Updated a bunch of Style metadata ASDocs to describe different defaults between the Halo and Spark themes. Also, fixed a few typos along the way.

defaults.css - rearranged a few styles to be in alphabetical order
Button.as - removed extra emphasizedSkin style metadata
Panel.as - added spark theme to borderAlpha metadata

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/TileListItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ProgressBar.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/framework/src/mx/controls/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateChooser.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Menu.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/halo/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/fl/video/NCManagerNative.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/SkinStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ColorPicker.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/BorderStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/FlexModuleFactory.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/treeClasses/TreeItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/TextStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/LinkButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/menuClasses/MenuItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/PopUpButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Tree.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Accordion.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/colorPickerClasses/SwatchPanel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/TileLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/PopUpMenuIcon.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/PaddingStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/GapStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Label.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/fl/video/NCManagerDynamicStream.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/LinkBar.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/framework/src/mx/styles/metadata/FocusStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/supportClasses/AnimateTransformInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/BitmapImage.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/StrokedElement.as</path>

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

--- frameworks/projects/mx/src/mx/controls/colorPickerClasses/SwatchPanel.as
+++ frameworks/projects/mx/src/mx/controls/colorPickerClasses/SwatchPanel.as
@@ -104,7 +104,7 @@
  *  Note that some components, like a Button, do not have a background
  *  because they are completely filled with the button face or other graphics.
  *  The DataGrid control also ignores this style.
- *  The default value is undefined. If both this style and the
+ *  The default value is 0xE5E6E7. If both this style and the
  *  backgroundImage style are undefined, the control has a transparent background.
  *
  *  @langversion 3.0
@@ -117,12 +117,8 @@
 /**
  *  Black section of a three-dimensional border, or the color section
  *  of a two-dimensional border.
- *  The following components support this style: Button, CheckBox,
- *  ComboBox, MenuBar,
- *  NumericStepper, ProgressBar, RadioButton, ScrollBar, Slider, and all
- *  components that support the borderStyle style.
- *  The default value depends on the component class;
- *  if not overriden for the class, it is 0xAAB3B3.
+ *
+ *  The default value is 0xA5A9AE.
  *
  *  @langversion 3.0
  *  @playerversion Flash 9
@@ -144,7 +140,7 @@

 /**
  *  Color of the control border highlight.
- *  The default value is 0xC4CCCC (medium gray) .
+ *  The default value is 0xFFFFFF.
  *
  *  @langversion 3.0
  *  @playerversion Flash 9
@@ -156,6 +152,8 @@
 /**
  *  Number of pixels between the component's top border
  *  and the top edge of its content area.
+ *
+ *  @default 4
  *
  *  @langversion 3.0
  *  @playerversion Flash 9
@@ -167,7 +165,9 @@
 /**
  *  Number of pixels between the component's bottom border
  *  and the bottom edge of its content area.
- *
+ *
+ *  @default 5
+ *
  *  @langversion 3.0
  *  @playerversion Flash 9
  *  @playerversion AIR 1.1
@@ -189,7 +189,7 @@
 /**
  *  Bottom inside color of a button's skin.
  *  A section of the three-dimensional border.
- *  The default value is 0xEEEEEE (light gray).
+ *  The default value is 0x4D555E (light gray).
  *
  *  @langversion 3.0
  *  @playerversion Flash 9


Transferred from the Adobe Open Source Subversion Repository

Revision: 1451
Author:   jimurphy@adobe.com
Date:     2008-04-29T14:19:59.414928Z

Log Message:
-----------
Merge 3.0.x [1412,1415-1417,1444] -> Trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/AMFChannel.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/lib/flex-messaging-common.jar</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/NetConnectionChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/StreamingHTTPChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/HTML.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/StreamingAMFChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/StreamingConnectionHandler.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/HTTPChannel.as</path>

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

--- frameworks/projects/rpc/src/mx/messaging/channels/StreamingAMFChannel.as
+++ frameworks/projects/rpc/src/mx/messaging/channels/StreamingAMFChannel.as
@@ -210,20 +210,32 @@
             if (FlexClient.getInstance().id == null && msg.headers[AbstractMessage.FLEX_CLIENT_ID_HEADER] != null)
                 FlexClient.getInstance().id = msg.headers[AbstractMessage.FLEX_CLIENT_ID_HEADER];
         }
-        if (credentials != null && !(msg is ErrorMessage))
-            setAuthenticated(true);
-
-        if (streamingConnectionHandler == null)
-        {
-            streamingConnectionHandler = new StreamingAMFConnectionHandler(this, _log);
-            streamingConnectionHandler.addEventListener(Event.OPEN, streamOpenHandler);
-            streamingConnectionHandler.addEventListener(Event.COMPLETE, streamCompleteHandler);
-            streamingConnectionHandler.addEventListener(HTTPStatusEvent.HTTP_STATUS, streamHttpStatusHandler);
-            streamingConnectionHandler.addEventListener(IOErrorEvent.IO_ERROR, streamIoErrorHandler);
-            streamingConnectionHandler.addEventListener(SecurityErrorEvent.SECURITY_ERROR, streamSecurityErrorHandler);
-            streamingConnectionHandler.addEventListener(StatusEvent.STATUS, streamStatusHandler);
-        }
-        streamingConnectionHandler.openStreamingConnection();
+        // If the Channel is reconnecting with the session id in the url, don't
+        // report connectSuccess for the initial ping and allow the Channel to
+        // reconnect by removing the waitForFlexClientId lock.
+        if (_reconnectingWithSessionId)
+        {
+            // Allow the Channel to reconnect with the session id.
+            FlexClient.getInstance().waitForFlexClientId = false;
+            _reconnectingWithSessionId = false;
+        }
+        else
+        {
+            if (credentials != null && !(msg is ErrorMessage))
+                setAuthenticated(true);
+
+            if (streamingConnectionHandler == null)
+            {
+                streamingConnectionHandler = new StreamingAMFConnectionHandler(this, _log);
+                streamingConnectionHandler.addEventListener(Event.OPEN, streamOpenHandler);
+                streamingConnectionHandler.addEventListener(Event.COMPLETE, streamCompleteHandler);
+                streamingConnectionHandler.addEventListener(HTTPStatusEvent.HTTP_STATUS, streamHttpStatusHandler);
+                streamingConnectionHandler.addEventListener(IOErrorEvent.IO_ERROR, streamIoErrorHandler);
+                streamingConnectionHandler.addEventListener(SecurityErrorEvent.SECURITY_ERROR, streamSecurityErrorHandler);
+                streamingConnectionHandler.addEventListener(StatusEvent.STATUS, streamStatusHandler);
+            }
+            streamingConnectionHandler.openStreamingConnection(_appendToURL);
+        }
     }

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 18612
Author:   hmuller@adobe.com
Date:     2010-11-16T15:45:15.811520Z

Log Message:
-----------
Removed DataGrid/gridDimensions and privatized Grid/gridDimenions.  The GridDimensions singleton is not the exclusive responsibility of GridLayout.

Grid now lazily creates its GridSelection object.

QE notes:
Doc notes:
Bugs: SDK-28555
Reviewer: Kevin, Carol
Tests run: checkin, mustella
Is noteworthy for integration: no

Modified Paths:
--------------
<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/gridClasses/GridLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGrid.as</path>

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

--- frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as
@@ -28,6 +28,7 @@
 import mx.events.CollectionEventKind;
 import mx.events.PropertyChangeEvent;

+import spark.components.DataGrid;
 import spark.components.Grid;
 import spark.layouts.supportClasses.LayoutBase;

@@ -172,6 +173,7 @@
     public function GridLayout()
     {
         super();
+        gridDimensions = new GridDimensions();
     }

     //--------------------------------------------------------------------------
@@ -492,9 +494,9 @@

         // To avoid flashing, force all of the layers to render now

-        backgroundLayer.validateNow();
-        selectionLayer.validateNow();
-        overlayLayer.validateNow();
+        if (backgroundLayer) backgroundLayer.validateNow();
+        if (selectionLayer) selectionLayer.validateNow();
+        if (overlayLayer) overlayLayer.validateNow();

         // The old visible row,column indices are no longer needed

@@ -1642,9 +1644,13 @@

     private function layoutEditorIndicator(layer:GridLayer):void
     {
-        const rowIndex:int = grid.dataGrid.editorRowIndex;
-        const columnIndex:int = grid.dataGrid.editorColumnIndex;
-        var indicatorFactory:IFactory = grid.dataGrid.editorIndicator;
+        const dataGrid:DataGrid = grid.dataGrid;
+        if (!dataGrid)
+            return;
+
+        const rowIndex:int = dataGrid.editorRowIndex;
+        const columnIndex:int = dataGrid.editorColumnIndex;
+        var indicatorFactory:IFactory = dataGrid.editorIndicator;

         // If the indicatorFactory has changed for the specified non-null indicator,
         // then free the old indicator.