Transferred from the Adobe Open Source Subversion Repository

Revision: 8481
Author:   smgilson@adobe.com
Date:     2009-07-09T17:28:31.741329Z

Log Message:
-----------
First of several checkins to update the namespace in ASDoc MXML syntax descriptions for Spark components

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/PopUpAnchor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DataRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ToggleButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Spinner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VideoPlayer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/CheckBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/TrackBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableDataContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Range.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DataGroup.as</path>

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

--- frameworks/projects/spark/src/spark/components/Group.as
+++ frameworks/projects/spark/src/spark/components/Group.as
@@ -131,7 +131,7 @@
  *  attributes of its superclass and adds the following tag attributes:

  *
  *

- *  <Group
+ *  <s:Group
  *    Properties
  *    blendMode="normal"
  *    mxmlContent="null"
@@ -171,7 +171,7 @@
         super();
     }

-	//--------------------------------------------------------------------------
+    //--------------------------------------------------------------------------
     //
     //  Variables
     //
@@ -195,14 +195,14 @@
      */
     override public function set resizeMode(stringValue:String):void
     {
-    	if (isValidScaleGrid())
-        {
-        	// Force the resize mode to be scale if we
-        	// have set scaleGrid properties
-        	stringValue = ResizeMode.SCALE;
+        if (isValidScaleGrid())
+        {
+            // Force the resize mode to be scale if we
+            // have set scaleGrid properties
+            stringValue = ResizeMode.SCALE;
         }

-    	super.resizeMode = stringValue;
+        super.resizeMode = stringValue;
     }

     /**
@@ -263,7 +263,7 @@
         super.height = value;
     }

-	//--------------------------------------------------------------------------
+    //--------------------------------------------------------------------------
     //
     //  Properties
     //
@@ -490,7 +490,7 @@
     // store the scaleGrid into a rectangle to save space (top, left, bottom, right);
     private var scaleGridStorageVariable:Rectangle;

-	//----------------------------------
+    //----------------------------------
     //  scale9Grid
     //----------------------------------

@@ -498,22 +498,22 @@
      *  @private
      */
     override public function set scale9Grid(value:Rectangle):void
-	{
-		if (value != null)
-		{
-			scaleGridTop = value.top;
-			scaleGridBottom = value.bottom;
-			scaleGridLeft = value.left;
-			scaleGridRight = value.right;
-		}
-		else
-		{
-			scaleGridTop = NaN;
-			scaleGridBottom = NaN;
-			scaleGridLeft = NaN;
-			scaleGridRight = NaN;
-		}
-	}
+    {
+        if (value != null)
+        {
+            scaleGridTop = value.top;
+            scaleGridBottom = value.bottom;
+            scaleGridLeft = value.left;
+            scaleGridRight = value.right;
+        }
+        else
+        {
+            scaleGridTop = NaN;
+            scaleGridBottom = NaN;
+            scaleGridLeft = NaN;
+            scaleGridRight = NaN;
+        }
+    }

     //----------------------------------
     //  scaleGridBottom
@@ -663,10 +663,10 @@

     private function isValidScaleGrid():Boolean
     {
-    	return !isNaN(scaleGridLeft) &&
-        	   !isNaN(scaleGridTop) &&
-        	   !isNaN(scaleGridRight) &&
-        	   !isNaN(scaleGridBottom);
+        return !isNaN(scaleGridLeft) &&
+               !isNaN(scaleGridTop) &&
+               !isNaN(scaleGridRight) &&
+               !isNaN(scaleGridBottom);
     }

     //--------------------------------------------------------------------------
@@ -721,9 +721,9 @@

         if (scaleGridChanged)
         {
-        	// Don't reset scaleGridChanged since we also check it in updateDisplayList
-        	if (isValidScaleGrid())
-        		resizeMode = ResizeMode.SCALE; // Force the resizeMode to scale
+            // Don't reset scaleGridChanged since we also check it in updateDisplayList
+            if (isValidScaleGrid())
+                resizeMode = ResizeMode.SCALE; // Force the resizeMode to scale
         }

         // FIXME (egeorgie): we need to optimize this, iterating through all the elements is slow.
@@ -786,7 +786,7 @@
      *  @private
      */
     override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
-    {
+    {
         super.updateDisplayList(unscaledWidth, unscaledHeight);

         // If the DisplayObject assignment is still not completed, then postpone validation
@@ -820,70 +820,70 @@
         // the element with the shared displayObject and the next element that has a displayObject.
         if (numGraphicElements > 0)
         {
-	        var length:int = numElements;
-	        for (var i:int = 0; i < length; i++)
-	        {
-	            var element:IGraphicElement = getElementAt(i) as IGraphicElement;
-	            if (!element)
-	               continue;
-
-	            // Do a special check for layer, we may stumble upon an element with layer != 0
-	            // before we're done with the current shared sequence and we don't want to mark
-	            // the sequence as valid, until we reach the next sequence.
+            var length:int = numElements;
+            for (var i:int = 0; i < length; i++)
+            {
+                var element:IGraphicElement = getElementAt(i) as IGraphicElement;
+                if (!element)
+                   continue;
+
+                // Do a special check for layer, we may stumble upon an element with layer != 0
+                // before we're done with the current shared sequence and we don't want to mark
+                // the sequence as valid, until we reach the next sequence.
                 if (element.depth == 0)
                 {
-                    // Is this the start of a new shared sequence?
-	            	if (element.displayObjectSharingMode != DisplayObjectSharingMode.USES_SHARED_OBJECT)
-	            	{
-	            	    // We have finished redrawing the previous sequence
-	            	    if (sharedDisplayObject)
-	            	        sharedDisplayObject.redrawRequested = false;
-
-	            	    // Start the new sequence
+                    // Is this the start of a new shared sequence?
+                    if (element.displayObjectSharingMode != DisplayObjectSharingMode.USES_SHARED_OBJECT)
+                    {
+                        // We have finished redrawing the previous sequence
+                        if (sharedDisplayObject)
+                            sharedDisplayObject.redrawRequested = false;
+
+                        // Start the new sequence
                         sharedDisplayObject = element.displayObject as ISharedDisplayObject;
-	            	}
-
-	            	if (!sharedDisplayObject || sharedDisplayObject.redrawRequested)
-	            		element.validateDisplayList();
-	            }
-	            else
-	            {
-	                // If we have layering, we don't share the display objects.
-	                // Don't update the current sharedDisplayObject
-	                var elementDisplayObject:ISharedDisplayObject = element.displayObject as ISharedDisplayObject;
-	                if (!elementDisplayObject || elementDisplayObject.redrawRequested)
-	                {
-	                   element.validateDisplayList();
-
-	                   if (elementDisplayObject)
+                    }
+
+                    if (!sharedDisplayObject || sharedDisplayObject.redrawRequested)
+                        element.validateDisplayList();
+                }
+                else
+                {
+                    // If we have layering, we don't share the display objects.
+                    // Don't update the current sharedDisplayObject
+                    var elementDisplayObject:ISharedDisplayObject = element.displayObject as ISharedDisplayObject;
+                    if (!elementDisplayObject || elementDisplayObject.redrawRequested)
+                    {
+                       element.validateDisplayList();
+
+                       if (elementDisplayObject)
                            elementDisplayObject.redrawRequested = false;
-	                }
-	            }
-	        }
-        }
-
+                    }
+                }
+            }
+        }
+
         // Mark the last shared displayObject valid
         if (sharedDisplayObject)
             sharedDisplayObject.redrawRequested = false;

         if (scaleGridChanged)
         {
-        	scaleGridChanged = false;
-
-        	if (isValidScaleGrid())
-        	{
-	        	if (numChildren > 0)
-	        		throw new Error(resourceManager.getString("components", "scaleGridGroupError"));
-
-	        	super.scale9Grid = new Rectangle(scaleGridLeft,
-	        							   scaleGridTop,
-	        							   scaleGridRight - scaleGridLeft,
-	        							   scaleGridBottom - scaleGridTop);
-	        }
-	        else
-	        {
-	        	super.scale9Grid = null;
-	        }
+            scaleGridChanged = false;
+
+            if (isValidScaleGrid())
+            {
+                if (numChildren > 0)
+                    throw new Error(resourceManager.getString("components", "scaleGridGroupError"));
+
+                super.scale9Grid = new Rectangle(scaleGridLeft,
+                                           scaleGridTop,
+                                           scaleGridRight - scaleGridLeft,
+                                           scaleGridBottom - scaleGridTop);
+            }
+            else
+            {
+                super.scale9Grid = null;
+            }
         }
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 12370
Author:   smgilson@adobe.com
Date:     2009-12-02T16:48:37.124467Z

Log Message:
-----------
Fix for doc bug FLEXDOCS-1150

Added a few new examples and default sizes to Spark components

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

Modified Paths:
--------------
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/asdoc/en_US/spark/components/examples/SkinnableContainerExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/asdoc/en_US/spark/components/examples/VScrollBarExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TabBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/asdoc/en_US/spark/components/examples/BorderContainerExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableDataContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/asdoc/en_US/spark/components/examples/HScrollBarExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TileGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/List.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/asdoc/en_US/spark/components/examples/MyBorderSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Label.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/BorderContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VGroup.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/asdoc/en_US/spark/components/examples/SkinnableDataContainerExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/formatters/DateFormatter.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/asdoc/en_US/spark/components/examples/ApplicationContainerExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/NavigatorContent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DataGroup.as</path>

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

--- frameworks/projects/spark/src/spark/components/Panel.as
+++ frameworks/projects/spark/src/spark/components/Panel.as
@@ -96,6 +96,14 @@
 /**
  *  The Panel class defines a container that includes a title bar,
  *  a caption, a border, and a content area for its children.
+ *
+ *
The panel container has the following default characteristics:

+ *

+ *
Characteristic	Description

+ *
Default size	Large enough to display its children

+ *
Minimum size	131 pixels wide and 127 pixels high

+ *
Maximum size	10000 pixels wide and 10000 pixels high

+ *

  *
  *  @mxml
  *


Transferred from the Adobe Open Source Subversion Repository

Revision: 20455
Author:   egeorgie@adobe.com
Date:     2011-02-24T18:39:34.625731Z

Log Message:
-----------
Fix for http://bugs.adobe.com/jira/browse/SDK-29635 When a child swf is loaded with loadForCompatibility=true, the Spark Slider pop up and DropDownList drop down are not positioned correctly.

In this change:
- update HSlider and VSlider to correctly convert the tooltip position form sandboxRoot to systemManager coordinates (the tip is in system manager coordinates).
- DropDown/ComboBox and other pop-up related code now calcualtes the concatenatedMatrix up to the sandboxRoot instead of the root sprite (the root sprite is the systemManager in a sub-app but the actual pop-up parent is the sandboxRoot).

QE notes: Verify grid item renderers' tooltips in sub-app/marshall plan/mobile density scaling scenarios; A general pass over drop-down and combo box in sub-app/marshall plan/mobile density scaling scenarios.
Doc notes:
Bugs: SDK-29635
Reviewer: Alex
Tests run: mustella full cyclone
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/utils/BitmapUtil.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/VSlider.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/HSlider.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/utils/MatrixUtil.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/PopUpAnchor.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/DragManagerImpl.as</path>

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

--- frameworks/projects/spark/src/spark/utils/BitmapUtil.as
+++ frameworks/projects/spark/src/spark/utils/BitmapUtil.as
@@ -68,13 +68,13 @@
     {
         var width:Number = target.width;
         var height:Number = target.height;
-        var m:Matrix = MatrixUtil.getConcatenatedComputedMatrix(target as DisplayObject, false /*excludingRootSprite*/);
+        var m:Matrix = MatrixUtil.getConcatenatedComputedMatrix(target as DisplayObject, null);

         var position:Point = new Point(-padding, -padding);
         var size:Point = MatrixUtil.transformBounds(width + padding * 2,
-                                                      height + padding * 2,
-                                                      m,
-                                                      position);
+                                                    height + padding * 2,
+                                                    m,
+                                                    position);

         // Translate so that when we draw, the bitmap aligns with the top-left
         // corner of the bmpData
