Transferred from the Adobe Open Source Subversion Repository

Revision: 18225
Author:   aharui@adobe.com
Date:     2010-10-19T20:18:09.296175Z

Log Message:
-----------
Initial delivery of Spark Module/ModuleLoader

QE notes: none
Doc notes: none
Bugs: SDK-28137
Reviewer:  Darrell
Tests run: checkintests
Is noteworthy for integration: yes

Modified Paths:
--------------
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/modules/Module.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/spark-manifest.xml</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/modules/ModuleLoader.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/modules/ModuleLoader.png</path>
<path kind="dir" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/modules</path>

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

--- frameworks/projects/spark/src/spark/modules/ModuleLoader.as
+++ frameworks/projects/spark/src/spark/modules/ModuleLoader.as
@@ -0,0 +1,705 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 spark.modules
+{
+import flash.events.Event;
+import flash.system.ApplicationDomain;
+import flash.utils.ByteArray;
+import mx.core.ContainerCreationPolicy;
+import mx.core.FlexVersion;
+import mx.core.IDeferredContentOwner;
+import mx.core.IFlexModuleFactory;
+import mx.core.INavigatorContent;
+import mx.core.IVisualElement;
+import mx.events.FlexEvent;
+import mx.events.ModuleEvent;
+import mx.modules.IModuleInfo;
+import mx.modules.ModuleManager;
+import spark.components.Group;
+
+//--------------------------------------
+//  Events
+//--------------------------------------
+
+/**
+ *  Dispatched when the ModuleLoader starts to load a URL.
+ *
+ *  @eventType mx.events.FlexEvent.LOADING
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.5
+ *  @productversion Flex 4.5
+ */
+[Event(name="loading", type="flash.events.Event")]
+
+/**
+ *  Dispatched when the ModuleLoader is given a new URL.
+ *
+ *  @eventType mx.events.FlexEvent.URL_CHANGED
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.5
+ *  @productversion Flex 4.5
+ */
+[Event(name="urlChanged", type="flash.events.Event")]
+
+/**
+ *  Dispatched when information about the module is
+ *  available (with the info() method),
+ *  but the module is not yet ready.
+ *
+ *  @eventType mx.events.ModuleEvent.SETUP
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.5
+ *  @productversion Flex 4.5
+ */
+[Event(name="setup", type="mx.events.ModuleEvent")]
+
+/**
+ *  Dispatched when the module is finished loading.
+ *
+ *  @eventType mx.events.ModuleEvent.READY
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.5
+ *  @productversion Flex 4.5
+ */
+[Event(name="ready", type="mx.events.ModuleEvent")]
+
+/**
+ *  Dispatched when the module throws an error.
+ *
+ *  @eventType mx.events.ModuleEvent.ERROR
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.5
+ *  @productversion Flex 4.5
+ */
+[Event(name="error", type="mx.events.ModuleEvent")]
+
+/**
+ *  Dispatched at regular intervals as the module loads.
+ *
+ *  @eventType mx.events.ModuleEvent.PROGRESS
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.5
+ *  @productversion Flex 4.5
+ */
+[Event(name="progress", type="mx.events.ModuleEvent")]
+
+/**
+ *  Dispatched when the module data is unloaded.
+ *
+ *  @eventType mx.events.ModuleEvent.UNLOAD
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.5
+ *  @productversion Flex 4.5
+ */
+[Event(name="unload", type="mx.events.ModuleEvent")]
+
+[ResourceBundle("modules")]
+
+[IconFile("ModuleLoader.png")]
+
+/**
+ *  ModuleLoader is a component that behaves much like a SWFLoader except
+ *  that it follows a contract with the loaded content. This contract dictates that the child
+ *  SWF file implements IFlexModuleFactory and that the factory
+ *  implemented can be used to create multiple instances of the child class
+ *  as needed.
+ *
+ *
The ModuleLoader is connected to deferred instantiation and ensures that
+ *  only a single copy of the module SWF file is transferred over the network by using the
+ *  ModuleManager singleton.

+ *
+ *  @see mx.controls.SWFLoader
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.5
+ *  @productversion Flex 4.5
+ */
+public class ModuleLoader extends Group
+                          implements INavigatorContent
+{
+    include "../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     *
+     *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.5
+	 *  @productversion Flex 4.5
+     */
+    public function ModuleLoader()
+    {
+        super();
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Variables
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    private var module:IModuleInfo;
+
+    /**
+     *  @private
+     */
+    private var loadRequested:Boolean = false;
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  applicationDomain
+    //----------------------------------
+
+    /**
+     *  The application domain to load your module into.
+     *  Application domains are used to partition classes that are in the same
+     *  security domain. They allow multiple definitions of the same class to
+     *  exist and allow children to reuse parent definitions.
+     *
+     *  @see flash.system.ApplicationDomain
+     *  @see flash.system.SecurityDomain
+     *
+     *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.5
+	 *  @productversion Flex 4.5
+     */
+    public var applicationDomain:ApplicationDomain;
+
+    //----------------------------------
+    //  child
+    //----------------------------------
+
+    /**
+     *  The IVisualElement created from the module factory.
+     *
+     *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.5
+	 *  @productversion Flex 4.5
+     */
+    public var child:IVisualElement;
+
+    //----------------------------------
+    //  url
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for the url property.
+     */
+    private var _url:String = null;
+
+    /**
+     *  The location of the module, expressed as a URL.
+     *
+     *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.5
+	 *  @productversion Flex 4.5
+     */
+    public function get url():String
+    {
+        return _url;
+    }
+
+    /**
+     *  @private
+     */
+    public function set url(value:String):void
+    {
+        if (value == _url)
+            return;
+
+        var wasLoaded:Boolean = false;
+
+        if (module)
+        {
+            module.removeEventListener(ModuleEvent.PROGRESS,
+                                       moduleProgressHandler);
+            module.removeEventListener(ModuleEvent.SETUP, moduleSetupHandler);
+            module.removeEventListener(ModuleEvent.READY, moduleReadyHandler);
+            module.removeEventListener(ModuleEvent.ERROR, moduleErrorHandler);
+            module.removeEventListener(ModuleEvent.UNLOAD, moduleUnloadHandler);
+
+            module.release();
+            module = null;
+
+            if (child)
+            {
+                removeElement(child);
+                child = null;
+            }
+        }
+
+        _url = value;
+
+        dispatchEvent(new FlexEvent(FlexEvent.URL_CHANGED));
+
+        if (_url != null && loadRequested)
+            loadModule();
+    }
+
+	//--------------------------------------------------------------------------
+	//
+	//  Overridden Properties
+	//
+	//--------------------------------------------------------------------------
+
+	//----------------------------------
+	//  moduleFactory
+	//----------------------------------
+	/**
+	 *  @private
+	 */
+	override public function set moduleFactory(moduleFactory:IFlexModuleFactory):void
+	{
+		super.moduleFactory = moduleFactory;
+
+		// Register the _creationPolicy style as inheriting. See the creationPolicy
+		// getter for details on usage of this style.
+		styleManager.registerInheritingStyle("_creationPolicy");
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Properties: INavigatorContent
+	//
+	//--------------------------------------------------------------------------
+
+	//----------------------------------
+	//  creationPolicy
+	//----------------------------------
+
+	// Internal flag used when creationPolicy="none".
+	// When set, the value of the backing store _creationPolicy
+	// style is "auto" so descendants inherit the correct value.
+	private var creationPolicyNone:Boolean = false;
+
+	[Inspectable(enumeration="auto,all,none", defaultValue="auto")]
+
+	/**
+	 *  @inheritDoc
+	 *
+	 *  @default auto
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.5
+	 *  @productversion Flex 4.5
+	 */
+	public function get creationPolicy():String
+	{
+		// Use an inheriting style as the backing storage for this property.
+		// This allows the property to be inherited by either mx or spark
+		// containers, and also to correctly cascade through containers that
+		// don't have this property (ie Group).
+		// This style is an implementation detail and should be considered
+		// private. Do not set it from CSS.
+		var result:String = getStyle("_creationPolicy");
+
+		if (result == null)
+			result = ContainerCreationPolicy.AUTO;
+
+		if (creationPolicyNone)
+			result = ContainerCreationPolicy.NONE;
+
+		return result;
+	}
+
+	/**
+	 *  @private
+	 */
+	public function set creationPolicy(value:String):void
+	{
+		if (value == ContainerCreationPolicy.NONE)
+		{
+			// creationPolicy of none is not inherited by descendants.
+			// In this case, set the style to "auto" and set a local
+			// flag for subsequent access to the creationPolicy property.
+			creationPolicyNone = true;
+			value = ContainerCreationPolicy.AUTO;
+		}
+		else
+		{
+			creationPolicyNone = false;
+		}
+
+		setStyle("_creationPolicy", value);
+	}
+
+	//----------------------------------
+	//  icon
+	//----------------------------------
+
+	/**
+	 *  @private
+	 *  Storage for the icon property.
+	 */
+	private var _icon:Class = null;
+
+	[Bindable("iconChanged")]
+	[Inspectable(category="General", defaultValue="", format="EmbeddedFile")]
+
+	/**
+	 *  The Class of the icon displayed by some navigator
+	 *  containers to represent this Container.
+	 *
+	 *
For example, if this Container is a child of a TabNavigator,
+	 *  this icon appears in the corresponding tab.
+	 *  If this Container is a child of an Accordion,
+	 *  this icon appears in the corresponding header.

+	 *
+	 *
To embed the icon in the SWF file, use the @Embed()
+	 *  MXML compiler directive:

+	 *
+	 *

+	 *    icon="@Embed('filepath')"
+	 *

+	 *
+	 *
The image can be a JPEG, GIF, PNG, SVG, or SWF file.

+	 *
+	 *  @default null
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.5
+	 *  @productversion Flex 4.5
+	 */
+	public function get icon():Class
+	{
+		return _icon;
+	}
+
+	/**
+	 *  @private
+	 */
+	public function set icon(value:Class):void
+	{
+		_icon = value;
+
+		dispatchEvent(new Event("iconChanged"));
+	}
+
+	//----------------------------------
+	//  label
+	//----------------------------------
+
+	/**
+	 *  @private
+	 *  Storage for the label property.
+	 */
+	private var _label:String = "";
+
+	[Bindable("labelChanged")]
+	[Inspectable(category="General", defaultValue="")]
+
+	/**
+	 *  The text displayed by some navigator containers to represent
+	 *  this Container.
+	 *
+	 *
For example, if this Container is a child of a TabNavigator,
+	 *  this string appears in the corresponding tab.
+	 *  If this Container is a child of an Accordion,
+	 *  this string appears in the corresponding header.

+	 *
+	 *  @default ""
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.5
+	 *  @productversion Flex 4.5
+	 */
+	public function get label():String
+	{
+		return _label;
+	}
+
+	/**
+	 *  @private
+	 */
+	public function set label(value:String):void
+	{
+		_label = value;
+
+		dispatchEvent(new Event("labelChanged"));
+	}
+
+    //--------------------------------------------------------------------------
+    //
+    //  Methods: INavigatorContent
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    public function get deferredContentCreated():Boolean
+    {
+        return loadRequested;
+    }
+
+	/**
+	 *  @private
+	 */
+	public function createDeferredContent():void
+	{
+		loadRequested = true;
+		loadModule();
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Overridden Methods
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 *  Create components that are children of this Container.
+	 */
+	override protected function createChildren():void
+	{
+		// if nobody has overridden creationPolicy, get it from the
+		// navigator parent
+		if (creationPolicy == ContainerCreationPolicy.AUTO)
+		{
+			if (parent is IDeferredContentOwner)
+			{
+				var parentCreationPolicy:String = IDeferredContentOwner(parent).creationPolicy;
+				creationPolicy = parentCreationPolicy ==
+					ContainerCreationPolicy.ALL ? ContainerCreationPolicy.ALL :
+					ContainerCreationPolicy.NONE;
+
+			}
+		}
+
+		if (!loadRequested && creationPolicy != ContainerCreationPolicy.NONE)
+			createDeferredContent();
+
+		super.createChildren();
+	}
+
+    //--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Loads the module. When the module is finished loading, the ModuleLoader adds
+     *  it as a child with the addElement() method. This is normally
+     *  triggered with deferred instantiation.
+     *
+     *
If the module has already been loaded, this method does nothing. It does
+     *  not load the module a second time.

+     *
+     *  @param url The location of the module, expressed as a URL. This is an
+     *  optional parameter. If this parameter is null the value of the
+     *  url property will be used. If the url parameter is provided
+     *  the url property will be updated to the value of the url.
+     *
+     *  @param bytes A ByteArray object. The ByteArray is expected to contain
+     *  the bytes of a SWF file that represents a compiled Module. The ByteArray
+     *  object can be obtained by using the URLLoader class. If this parameter
+     *  is specified the module will be loaded from the ByteArray and the url
+     *  parameter will be used to identify the module in the
+     *  ModuleManager.getModule() method and must be non-null. If
+     *  this parameter is null the module will be load from the url, either
+     *  the url parameter if it is non-null, or the url property as a fallback.
+     *
+     *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.5
+	 *  @productversion Flex 4.5
+     */
+    public function loadModule(url:String = null, bytes:ByteArray = null):void
+    {
+
+        if (url != null)
+            _url = url;
+
+        if (_url == null)
+        {
+            //trace("loadModule() - null url");
+            return;
+        }
+
+        if (child)
+        {
+            //trace("loadModule() - already created the child");
+            return;
+        }
+
+        if (module)
+        {
+            //trace("loadModule() - load already initiated");
+            return;
+        }
+
+        dispatchEvent(new FlexEvent(FlexEvent.LOADING));
+
+        module = ModuleManager.getModule(_url);
+
+        module.addEventListener(ModuleEvent.PROGRESS, moduleProgressHandler);
+        module.addEventListener(ModuleEvent.SETUP, moduleSetupHandler);
+        module.addEventListener(ModuleEvent.READY, moduleReadyHandler);
+        module.addEventListener(ModuleEvent.ERROR, moduleErrorHandler);
+        module.addEventListener(ModuleEvent.UNLOAD, moduleUnloadHandler);
+
+        // If an applicationDomain has not been specified and we have a module factory,
+        // then create a child application domain from the application domain
+        // this module factory is in.
+        // This is a change in behavior so only do it for Flex 4 and newer
+        // applications.
+        var tempApplicationDomain:ApplicationDomain = applicationDomain;
+
+        if (tempApplicationDomain == null && moduleFactory &&
+            FlexVersion.compatibilityVersion >= FlexVersion.VERSION_4_0)
+        {
+            var currentDomain:ApplicationDomain = moduleFactory.info()["currentDomain"];
+            tempApplicationDomain = new ApplicationDomain(currentDomain);
+        }
+
+        module.load(tempApplicationDomain, null, bytes, moduleFactory);
+    }
+
+    /**
+     *  Unloads the module and sets it to null.
+     *  If an instance of the module was previously added as a child,
+     *  this method calls the removeChild() method on the child.
+     *
If the module does not exist or has already been unloaded, this method does
+     *  nothing.

+     *
+     *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.5
+	 *  @productversion Flex 4.5
+     */
+    public function unloadModule():void
+    {
+        if (child)
+        {
+            removeElement(child);
+            child = null;
+        }
+
+        if (module)
+        {
+            module.removeEventListener(ModuleEvent.PROGRESS,
+                                       moduleProgressHandler);
+            module.removeEventListener(ModuleEvent.SETUP, moduleSetupHandler);
+            module.removeEventListener(ModuleEvent.READY, moduleReadyHandler);
+            module.removeEventListener(ModuleEvent.ERROR, moduleErrorHandler);
+
+            module.unload();
+            module.removeEventListener(ModuleEvent.UNLOAD, moduleUnloadHandler);
+            module = null;
+        }
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Event handlers
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    private function moduleProgressHandler(event:ModuleEvent):void
+    {
+        dispatchEvent(event);
+    }
+
+    /**
+     *  @private
+     */
+    private function moduleSetupHandler(event:ModuleEvent):void
+    {
+        // Not ready for creation yet, but can call factory.info().
+
+        dispatchEvent(event);
+    }
+
+    /**
+     *  @private
+     */
+    private function moduleReadyHandler(event:ModuleEvent):void
+    {
+        child = module.factory.create() as IVisualElement;
+        dispatchEvent(event);
+
+        if (child)
+        {
+            addElement(child);
+        }
+        else
+        {
+            var message:String = resourceManager.getString(
+                "modules", "couldNotCreateModule", [ module.factory.info()["mainClassName"] ]);
+            var moduleEvent:ModuleEvent = new ModuleEvent(
+                ModuleEvent.ERROR, false, false,
+                event.bytesLoaded, event.bytesTotal,
+                message, event.module);
+            dispatchEvent(moduleEvent);
+        }
+    }
+
+    /**
+     *  @private
+     */
+    private function moduleErrorHandler(event:ModuleEvent):void
+    {
+        unloadModule();
+        dispatchEvent(event);
+    }
+
+    /**
+     *  @private
+     */
+    private function moduleUnloadHandler(event:ModuleEvent):void
+    {
+        dispatchEvent(event);
+    }
+}
+
+}


fixed null pointer error

fixed null pointer error

--- WeaveCore/src/weave/core/ExternalSessionStateInterface.as
+++ WeaveCore/src/weave/core/ExternalSessionStateInterface.as
@@ -128,12 +128,17 @@
 				for (var name:String in state)
 				{
 					var value:Object = state[name];
-					if (value.hasOwnProperty(LinkableXML.XML_STRING))
-						state[name] = value[LinkableXML.XML_STRING];
-					else if (value is XML)
+					if (value is XML)
+					{
 						state[name] = (value as XML).toXMLString();
-					else
-						convertSessionStateToPrimitives(value);
+					}
+					else if (value != null)
+					{
+						if (value.hasOwnProperty(LinkableXML.XML_STRING))
+							state[name] = value[LinkableXML.XML_STRING];
+						else
+							convertSessionStateToPrimitives(value);
+					}
 				}
 			}
 		}


Transferred from the Adobe Open Source Subversion Repository

Revision: 18747
Author:   rfrishbe@adobe.com
Date:     2010-11-19T21:49:23.290523Z

Log Message:
-----------
A few MobileSkin changes

1) Added new protected methods to MobileSkin (getElementPreferredWidth(), getElementPreferredHeight())
2) Renamed MobileSkin resizePart(), positionPart() to resizeElement, positionElement().  This matches MobileItemRenderer but still needs to be PARBed
3) Fixed up multi-line resize in TextAreaSkin