@@ -126,7 +126,7 @@
     {
         // DisplayObject.getBounds() is not sufficient; we need the same
         // bounds as those used internally by the player
-        var m:Matrix = MatrixUtil.getConcatenatedComputedMatrix(target as DisplayObject, false /*excludingRootSprite*/);
+        var m:Matrix = MatrixUtil.getConcatenatedComputedMatrix(target as DisplayObject, null);
         var bounds:Rectangle = getRealBounds(DisplayObject(target), m);
         if (visibleBounds != null)
         {


allows default mediator manager to work more smoothly with non-display-objects

--- src/robotlegs/bender/extensions/mediatorMap/impl/DefaultMediatorManager.as
+++ src/robotlegs/bender/extensions/mediatorMap/impl/DefaultMediatorManager.as
@@ -55,7 +55,7 @@
 			}
 			catch (error:Error)
 			{
-				// do nothing
+				// Do nothing
 			}
 			return UIComponentClass != null;
 		}
@@ -66,45 +66,45 @@

 		private function onMediatorCreate(event:MediatorFactoryEvent):void
 		{
-			const view:DisplayObject = event.view as DisplayObject;
-
-			if(event.view && !view)
-				initializeMediator(view, event.mediator);
-
-			if (!view)
+			const mediator:Object = event.mediator;
+			const displayObject:DisplayObject = event.view as DisplayObject;
+
+			if (!displayObject)
+			{
+				// Non-display-object was added, initialize and exit
+				initializeMediator(event.view, mediator);
 				return;
+			}

-			view.addEventListener(Event.REMOVED_FROM_STAGE, onRemovedFromStage);
+			// Watch this view for removal
+			displayObject.addEventListener(Event.REMOVED_FROM_STAGE, onRemovedFromStage);

-			if (flexAvailable && (event.view is UIComponentClass) && !event.view['initialized'])
+			// Is this a UIComponent that needs to be initialized?
+			if (flexAvailable && (displayObject is UIComponentClass) && !displayObject['initialized'])
 			{
-				view.addEventListener('creationComplete', function(e:Event):void {
-					view.removeEventListener('creationComplete', arguments.callee);
-					// check that we haven't been removed in the meantime
-					if (_factory.getMediator(event.view, event.mapping))
-						initializeMediator(view, event.mediator);
+				displayObject.addEventListener('creationComplete', function(e:Event):void
+				{
+					displayObject.removeEventListener('creationComplete', arguments.callee);
+					// ensure that we haven't been removed in the meantime
+					if (_factory.getMediator(displayObject, event.mapping))
+						initializeMediator(displayObject, mediator);
 				});
 			}
 			else
 			{
-				initializeMediator(view, event.mediator);
+				initializeMediator(displayObject, mediator);
 			}
 		}

 		private function onMediatorRemove(event:MediatorFactoryEvent):void
 		{
-			const view:DisplayObject = event.view as DisplayObject;
+			const displayObject:DisplayObject = event.view as DisplayObject;

-			if (view)
-				view.removeEventListener(Event.REMOVED_FROM_STAGE, onRemovedFromStage);
-
-			if(event.mediator)
+			if (displayObject)
+				displayObject.removeEventListener(Event.REMOVED_FROM_STAGE, onRemovedFromStage);
+
+			if (event.mediator)
 				destroyMediator(event.mediator);
-
-			// note: as far as I know, the re-parenting issue does not exist with Flex 4+.
-			// question: should we bother handling re-parenting?
-			// Stray: let's not handle it. People can defend against unwanted hooks running
-			// during reparenting for themselves quite easily.
 		}

 		private function onRemovedFromStage(event:Event):void
@@ -112,7 +112,7 @@
 			_factory.removeMediators(event.target);
 		}

-		private function initializeMediator(view:DisplayObject, mediator:Object):void
+		private function initializeMediator(view:Object, mediator:Object):void
 		{
 			if (mediator.hasOwnProperty('viewComponent'))
 				mediator.viewComponent = view;


ATF type missmatching fixed

ATF type missmatching fixed

--- src/aerys/minko/render/resource/texture/TextureResource.as
+++ src/aerys/minko/render/resource/texture/TextureResource.as
@@ -151,13 +151,13 @@

 			atf.position 	= 0;

-			if (_atfFormat == 5)
-				_format = FORMAT_COMPRESSED_ALPHA;
-			else if (_atfFormat == 3)
-				_format = FORMAT_COMPRESSED;
-			else
-				_format = FORMAT_BGRA;
-
+			switch (_atfFormat) {
+				case 0: case 1: _format = FORMAT_BGRA; break;
+				case 2: case 3: _format = FORMAT_COMPRESSED; break;
+				case 4: case 5: _format = FORMAT_COMPRESSED_ALPHA; break;
+				default: throw new Error("Invalid ATF format");
+			}
+
 			if (_texture
 				&& (oldFormat != _format
 					|| oldMipmap != _mipmap


[SequenceChecker] Fixed issues with compiling in Plasmid, Part, Strain classes into code

git-svn-id: adbdea8fc1759bd16b0eaf24a244a7e5f870a654@104 fe3f0490-d73e-11de-a956-c71e7d3a9d2f

--- SequenceCheckerStandalone/src/org/jbei/registry/proxies/RegistryAPIProxy.as
+++ SequenceCheckerStandalone/src/org/jbei/registry/proxies/RegistryAPIProxy.as
@@ -8,6 +8,9 @@
 	import org.jbei.registry.Notifications;
 	import org.jbei.registry.models.Entry;
 	import org.jbei.registry.models.FeaturedDNASequence;
+	import org.jbei.registry.models.Part;
+	import org.jbei.registry.models.Plasmid;
+	import org.jbei.registry.models.Strain;
 	import org.jbei.registry.utils.StandaloneUtils;

 	public class RegistryAPIProxy extends AbstractServiceProxy
@@ -84,7 +87,18 @@

 			sendNotification(Notifications.DATA_FETCHED);

-			updateEntry(event.result as Entry);
+			var entry:Entry = event.result as Entry;
+
+			// DO NOT REMOVE THESE LINES! It forces to compile Plasmid, Strain, Part classes
+			if(entry is Plasmid) {
+				Logger.getInstance().info("Plasmid");
+			} else if (entry is Strain) {
+				Logger.getInstance().info("Strain");
+			} else if (entry is Part) {
+				Logger.getInstance().info("Part");
+			}
+
+			updateEntry(entry);
 		}

 		private function onGetSequenceResult(event:ResultEvent):void


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

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


Transferred from the Adobe Open Source Subversion Repository

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

--- frameworks/projects/framework/src/mx/effects/effectClasses/PauseInstance.as
+++ frameworks/projects/framework/src/mx/effects/effectClasses/PauseInstance.as
@@ -1,13 +1,3 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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.effects.effectClasses
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 9127
Author:   chaase@adobe.com
Date:     2009-08-06T00:25:39.273760Z

Log Message:
-----------
Fixes bug in Slider animation where we would set the actual value during the animation, ignoring any snapInterval setting. The fix uses the pendingValue property to hold the animated value, which makes the slider look correct, but no actual value update is sent until the animation completes.

QE notes: None
Doc notes: None
Bugs: SDK-21776
Reviewer: Hans
Tests run: checkintests, Mustella (gumbo/components/Slider)
Is noteworthy for integration: No

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Slider.as

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

--- frameworks/projects/spark/src/spark/components/supportClasses/SliderBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/SliderBase.as
@@ -182,6 +182,9 @@
     private var dataTipInitialPosition:Point;

     private var dataTipInstance:IDataRenderer;
+
+    private var slideToValue:Number;
+
     //--------------------------------------------------------------------------
     //
     // Properties
@@ -301,7 +304,10 @@
     private var _pendingValue:Number = 0;

     /**
-     *  The value the slider will have when the mouse button is released.
+     *  The value the slider will have when the mouse button is released. This property
+     *  also holds the temporary values set during an animation of the thumb if
+     *  the liveDragging style is true; the real value is only set
+     *  when the animation ends.
      *
      *
If the liveDragging style is false, then the slider's value is only set
      *  when the mouse button is released. The value is not updated while the slider thumb is
@@ -449,6 +455,9 @@
     {
         super.thumb_mouseDownHandler(event);
         clickOffset = thumb.globalToLocal(new Point(event.stageX, event.stageY));
+
+        if (animator && animator.isPlaying)
+            animator.stop();

         // Popup a dataTip only if we have a SkinPart and the boolean flag is true
         if (dataTip && showDataTip && enabled)
@@ -456,7 +465,8 @@
             dataTipInstance = IDataRenderer(createDynamicPartInstance("dataTip"));
             systemManager.toolTipChildren.addChild(DisplayObject(dataTipInstance));

-            dataTipInstance.data = formatDataTipText(value);
+            dataTipInstance.data = formatDataTipText(
+                nearestValidValue(pendingValue, snapInterval));

             // Force the dataTip to render so that we have the correct size since
             // updateDataTip might need the size
@@ -560,7 +570,10 @@

         if (event.isDefaultPrevented())
             return;
-
+
+        if (animator && animator.isPlaying)
+            animator.stop();
+
         // FIXME (hmuller): Provide a way to easily override the keyboard
         // behavior. This means having a callback in the subclasses
         // that tell the superclass all the positions in an array
@@ -575,7 +588,7 @@
             case Keyboard.DOWN:
             case Keyboard.LEFT:
             {
-                newValue = nearestValidValue(value - stepSize, snapInterval);
+                newValue = nearestValidValue(pendingValue - stepSize, snapInterval);
                 setValue(newValue);
                 stopPropagation = true;
                 break;
@@ -584,7 +597,7 @@
             case Keyboard.UP:
             case Keyboard.RIGHT:
             {
-                newValue = nearestValidValue(value + stepSize, snapInterval);
+                newValue = nearestValidValue(pendingValue + stepSize, snapInterval);
                 setValue(newValue);
                 stopPropagation = true;
                 break;
@@ -647,7 +660,7 @@
         var newValue:Number = pointToValue(p.x, p.y);
         newValue = nearestValidValue(newValue, snapInterval);

-        if (newValue != value)
+        if (newValue != pendingValue)
         {
             var slideDuration:Number = getStyle("slideDuration");
             if (slideDuration != 0)
@@ -662,10 +675,12 @@
                     animator.easer = new Sine(0);
                 }
                 animator.stop();
+                // holds the final value to be set when animation ends
+                slideToValue = newValue;
                 animator.duration = slideDuration *
-                    (Math.abs(value - newValue) / (maximum - minimum));
+                    (Math.abs(pendingValue - slideToValue) / (maximum - minimum));
                 animator.motionPaths = new <MotionPath>[
-                    new SimpleMotionPath("value", value, newValue)];
+                    new SimpleMotionPath("value", pendingValue, slideToValue)];

                 dispatchEvent(new FlexEvent(FlexEvent.CHANGING));
                 animator.play();
@@ -687,7 +702,7 @@
      */
     private function animationUpdateHandler(animation:Animation):void
     {
-        setValue(animation.currentValue["value"]);
+        pendingValue = animation.currentValue["value"];
     }

     /**
@@ -698,6 +713,7 @@
      */
     private function animationEndHandler(animation:Animation):void
     {
+        setValue(slideToValue);
         dispatchEvent(new Event("change"));
     }
 }


Reverted attribue editor count logic as it does not work for all cases.

--- Bin/Data/Scripts/Editor/AttributeEditor.as
+++ Bin/Data/Scripts/Editor/AttributeEditor.as
@@ -13,7 +13,6 @@

 bool inLoadAttributeEditor = false;
 bool showNonEditableAttribute = false;
-uint attributeCountAdjustment = 0;

 Color normalTextColor(1.0f, 1.0f, 1.0f);
 Color modifiedTextColor(1.0f, 0.8f, 0.5f);
@@ -361,7 +360,7 @@
         }
     }