QE notes:
Doc notes:
Bugs: -
Reviewer: Evtim
Tests run: checkintests, mustella cyclone
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/MobileSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ActionBarButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/SelectableButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/VScrollBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/TextSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HScrollBarSkin.as</path>

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ButtonSkinBase.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ButtonSkinBase.as
@@ -445,8 +445,8 @@
         }

         labelDisplay.commitStyles();
-        resizePart(labelDisplay, labelWidth, labelHeight);
-        positionPart(labelDisplay, Math.max(0, Math.round(labelX)), Math.max(0, Math.round(labelY)));
+        resizeElement(labelDisplay, labelWidth, labelHeight);
+        positionElement(labelDisplay, Math.max(0, Math.round(labelX)), Math.max(0, Math.round(labelY)));

         if (textWidth > labelWidth)
         {
@@ -455,8 +455,8 @@

         labelDisplayShadow.alpha = getStyle("textShadowAlpha");
         labelDisplayShadow.commitStyles();
-        resizePart(labelDisplayShadow, labelWidth, labelHeight);
-        positionPart(labelDisplayShadow, Math.max(0, Math.round(labelX)), Math.max(0, Math.round(labelY + 1)));
+        resizeElement(labelDisplayShadow, labelWidth, labelHeight);
+        positionElement(labelDisplayShadow, Math.max(0, Math.round(labelX)), Math.max(0, Math.round(labelY + 1)));

         // if labelDisplay is truncated, then push it down here as well.
         // otherwise, it would have gotten pushed in the labelDisplay_valueCommitHandler()
@@ -465,8 +465,8 @@

         if (iconDisplay)
         {
-            resizePart(iconDisplay, iconWidth, iconHeight);
-            positionPart(iconDisplay, Math.max(0, Math.round(iconX)), Math.max(0, Math.round(iconY)));
+            resizeElement(iconDisplay, iconWidth, iconHeight);
+            positionElement(iconDisplay, Math.max(0, Math.round(iconX)), Math.max(0, Math.round(iconY)));
         }

         // draw chromeColor after parts have been positioned


Transferred from the Adobe Open Source Subversion Repository

Revision: 3890
Author:   rfrishbe@adobe.com
Date:     2008-10-24T22:24:17.938205Z

Log Message:
-----------
Various renames for FxComponent, mostly based on PARB recommendations.  Most were just simple name changes or removal of methods.  Because commitSkinState() no longer exists, Button had to be modified pretty extensively so that it didn't key off of that method.

QE Notes: Joann's updated the tests and excluded them pending this checkin
Doc Notes: None
Bugs: SDK-17116
Reviewer: Hans, Evtim

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxTextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxScroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxContainerBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxTrackBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxTextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxToggleButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxSpinner.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/SkinnableContainerBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/SkinnableContainerBase.as
@@ -69,7 +69,7 @@
     /**
      *  @inheritDoc
      */
-    override protected function getUpdatedSkinState():String
+    override protected function getCurrentSkinState():String
     {
         return enabled ? "normal" : "disabled";
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 12850
Author:   jimurphy@adobe.com
Date:     2009-12-11T14:57:14.623098Z

Log Message:
-----------
add 6 new DMV projects to the SDK:
automation
automation_air
automation_dmv
automation_flashflexkit
automation_spark
datavisualization

These projects are setup to build in an ant main call.  There are currently several warnings in the datavisualization project that will be cleaned up.  No checkintests exist for these projects as of yet.

I also modified the exisitng projects build files for easier management of the localization targets, bundle and fat-swc. If the projects that I updated:airframework,airspark,framework,playerglobal,rpc,and spark.  All the new projects have been implemented this same way.

QE notes: DMV folks should run through their tests
Doc notes: probably
Bugs: nope
Reviewer:
Tests run: ran the following targets: compile,checkintests,other.locales and doc
Is noteworthy for integration: no

Modified Paths:
--------------
1404 paths were modified

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

--- frameworks/projects/advancedgrids/src/mx/olap/OLAPResult.as
+++ frameworks/projects/advancedgrids/src/mx/olap/OLAPResult.as
@@ -0,0 +1,256 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2009 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.olap
+{
+
+import mx.core.mx_internal;
+
+use namespace mx_internal;
+
+/**
+ *  The OLAPResult class represents the result of a query on an OLAP cube.
+ *
+ *  @see mx.olap.IOLAPResult
+ *  @see mx.olap.OLAPQuery
+ *  @see mx.olap.OLAPQueryAxis
+ *  @see mx.olap.IOLAPResultAxis
+ *  @see mx.olap.OLAPResultAxis
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+public class OLAPResult implements IOLAPResult
+{
+    include "../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Class constants
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Specifies a column axis.
+     *  Use this property as a value of the axisOrdinal argument
+     *  to the getAxis() method.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public static var COLUMN_AXIS:int = 0;
+
+    /**
+     *  Specifies a row axis.
+     *  Use this property as a value of the axisOrdinal argument
+     *  to the getAxis() method.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public static var ROW_AXIS:int = 1;
+
+    /**
+     *  Specifies a slicer axis.
+     *  Use this property as a value of the axisOrdinal argument
+     *  to the getAxis() method.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public static var SLICER_AXIS:int = 2;
+
+    //--------------------------------------------------------------------------
+    //
+    //  Variables
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  An Array of Arrays that contains the value of each cell of the result.
+     *  A cell is an intersection of a row and a column axis position.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    protected var cellData:Array = [];
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    // axes
+    //----------------------------------
+
+    private var _axes:Array = [];
+
+    /**
+     *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function get axes():Array
+    {
+        return _axes;
+    }
+
+    //----------------------------------
+    // query
+    //----------------------------------
+
+    private var _query:IOLAPQuery;
+
+    /**
+     *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function get query():IOLAPQuery
+    {
+        return _query;
+    }
+
+    /**
+     *  @private
+     */
+    public function set query(q:IOLAPQuery):void
+    {
+        _query = q;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function getAxis(axisOrdinal:int):IOLAPResultAxis
+    {
+        return axes[axisOrdinal];
+    }
+
+    /**
+     *  @private
+     *  Sets an axis of the query result.
+     *
+     *  @param axisOrdinal Specify OLAPResult.COLUMN AXIS for a column axis,
+     *  OLAPResult.ROW_AXIS for a row axis,
+     *  and OLAPResult.SLICER_AXIS for a slicer axis.
+     *
+     *  @param axis The IOLAPResultAxis instance.
+     */
+    mx_internal function setAxis(axisOrdinal:int, axis:IOLAPResultAxis):void
+    {
+        axes[axisOrdinal] = axis;
+    }
+
+    /**
+     *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function getCell(x:int, y:int):IOLAPCell
+    {
+        if (cellData[x])
+            return new OLAPCell(cellData[x][y]);
+        return new OLAPCell(NaN);
+    }
+
+    /**
+     * private
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    mx_internal function setCell(x:int, y:int, value:Number):void
+    {
+        if (!cellData[x])
+            cellData[x] = [];
+        cellData[x][y] = value;
+    }
+
+    /**
+     *  Returns true if the row contains data.
+     *
+     *  @param rowIndex The index of the row in the result.
+     *
+     *  @return true if the row contains data,
+     *  and false if not.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function hasRowData(rowIndex:int):Boolean
+    {
+        return cellData[rowIndex] != undefined;
+    }
+
+    /**
+     *  @private
+     *  Removes a row of data from the result.
+     *
+     *  @param y The index of the row in the result.
+     */
+    mx_internal function removeRowData(y:int):void
+    {
+        cellData.splice(y, 1);
+    }
+
+    /**
+     *  @private
+     *  Removes a column of data from the result.
+     *
+     *  @param x The index of the column in the result.
+     */
+    mx_internal function removeColumnData(x:int):void
+    {
+        for each (var a:Array in cellData)
+        {
+            a.splice(x, 1);
+        }
+    }
+
+}
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 17372
Author:   gruehle@adobe.com
Date:     2010-08-18T23:23:45.776465Z

Log Message:
-----------
More mobile text feature work:
* Address all remaining TODOs in the code
* Alphabetize the properties in IEditableText and MobileTextField
* Add support for embedded fonts

QE notes: No
Doc notes: No
Bugs: SDK-27474
Reviewer: Jason Szeto
Tests run: checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/RichEditableText.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/TextInput.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/MobileTextField.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/TextInput_border.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/core/IEditableText.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextInputSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as</path>

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

--- frameworks/projects/spark/src/spark/components/TextInput.as
+++ frameworks/projects/spark/src/spark/components/TextInput.as
@@ -337,10 +337,11 @@

             // Single line for interactive input.  Multi-line text can be
             // set.
-            textDisplay.setStyle("lineBreak", "explicit");
+            textDisplay.lineBreak = "explicit";

             // TextInput should always be 1 line.
-            textDisplay.heightInLines = 1;
+            if (textDisplay is RichEditableText)
+                RichEditableText(textDisplay).heightInLines = 1;
         }
     }
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 6215
Author:   smgilson@adobe.com
Date:     2009-04-23T17:12:57.259499Z

Log Message:
-----------
ASDoc updates for effect classes

Checkintests: passed

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/RemoveAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/SimpleMotionPath.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Rotate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Fade.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformMove.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Resize.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/KeyFrame.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Wipe.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/WipeDirection.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Move.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/CallAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/CrossFade.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateShaderTransition.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformScale.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/MotionPath.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/SetAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformRotate.as</path>

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

--- frameworks/projects/spark/src/spark/effects/RemoveAction.as
+++ frameworks/projects/spark/src/spark/effects/RemoveAction.as
@@ -27,30 +27,28 @@
 [Exclude(name="duration", kind="property")]

 /**
- *  The RemoveChildAction class defines an action effect that corresponds
+ *  The RemoveAction class defines an action effect that corresponds
  *  to the RemoveChild property of a view state definition.
- *  You use a RemoveChildAction effect within a transition definition
+ *  You use a RemoveAction effect within a transition definition
  *  to control when the view state change defined by a RemoveChild property
  *  occurs during the transition.
  *
  *  @mxml
  *
- *
The <mx:RemoveChildAction> tag
+ *
The <mx:RemoveAction> tag
  *  inherits all of the tag attributes of its superclass,
  *  and adds the following tag attributes:

  *

- *  <mx:RemoveChildAction
+ *  <mx:RemoveAction
  *    Properties
  *    id="ID"
  *  />
  *

  *
- *  @see mx.effects.effectClasses.RemoveChildActionInstance
+ *  @see spark.effects.supportClasses.RemoveActionInstance
  *  @see mx.states.RemoveChild
  *
- *  @includeExample ../states/examples/TransitionExample.mxml
- *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5
@@ -60,105 +58,105 @@
 {
     include "../core/Version.as";

-	//--------------------------------------------------------------------------
-	//
-	//  Class constants
-	//
-	//--------------------------------------------------------------------------
+    //--------------------------------------------------------------------------
+    //
+    //  Class constants
+    //
+    //--------------------------------------------------------------------------

-	/**
-	 *  @private
-	 */
+    /**
+     *  @private
+     */
     private static var AFFECTED_PROPERTIES:Array = [ "parent", "index" ];

-	//--------------------------------------------------------------------------
-	//
-	//  Constructor
-	//
-	//--------------------------------------------------------------------------
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------

-	/**
-	 *  Constructor.
-	 *
-	 *  @param target The Object to animate with this effect.
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 10
-	 *  @playerversion AIR 1.5
-	 *  @productversion Flex 4
-	 */
-	public function RemoveAction(target:Object = null)
-	{
-		super(target);
+    /**
+     *  Constructor.
+     *
+     *  @param target The Object to animate with this effect.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function RemoveAction(target:Object = null)
+    {
+        super(target);
         duration = 0;
-		instanceClass = RemoveActionInstance;
-	}
+        instanceClass = RemoveActionInstance;
+    }

-	//--------------------------------------------------------------------------
-	//
-	//  Overridden methods
-	//
-	//--------------------------------------------------------------------------
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden methods
+    //
+    //--------------------------------------------------------------------------

-	/**
-	 *  @private
-	 */
-	override public function getAffectedProperties():Array /* of String */
-	{
-		return AFFECTED_PROPERTIES;
-	}
-
-	/**
-	 *  @private
-	 */
-	private function propChangesSortHandler(
-					first:PropertyChanges,
-					second:PropertyChanges):Number
-	{
-		if (first.start.index > second.start.index)
-			return 1;
-		else if (first.start.index < second.start.index)
-			return -1;
-
-		return 0;
-	}
-
-	/**
-	 *  @private
-	 */
-	override mx_internal function applyStartValues(propChanges:Array,
-									 		  targets:Array):void
-	{
-		if (propChanges)
-			propChanges.sort(propChangesSortHandler);
-
-		super.applyStartValues(propChanges, targets);
-	}
-
-	/**
-	 *  @private
-	 */
-	override protected function getValueFromTarget(target:Object,
-												   property:String):*
-	{
+    /**
+     *  @private
+     */
+    override public function getAffectedProperties():Array /* of String */
+    {
+        return AFFECTED_PROPERTIES;
+    }
+
+    /**
+     *  @private
+     */
+    private function propChangesSortHandler(
+                    first:PropertyChanges,
+                    second:PropertyChanges):Number
+    {
+        if (first.start.index > second.start.index)
+            return 1;
+        else if (first.start.index < second.start.index)
+            return -1;
+
+        return 0;
+    }
+
+    /**
+     *  @private
+     */
+    override mx_internal function applyStartValues(propChanges:Array,
+                                              targets:Array):void
+    {
+        if (propChanges)
+            propChanges.sort(propChangesSortHandler);
+
+        super.applyStartValues(propChanges, targets);
+    }
+
+    /**
+     *  @private
+     */
+    override protected function getValueFromTarget(target:Object,
+                                                   property:String):*
+    {
         var container:* = target.parent;
         if (property == "index")
             return container ?
                     ((container is IVisualElementContainer) ?
                     IVisualElementContainer(container).getElementIndex(target as IVisualElement) : container.getChildIndex(target))
                 : 0;
-
-		return super.getValueFromTarget(target, property);
-	}
-
-	/**
-	 *  @private
-	 */
-	override protected function applyValueToTarget(target:Object,
-												   property:String,
-												   value:*,
-												   props:Object):void
-	{
+
+        return super.getValueFromTarget(target, property);
+    }
+
+    /**
+     *  @private
+     */
+    override protected function applyValueToTarget(target:Object,
+                                                   property:String,
+                                                   value:*,
+                                                   props:Object):void
+    {
         if (property == "parent" && value)
         {
             if (target.parent == null)
@@ -173,9 +171,9 @@
                         value.numChildren));
             }
         }
-
-		// Ignore index - it's applied along with parent
-	}
+
+        // Ignore index - it's applied along with parent
+    }
 }

 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 19053