-    return count - attributeCountAdjustment;
+    return count;
 }

 UIElement@ GetAttributeEditorParent(UIElement@ parent, uint index, uint subIndex)
@@ -390,7 +389,7 @@
             sameName = false;
             break;
         }
-
+
         Variant val = serializables[i].attributes[index];
         if (val != value)
             sameValue = false;
@@ -401,10 +400,7 @@
     if (sameName)
         LoadAttributeEditor(parent, value, info, editable, sameValue, values);
     else
-    {
         parent.Remove();
-        ++attributeCountAdjustment;
-    }

     inLoadAttributeEditor = false;
 }
@@ -706,7 +702,6 @@
     if (fullUpdate)
     {
         list.RemoveAllItems();
-        attributeCountAdjustment = 0;
         Array<UIElement@> children = list.GetChildren();
         for (uint i = 0; i < children.length; ++i)
         {


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

--- frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkTileGroupAutomationImpl.as
+++ frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkTileGroupAutomationImpl.as
@@ -0,0 +1,75 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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
+{
+	import flash.display.DisplayObject;
+
+	import mx.automation.Automation;
+	import mx.core.mx_internal;
+
+	import spark.components.TileGroup;
+
+	use namespace mx_internal;
+
+	[Mixin]
+
+	/**
+	 *
+	 *  Defines methods and properties required to perform instrumentation for the
+	 *  TileGroup control.
+	 *
+	 *  @see spark.components.TileGroup
+	 *
+	 */
+	public class SparkTileGroupAutomationImpl extends SparkGroupAutomationImpl
+	{
+		include "../../../core/Version.as";
+
+		//--------------------------------------------------------------------------
+		//
+		//  Class methods
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  Registers the delegate class for a component class with automation manager.
+		 *
+		 *  @param root The SystemManger of the application.
+		 */
+		public static function init(root:DisplayObject):void
+		{
+			Automation.registerDelegateClass(spark.components.TileGroup, SparkGroupAutomationImpl);
+		}
+
+		//--------------------------------------------------------------------------
+		//
+		//  Constructor
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  Constructor.
+		 * @param obj ButtonBar object to be automated.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 4
+		 */
+		public function SparkTileGroupAutomationImpl(obj:spark.components.TileGroup)
+		{
+			super(obj);
+		}
+
+
+	}
+}


push all AVC HEADER tag it should be harmless to inject twice the same tag

--- src/org/mangui/hls/demux/TSDemuxer.as
+++ src/org/mangui/hls/demux/TSDemuxer.as
@@ -502,13 +502,11 @@
             if (sps_found && pps_found) {
                 var avcc : ByteArray = AVCC.getAVCC(sps, ppsvect);
                 // only push AVCC tag if never pushed or avcc different from previous one
-                if (_avcc == null || !compareByteArray(_avcc, avcc)) {
-                    _avcc = avcc;
-                    var avccTag : FLVTag = new FLVTag(FLVTag.AVC_HEADER, pes.pts, pes.dts, true);
-                    avccTag.push(avcc, 0, avcc.length);
-                    // Log.debug("TS:AVC:push AVC HEADER");
-                    _tags.push(avccTag);
-                }
+                _avcc = avcc;
+                var avccTag : FLVTag = new FLVTag(FLVTag.AVC_HEADER, pes.pts, pes.dts, true);
+                avccTag.push(avcc, 0, avcc.length);
+                // Log.debug("TS:AVC:push AVC HEADER");
+                _tags.push(avccTag);
             }

             /*
@@ -558,26 +556,6 @@
                     }
                 }
             }
-        }
-
-        // return true if same Byte Array
-        private function compareByteArray(ba1 : ByteArray, ba2 : ByteArray) : Boolean {
-            // compare the lengths
-            var size : uint = ba1.length;
-            if (ba1.length == ba2.length) {
-                ba1.position = 0;
-                ba2.position = 0;
-
-                // then the bytes
-                while (ba1.position < size) {
-                    var v1 : int = ba1.readByte();
-                    if (v1 != ba2.readByte()) {
-                        return false;
-                    }
-                }
-                return true;
-            }
-            return false;
         }

         /** parse ID3 PES packet **/


Removing unnecessary file extension check from manifest parser

--- HLSPlugin/src/com/kaltura/hls/manifest/HLSManifestParser.as
+++ HLSPlugin/src/com/kaltura/hls/manifest/HLSManifestParser.as
@@ -220,12 +220,8 @@

 			for( var k:int = 0; k < manifestItems.length; k++ )
 			{
-				var curItem:BaseHLSManifestItem = manifestItems[k];
-				if( curItem.uri.lastIndexOf("m3u8") != -1 )
-				{
-					// Request and parse the manifest.
-					addItemToManifestLoader( curItem );
-				}
+				// Request and parse the manifest.
+				addItemToManifestLoader( manifestItems[k] );
 			}

 			var timeAccum:Number = 0.0;


DelegatelayoutArea.removeAllElements and UNLOADED singal back in cleanAllViews.

--- actionscript-cafe/src/main/flex/org/servebox/cafe/core/layout/impl/DelegateLayoutArea.as
+++ actionscript-cafe/src/main/flex/org/servebox/cafe/core/layout/impl/DelegateLayoutArea.as
@@ -43,9 +43,11 @@
 				if( _views[i] is IUnloadView )
 				{
 					IUnloadView( _views[i] ).unload();
-					remove( _views[i] );
+					Container.getInstance().signalAggregator.signal( Object(_views[i]).className + "_UNLOADED" );
+					//remove( _views[i] );
 				}
 			}
+			container.removeAllElements();
 			_views = new Vector.<IView>();
 		}

@@ -59,6 +61,7 @@
 			IEventDispatcher( container ).removeEventListener( ElementExistenceEvent.ELEMENT_ADD, viewCreationCompleteHandler );
 		}

+		// TODO, check this usefull ?
 		public function remove(view:IView):void
 		{
 			container.removeElement( view );


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

--- frameworks/projects/mx/src/mx/core/Version.as
+++ frameworks/projects/mx/src/mx/core/Version.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2005-2007 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: 17042
Author:   cframpto@adobe.com
Date:     2010-07-23T16:04:29.868893Z

Log Message:
-----------
PARB changes for DataGrid selection

removed from DG and/or Grid:
allSelectedCells()
allSelectedIndices()
selectionContainsOnlyCell()
selectionContainsOnlyCellRegion()
selectionContainsOnlyIndex()
selectionContainsOnlyIndices()

these read-only properties have been added to Grid:
selectedCell
selectedCells
selectedIndex
selectedIndices
selectedItem
selectedItems
selectionLength

new CellRegion and CellPosition classes.  Return Vector.<CellPosition> rather than Vector.<Object> for cell selection.

Signature of getCellsAt changed to return Vector.<CellPosition>
Signature of GridSelectionEvent changed to have one arg, selectionChange:CellRegion.

QE notes: API changes so expect some test breakage
Doc notes:
Bugs:
Reviewer: Hans
Tests run: none
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Grid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GridSelection.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/SparkClasses.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/events/GridSelectionEvent.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/CellRegion.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GridLayout.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/CellPosition.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGrid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Tree.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/GridContainerBase.as</path>

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

--- frameworks/projects/spark/src/SparkClasses.as
+++ frameworks/projects/spark/src/SparkClasses.as
@@ -28,6 +28,8 @@
 import mx.core.UIFTETextField; UIFTETextField;
 import spark.core.ContentCache; ContentCache;
 import spark.core.SpriteVisualElement; SpriteVisualElement;
+import spark.components.supportClasses.CellPosition; CellPosition;
+import spark.components.supportClasses.CellRegion; CellRegion;
 import spark.components.supportClasses.ListItemDragProxy; ListItemDragProxy;
 import spark.skins.spark.ApplicationSkin; ApplicationSkin;
 import spark.skins.spark.BorderContainerSkin; BorderContainerSkin;


Transferred from the Adobe Open Source Subversion Repository

Revision: 8487
Author:   smgilson@adobe.com
Date:     2009-07-09T18:57:21.985536Z

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

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

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

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

--- frameworks/projects/spark/src/spark/effects/animation/MotionPath.as
+++ frameworks/projects/spark/src/spark/effects/animation/MotionPath.as
@@ -33,7 +33,7 @@
  *
  *  @mxml
  *
- *
The <mx:MotionPath> tag
+ *
The <s:MotionPath> tag
  *  inherits the tag attributes of its superclass,
  *  and adds the following tag attributes:

  *


384 mega mess-around with DisplayUtil

384 mega mess-around with DisplayUtil

--- raw/src/org/yellcorp/lib/display/DisplayUtil.as
+++ raw/src/org/yellcorp/lib/display/DisplayUtil.as
@@ -44,6 +44,9 @@
         real.x = guide.x;
         real.y = guide.y;

+        guide.x = 0;
+        guide.y = 0;
+
         if (copySize)
         {
             real.width = guide.width;
@@ -84,33 +87,43 @@
         }
     }