Author:   bsahlas@adobe.com
Date:     2010-12-06T13:54:01.009817Z

Log Message:
-----------
+ add the necessary @includeExample directives so that the two module swfs referenced by the ModuleLoader tags are included/compiled and rendered in the ModuleLoader example.

I guessed that all the mxml files which exist in the example folder would automagically be compiled and so my example would work.  However, looking at the current ASDoc that is not the case.

http://river-prod.corp.adobe.com:81/PlatformPreReleaseASLR/standalone/langref/spark/modules/ModuleLoader.html#includeExamplesSummary

The mechanism works more like how the pre_compile.sh shell scripts work in mustella - files are not compiled unless explicitly included.

Modified Paths:
--------------
/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/modules/ModuleLoader.as

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

--- frameworks/projects/spark/src/spark/modules/ModuleLoader.as
+++ frameworks/projects/spark/src/spark/modules/ModuleLoader.as
@@ -133,7 +133,9 @@
  *
  *  @see mx.controls.SWFLoader
  *  @includeExample examples/ModuleLoaderExample.mxml
- *
+ *  @includeExample examples/ModuleVerticalLayout.mxml
+ *  @includeExample examples/ModuleHorizontalLayout.mxml
+ *
  *  @langversion 3.0
  *  @playerversion Flash 10.2
  *  @playerversion AIR 2.5


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

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

 package spark.automation.delegates.components.supportClasses
 {


Small change to AbstractExtension to set the node properly

git-svn-id: c197267f952b24206666de142881703007ca05d5@9459 b35dd754-fafc-0310-a699-88a17e54d16e

--- src/org/jivesoftware/xiff/data/AbstractExtension.as
+++ src/org/jivesoftware/xiff/data/AbstractExtension.as
@@ -22,6 +22,7 @@

 		public function deserialize(node:XMLNode):Boolean
 		{
+			setNode(node);
 			var childNodes:Array = node.childNodes;
 			for (var i:int = 0; i < childNodes.length; i++) {
 				var extClass:Class = ExtensionClassRegistry.lookup(childNodes[i].attributes.xmlns);


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

--- frameworks/projects/framework/src/mx/events/CloseEvent.as
+++ frameworks/projects/framework/src/mx/events/CloseEvent.as
@@ -0,0 +1,123 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.events
+{
+
+import flash.events.Event;
+
+/**
+ *  The CloseEvent class represents event objects specific to popup windows,
+ *  such as the Alert control.
+ *
+ *  @see mx.controls.Alert
+ */
+public class CloseEvent extends Event
+{
+    include "../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Class constants
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  The CloseEvent.CLOSE constant defines the value of the
+     *  type property of the event object for a close event.
+     *
+     *
The properties of the event object have the following values:

+     *

+     *
Property	Value

+     *
bubbles	false

+     *
cancelable	false

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

+     *
detail	For controls with multiple buttons,
+     *       detail identifies the button in the popped up control
+     *       that was clicked.

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

+     *

+     *
+     *  @eventType close
+     */
+    public static const CLOSE:String = "close";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     *
+     *  @param type The event type; indicates the action that caused the event.
+     *
+     *  @param bubbles Specifies whether the event can bubble up the display list hierarchy.
+     *
+     *  @param cancelable Specifies whether the behavior associated with the event can be prevented.
+     *
+     *  @param detail Value of the detail property; identifies the button in the popped up
+     *  control that was clicked.
+     */
+    public function CloseEvent(type:String, bubbles:Boolean = false,
+                               cancelable:Boolean = false, detail:int = -1)
+    {
+        super(type, bubbles, cancelable);
+
+        this.detail = detail;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  detail
+    //----------------------------------
+
+    /**
+     *  Identifies the button in the popped up control that was clicked. This
+     *  property is for controls with multiple buttons.
+     *  The Alert control sets this property to one of the following constants:
+     *

+     *
Alert.YES

+     *
Alert.NO

+     *
Alert.OK

+     *
Alert.CANCEL

+     *

+     */
+    public var detail:int;
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden methods: Event
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    override public function clone():Event
+    {
+        return new CloseEvent(type, bubbles, cancelable, detail);
+    }
+}
+
+}


Add framesize printout to abcdump (r=lhansen+)

--- utils/abcdump.as
+++ utils/abcdump.as
@@ -376,6 +376,7 @@
                 dumpPrint(indent+"// local_count="+local_count+
                           " max_scope=" + max_scope +
                           " max_stack=" + max_stack +
+                          " framesize=" + (local_count + max_scope + max_stack) +
                           " code_len=" + code.length +
                           " code_offset=" + code_offset)
                 code.position = 0


Add another bugfix to the opcode processor so that it doesn't pick up junk.

--- utils/opcodes.as
+++ utils/opcodes.as
@@ -85,7 +85,7 @@

     public static function parse(opCodesText : String) : Array
     {
-        var abcOpCodeRegEx : RegExp = /ABC_(?P<u>(UNUSED_)?)OP(?:_F)?\(\s*(?P<oc>-?[0-9]+)\s*,\s*(?P<ct>[01])\s*,\s*(?P<sm>-?[0-9]+)\s*,\s*(?P<internal>[01])\s*,\s*(?P<n>[\S\)]+)\s*\)/g
+        var abcOpCodeRegEx : RegExp = /^\w*ABC_(?P<u>(UNUSED_)?)OP(?:_F)?\(\s*(?P<oc>-?[0-9]+)\s*,\s*(?P<ct>[01])\s*,\s*(?P<sm>-?[0-9]+)\s*,\s*(?P<internal>[01])\s*,\s*(?P<n>[\S\)]+)\s*\)/gm
         var opCodeValue : uint = 0;
         var match : Object = abcOpCodeRegEx.exec(opCodesText);
         var opCodes : Array = new Array(256);


Removed commented out code

Removed commented out code

--- extension/src/starling/shaders/FastGaussianBlurShader.as
+++ extension/src/starling/shaders/FastGaussianBlurShader.as
@@ -161,12 +161,6 @@

         comment("Pass uv coordinates to fragment shader");
         move(uvCenter, ATTRIBUTE[1]);
-
-//        comment("pass 4 additional UVs for sampling neighbours, in order: -2, -1, +1, +2 pixels away");
-//        subtract(uvMinusTwo, ATTRIBUTE[1], CONST[4].zw);
-//        subtract(uvMinusOne, ATTRIBUTE[1], CONST[4].xy);
-//        add(uvPlusOne, ATTRIBUTE[1], CONST[4].xy);
-//        add(uvPlusTwo, ATTRIBUTE[1], CONST[4].zw);
     }

     override protected function _fragmentShader():void {


Transferred from the Adobe Open Source Subversion Repository

Revision: 12850
Author:   jimurphy@adobe.com
Date:     2009-12-11T14:57:14.623098Z

Log Message:
-----------
add 6 new DMV projects to the SDK:
automation
automation_air
automation_dmv
automation_flashflexkit
automation_spark
datavisualization

These projects are setup to build in an ant main call.  There are currently several warnings in the datavisualization project that will be cleaned up.  No checkintests exist for these projects as of yet.

I also modified the exisitng projects build files for easier management of the localization targets, bundle and fat-swc. If the projects that I updated:airframework,airspark,framework,playerglobal,rpc,and spark.  All the new projects have been implemented this same way.

QE notes: DMV folks should run through their tests
Doc notes: probably
Bugs: nope
Reviewer:
Tests run: ran the following targets: compile,checkintests,other.locales and doc
Is noteworthy for integration: no

Modified Paths:
--------------
1404 paths were modified

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

--- frameworks/projects/advancedgrids/src/mx/olap/IOLAPSchema.as
+++ frameworks/projects/advancedgrids/src/mx/olap/IOLAPSchema.as
@@ -0,0 +1,86 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2009 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.olap
+{
+
+import mx.collections.IList;
+
+/**
+ *  The IOLAPSchema interface represents the OLAP schema.
+ *
+ *  @see mx.olap.OLAPSchema
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+public interface IOLAPSchema
+{
+	//--------------------------------------------------------------------------
+	//
+	//  Properties
+	//
+	//--------------------------------------------------------------------------
+
+	//----------------------------------
+	//  cubes
+	//----------------------------------
+
+	/**
+     *  All the cubes known by this schema, as a list of IOLAPCube instances.
+     *
+     *  The returned list might represent remote data and therefore can throw
+     *  an ItemPendingError.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function get cubes():IList;// (of IOLAPCube)
+
+    //--------------------------------------------------------------------------
+	//
+	//  Methods
+	//
+	//--------------------------------------------------------------------------
+
+     /**
+     *  Creates an OLAP cube from the schema.
+     *
+     *  @param name The name of the cube.
+     *
+     *  @return The IOLAPCube instance.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function createCube(name:String):IOLAPCube;
+
+     /**
+     *  Returns a cube specified by name.
+     *
+     *  @param name The name of the cube.
+     *
+     *  @return The IOLAPCube instance, or null if one is not found.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function getCube(name:String):IOLAPCube;
+}
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 11150
Author:   jimurphy@adobe.com
Date:     2009-10-26T17:18:18.310979Z

Log Message:
-----------
Merge 3.x rev 11082 -> trunk

http://10.171.12.252/svn/opensource/flex/sdk/branches/3.x
  r11082 | pfarland@adobe.com | 2009-10-22 11:30:03 -0400 (Thu, 22 Oct 2009) | 9 lines

  Ensuring for DCD that the serialization filter's serializeUrl result is used in sendBody().

  Bugs: SDK-21781 - mx.rpc.http.AbstractOperation never uses the result of serializeUrl in sendBody

integrate:
core tech: 1.406529
LCDS: 4.0.0.11030

Modified Paths:
--------------
<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/rpc/http/AbstractOperation.as</path>

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

--- frameworks/projects/rpc/src/mx/rpc/http/AbstractOperation.as
+++ frameworks/projects/rpc/src/mx/rpc/http/AbstractOperation.as
@@ -846,25 +846,23 @@
         var message:HTTPRequestMessage = new HTTPRequestMessage();
         if (useProxy)
         {
-            if (url && url != '')
-            {
-                message.url = URLUtil.getFullURL(rootURL, url);
+            if (urlToUse && urlToUse != '')
+            {
+                message.url = URLUtil.getFullURL(rootURL, urlToUse);
             }

             if (NetworkMonitor.isMonitoring())
             {
-            //trace(" HTTPService: Recording Headers (useProxy = true)");
+                //trace(" HTTPService: Recording Headers (useProxy = true)");
                 message.recordHeaders = true;
             }
-
         }
         else
         {
-            if (!url)
+            if (!urlToUse)
             {
                 token = new AsyncToken(null);
-                msg = resourceManager.getString(
-                    "rpc", "urlNotSpecified");
+                msg = resourceManager.getString("rpc", "urlNotSpecified");
                 fault = new Fault(ERROR_URL_REQUIRED, msg);
                 faultEvent = FaultEvent.createEvent(fault, token);
                 new AsyncDispatcher(dispatchRpcEvent, [faultEvent], 10);
@@ -879,12 +877,12 @@
             }

             if (NetworkMonitor.isMonitoring())
-          {
+            {
                 //trace(" HTTPService: Recording Headers (useProxy = false)");
                 message.recordHeaders = true;
             }

-            message.url = URLUtil.getFullURL(rootURL, url);
+            message.url = URLUtil.getFullURL(rootURL, urlToUse);
         }

         message.contentType = ctype;


Transferred from the Adobe Open Source Subversion Repository

Revision: 19906
Author:   cframpto@adobe.com
Date:     2011-01-24T14:34:03.657916Z

Log Message:
-----------
Dispatch FlexEvent.CHANGE on the VScrollBar and the HScrollBar while scrolling with s:Scroller while using the mouse wheel.

QE notes:
Doc notes:
Bugs: SDK-26533
Reviewer: Hans
Tests run: cyclone
Is noteworthy for integration:

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

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

--- frameworks/projects/spark/src/spark/components/VScrollBar.as
+++ frameworks/projects/spark/src/spark/components/VScrollBar.as
@@ -11,6 +11,7 @@

 package spark.components
 {
+import flash.events.Event;
 import flash.events.MouseEvent;
 import flash.geom.Point;

@@ -546,6 +547,7 @@

         var nSteps:uint = Math.abs(delta);
         var navigationUnit:uint;
+        var scrollPositionChanged:Boolean;

         // Scroll delta "steps".
         navigationUnit = (delta < 0) ? NavigationUnit.DOWN : NavigationUnit.UP;
@@ -555,11 +557,15 @@
             if (!isNaN(vspDelta))
             {
                 vp.verticalScrollPosition += vspDelta;
+                scrollPositionChanged = true;
                 if (vp is IInvalidating)
                     IInvalidating(vp).validateNow();
             }
         }

+        if (scrollPositionChanged)
+            dispatchEvent(new Event(Event.CHANGE));
+
         event.preventDefault();
     }


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

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


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

--- frameworks/projects/mx/src/mx/skins/halo/CheckBoxIcon.as
+++ frameworks/projects/mx/src/mx/skins/halo/CheckBoxIcon.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2004-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.skins.halo
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 6306
Author:   egeorgie@adobe.com
Date:     2009-04-28T01:17:42.359155Z

Log Message:
-----------
Layout PARB changes - rename "layout" package to "layouts"

QE Notes: None
Doc Notes: None
Bugs: None
Reviewer:
tests: checkintests

Modified Paths:
--------------
<path kind="dir" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DataGroup.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/BasicLayout.as" copyfrom-rev="6301" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/BasicLayout.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/supportClasses/LayoutElementHelper.as" copyfrom-rev="6301" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/supportClasses/LayoutElementHelper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Group.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/RowAlign.as" copyfrom-rev="6301" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/RowAlign.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/supportClasses/Block.as" copyfrom-rev="6301" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/supportClasses/Block.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/VerticalAlign.as" copyfrom-rev="6301" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/VerticalAlign.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/supportClasses/LinearLayoutVector.as" copyfrom-rev="6301" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/supportClasses/LinearLayoutVector.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ButtonBarHorizontalLayout.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/HorizontalLayout.as" copyfrom-rev="6301" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/HorizontalLayout.as</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/supportClasses</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/SkinnableDataContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/HGroup.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/TileLayout.as" copyfrom-rev="6301" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/TileLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/RichEditableText2.as</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ScrollerLayout.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/supportClasses/LayoutBase.as" copyfrom-rev="6301" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/supportClasses/LayoutBase.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/HorizontalAlign.as" copyfrom-rev="6301" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/HorizontalAlign.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VGroup.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/VerticalLayout.as" copyfrom-rev="6301" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/VerticalLayout.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/ColumnAlign.as" copyfrom-rev="6301" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/ColumnAlign.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/TileOrientation.as" copyfrom-rev="6301" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/TileOrientation.as</path>

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

--- frameworks/projects/spark/src/spark/components/HGroup.as
+++ frameworks/projects/spark/src/spark/components/HGroup.as
@@ -12,8 +12,8 @@
 package spark.components
 {
 import flash.events.Event;
-import spark.layout.HorizontalLayout;
-import spark.layout.supportClasses.LayoutBase;
+import spark.layouts.HorizontalLayout;
+import spark.layouts.supportClasses.LayoutBase;

 [IconFile("HGroup.png")]

@@ -25,7 +25,7 @@
  *
  * The layout property should not be set or configured directly.
  *
- * @see spark.layout.HorizontalLayout
+ * @see spark.layouts.HorizontalLayout
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
@@ -42,7 +42,7 @@
      *  Resetting the layout property or setting its properties directly
      *  is not supported.
      *
-     *  @see spark.layout.HorizontalLayout
+     *  @see spark.layouts.HorizontalLayout
      *  @see spark.components.VGroup
      *
      *  @langversion 3.0
@@ -72,7 +72,7 @@
     //----------------------------------

     /**
-     * @copy spark.layout.HorizontalLayout#gap
+     * @copy spark.layouts.HorizontalLayout#gap
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -99,7 +99,7 @@
     [Bindable("propertyChange")]

     /**
-     * @copy spark.layout.HorizontalLayout#columnCount
+     * @copy spark.layouts.HorizontalLayout#columnCount
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -116,7 +116,7 @@
     //----------------------------------

     /**
-     * @copy spark.layout.HorizontalLayout#requestedColumnCount
+     * @copy spark.layouts.HorizontalLayout#requestedColumnCount
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -143,7 +143,7 @@
     [Inspectable(category="General")]

     /**
-     * @copy spark.layout.HorizontalLayout#columnWidth
+     * @copy spark.layouts.HorizontalLayout#columnWidth
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -170,7 +170,7 @@
     [Inspectable(category="General")]

     /**
-     * @copy spark.layout.HorizontalLayout#variableColumnWidth
+     * @copy spark.layouts.HorizontalLayout#variableColumnWidth
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -195,7 +195,7 @@
     //----------------------------------

     /**
-     * @copy spark.layout.HorizontalLayout#verticalAlign
+     * @copy spark.layouts.HorizontalLayout#verticalAlign
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -222,7 +222,7 @@
     [Bindable("indexInViewChanged")]

     /**
-     * @copy spark.layout.HorizontalLayout#firstIndexInView
+     * @copy spark.layouts.HorizontalLayout#firstIndexInView
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -241,7 +241,7 @@
     [Bindable("indexInViewChanged")]

     /**
-     * @copy spark.layout.HorizontalLayout#lastIndexInView
+     * @copy spark.layouts.HorizontalLayout#lastIndexInView
      *
      *  @langversion 3.0
      *  @playerversion Flash 10


Transferred from the Adobe Open Source Subversion Repository

Revision: 16489
Author:   clucier@adobe.com
Date:     2010-06-07T23:56:58.881239Z

Log Message:
-----------
Merge revisions 16409 and 16410 from trunk.

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/primitives/BitmapImage.as</path>
<path kind="dir" action="M">/private/flex/sdk/branches/hero_private</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/graphics/BitmapSmoothingQuality.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/utils/LinkedList.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/defaults.css</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/core/ContentCache.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Image.as</path>

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

--- frameworks/projects/spark/src/spark/core/ContentCache.as
+++ frameworks/projects/spark/src/spark/core/ContentCache.as
@@ -16,6 +16,8 @@
 import flash.display.LoaderInfo;
 import flash.events.Event;
 import flash.events.EventDispatcher;
+import flash.events.IOErrorEvent;
+import flash.events.SecurityErrorEvent;
 import flash.net.URLRequest;
 import flash.system.LoaderContext;
 import flash.utils.Dictionary;
@@ -104,16 +106,55 @@
     //--------------------------------------------------------------------------

     /**
-     *  @private
      *  Map of source to CacheEntryNode.
-     */
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4.5
+     */
     protected var cachedData:Dictionary = new Dictionary();

     /**
-     *  @private
      *  Ordered (MRU) list of CacheEntryNode instances.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4.5
      */
     protected var cacheEntries:LinkedList = new LinkedList();
+
+    /**
+     *  List of queued CacheEntryNode instances.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4.5
+     */
+    protected var requestQueue:LinkedList = new LinkedList();
+
+    /**
+     *  List of queued CacheEntryNode instances currently executing.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4.5
+     */
+    protected var activeRequests:LinkedList = new LinkedList();
+
+    /**
+     *  Identifier of the currently prioritized content grouping.
+     *  @default "_DEFAULT_"
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4.5
+     */
+    protected var priorityGroup:String = "_DEFAULT_";

     //--------------------------------------------------------------------------
     //
@@ -131,7 +172,8 @@
     private var _enableCaching:Boolean = true;

     /**
-     *  Enables caching behavior and functionality.
+     *  Enables caching behavior and functionality. Applies only to new
+     *  load() requests.
      *
      *  @default true
      *
@@ -164,9 +206,10 @@
     private var _enableQueueing:Boolean = false;

     /**
-     *  Enables queuing behavior and functionality.
-     *
-     *  @default false;
+     *  Enables queuing behavior and functionality. Applies only to new
+     *  load() requests.
+     *
+     *  @default false
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -271,7 +314,7 @@
         if (value != _maxCacheEntries)
         {
             _maxCacheEntries = value;
-            enforceMaximumEntries();
+            enforceMaximumCacheEntries();
         }
     }

@@ -293,25 +336,41 @@
         if (!cacheEntry || cacheEntry.value == UNTRUSTED || !enableCaching)
         {
             // No previously cached entry or the entry is marked as
-            // unshareable (untrusted).
+            // unshareable (untrusted), we must execute a Loader request
+            // for the data.
             var loader:Loader = new Loader();
-            var loaderContext:LoaderContext = new LoaderContext();
-            loaderContext.checkPolicyFile = true;
-
-			// Listen for completion so we can manage our cache entry upon
-			// failure or if the loaded data is deemed unshareable.
-			loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loader_completeHandler,
-				false, 0, true);
-
+
+            // Listen for completion so we can manage our cache entry upon
+            // failure or if the loaded data is deemed unshareable.
+            loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
+                loader_completeHandler, false, 0, true);
+            loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR,
+                loader_completeHandler, false, 0, true);
+            loader.contentLoaderInfo.addEventListener(SecurityErrorEvent.SECURITY_ERROR,
+                loader_completeHandler, false, 0, true);
+
             var urlRequest:URLRequest = source is URLRequest ?
                 source as URLRequest : new URLRequest(source as String);

-            loader.load(urlRequest, loaderContext);
+            if (enableQueueing)
+            {
+                // Queue load request.
+                queueRequest(urlRequest, loader, contentLoaderGrouping);
+            }
+            else
+            {
+                // Execute Loader
+                var loaderContext:LoaderContext = new LoaderContext();
+                loaderContext.checkPolicyFile = true;
+                loader.load(urlRequest, loaderContext);
+            }
+
+            // Create ContentRequest instance to return to caller.
             contentRequest = new ContentRequest(this, loader.contentLoaderInfo);

-            // Now cache our new loader info.
+            // Now cache our new loader info if applicable.
             if (!cacheEntry && enableCaching)
-                addCacheEntry(source, loader.contentLoaderInfo);
+                addCacheEntry(key, loader.contentLoaderInfo);
         }
         else
         {
@@ -340,7 +399,8 @@
      */
     public function getCacheEntry(source:Object):Object
     {
-        var cacheEntry:CacheEntryNode = cachedData[source];
+        var key:Object = source is URLRequest ? URLRequest(source).url : source;
+        var cacheEntry:CacheEntryNode = cachedData[key];
         return cacheEntry ? cacheEntry.value : null;
     }

@@ -394,15 +454,41 @@
     {
         var key:Object = source is URLRequest ? URLRequest(source).url : source;
         var node:CacheEntryNode = cachedData[key];
-
+
         if (node)
             cacheEntries.remove(node);

         node = new CacheEntryNode(key, value);
         cachedData[source] = node;
         cacheEntries.unshift(node);
-        enforceMaximumEntries();
-    }
+        enforceMaximumCacheEntries();
+    }
+
+    /**
+     *  If size of our cache exceeds our maximum, we release the least
+     *  recently used entries necessary to meet our limit.
+     *
+     *  @private
+     */
+    mx_internal function enforceMaximumCacheEntries():void
+    {
+        if (_maxCacheEntries <= 0)
+            return;
+
+        while (cacheEntries.length > _maxCacheEntries)
+        {
+            var node:CacheEntryNode = cacheEntries.pop() as CacheEntryNode;
+            var key:Object = (node.source is URLRequest) ?
+                URLRequest(node.source).url : node.source;
+            delete cachedData[key];
+        }
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Queueing Methods
+    //
+    //--------------------------------------------------------------------------

     /**
      *  Promotes a content grouping to the head of the loading queue.
@@ -418,27 +504,139 @@
      */
     public function prioritize(contentLoaderGrouping:String):void
     {
-        // TODO (crl)
-    }
-
-    /**
-     *  If size of our cache exceeds our maximum, we release the least
-     *  recently used entries necessary to meet our limit.
-     *
-     *  @private
-     */
-    mx_internal function enforceMaximumEntries():void
-    {
-        if (_maxCacheEntries <= 0 || cacheEntries.length <= _maxCacheEntries)
-            return;
-
-        while (cacheEntries.length > _maxCacheEntries)
-        {
-            var node:CacheEntryNode = cacheEntries.pop() as CacheEntryNode;
-            delete cachedData[node.source];
-        }
-    }
-
+        priorityGroup = contentLoaderGrouping;
+        shiftPriority();
+        processQueue();
+    }
+
+    /**
+     *  Process the request queue and execute any pending requests until we
+     *  reach our maxActiveRequests limit.
+     *
+     *  @private
+     */
+    mx_internal function queueRequest(source:URLRequest, loader:Loader, queueGroup:String):void
+    {
+        var node:QueueEntryNode = new QueueEntryNode(source, loader, queueGroup);
+
+        if (queueGroup == priorityGroup)
+        {
+            // Our new request matches the current priority group, so insert
+            // after all currently queued instances of the same priority group.
+
+            var current:QueueEntryNode = requestQueue.head as QueueEntryNode;
+
+            while (current && current.next && current.queueGroup == priorityGroup)
+                current = current.next as QueueEntryNode;
+
+            if (current)
+            {
+                if (current.queueGroup == priorityGroup)
+                    requestQueue.insertAfter(node, current);
+                else
+                    requestQueue.insertBefore(node, current);
+            }
+            else
+                requestQueue.push(node);
+        }
+        else
+        {
+            // No active priority group, just push to request queue.
+            requestQueue.push(node);
+        }
+
+        processQueue();
+    }
+
+    /**
+     *  Process the request queue and execute any pending requests until we
+     *  reach our maxActiveRequests limit.
+     *
+     *  @private
+     */
+    mx_internal function processQueue():void
+    {
+        if (activeRequests.length < maxActiveRequests && requestQueue.length > 0)
+        {
+            var node:QueueEntryNode = requestQueue.shift() as QueueEntryNode;
+            if (node)
+            {
+                // Execute load request.
+                var loaderContext:LoaderContext = new LoaderContext();
+                loaderContext.checkPolicyFile = true;
+                var loader:Loader = node.value;
+                loader.load(node.urlRequest, loaderContext);
+
+                // Promote to active list.
+                activeRequests.push(node);
+            }
+        }
+    }
+
+    /**
+     *  Reorder our request queue giving priorityGroup preference.
+     *  @private
+     */
+    mx_internal function shiftPriority():void
+    {
+        var current:QueueEntryNode = requestQueue.tail as QueueEntryNode;
+        var prioritizedNodes:LinkedList = new LinkedList();
+
+        // Requeue
+        requeueActive();
+
+        // Remove all nodes matching current priority queue.
+        while (current)
+        {
+            var candidate:QueueEntryNode = current;
+            current = current.prev as QueueEntryNode;
+            if (candidate.queueGroup == priorityGroup)
+            {
+                requestQueue.remove(candidate);
+                prioritizedNodes.push(candidate);
+            }
+        }
+
+        // Reinsert to head of list in original queued order.
+        while (prioritizedNodes.length)
+        {
+            current = prioritizedNodes.shift() as QueueEntryNode;
+            requestQueue.unshift(current);
+        }
+    }
+
+    /**
+     *  Requeues all active requests.
+     *
+     *  @private
+     */
+    mx_internal function requeueActive():void
+    {
+        var current:QueueEntryNode = activeRequests.head as QueueEntryNode;
+        while (current)
+        {
+            var activeNode:QueueEntryNode = current;
+            current = current.next as QueueEntryNode;
+            if (activeNode.queueGroup != priorityGroup)
+            {
+                // Remove from active list and invoke close() on the Loader.
+                // We'll reinvoke load() again once the queued request is
+                // serviced.
+                activeRequests.remove(activeNode);
+
+                try
+                {
+                    Loader(activeNode.value).close();
+                }
+                catch (e:Error) {}
+                finally
+                {
+                    requestQueue.unshift(activeNode);
+                }
+            }
+
+        }
+    }
     //--------------------------------------------------------------------------
     //
     //  Event handlers
@@ -456,19 +654,41 @@
     private function loader_completeHandler(e:Event):void
     {
         var loaderInfo:LoaderInfo = e.target as LoaderInfo;
-        if (loaderInfo && !loaderInfo.childAllowsParent)
+
+        if (e.type == Event.COMPLETE && loaderInfo && !loaderInfo.childAllowsParent)
         {
             // Detected that our loader cannot be shared or cached. Mark
             // as such and notify and possibly active content requests.
             addCacheEntry(loaderInfo.url, UNTRUSTED);
             dispatchEvent(new LoaderInvalidationEvent(LoaderInvalidationEvent.INVALIDATE_LOADER, loaderInfo));
         }
+        else if (e.type == IOErrorEvent.IO_ERROR || e.type == SecurityErrorEvent.SECURITY_ERROR)
+        {
+            // Not suitable for caching.  Lookup our loader info in our cache since
+            // the ioError event does not provide us the original url.
+            var cachedRequest:CacheEntryNode = cacheEntries.find(e.target) as CacheEntryNode;
+            if (cachedRequest)
+                removeCacheEntry(cachedRequest.source);
+        }
+
+        // Remove the related loader from our activeRequests list if applicable.
+        if (activeRequests.length > 0 || requestQueue.length > 0)
+        {
+            var node:LinkedListNode = activeRequests.remove(loaderInfo.loader);
+            processQueue();
+        }
+
+        // Remove our listeners.
         loaderInfo.removeEventListener(Event.COMPLETE, loader_completeHandler);
+        loaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, loader_completeHandler);
+        loaderInfo.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, loader_completeHandler);
     }
 }
 }

 import mx.utils.LinkedListNode;