-    public static function insertTransformNode(child:DisplayObject, regPointX:Number = 0, regPointY:Number = 0):Sprite
+    /**
+     * Concatenates the child's transform with its parent, and resets the
+     * child's transform.
+     */
+    public static function hoistTransform(child:DisplayObject):void
     {
-        var parent:DisplayObjectContainer;
-        var newNode:Sprite;
-        var offsetX:int;
-        var offsetY:Number;
-
         if (!child)
             throw new ArgumentError("child argument must not be null");

-        offsetX = int(child.width * regPointX);
-        offsetY = int(child.height * regPointY);
+        var parent:DisplayObjectContainer = child.parent;

-        parent = child.parent;
+        if (!parent)
+            throw new ArgumentError("child has no parent");

-        newNode = new Sprite();
-        newNode.x = child.x + offsetX;
-        newNode.y = child.y + offsetY;
+        parent.transform.matrix.concat(child.transform.matrix);
+        child.transform.matrix.identity();
+    }

-        newNode.addChild(child);
-        child.x = -offsetX;
-        child.y = -offsetY;
+    public static function insertParent(child:DisplayObject, newParent:DisplayObjectContainer = null):DisplayObjectContainer
+    {
+        if (!child)
+            throw new ArgumentError("child argument must not be null");

-        if (parent)
-            parent.addChild(newNode);
+        var oldParent:DisplayObjectContainer = child.parent;

-        return newNode;
+        if (!newParent)
+        {
+            newParent = new Sprite();
+        }
+
+        if (oldParent)
+        {
+            var oldIndex:int = oldParent.getChildIndex(child);
+            oldParent.addChildAt(newParent, oldIndex);
+        }
+        newParent.addChild(child);
+        return newParent;
     }

     public static function setChildAttached(child:DisplayObject, parent:DisplayObjectContainer, attach:Boolean):void


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

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

 package mx.controls
 {


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

--- frameworks/projects/mx/src/mx/events/DividerEvent.as
+++ frameworks/projects/mx/src/mx/events/DividerEvent.as
@@ -0,0 +1,194 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2005-2006 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.events
+{
+
+import flash.events.Event;
+
+/**
+ *  Represents events that are dispatched when a divider has been pressed,
+ *  dragged or released.
+ *
+ *  These events are dispatched by the DividedBox control and its children.
+ *
+ *  @see mx.containers.DividedBox
+ */
+public class DividerEvent extends Event
+{
+    include "../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Class constants
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  The DividerEvent.DIVIDER_DRAG constant defines the value of the
+	 *  type property of the event object for a dividerDrag 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.

+	 *
delta	Contains the number of pixels
+     *      that the divider has been dragged. Positive numbers represent a drag toward the
+	 *      right or bottom, negative numbers toward the left or top.

+     *
dividerIndex	Contains the zero-based index
+     *      of the divider being dragged. The leftmost or topmost divider has a
+	 *     dividerIndex of 0.

+     *
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 dividerDrag
+	 */
+	public static const DIVIDER_DRAG:String = "dividerDrag";
+
+	/**
+	 *  The DividerEvent.DIVIDER_PRESS constant defines the value of the
+	 *  type property of the event object for a dividerPress 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.

+	 *
delta	Contains the number of pixels
+     *      that the divider has been dragged. Positive numbers represent a drag toward the
+	 *      right or bottom, negative numbers toward the left or top.

+     *
dividerIndex	Contains the zero-based index
+     *      of the divider being dragged. The leftmost or topmost divider has a
+     *     dividerIndex of 0.

+     *
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 dividerPress
+	 */
+	public static const DIVIDER_PRESS:String = "dividerPress";
+
+	/**
+	 *  The DividerEvent.DIVIDER_RELEASE constant defines the value of the
+	 *  type property of the event object for a dividerRelease 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.

+	 *
delta	Contains the number of pixels
+     *      that the divider has been dragged. Positive numbers represent a drag toward the
+	 *      right or bottom, negative numbers toward the left or top.

+     *
dividerIndex	Contains the zero-based index
+     *      of the divider being dragged. The leftmost or topmost divider has a
+     *     dividerIndex of 0.

+     *
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 dividerRelease
+	 */
+	public static const DIVIDER_RELEASE:String = "dividerRelease";
+
+	//--------------------------------------------------------------------------
+	//
+	//  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 dividerIndex Index of the divider that generated the event.
+	 *
+	 *  @param delta The number of pixels by which the divider has been dragged.
+	 */
+	public function DividerEvent(type:String, bubbles:Boolean = false,
+								 cancelable:Boolean = false,
+								 dividerIndex:int = -1, delta:Number = NaN)
+	{
+		super(type, bubbles, cancelable);
+
+		this.dividerIndex = dividerIndex;
+		this.delta = delta;
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Properties
+	//
+	//--------------------------------------------------------------------------
+
+	//----------------------------------
+	//  delta
+	//----------------------------------
+
+	/**
+	 *  The number of pixels that the divider has been dragged.
+	 *  Positive numbers represent a drag toward the right or bottom,
+	 *  negative numbers toward the left or top.
+	 */
+	public var delta:Number;
+
+	//----------------------------------
+	//  dividerIndex
+	//----------------------------------
+
+	/**
+	 *  The zero-based index of the divider being pressed or dragged.
+	 *  The leftmost or topmost divider has a dividerIndex
+	 *  of 0.
+	 */
+	public var dividerIndex:int;
+
+	//--------------------------------------------------------------------------
+	//
+	//  Overridden methods: Event
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	override public function clone():Event
+	{
+		return new DividerEvent(type, bubbles, cancelable, dividerIndex, delta);
+	}
+}
+
+}


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 4600
Author:   jszeto@adobe.com
Date:     2009-01-20T21:11:33.133710Z

Log Message:
-----------
Flex SDK - Move style metadata from base class down to component classes

Previously, all spark and text styles were defined on FxComponent even though not every component supports all of those styles. So I have moved each style to the top-most base class where the style will apply to all descendant classes of that base class.

This is the set of styles that were added to the various classes:

baseColor
color
focusColor
symbolColor
selectionColor
contentBackgroundColor
rollOverColor
alternatingItemColors
basic text styles
advanced text styles

Here are some details about the implementation:
- baseColor was added to FxComponent because every component and container supports it
- FxContainer and GroupBase are containers, so their children can potentially support any of the styles. Thus the container classes support all of the styles indirectly.
- FxDataContainer doesn't support all of the styles because its subclasses (FxButtonBar, FxList) don't support all styles.
- FxList supports selectionColor, but not inactiveSelectionColor or unfocusedSelectionColor. All other components that support selectionColor, support the other two styles, and thus include styles/metadata/SelectionFormatTextStyles.as
- GroupBase contains the style declarations that have the full ASDoc. All other declarations use the @copy keyword to reference the asdoc from GroupBase.

QE Notes: Update tests to remove references to styles that are no longer allowed on various components/FxButton.as
Doc Notes: Write the ASDoc comments for the style declarations in GroupBase
Bugs: n/a
Reviewer: Glenn

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxNumericStepper.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/FxCheckBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxTextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxRadioButton.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/baseClasses/FxSlider.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/FxList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxDataContainer.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/FxSpinner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxContainer.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/SliderBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/SliderBase.as
@@ -24,6 +24,15 @@
 import mx.core.UIComponent;
 import mx.formatters.NumberFormatter;
 import mx.managers.IFocusManagerComponent;
+
+include "../../styles/metadata/BasicContainerFormatTextStyles.as"
+include "../../styles/metadata/BasicParagraphFormatTextStyles.as"
+include "../../styles/metadata/BasicCharacterFormatTextStyles.as"
+
+/**
+ *  @copy mx.components.baseClasses.GroupBase#focusColor
+ */
+[Style(name="focusColor", type="uint", format="Color", inherit="yes")]

 /**
  *  The FxSlider class lets users select a value by moving a slider thumb between


Transferred from the Adobe Open Source Subversion Repository

Revision: 12469
Author:   jimurphy@adobe.com
Date:     2009-12-03T22:04:16.560316Z

Log Message:
-----------
fix offsets for FB.  Convert line ending from lf to crlf in svn for the proects directory only.  When checking project files in, be sure to save you files this way.  Another update to make sure happens is set the svn properties svn:eol-style = native and svn:mime-type = text/plain (these have been updated on theses files as well)

QE notes: make sure the proper class is selected
Doc notes: no
Bugs: http://bugs.adobe.com/jira/browse/SDK-24498
Reviewer:
Tests run: checkintests
Is noteworthy for integration: no

Modified Paths:
--------------
133 paths were modified

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

--- frameworks/projects/spark/src/spark/effects/interpolation/HSBInterpolator.as
+++ frameworks/projects/spark/src/spark/effects/interpolation/HSBInterpolator.as
@@ -237,4 +237,4 @@
    }

 }
-}+}


additional trace statements

additional trace statements

--- flexEditor/src/org/arisgames/editor/services/AppServices.as
+++ flexEditor/src/org/arisgames/editor/services/AppServices.as
@@ -334,12 +334,15 @@
         if (isNaN(req.requirementId))
         {
             trace("This Requirement doesn't have an Id, so call Create Requirement function On Remote Server..");
-            l = AppDAO.getInstance().getRequirementsServer().createRequirement(gid, req.contentType, req.contentId, req.requirement, req.requirementDetail1, req.requirementDetail2, req.requirementDetail3, AppConstants.REQUIREMENT_BOOLEAN_AND_DATABASE);
+			trace("Requirement ID:" + req.requirementId + " Requirement:" + req.requirement + " Detail1:" + req.requirementDetail1 + " Detail2:" + req.requirementDetail2 );
+			l = AppDAO.getInstance().getRequirementsServer().createRequirement(gid, req.contentType, req.contentId, req.requirement, req.requirementDetail1, req.requirementDetail2, req.requirementDetail3, AppConstants.REQUIREMENT_BOOLEAN_AND_DATABASE);
         }
         else
         {
             trace("This Requirement has an Id (" + req.requirementId + "), so call Update Requirement function on Remote Server.");
-            l = AppDAO.getInstance().getRequirementsServer().updateRequirement(gid, req.requirementId, req.contentType, req.contentId, req.requirement, req.requirementDetail1, req.requirementDetail2, req.requirementDetail3, AppConstants.REQUIREMENT_BOOLEAN_AND_DATABASE);
+			trace("Requirement ID:" + req.requirementId + " Requirement:" + req.requirement + " Detail1:" + req.requirementDetail1 + " Detail2:" + req.requirementDetail2 );
+
+			l = AppDAO.getInstance().getRequirementsServer().updateRequirement(gid, req.requirementId, req.contentType, req.contentId, req.requirement, req.requirementDetail1, req.requirementDetail2, req.requirementDetail3, AppConstants.REQUIREMENT_BOOLEAN_AND_DATABASE);
         }
         l.addResponder(resp);
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 5367
Author:   rfrishbe@adobe.com
Date:     2009-03-17T22:26:35.014500Z

Log Message:
-----------
The changes here are mostly fixing some sizing issues.

For the FlashContainerPlaceholder, the first child is now MyFlexContentHolder, which extends mx.flash.FlexContentHolder but meets the invariant that it has 1 child and that child is  FlexContentHolderThumbnail, which I’ve added as a swc to the project.  I changed this by accident last time to refer to mx.flash.FlexContentHolder, when it should've referred to a concrete instance created by Flash from a swc.  I also added a chrome of 151x151 to match the FlexContentHolderThumbnail since otherwise the container itself would have no chrome at all, and this let’s it size correctly.

Also, for sizing, in a container, rather than sizing to the size of the chrome, I now size to the size of the FlexContentHolder thumbnail that all FlexContentHolder’s have.  This means in ContainerMovieClip, I don’t need to override bounds anymore.

ContainerMovieClip now implements IVisualElementContainer.

Also, I fixed a resizing event bug in UIMovieClip where the resize event was getting dispatched more than once.

QE Notes: -
Doc Notes: -
Bugs: SDK-19271, SDK-19788, SDK-19789
Reviewer: Glenn
tests: checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/utilities/src/FlashComponentPlaceholder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/utilities/src/FlashContainerPlaceholder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/utilities/build.xml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/utilities/libs/FlexContentHolderThumbnail.swc</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/FlexContentHolder.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/utilities/src/MyFlexContentHolder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/ContainerMovieClip.as</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/utilities/libs</path>

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

--- frameworks/projects/authoringsupport/src/MyFlexContentHolder.as
+++ frameworks/projects/authoringsupport/src/MyFlexContentHolder.as
@@ -0,0 +1,34 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2008 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package
+{
+    import flash.geom.Rectangle;
+
+    import mx.core.mx_internal;
+    import mx.flash.FlexContentHolder;
+
+    public class MyFlexContentHolder extends FlexContentHolder
+    {
+        public function MyFlexContentHolder()
+        {
+            super();
+
+            addChild(new FlexContentHolderThumbnail());
+
+            // now need to re-measure ourselves:
+            var bounds:Rectangle = getBounds(this);
+            _width = bounds.width;
+            _height = bounds.height;
+            mx_internal::$scaleX = mx_internal::$scaleY = 1;
+        }
+    }
+}


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/mx/src/mx/skins/halo/SliderHighlightSkin.as
+++ frameworks/projects/mx/src/mx/skins/halo/SliderHighlightSkin.as
@@ -16,6 +16,11 @@

 /**
  *  The skin for the highlighted state of the track of a Slider.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class SliderHighlightSkin extends Border
 {
@@ -29,6 +34,11 @@

     /**
 	 *  Constructor.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function SliderHighlightSkin()
 	{


Transferred from the Adobe Open Source Subversion Repository

Revision: 19406
Author:   clucier@adobe.com
Date:     2010-12-15T22:21:59.337946Z

Log Message:
-----------
Adjusted the logic slightly for AnimateTransform's end value application such that in some cases even if a target has no parent, it's end values are acquired.

QE notes: None
Doc notes: None
Bugs: SDK-26434
Reviewer: Jason Sz.
Tests run: Checkin, Cyclone Server
Is noteworthy for integration: No

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

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

--- frameworks/projects/spark/src/spark/effects/AnimateTransform.as
+++ frameworks/projects/spark/src/spark/effects/AnimateTransform.as
@@ -493,7 +493,7 @@
                 // For now, just make sure that we can transform the current target
                 // and that the target exists on the display tree,
                 // then go ahead and capture its transform values
-                if (!(target is ILayoutElement) || !target.parent)
+                if (!(target is ILayoutElement) || (!target.parent && setStartValues))
                     continue;

                 valueMap = setStartValues ? propChanges[i].start : propChanges[i].end;


FLEX-33311 Correcting some typos in the asdoc.

--- frameworks/projects/spark/src/spark/layouts/ConstraintLayout.as
+++ frameworks/projects/spark/src/spark/layouts/ConstraintLayout.as
@@ -83,7 +83,7 @@
  *    and right constraints.

  *
  *
If the element has both top and bottom constraints,
- *    it's height is set to be the container's height minus the top
+ *    it's height is set to be the container's height minus the top
  *    and bottom constraints.

  *
  *
The element is set to its preferred width and/or height.

@@ -96,12 +96,12 @@
  *    the vertical direction such that its baselinePosition (usually the base line
  *    of its first line of text) is aligned with baseline constraint.

  *
- *
If element's top or left constraints
+ *
If element's top or left constraints
  *    are specified, then the element is
  *    positioned such that the top-left corner of the element's layout bounds is
  *    offset from the top-left corner of the container by the specified values.

  *
- *
If element's bottom or right constraints are specified,
+ *
If element's bottom or right constraints are specified,
  *    then the element is positioned such that the bottom-right corner
  *    of the element's layout bounds is
  *    offset from the bottom-right corner of the container by the specified values.


using stageutils calllater instead of enterframe event listener

--- WeaveCore/src/weave/core/LinkableDynamicDisplayObject.as
+++ WeaveCore/src/weave/core/LinkableDynamicDisplayObject.as
@@ -17,7 +17,6 @@
 {
 	import flash.display.DisplayObject;
 	import flash.display.DisplayObjectContainer;
-	import flash.events.Event;

 	import weave.api.core.IDisposableObject;
 	import weave.api.core.ILinkableDisplayObject;
@@ -54,16 +53,12 @@
 		private function updateParentLater():void
 		{
 			if (_object)
-				_object.addEventListener(Event.ENTER_FRAME, updateParentNow);
+				WeaveAPI.StageUtils.callLater(this, updateParentNow);
 		}

-		private function updateParentNow(event:Event):void
+		private function updateParentNow():void
 		{
-			if (event.currentTarget != _object)
-				return;
-
 			changeParent(_object, null, _parent);
-			_object.removeEventListener(Event.ENTER_FRAME, updateParentNow);
 		}

 		private static function changeParent(child:DisplayObject, oldParent:DisplayObjectContainer, newParent:DisplayObjectContainer):void


Keys now work correctly in CensusDataSoure

--- WeaveData/src/weave/data/DataSources/CensusDataSource.as
+++ WeaveData/src/weave/data/DataSources/CensusDataSource.as
@@ -39,6 +39,7 @@
     import weave.services.JsonCache;
     import weave.services.addAsyncResponder;
     import weave.utils.DataSourceUtils;
+    import weave.utils.DebugUtils;
     import weave.core.CallbackCollection;

     public class CensusDataSource extends AbstractDataSource implements IDataSource_Service
@@ -310,7 +311,7 @@
         		var key_column:Array = new Array(rows.length - 1);
         		var key_column_indices:Array = new Array(columns.length);
         		var data_column_index:int = columns.indexOf(variable_name);
-        		for (var idx:int = 0; idx < key_column_names.lenght; idx++)
+        		for (var idx:int = 0; idx < key_column_names.length; idx++)
         		{
         			key_column_indices[idx] = columns.indexOf(key_column_names[idx]);
         		}


Fixed bug when a context was empty

Fixed bug when a context was empty


Added label to sysclock button

Added label to sysclock button

--- src/LevelStates/LevelState.as
+++ src/LevelStates/LevelState.as
@@ -259,7 +259,10 @@
 		}

 		private function makeClockButton():void {
-			upperLayer.add(new DClock(210, 10));
+			var clock:DClock = new DClock(210, 10);
+			var extraWidth:int = 10;
+			clock.add(makeToolbarText(clock.X - 10 / 2 - 1, clock.Y + clock.fullHeight - 2, clock.fullWidth + extraWidth, "Period"));
+			upperLayer.add(clock);
 		}

 		private function makeZoomButton():void {
@@ -490,12 +493,17 @@
 			upperLayer.add(button);

 			var extraWidth:int = 10;
-			var labelText:FlxText = new FlxText(X - extraWidth / 2 - 1, button.Y + button.fullHeight - 2, button.fullWidth + extraWidth, ShortName);
-			U.TOOLBAR_FONT.configureFlxText(labelText, 0xffffff, 'center');
-			labelText.scrollFactor.x = labelText.scrollFactor.y = 0;
+			var labelText:FlxText = makeToolbarText(X - extraWidth / 2 - 1, button.Y + button.fullHeight - 2, button.fullWidth + extraWidth, ShortName);
 			button.add(labelText);

 			return button;
+		}
+
+		private function makeToolbarText(X:int, Y:int, Width:int, Text:String):FlxText {
+			var text:FlxText = new FlxText(X, Y, Width, Text);
+			U.TOOLBAR_FONT.configureFlxText(text, 0xffffff, 'center');
+			text.scrollFactor.x = text.scrollFactor.y = 0;
+			return text;
 		}


remove useless imports

remove useless imports

--- src/aerys/minko/render/shader/compiler/graph/ShaderGraph.as
+++ src/aerys/minko/render/shader/compiler/graph/ShaderGraph.as
@@ -1,23 +1,17 @@
 package aerys.minko.render.shader.compiler.graph
 {
 	import aerys.minko.Minko;
+	import aerys.minko.render.geometry.stream.format.VertexComponent;
 	import aerys.minko.render.resource.Program3DResource;
 	import aerys.minko.render.resource.texture.ITextureResource;
 	import aerys.minko.render.shader.Signature;
 	import aerys.minko.render.shader.compiler.graph.nodes.AbstractNode;
-	import aerys.minko.render.shader.compiler.graph.nodes.vertex.Extract;
-	import aerys.minko.render.shader.compiler.graph.nodes.vertex.Instruction;
-	import aerys.minko.render.shader.compiler.graph.nodes.vertex.Interpolate;
-	import aerys.minko.render.shader.compiler.graph.nodes.vertex.Overwriter;
-	import aerys.minko.render.shader.compiler.graph.nodes.vertex.VariadicExtract;
 	import aerys.minko.render.shader.compiler.graph.visitors.*;
 	import aerys.minko.render.shader.compiler.register.Components;
 	import aerys.minko.render.shader.compiler.sequence.AgalInstruction;
 	import aerys.minko.type.log.DebugLevel;
-	import aerys.minko.render.geometry.stream.format.VertexComponent;

 	import flash.utils.ByteArray;
-	import flash.utils.Dictionary;
 	import flash.utils.Endian;

 	/**


Transferred from the Adobe Open Source Subversion Repository

Revision: 14963
Author:   jszeto@adobe.com
Date:     2010-03-23T21:34:04.235844Z

Log Message:
-----------
Merging revisions 14946 and 14947 from 4.x to trunk

Mirroring code hinting fixes

http://bugs.adobe.com/jira/browse/SDK-25565 - Components should define [Style] metadata for  layoutDirection and direction styles

There is both a style and property called layoutDirection in UIComponent. For UIComponent, both Hans and I agree that we should promote the use of the style. I added an exclude for the layoutDirection property in UIComponent. This allows code hinting for the layoutDirection style in the CSS style declaration. It also removes the layoutDirection property from the ASDoc. Code hinting still works for the layoutDirection attribute on a UIComponent subclass MXML tag. This attribute gets set to the property, not the style.

ProgressBar has both a direction property and style. However, in this situation, they control different behaviors. It is not possible to code hint for the direction style in the CSS style declaration without removing the direction property from ASDoc. We are just going to have to live with this limitation.

http://bugs.adobe.com/jira/browse/SDK-25823 - The layoutDirection style/property doesnt code hint static enums

Added Inspectable metadata to BitmapAsset, SpriteAsset, SpriteVisualElement and GraphicElement.

QE notes: test code hinting for layoutDirection
Doc notes: none
Bugs: SDK-25565, SDK-25823
Reviewer: Carol, Hans
Tests run: checkintests, Mirroring
Is noteworthy for integration: no

ColorPicker and PopUpButton mirroring bug fix

http://bugs.adobe.com/jira/browse/SDK-25916 - color/label field in swatch panel isn't updated when layoutDirection is
changed between rtl and ltr

Since the ColorPicker's SwatchPanel is parented by the SystemManager it wasn't inheriting the layoutDirection and it wasn't invalidating the layoutDirection. The fix is to pass the layoutDirection to the SwatchPanel and always call invalidateLayoutDirection in PopUpManager.addPopUp.

http://bugs.adobe.com/jira/browse/SDK-25828 - initial popup starts with wrong position, not aligned with PopupButton when there is padding set on container

The popup is not guaranteed to know its size until it has been added as a popup. Moved the position logic to after the popup has been added.

QE notes: test mirrored ColorPicker and PopUpButton
Doc notes: none
Bugs: SDK-25916
Reviewer: Carol
Tests run: checkintests, ColorPicker, PopUpButton
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/SpriteAsset.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ColorPicker.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/PopUpButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/BitmapAsset.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>

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

--- frameworks/projects/framework/src/mx/core/BitmapAsset.as
+++ frameworks/projects/framework/src/mx/core/BitmapAsset.as
@@ -325,6 +325,8 @@
     //----------------------------------

     private var _layoutDirection:String = LayoutDirection.LTR;
+
+    [Inspectable(category="General", enumeration="ltr,rtl")]

     /**
      *  @inheritDoc