+import flash.display.Loader;
+import flash.net.URLRequest;

 /**
  *  Represents a single cache entry.
@@ -476,7 +696,7 @@
  */
 class CacheEntryNode extends LinkedListNode
 {
-    public function CacheEntryNode(source:Object, value:Object):void
+    public function CacheEntryNode(source:Object, value:Object, queueGroup:String=null):void
     {
         super(value);
         this.source = source;
@@ -492,3 +712,37 @@
      */
     public var source:Object;
 }
+
+/**
+ *  Represents a single queue entry.
+ *  @private
+ */
+class QueueEntryNode extends LinkedListNode
+{
+    public function QueueEntryNode(urlRequest:URLRequest, loader:Loader, queueGroup:String):void
+    {
+        super(loader);
+        this.urlRequest = urlRequest;
+        this.queueGroup = queueGroup;
+    }
+
+    //----------------------------------
+    //  source
+    //----------------------------------
+
+    /**
+     *  Key into cachedData map for this cache entry.
+     *  @private
+     */
+    public var urlRequest:URLRequest;
+
+    //----------------------------------
+    //  queueGroup
+    //----------------------------------
+
+    /**
+     *  Queue group name used for prioritizing queued cached entry requests.
+     *  @private
+     */
+    public var queueGroup:String;
+}


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 5099
Author:   gauravj@adobe.com
Date:     2009-02-27T03:43:02.639229Z

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:
--------------
147 paths were modified

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

--- frameworks/projects/rpc/src/mx/rpc/xml/SchemaConstants.as
+++ frameworks/projects/rpc/src/mx/rpc/xml/SchemaConstants.as
@@ -253,12 +253,22 @@
     /**
      * The namespace representing the version of XML Schema Definition (XSD).
      * Currently versions 1999, 2000 and 2001 are supported.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     private var _xsdNS:Namespace;

     /**
      * The namespace representing the version of XML Schema Instance (XSI).
      * Currently versions 1999, 2000 and 2001 are supported.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     private var _xsiNS:Namespace;


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

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

 package mx.rpc.xml
 {


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

--- frameworks/projects/spark/src/spark/layouts/TileLayout.as
+++ frameworks/projects/spark/src/spark/layouts/TileLayout.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.
 //
 ////////////////////////////////////////////////////////////////////////////////


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

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