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

--- frameworks/projects/advancedgrids/src/mx/olap/IOLAPResult.as
+++ frameworks/projects/advancedgrids/src/mx/olap/IOLAPResult.as
@@ -0,0 +1,102 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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
+{
+ /**
+ *  The IOLAPResult interface represents the result of a query on an OLAP cube.
+ *
+ *  @see mx.olap.OLAPQuery
+ *  @see mx.olap.OLAPQueryAxis
+ *  @see mx.olap.IOLAPResultAxis
+ *  @see mx.olap.OLAPResultAxis
+ *  @see mx.olap.OLAPResult
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+public interface IOLAPResult
+{
+	//--------------------------------------------------------------------------
+	//
+	//  Properties
+	//
+	//--------------------------------------------------------------------------
+
+	//----------------------------------
+	//  axes
+	//----------------------------------
+
+    /**
+     * An Array of IOLAPResultAxis instances that represent all the axes of the query.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function get axes():Array; // (of IAxis);
+
+    //----------------------------------
+	//  query
+	//----------------------------------
+
+    /**
+     *  The query whose result is represented by this object.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function get query():IOLAPQuery;
+
+    //--------------------------------------------------------------------------
+	//
+	//  Methods
+	//
+	//--------------------------------------------------------------------------
+
+    /**
+     *  Returns an axis of the query result.
+     *
+     *  @param axisOrdinal Specify OLAPQuery.COLUMN AXIS for a column axis,
+     *  OLAPQuery.ROW_AXIS for a row axis,
+     *  and OLAPQuery.SLICER_AXIS for a slicer axis.
+     *
+     *  @return The IOLAPQueryAxis instance.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function getAxis(axisOrdinal:int):IOLAPResultAxis;
+
+    /**
+     *  Returns a cell at the specified location in the query result.
+     *
+     *  @param x The column of the query result.
+     *
+     *  @param y The row of the query result.
+     *
+     *  @return An IOLAPCell instance representing the cell.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function getCell(x:int, y:int):IOLAPCell;
+}
+}


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

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

 package mx.olap
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 4726
Author:   gosmith@adobe.com
Date:     2009-01-29T02:47:59.868818Z

Log Message:
-----------
Accessibility changes to the MSAA name of several components, as requested by Freedom Scientific. These changes make Flex controls behave more like standard Windows controls.

In Accordion and TabBar, the name is now just what is displayed, without " Tab" or " Tab, Active" appended.

In ComboBox, List, and Tree, the name of each item is now just what it displays, without, for example, "2 of 7" appended.

Removed an artificial limit of 100000 items in List and Menu.

A Slider with an MXML id no longer returns that id as its name; no other component does this and id's are certainly no intended to be spoken.

Removed the getName() method of ComboBase, which isn't used.

QE Notes: None
Doc Notes: None
Bugs: None
Reviewer: Jason

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/TabBarAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ColorPickerAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/DataGridAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/TreeAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/SliderAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/MenuAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ListBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AlertAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ComboBoxAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/MenuBarAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AccordionHeaderAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ComboBaseAccImpl.as</path>

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

--- frameworks/projects/mx/src/mx/accessibility/SliderAccImpl.as
+++ frameworks/projects/mx/src/mx/accessibility/SliderAccImpl.as
@@ -222,9 +222,6 @@
 	 */
 	override protected function getName(childID:uint):String
 	{
-
-		if (master.id)
-			 return master.id;
 		return "";
 	}


Transferred from the Adobe Open Source Subversion Repository

Revision: 5098
Author:   gauravj@adobe.com
Date:     2009-02-27T02:21:27.489350Z

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

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

--- frameworks/projects/spark/src/spark/components/HScrollBar.as
+++ frameworks/projects/spark/src/spark/components/HScrollBar.as
@@ -29,6 +29,11 @@
  *
Although you can use the FxHScrollBar control as a stand-alone control,
  *  you usually combine it as part of another group of components to
  *  provide scrolling functionality.

+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
  */
 public class FxHScrollBar extends FxScrollBar
 {
@@ -42,6 +47,11 @@

     /**
      *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function FxHScrollBar()
     {
@@ -56,6 +66,11 @@

     /**
      *  The size of the track, which equals the width of the track.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     override protected function get trackSize():Number
     {
@@ -93,6 +108,11 @@
      *
      *  @param value The new value of the value property.
      *  @see viewport
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     override protected function setValue(value:Number):void
     {
@@ -108,6 +128,11 @@
      *
      *  @param thumbPos A number representing the new position of the thumb
      *  button in the control.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     override protected function positionThumb(thumbPos:Number):void
     {
@@ -146,6 +171,11 @@
      *  @param localY The Y position relative to the scrollbar control.
      *
      *  @return The position of the thumb button.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     override protected function pointToPosition(localX:Number,
                                                 localY:Number):Number
@@ -189,6 +219,11 @@
      *  @see mx.core.IViewport
      *  @see mx.core.IViewport#horizontalScrollPosition
      *  @see mx.core.IViewport#getHorizontalScrollPositionDelta()
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     override public function page(increase:Boolean = true):void
     {
@@ -222,6 +257,11 @@
      *  @see mx.core.IViewport
      *  @see mx.core.IViewport#horizontalScrollPosition
      *  @see mx.core.IViewport#getHorizontalScrollPositionDelta()
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     override public function step(increase:Boolean = true):void
     {
@@ -250,6 +290,11 @@
      *  Set this scrollbar's value to the viewport's current horizontalScrollPosition.
      *
      *  @see IViewport#horizontalScrollPosition
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     override protected function viewportHorizontalScrollPositionChangeHandler(event:PropertyChangeEvent):void
     {
@@ -260,6 +305,11 @@
     /**
      *  Set this scrollbar's maximum to the viewport's contentWidth
      *  less the viewport width and its pageSize to the viewport's width.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     override protected function viewportResizeHandler(event:ResizeEvent):void
     {
@@ -281,6 +331,11 @@
      *
      *  @see IViewport#contentWidth
      *  @see IViewport#width
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     override protected function viewportContentWidthChangeHandler(event:PropertyChangeEvent):void
     {


- test

- test

--- GameRoot.as
+++ GameRoot.as
@@ -10,6 +10,7 @@
 	import framework.utils.SaveManager;
 	import starling.animation.Tween;
 	import framework.utils.GameAssets;
+
 	import flash.media.SoundMixer;
 	import framework.ui.SoundButton;
 	import framework.ui.ExitButton;


[VectorEditor] fixed issue in RestrictionEnzymes properties dialog

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

--- VectorCommon/src/org/jbei/lib/mappers/RestrictionEnzymeMapper.as
+++ VectorCommon/src/org/jbei/lib/mappers/RestrictionEnzymeMapper.as
@@ -39,6 +39,20 @@
 		}

 		// Properties
+        public function get restrictionEnzymeGroup():RestrictionEnzymeGroup
+        {
+            return _restrictionEnzymeGroup;
+        }
+
+        public function set restrictionEnzymeGroup(value:RestrictionEnzymeGroup):void
+        {
+            _restrictionEnzymeGroup = value;
+
+            recalculate();
+
+            dirty = false;
+        }
+
 		public function get allCutSites():ArrayCollection /* of CutSite */
 		{
 			if(dirty) {


リファクタ

リファクタ

--- project/SoundConductor/src/jp/hiiragi/managers/soundConductor/SoundParameterController.as
+++ project/SoundConductor/src/jp/hiiragi/managers/soundConductor/SoundParameterController.as
@@ -217,11 +217,11 @@

 		public function replaceSoundChannel(soundChannel:SoundChannel):void
 		{
-			var volume:Number = _soundChannel.soundTransform.volume;
-			var pan:Number = _soundChannel.soundTransform.pan;
+			var currentVolume:Number = _soundChannel.soundTransform.volume;
+			var currentPan:Number = _soundChannel.soundTransform.pan;

 			_soundChannel = soundChannel;
-			soundChannel.soundTransform = new SoundTransform(volume, pan);
+			soundChannel.soundTransform = new SoundTransform(currentVolume, currentPan);
 		}

 		public function validateNow():void


Transferred from the Adobe Open Source Subversion Repository

Revision: 8544
Author:   jimurphy@adobe.com
Date:     2009-07-14T14:11:21.674965Z

Log Message:
-----------
-Merged revisions 8510,8532 from 3.x

-Integrated:
lcds - 4.0.0.8527

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/framework/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/DividedBox.as</path>

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

--- frameworks/projects/mx/src/mx/containers/DividedBox.as
+++ frameworks/projects/mx/src/mx/containers/DividedBox.as
@@ -464,16 +464,6 @@
 	 */
 	private var numLayoutChildren:int = 0;

-    /**
-     * @private
-     * If last child was stretched to fill remaining space it will be asigned
-     * to this variable.
-     * See preLayoutAdjustment() for detailed description of the initial layout
-     * algorithm.
-     * Note that after resizing using dividers this property will be set to null.
-     */
-    private var stretchedChild:IUIComponent;
-
 	//--------------------------------------------------------------------------
 	//
 	//  Properties
@@ -491,12 +481,6 @@
 	{
 		if (super.direction != value)
 		{
-            // Direction has changed so we reset the last child's
-            // percentWidth/percentHeight setting. Note that
-            // we call this before assigning the new direction value
-            // as resetStrechedChild() depends on the direction.
-            resetStretchedChild();
-
 			super.direction = value;

 			// Need to invalidate all our dividers
@@ -1363,10 +1347,6 @@
                 ++dividerIndex;
         }

-        // There's no need to track the last stretched child, as
-        // we are about to assing percentWidth/percentHeight.
-        stretchedChild = null;
-
 		// Distribute space starting from the center and
 		// moving upwards.
         var curChildIndex:int = activeDividerChildIndex;
@@ -1459,24 +1439,6 @@

 	/**
 	 *  @private
-     * If the last child is stretched to fill
-     * the remaining space this function resets its size
-     * and sets stretchedChild property to null.
-     */
-    private function resetStretchedChild():void
-    {
-        if (stretchedChild)
-        {
-            if (isVertical())
-                stretchedChild.percentHeight = NaN;
-            else
-                stretchedChild.percentWidth = NaN;
-            stretchedChild = null;
-        }
-    }
-
-    /**
-     *  @private
 	 *  Algorithm employed pre-layout to ensure that
 	 *  we don't leave any dangling space and to ensure
 	 *  that only explicit min/max values are honored.
@@ -1537,7 +1499,6 @@
 						child.percentHeight = 100;
 					else
 						child.percentWidth = 100;
-                    stretchedChild = child;
                     break;
 				}
 			}
@@ -1615,10 +1576,6 @@
         if (numLayoutChildren > 1)
             createDivider(numLayoutChildren - 2);

-        // Clear the stretched child as the new last child
-        // will be set to 100% in preLayoutAdjustment().
-        resetStretchedChild();
-
 		// Clear the cached values so that we do another
 		// measurement pass.
 		dbMinWidth = NaN;
@@ -1644,10 +1601,6 @@

 		if (numLayoutChildren > 0)
 			dividerLayer.removeChild(getDividerAt(numLayoutChildren - 1));
-
-        // Clear the stretched child as the new last child
-        // will be set to 100% in preLayoutAdjustment().
-        resetStretchedChild();

 		// Clear the cached values so that we do another
 		// measurement pass.
@@ -1673,10 +1626,6 @@
 		else if (!child.includeInLayout && --numLayoutChildren > 0)
 			dividerLayer.removeChild(getDividerAt(numLayoutChildren - 1));

-        // Clear the stretched child as the new last child
-        // will be set to 100% in preLayoutAdjustment().
-        resetStretchedChild();
-
         // Clear the cached values so that we do another
         // measurement pass.
         dbMinWidth = NaN;


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

--- frameworks/projects/rpc/src/mx/rpc/xml/TypeIterator.as
+++ frameworks/projects/rpc/src/mx/rpc/xml/TypeIterator.as
@@ -0,0 +1,186 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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
+{
+
+import mx.collections.IList;
+import mx.utils.object_proxy;
+
+use namespace object_proxy;
+
+[ExcludeClass]
+
+/**
+ * A helper class to iterate over an Array, IList, or XMLList.
+ *
+ * @private
+ */
+public class TypeIterator
+{
+    public function TypeIterator(value:*)
+    {
+        super();
+        _value = value;
+    }
+
+    public function hasNext():Boolean
+    {
+        if (_value != null)
+        {
+            return (getLength(_value) > counter);
+        }
+
+        return false;
+    }
+
+    public function next():*
+    {
+        var result:*;
+
+        try
+        {
+            result = getItemAt(_value, counter);
+        }
+        finally
+        {
+            counter++;
+        }
+
+        return result;
+    }
+
+    public function get length():uint
+    {
+        return getLength(_value);
+    }
+
+    public function reset():void
+    {
+        counter = 0;
+    }
+
+    public function get value():*
+    {
+        return _value;
+    }
+
+    public static function getItemAt(value:*, index:uint):*
+    {
+        var result:*;
+
+        if (value != null)
+        {
+            if (value is Array)
+            {
+                var arrayValue:Array = value as Array;
+                result = arrayValue[index];
+            }
+            else if (value is IList)
+            {
+                var listValue:IList = value as IList;
+                result = listValue.getItemAt(index);
+            }
+            else if (value is XMLList)
+            {
+                var xmlList:XMLList = value as XMLList;
+                result = xmlList[index];
+            }
+        }
+
+        return result;
+    }
+
+    public static function getLength(value:*):uint
+    {
+        var result:uint;
+
+        if (value != null)
+        {
+            if (value is Array)
+            {
+                var arrayValue:Array = value as Array;
+                result = arrayValue.length;
+            }
+            else if (value is IList)
+            {
+                var listValue:IList = value as IList;
+                result = listValue.length;
+            }
+            else if (value is XMLList)
+            {
+                var xmlList:XMLList = value as XMLList;
+                result = xmlList.length();
+            }
+        }
+
+        return result;
+    }
+
+    public static function isIterable(value:*):Boolean
+    {
+        if (value is ContentProxy && !ContentProxy(value).object_proxy::isSimple)
+        {
+            var complexValue:* = ContentProxy(value).object_proxy::content;
+            if (TypeIterator.isIterable(complexValue))
+            {
+                value = complexValue;
+            }
+        }
+
+        if (value is Array || value is IList || value is XMLList)
+            return true;
+
+        return false;
+    }
+
+    public static function push(parent:*, value:*):uint
+    {
+        var result:uint;
+
+        if (parent != null)
+        {
+            if (parent is ContentProxy && !ContentProxy(parent).object_proxy::isSimple)
+            {
+                var complexParent:* = ContentProxy(parent).object_proxy::content;
+                if (TypeIterator.isIterable(complexParent))
+                {
+                    parent = complexParent;
+                }
+            }
+
+            if (parent is Array)
+            {
+                var arrayValue:Array = parent as Array;
+                result = arrayValue.push(value);
+            }
+            else if (parent is IList)
+            {
+                var listValue:IList = parent as IList;
+                listValue.addItem(value);
+                result = listValue.length;
+            }
+            else if (parent is XMLList)
+            {
+                var xmlList:XMLList = parent as XMLList;
+                xmlList += value;
+                result = xmlList.length();
+            }
+        }
+
+        return result;
+    }
+
+    private var _value:*;
+    private var counter:uint;
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 4526
Author:   hmuller@adobe.com
Date:     2009-01-14T19:47:10.933315Z

Log Message:
-----------
Restored mx_internal qualifier to DataGroup.getItemIndexForRenderer(),
getRendererForItemAt() methods.  At the moment, many FxList mustella tests
depend on this.

QE Notes: Still seeing the same 44 failures in the FxList
Doc Notes: None
Bugs:
Reviewer: None

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxButtonBar.as</path>

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

--- frameworks/projects/spark/src/spark/components/List.as
+++ frameworks/projects/spark/src/spark/components/List.as
@@ -256,7 +256,7 @@
     {
         super.itemSelected(index, selected);

-        var renderer:Object = dataGroup.getRendererForItemAt(index);
+        var renderer:Object = dataGroup.mx_internal::getRendererForItemAt(index);

         if (renderer)
         {
@@ -434,7 +434,7 @@
     {
         // Multiple selection needs to be added here....

-        selectedIndex = dataGroup.getItemIndexForRenderer(event.currentTarget as IVisualElement);
+        selectedIndex = dataGroup.mx_internal::getItemIndexForRenderer(event.currentTarget as IVisualElement);
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 13296
Author:   jszeto@adobe.com
Date:     2010-01-06T01:31:52.563455Z

Log Message:
-----------
Change event split into change and valueCommit for list based components

http://bugs.adobe.com/jira/browse/SDK-24803 - When selectedItem/selectedIndex is set programatically, list should dispatch a valueCommit event, not a change event

Refactored selection properties into helper functions which parameterize dispatching changing/change events. Changed all internal setting of the selection properties to use these helper functions.

Updated binding metadata for selection properties.

QE notes: Update tests
Doc notes: Docs should mention valueCommit versus change/changing
Bugs: SDK-24803
Reviewer: Ryan
Tests run: checkintests, ButtonBar, List, ComboBox, DropDownList
Is noteworthy for integration: No

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

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

--- frameworks/projects/spark/src/spark/components/List.as
+++ frameworks/projects/spark/src/spark/components/List.as
@@ -30,6 +30,7 @@
 import mx.core.IVisualElement;
 import mx.core.mx_internal;
 import mx.events.DragEvent;
+import mx.events.FlexEvent;
 import mx.events.SandboxMouseEvent;
 import mx.managers.DragManager;
 import mx.managers.IFocusManagerComponent;
@@ -745,6 +746,7 @@
     private var multipleSelectionChanged:Boolean;

     [Bindable("change")]
+    [Bindable("valueCommit")]

     /**
      *  A Vector of ints representing the indices of the currently selected
@@ -775,9 +777,26 @@
      */
     public function set selectedIndices(value:Vector.<int>):void
     {
-        if (_proposedSelectedIndices == value)
+        setSelectedIndices(value, false);
+    }
+
+    /**
+     *  @private
+     *  Used internally to specify whether the selectedIndices changed programmatically or due to
+     *  user interaction.
+     *
+     *  @param dispatchChangeEvent if true, the component will dispatch a "change" event if the
+     *  value has changed. Otherwise, it will dispatch a "valueCommit" event.
+     */
+    mx_internal function setSelectedIndices(value:Vector.<int>, dispatchChangeEvent:Boolean = false):void
+    {
+        // TODO (jszeto) Do a deep compare of the vectors
+        if (_proposedSelectedIndices == value ||
+            (value.length == 1 && value[0] == selectedIndex))
             return;

+        if (dispatchChangeEvent)
+            dispatchChangeAfterSelection = dispatchChangeEvent;
         _proposedSelectedIndices = value;
         multipleSelectionChanged = true;
         invalidateProperties();
@@ -788,7 +807,8 @@
     //----------------------------------

     [Bindable("change")]
-
+    [Bindable("valueCommit")]
+
     /**
      *  A Vector of Objects representing the currently selected data items.
      *  If multiple selection is disabled by setting allowMultipleSelection
@@ -1014,10 +1034,20 @@
         // the bindings update correctly.
         if (dispatchChangedEvents && retVal)
         {
-            var e:IndexChangeEvent = new IndexChangeEvent(IndexChangeEvent.CHANGE);
-            e.oldIndex = oldSelectedIndex;
-            e.newIndex = _selectedIndex;
-            dispatchEvent(e);
+            var e:IndexChangeEvent;
+
+            if (dispatchChangeAfterSelection)
+            {
+                e = new IndexChangeEvent(IndexChangeEvent.CHANGE);
+                e.oldIndex = oldSelectedIndex;
+                e.newIndex = _selectedIndex;
+                dispatchEvent(e);
+                dispatchChangeAfterSelection = false;
+            }
+            else
+            {
+                dispatchEvent(new FlexEvent(FlexEvent.VALUE_COMMIT));
+            }

             e = new IndexChangeEvent(IndexChangeEvent.CARET_CHANGE);
             e.oldIndex = oldCaretIndex;
@@ -1351,7 +1381,7 @@

         // Clear the selection, but remember which items were moved
         var movedIndices:Vector.<int> = selectedIndices;
-        selectedIndices = new Vector.<int>();
+        setSelectedIndices(new Vector.<int>(), true);
         validateProperties(); // To commit the selection

         // Remove the moved items
@@ -1481,7 +1511,7 @@
                 pendingSelectionShiftKey = event.shiftKey;
             }
             else
-                selectedIndex = newIndex;
+                setSelectedIndex(newIndex, true);
         }
         else
         {
@@ -1495,7 +1525,7 @@
             }
             else
             {
-                selectedIndices = calculateSelectedIndices(newIndex, event.shiftKey, event.ctrlKey);
+                setSelectedIndices(calculateSelectedIndices(newIndex, event.shiftKey, event.ctrlKey), true);
             }
         }

@@ -1583,12 +1613,12 @@
         {
             if (allowMultipleSelection)
             {
-                selectedIndices = calculateSelectedIndices(mouseDownIndex, pendingSelectionShiftKey, pendingSelectionCtrlKey);
+                setSelectedIndices(calculateSelectedIndices(mouseDownIndex, pendingSelectionShiftKey, pendingSelectionCtrlKey), true);
             }
             else
             {
                 // Must be deselecting the current selected item.
-                selectedIndex = NO_SELECTION;
+                setSelectedIndex(NO_SELECTION, true);
             }
         }

@@ -1907,7 +1937,7 @@
         // Clear the selection first to avoid extra work while adding and removing items.
         // We will set a new selection further below in the method.
         var indices:Vector.<int> = selectedIndices;
-        selectedIndices = new Vector.<int>();
+        setSelectedIndices(new Vector.<int>(), false);
         validateProperties(); // To commit the selection

         // If we are reordering the list, remove the items now,
@@ -1953,7 +1983,7 @@
         }

         // Set the selection
-        selectedIndices = newSelection;
+        setSelectedIndices(newSelection, false);

         // Scroll the caret index in view
         if (caretIndex != -1)
@@ -2110,12 +2140,10 @@
                 _selectedIndex = 0;
                 itemShowingCaret(0, true);
                 // If the selection properties have been adjusted to account for items that
-                // have been added or removed, send out a "change" event and
+                // have been added or removed, send out a "valueCommit" event and
                 // "caretChange" event so any bindings to them are updated correctly.
-                e = new IndexChangeEvent(IndexChangeEvent.CHANGE);
-                e.oldIndex = -1;
-                e.newIndex = _selectedIndex;
-                dispatchEvent(e);
+
+                dispatchEvent(new FlexEvent(FlexEvent.VALUE_COMMIT));

                 e = new IndexChangeEvent(IndexChangeEvent.CARET_CHANGE);
                 e.oldIndex = -1;
@@ -2297,7 +2325,7 @@
         }
         if (retVal != -1)
         {
-            selectedIndex = retVal;
+            setSelectedIndex(retVal, true);
             ensureIndexIsVisible(retVal);
             return true;
         }
@@ -2347,7 +2375,7 @@
         // selected.
         if (event.keyCode == Keyboard.SPACE)
         {
-            selectedIndex = caretIndex;
+            setSelectedIndex(caretIndex, true);
             event.preventDefault();
             return;
         }
@@ -2359,7 +2387,6 @@
         // matches the keystroke.
         if (findKey(event.charCode))
         {
-            trace("findkey");
             event.preventDefault();
             return;
         }
@@ -2436,7 +2463,7 @@
                     newInterval.splice(0, 0, i);
                 }
             }
-            selectedIndices = newInterval;
+            setSelectedIndices(newInterval, true);
             ensureIndexIsVisible(proposedNewIndex);
         }
         // Entering the caret state with the Ctrl key down
@@ -2453,7 +2480,7 @@
         // Its just a new selection action, select the new index.
         else
         {
-            selectedIndex = proposedNewIndex;
+            setSelectedIndex(proposedNewIndex, true);
             ensureIndexIsVisible(proposedNewIndex);
         }
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 2532
Author:   egeorgie@adobe.com
Date:     2008-07-18T23:52:14.452090Z

Log Message:
-----------
Issue: path with no stroke doesn't resize correctly.
Fix the calculations.

reviewed by Ryan

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/Path.as

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

--- frameworks/projects/spark/src/spark/primitives/Path.as
+++ frameworks/projects/spark/src/spark/primitives/Path.as
@@ -536,7 +536,7 @@
         if (!stroke)
         {
             _scaleX = w / bw;
-            _scaleY = h / bw;
+            _scaleY = h / bh;
         }
         else if (stroke.weight == 0 )
         {


fix comment for asdoc

fix comment for asdoc

--- src/com/google/analytics/core/DocumentInfo.as
+++ src/com/google/analytics/core/DocumentInfo.as
@@ -116,7 +116,7 @@

         /**
          * Hit id for revenue per page tracking for AdSense.
-         *
Example :utmhid=2059107202

+         *
Example :utmhid=2059107202

          */
         public function get utmhid():String
         {
@@ -125,7 +125,7 @@

         /**
          * Referral, complete URL.
-         *
Example :utmr=http://www.example.com/aboutUs/index.php?var=selected

+         *
Example :utmr=http://www.example.com/aboutUs/index.php?var=selected

          */
         public function get utmr():String
         {
@@ -139,7 +139,7 @@

         /**
          * Page request of the current page.
-         *
Example :utmp=/testDirectory/myPage.html

+         *
Example :utmp=/testDirectory/myPage.html

          */
         public function get utmp():String
         {


replace class Version by core.version

replace class Version by core.version

--- src/com/google/analytics/utils/Environment.as
+++ src/com/google/analytics/utils/Environment.as
@@ -26,6 +26,7 @@

     import core.strings.userAgent;
     import core.uri;
+    import core.version;

     import flash.system.Capabilities;
     import flash.system.Security;
@@ -41,7 +42,7 @@

         private var _protocol:String;
         private var _appName:String;
-        private var _appVersion:Version;
+        private var _appVersion:version;
         private var _userAgent:String;
         private var _url:String;

@@ -55,7 +56,7 @@
         public function Environment( url:String = "", app:String = "", version:String = "",
                                      debug:DebugConfiguration = null, dom:HTMLDOM = null )
         {
-            var v:Version;
+            var v:core.version;

             if( app == "" )
             {
@@ -75,7 +76,7 @@
             }
             else
             {
-                v = Version.fromString( version );
+                v = getVersionFromString( version );
             }

             _url        = url;
@@ -120,7 +121,7 @@
         /**
          * Indicates the version of the application.
          */
-        public function get appVersion():Version
+        public function get appVersion():version
         {
             return _appVersion;
         }
@@ -128,7 +129,7 @@
         /**
          * @private
          */
-        public function set appVersion( value:Version ):void
+        public function set appVersion( value:version ):void
         {
             _appVersion = value;
             _defineUserAgent();
@@ -270,9 +271,9 @@
          * </pre>
          * @return the flash version object representation of the application.
          */
-        public function get flashVersion():Version
-        {
-            var v:Version = Version.fromString( Capabilities.version.split( " " )[1], "," ) ;
+        public function get flashVersion():version
+        {
+            var v:version = getVersionFromString( Capabilities.version.split( " " )[1], "," ) ;
             return v ;
         }


Transferred from the Adobe Open Source Subversion Repository

Revision: 7743
Author:   clucier@adobe.com
Date:     2009-06-11T13:53:10.203664Z

Log Message:
-----------
Moving away from using namespace qualifiers in most cases in the SDK.  We've run into a few cases now where the use of qualifiers in code that is called excessively can slow things down.
Bugs: SDK-21337
Reviewer: Ryan, Paul
QE Notes: None
Tests: Ran several random Mustella test groups, checkintests.

Modified Paths:
--------------
106 paths were modified

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

--- frameworks/projects/mx/src/mx/containers/Form.as
+++ frameworks/projects/mx/src/mx/containers/Form.as
@@ -19,7 +19,10 @@
 import mx.core.Container;
 import mx.core.IInvalidating;
 import mx.core.IUIComponent;
+import mx.core.mx_internal;
 import mx.styles.StyleManager;
+
+use namespace mx_internal;

 include "../styles/metadata/GapStyles.as";

@@ -223,8 +226,8 @@

         showInAutomationHierarchy = true;

-        mx_internal::layoutObject.target = this;
-        mx_internal::layoutObject.direction = BoxDirection.VERTICAL;
+        layoutObject.target = this;
+        layoutObject.direction = BoxDirection.VERTICAL;
     }

     //--------------------------------------------------------------------------
@@ -372,7 +375,7 @@
     {
         super.measure();

-        mx_internal::layoutObject.measure();
+        layoutObject.measure();

         calculateLabelWidth();
     }
@@ -417,7 +420,7 @@
     {
         super.updateDisplayList(unscaledWidth, unscaledHeight);

-        mx_internal::layoutObject.updateDisplayList(unscaledWidth, unscaledHeight);
+        layoutObject.updateDisplayList(unscaledWidth, unscaledHeight);
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 5098
Author:   gauravj@adobe.com
Date:     2009-02-27T02:21:27.489350Z

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

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

--- frameworks/projects/spark/src/spark/components/NumericStepper.as
+++ frameworks/projects/spark/src/spark/components/NumericStepper.as
@@ -25,6 +25,11 @@

 /**
  *  @copy mx.components.baseClasses.GroupBase#contentBackgroundColor
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
  */
 [Style(name="contentBackgroundColor", type="uint", format="Color", inherit="yes")]

@@ -51,6 +56,11 @@
  *  @see mx.components.FxSpinner
  *
  *  @includeExample examples/FxNumericStepperExample.mxml
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
  */
 public class FxNumericStepper extends FxSpinner implements IFocusManagerComponent
 {
@@ -64,6 +74,11 @@

     /**
      *  Constructor
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function FxNumericStepper()
     {
@@ -85,6 +100,11 @@
      *  The value is rounded and committed
      *  when the user presses enter, focuses out of
      *  the FxNumericStepper, or steps the FxNumericStepper.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public var textInput:FxTextInput;

@@ -114,6 +134,11 @@
      *  A value of 0 means that any number of characters can be entered.
      *
      *  @default 0
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function get maxChars():int
     {
@@ -153,6 +178,11 @@
      *

      *  @default undefined
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function get displayFormatFunction():Function
     {
@@ -190,6 +220,11 @@
      *

      *  @default undefined
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function get extractValueFunction():Function
     {
@@ -245,6 +280,11 @@
      *  reflect the new maximum
      *
      *  @default 10
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     override public function get maximum():Number
     {
@@ -421,6 +461,11 @@
      *  the valueInterval property,
      *  and constrains the value to the range defined by the
      *  maximum and minimum properties.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     protected function commitTextInput(dispatchChange:Boolean = false):void
     {


Fixed parsing of callback id

Fixed parsing of callback id

--- actionscript/src/com/marpies/ane/twitter/AIRTwitter.as
+++ actionscript/src/com/marpies/ane/twitter/AIRTwitter.as
@@ -938,7 +938,7 @@
             const eventCode:String = event.code;
             if( eventCode != LOGIN_SUCCESS && eventCode != LOGIN_CANCEL && eventCode != LOGIN_ERROR ) {
                 json = JSON.parse( event.level );
-                callbackID = ("listenerID" in json) ? json.listenerID : -1;
+                callbackID = ("listenerID" in json) ? json.listenerID : (("callbackID" in json) ? json.callbackID : -1);
                 callback = getCallback( callbackID );
                 unregisterCallback( callbackID );
             }


transform ChromelessPlayer functions to protected

--- src/org/mangui/chromeless/ChromelessPlayer.as
+++ src/org/mangui/chromeless/ChromelessPlayer.as
@@ -18,21 +18,21 @@
     // import com.sociodox.theminer.*;
     public class ChromelessPlayer extends Sprite {
         /** reference to the framework. **/
-        private var _hls : HLS;
+        protected var _hls : HLS;
         /** Sheet to place on top of the video. **/
-        private var _sheet : Sprite;
+        protected var _sheet : Sprite;
         /** Reference to the stage video element. **/
-        private var _stageVideo : StageVideo = null;
+        protected var _stageVideo : StageVideo = null;
         /** Reference to the video element. **/
-        private var _video : Video = null;
+        protected var _video : Video = null;
         /** Video size **/
-        private var _videoWidth : int = 0;
-        private var _videoHeight : int = 0;
+        protected var _videoWidth : int = 0;
+        protected var _videoHeight : int = 0;
         /** current media position */
-        private var _media_position : Number;
-        private var _duration : Number;
+        protected var _media_position : Number;
+        protected var _duration : Number;
     /** URL autoload feature */
-        private var _autoLoad : Boolean = false;
+        protected var _autoLoad : Boolean = false;

         /** Initialization. **/
         public function ChromelessPlayer() {
@@ -99,31 +99,31 @@
         };

         /** Notify javascript the framework is ready. **/
-        private function _pingJavascript() : void {
+        protected function _pingJavascript() : void {
             ExternalInterface.call("onHLSReady", ExternalInterface.objectID);
         };

         /** Forward events from the framework. **/
-        private function _completeHandler(event : HLSEvent) : void {
+        protected function _completeHandler(event : HLSEvent) : void {
             if (ExternalInterface.available) {
                 ExternalInterface.call("onComplete");
             }
         };

-        private function _errorHandler(event : HLSEvent) : void {
+        protected function _errorHandler(event : HLSEvent) : void {
             if (ExternalInterface.available) {
                 var hlsError : HLSError = event.error;
                 ExternalInterface.call("onError", hlsError.code, hlsError.url, hlsError.msg);
             }
         };

-        private function _fragmentHandler(event : HLSEvent) : void {
+        protected function _fragmentHandler(event : HLSEvent) : void {
             if (ExternalInterface.available) {
                 ExternalInterface.call("onFragment", event.metrics.bandwidth, event.metrics.level, stage.stageWidth);
             }
         };

-        private function _manifestHandler(event : HLSEvent) : void {
+        protected function _manifestHandler(event : HLSEvent) : void {
             _duration = event.levels[_hls.startlevel].duration;

             if (_autoLoad) {
@@ -135,7 +135,7 @@
             }
         };

-        private function _mediaTimeHandler(event : HLSEvent) : void {
+        protected function _mediaTimeHandler(event : HLSEvent) : void {
             _duration = event.mediatime.duration;
             _media_position = event.mediatime.position;
             if (ExternalInterface.available) {
@@ -158,116 +158,116 @@
             }
         };

-        private function _stateHandler(event : HLSEvent) : void {
+        protected function _stateHandler(event : HLSEvent) : void {
             if (ExternalInterface.available) {
                 ExternalInterface.call("onState", event.state);
             }
         };

-        private function _levelSwitchHandler(event : HLSEvent) : void {
+        protected function _levelSwitchHandler(event : HLSEvent) : void {
             if (ExternalInterface.available) {
                 ExternalInterface.call("onSwitch", event.level);
             }
         };

-        private function _audioTracksListChange(event : HLSEvent) : void {
+        protected function _audioTracksListChange(event : HLSEvent) : void {
             if (ExternalInterface.available) {
                 ExternalInterface.call("onAudioTracksListChange", _getAudioTrackList());
             }
         }

-        private function _audioTrackChange(event : HLSEvent) : void {
+        protected function _audioTrackChange(event : HLSEvent) : void {
             if (ExternalInterface.available) {
                 ExternalInterface.call("onAudioTrackChange", event.audioTrack);
             }
         }

         /** Javascript getters. **/
-        private function _getLevel() : int {
+        protected function _getLevel() : int {
             return _hls.level;
         };

-        private function _getLevels() : Vector.<Level> {
+        protected function _getLevels() : Vector.<Level> {
             return _hls.levels;
         };

-        private function _getAutoLevel() : Boolean {
+        protected function _getAutoLevel() : Boolean {
             return _hls.autolevel;
         };

-        private function _getMetrics() : Object {
+        protected function _getMetrics() : Object {
             return _hls.metrics;
         };

-        private function _getDuration() : Number {
+        protected function _getDuration() : Number {
             return _duration;
         };

-        private function _getPosition() : Number {
+        protected function _getPosition() : Number {
             return _hls.position;
         };

-        private function _getPlaybackState() : String {
+        protected function _getPlaybackState() : String {
             return _hls.playbackState;
         };

-        private function _getSeekState() : String {
+        protected function _getSeekState() : String {
             return _hls.seekState;
         };

-        private function _getType() : String {
+        protected function _getType() : String {
             return _hls.type;
         };

-        private function _getbufferLength() : Number {
+        protected function _getbufferLength() : Number {
             return _hls.bufferLength;
         };

-        private function _getmaxBufferLength() : Number {
+        protected function _getmaxBufferLength() : Number {
             return HLSSettings.maxBufferLength;
         };

-        private function _getminBufferLength() : Number {
+        protected function _getminBufferLength() : Number {
             return HLSSettings.minBufferLength;
         };

-        private function _getlowBufferLength() : Number {
+        protected function _getlowBufferLength() : Number {
             return HLSSettings.lowBufferLength;
         };

-        private function _getflushLiveURLCache() : Boolean {
+        protected function _getflushLiveURLCache() : Boolean {
             return HLSSettings.flushLiveURLCache;
         };

-        private function _getstartFromLevel() : int {
+        protected function _getstartFromLevel() : int {
             return HLSSettings.startFromLevel;
         };

-        private function _getseekFromLevel() : int {
+        protected function _getseekFromLevel() : int {
             return HLSSettings.seekFromLevel;
         };

-        private function _getLogDebug() : Boolean {
+        protected function _getLogDebug() : Boolean {
             return HLSSettings.logDebug;
         };

-        private function _getLogDebug2() : Boolean {
+        protected function _getLogDebug2() : Boolean {
             return HLSSettings.logDebug2;
         };

-        private function _getCapLeveltoStage() : Boolean {
+        protected function _getCapLeveltoStage() : Boolean {
             return HLSSettings.capLevelToStage;
         };

-        private function _getJSURLStream() : Boolean {
+        protected function _getJSURLStream() : Boolean {
             return (_hls.URLstream is JSURLStream);
         };

-        private function _getPlayerVersion() : Number {
+        protected function _getPlayerVersion() : Number {
             return 2;
         };

-        private function _getAudioTrackList() : Array {
+        protected function _getAudioTrackList() : Array {
             var list : Array = [];
             var vec : Vector.<HLSAudioTrack> = _hls.audioTracks;
             for (var i : Object in vec) {
@@ -276,89 +276,89 @@
             return list;
         };

-        private function _getAudioTrackId() : int {
+        protected function _getAudioTrackId() : int {
             return _hls.audioTrack;
         };

         /** Javascript calls. **/
-        private function _load(url : String) : void {
+        protected function _load(url : String) : void {
             _hls.load(url);
         };

-        private function _play() : void {
+        protected function _play() : void {
             _hls.stream.play();
         };

-        private function _pause() : void {
+        protected function _pause() : void {
             _hls.stream.pause();
         };

-        private function _resume() : void {
+        protected function _resume() : void {
             _hls.stream.resume();
         };

-        private function _seek(position : Number) : void {
+        protected function _seek(position : Number) : void {
             _hls.stream.seek(position);
         };

-        private function _stop() : void {
+        protected function _stop() : void {
             _hls.stream.close();
         };

-        private function _volume(percent : Number) : void {
+        protected function _volume(percent : Number) : void {
             _hls.stream.soundTransform = new SoundTransform(percent / 100);
         };

-        private function _setLevel(level : int) : void {
+        protected function _setLevel(level : int) : void {
             _smoothSetLevel(level);
             if (!isNaN(_media_position) && level != -1) {
                 _hls.stream.seek(_media_position);
             }
         };

-        private function _smoothSetLevel(level : int) : void {
+        protected function _smoothSetLevel(level : int) : void {
             if (level != _hls.level) {
                 _hls.level = level;
             }
         };

-        private function _setmaxBufferLength(new_len : Number) : void {
+        protected function _setmaxBufferLength(new_len : Number) : void {
             HLSSettings.maxBufferLength = new_len;
         };

-        private function _setminBufferLength(new_len : Number) : void {
+        protected function _setminBufferLength(new_len : Number) : void {
             HLSSettings.minBufferLength = new_len;
         };

-        private function _setlowBufferLength(new_len : Number) : void {
+        protected function _setlowBufferLength(new_len : Number) : void {
             HLSSettings.lowBufferLength = new_len;
         };

-        private function _setflushLiveURLCache(flushLiveURLCache : Boolean) : void {
+        protected function _setflushLiveURLCache(flushLiveURLCache : Boolean) : void {
             HLSSettings.flushLiveURLCache = flushLiveURLCache;
         };

-        private function _setstartFromLevel(startFromLevel : int) : void {
+        protected function _setstartFromLevel(startFromLevel : int) : void {
             HLSSettings.startFromLevel = startFromLevel;
         };

-        private function _setseekFromLevel(seekFromLevel : int) : void {
+        protected function _setseekFromLevel(seekFromLevel : int) : void {
             HLSSettings.seekFromLevel = seekFromLevel;
         };

-        private function _setLogDebug(debug : Boolean) : void {
+        protected function _setLogDebug(debug : Boolean) : void {
             HLSSettings.logDebug = debug;
         };

-        private function _setLogDebug2(debug2 : Boolean) : void {
+        protected function _setLogDebug2(debug2 : Boolean) : void {
             HLSSettings.logDebug2 = debug2;
         };

-        private function _setCapLeveltoStage(value : Boolean) : void {
+        protected function _setCapLeveltoStage(value : Boolean) : void {
             HLSSettings.capLevelToStage = value;
         };

-        private function _setJSURLStream(jsURLstream : Boolean) : void {
+        protected function _setJSURLStream(jsURLstream : Boolean) : void {
             if (jsURLstream) {
                 _hls.URLstream = JSURLStream as Class;
             } else {
@@ -366,7 +366,7 @@
             }
         };

-        private function _setAudioTrack(val : int) : void {
+        protected function _setAudioTrack(val : int) : void {
             if (val == _hls.audioTrack) return;
             _hls.audioTrack = val;
             if (!isNaN(_media_position)) {
@@ -375,7 +375,7 @@
         };

         /** Mouse click handler. **/
-        private function _clickHandler(event : MouseEvent) : void {
+        protected function _clickHandler(event : MouseEvent) : void {
             if (stage.displayState == StageDisplayState.FULL_SCREEN_INTERACTIVE || stage.displayState == StageDisplayState.FULL_SCREEN) {
                 stage.displayState = StageDisplayState.NORMAL;
             } else {
@@ -384,7 +384,7 @@
         };

         /** StageVideo detector. **/
-        private function _onStageVideoState(event : StageVideoAvailabilityEvent) : void {
+        protected function _onStageVideoState(event : StageVideoAvailabilityEvent) : void {
             var available : Boolean = (event.availability == StageVideoAvailability.AVAILABLE);
             _hls = new HLS();
             _hls.stage = stage;
@@ -417,14 +417,14 @@
             }
         };

-        private function _onStageResize(event : Event) : void {
+        protected function _onStageResize(event : Event) : void {
             stage.fullScreenSourceRect = new Rectangle(0, 0, stage.stageWidth, stage.stageHeight);
             _sheet.width = stage.stageWidth;
             _sheet.height = stage.stageHeight;
             _resize();
         };

-        private function _resize() : void {
+        protected function _resize() : void {
             var rect : Rectangle;
             rect = ScaleVideo.resizeRectangle(_videoWidth, _videoHeight, stage.stageWidth, stage.stageHeight);
             // resize video


fixed wrong syntax

fixed wrong syntax

Change-Id: I827c81fa8e7f28b16543af473f14146b3b63cf52

--- WeaveCore/src/weave/core/SessionManager.as
+++ WeaveCore/src/weave/core/SessionManager.as
@@ -1088,8 +1088,8 @@
 			// set some variables to aid in debugging - only useful if you add a breakpoint here.
 			var obj:*;
 			var ownerPath:Array = []; while (obj = getLinkableOwner(obj)) { ownerPath.unshift(obj); }
-			var parents:Array = []; for (obj in childToParentDictionaryMap[disposedObject]) { parents.push[obj]; }
-			var children:Array = []; for (obj in parentToChildDictionaryMap[disposedObject]) { children.push[obj]; }
+			var parents:Array = []; for (obj in childToParentDictionaryMap[disposedObject]) { parents.push(obj); }
+			var children:Array = []; for (obj in parentToChildDictionaryMap[disposedObject]) { children.push(obj); }
 			var sessionState:Object = getSessionState(disposedObject);

 			// ADD A BREAKPOINT HERE TO DIAGNOSE THE PROBLEM


Fixed Flash SeekMusic for Monkey 73b

Fixed Flash SeekMusic for Monkey 73b

--- src/diddy/native/diddy.flash.as
+++ src/diddy/native/diddy.flash.as
@@ -138,7 +138,7 @@
 			var chan:gxtkChannel = bb_audio_device.channels[32];
 			if(chan.channel) {
 				chan.channel.stop();
-				chan.channel = chan.sample.sound.play(timeMillis, chan.loops, chan.transform);
+				chan.channel = chan.sample.sound.play(timeMillis, 0, chan.transform);
 			}
 		}
 		// TODO: check it worked


Change:	37996

Change:	37996

User:	mcarlson

Description:
	Summary: Fix for LPP-1415 - new warning in test file, simplelayout update called before init.  Layouts are indeed being initted too early due to a bug in the layout optimization.

	New Features:

	Bugs Fixed:LPP-1415

	Technical Reviewer:  Jim
	QA Reviewer:  (pending)
	Doc Reviewer:  (pending)

	Documentation:

	Release Notes:

	Details:

	Tests:

git-svn-id: d62bde4b5aa582fdf07c8d403e53e0399a7ed285@105 fa20e4f9-1d0a-0410-b5f3-dc9c16b8b17c

--- WEB-INF/lps/lfc/controllers/LaszloLayout.as
+++ WEB-INF/lps/lfc/controllers/LaszloLayout.as
@@ -215,7 +215,11 @@
 //-----------------------------------------------------------------------------
 LzLayout.prototype.__parentInit = function (){
     if ( this.locked == 2){
-        this.unlock();
+        if (this.isinited) {
+            this.unlock();
+        } else {
+            new _root.LzDelegate( this , "unlock", this, "oninit" );
+        }
     }
 }


Send a message to the roundabout when the mastermind game has been won.


changed the size of the googleMap 'infoWindow' so that it our pop-up placemark forms would fit inside, expect more changes;

--- flexEditor/src/org/arisgames/editor/components/PlaceMarker.as
+++ flexEditor/src/org/arisgames/editor/components/PlaceMarker.as
@@ -60,8 +60,8 @@
 //                pme.addEventListener(AppConstants.DYNAMICEVENT_PLACEMARKREQUESTSDELETION, map.deletePlaceMarker);
                 iwo.customContent = pme;
                 iwo.drawDefaultFrame = true;
-                iwo.height = 300;
-                iwo.width = 375;
+                iwo.height = 375;
+                iwo.width = 362;

                 openInfoWindow(iwo);
             }


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

--- frameworks/projects/framework/src/mx/geom/RoundedRectangle.as
+++ frameworks/projects/framework/src/mx/geom/RoundedRectangle.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: 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@1285347 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/spark/src/spark/layouts/VerticalLayout.as
+++ frameworks/projects/spark/src/spark/layouts/VerticalLayout.as
@@ -81,7 +81,7 @@
  *

  *
  *  @mxml
- *
The <VerticalLayout> tag inherits all of the tag
+ *
The <s:VerticalLayout> tag inherits all of the tag
  *  attributes of its superclass and adds the following tag attributes:

  *
  *


Transferred from the Adobe Open Source Subversion Repository

Revision: 3499
Author:   rfrishbe@adobe.com
Date:     2008-10-06T23:57:04.003486Z

Log Message:
-----------
Code cleanup:

1.  Remove IDisplayObjectElement and IAssignableDisplayObjectElement.  No one was actually using these interfaces...a few classes were implementing them though.

2.  Big ASDoc comment scrub for Group, DataGroup, and GroupBase.  Fixed some ASDoc in LayoutBase, IViewport, and ResizeMode.

3.  Spit and finish on Group.  No more variables or parameters typed as "*".  Got the content APIs in-line with Flash's DisplayObjectContainer, which means exceptions are now thrown where appropriate.

4.  Fixed a bug in DataGround where graphic items with item renderers had trouble in itemRemoved() (SDK-17175)

QE: Yes - Please revamp the excluded test cases to look for the new exceptions.
Doc: Yes
Bugs: SDK-17175
Reviewer: Glenn

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/TextBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/ResizeMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/GroupBase.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/IDisplayObjectElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/TextGraphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/StrokedElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/graphicsClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/layout/LayoutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/ItemsComponent.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/IAssignableDisplayObjectElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/intf/IViewport.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/BitmapGraphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/graphicsClasses/TextGraphicElement.as</path>

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

--- frameworks/projects/spark/src/spark/primitives/BitmapImage.as
+++ frameworks/projects/spark/src/spark/primitives/BitmapImage.as
@@ -37,7 +37,7 @@
  *  A BitmapGraphic element defines a rectangular region in its parent element's
  *  coordinate space, filled with bitmap data drawn from a source file.
  */
-public class BitmapGraphic extends GraphicElement implements IDisplayObjectElement
+public class BitmapGraphic extends GraphicElement
 {
 	include "../core/Version.as";


Removing unused file; these codes are not really relevant to the driver.

--- driver/src/main/flex/org/postgresql/Types.as
+++ driver/src/main/flex/org/postgresql/Types.as
@@ -1,35 +0,0 @@
-package org.postgresql {
-    // These are the X/OPEN / java.sql.Types values; they may be handy
-    public class Types {
-        public static const ARRAY:int = 2003;
-        public static const BIGINT:int = -5;
-        public static const BINARY:int = -2;
-        public static const BIT:int = -7;
-        public static const BLOB:int = 2004;
-        public static const BOOLEAN:int = 16;
-        public static const CHAR:int = 1;
-        public static const CLOB:int = 2005;
-        public static const DATALINK:int = 70;
-        public static const DATE:int = 91;
-        public static const DECIMAL:int = 3;
-        public static const DISTINCT:int = 2001;
-        public static const DOUBLE:int = 8;
-        public static const FLOAT:int = 6;
-        public static const INTEGER:int = 4;
-        public static const JAVA_OBJECT:int = 2000;
-        public static const LONGVARBINARY:int = -4;
-        public static const LONGVARCHAR:int = -1;
-        public static const NULL:int = 0;
-        public static const NUMERIC:int = 2;
-        public static const OTHER:int = 1111;
-        public static const REAL:int = 7;
-        public static const REF:int = 2006;
-        public static const SMALLINT:int = 5;
-        public static const STRUCT:int = 2002;
-        public static const TIME:int = 92;
-        public static const TIMESTAMP:int = 93;
-        public static const TINYINT:int = -6;
-        public static const VARBINARY:int = -3;
-        public static const VARCHAR:int = 12;
-    }
-}


fix package.

fix package.

--- net/saqoosha/pv3d/util/Slerper.as
+++ net/saqoosha/pv3d/util/Slerper.as
@@ -1,4 +1,4 @@
-package net.saqoosha.pv3d {
+package net.saqoosha.pv3d.util {

 	import org.papervision3d.core.math.Quaternion;
 	import org.papervision3d.objects.DisplayObject3D;
@@ -121,4 +121,4 @@

 	}

-}+}


Make the texture offset optional.

Make the texture offset optional.

@tconkling: This will need to be accounted for in Betwixt.

--- exporter/src/main/as/flump/export/Atlas.as
+++ exporter/src/main/as/flump/export/Atlas.as
@@ -65,9 +65,11 @@
             var tex :SwfTexture = node.texture;
             var textureJson :Object = {
                 name: tex.symbol,
-                offset: [ tex.offset.x, tex.offset.y ],
                 rect: [ node.bounds.x, node.bounds.y, tex.w, tex.h ]
             };
+            if (tex.offset.x != 0 || tex.offset.y != 0) {
+                textureJson.offset = [ tex.offset.x, tex.offset.y ];
+            }
             if (tex.md5 != null) {
                 textureJson.md5 = tex.md5;
             }
@@ -86,9 +88,11 @@
         for each (var tex :Object in json.textures) {
             var textureXml :XML = <texture
                 name={tex.name}
-                offset={tex.offset}
                 rect={tex.rect}
             />;
+            if (tex.offset != null) {
+                textureXml.@offset = tex.offset;
+            }
             if (tex.md5 != null) {
                 textureXml.@md5 = tex.md5;
             }


added in missing parameter forwarding

added in missing parameter forwarding

--- WeaveUISpark/src/weave/visualization/layers/PlotManager.as
+++ WeaveUISpark/src/weave/visualization/layers/PlotManager.as
@@ -383,14 +383,15 @@
 		 * This function sets the data bounds for zooming, but checks them against the min and max zoom first.
 		 * @param bounds The bounds that zoomBounds should be set to.
 		 * @param zoomOut Optional parameter for specifying zoomOut in zoomBounds.setDataBounds().
-		 */
-		public function setCheckedZoomDataBounds(bounds:IBounds2D, zoomOut:Boolean=false):void
+		 * @see weave.primitives.ZoomBounds#setDataBounds()
+		 */
+		public function setCheckedZoomDataBounds(bounds:IBounds2D, zoomOutIfNecessary:Boolean = false):void
 		{
 			zoomBounds.getScreenBounds(tempScreenBounds);
 			var minSize:Number = Math.min(minScreenSize.value, tempScreenBounds.getXCoverage(), tempScreenBounds.getYCoverage());
 			var zoomLevel:Number = ZoomUtils.getZoomLevel(bounds, tempScreenBounds, fullDataBounds, minSize);
 			if( zoomLevel > minZoomLevel.value && zoomLevel < maxZoomLevel.value )
-				zoomBounds.setDataBounds(bounds);
+				zoomBounds.setDataBounds(bounds, zoomOutIfNecessary);
 		}

 		/**


Transferred from the Adobe Open Source Subversion Repository

Revision: 7541
Author:   gruehle@adobe.com
Date:     2009-06-04T00:14:58.720187Z

Log Message:
-----------
AIR Window/WindowedApplication bug fixes:

SDK-21585 - When minimizable = false, calling minimize() still minimizes.
* Added early exit to minimize() if minimizable is false. Fixed in all 4 window classes (spark/halo, Window/WindowedApplication)

SDK-21494 - You get a runtime error when setting baseColor on a WindowedAppliation
* There were problems with the exclusions list in several of the AIR skins

QA Notes: 21585 needs to be regressed for all 4 window classes.
Doc Notes: none
Reviewer: Chet

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/default/FlexChromeSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/default/WindowedApplicationSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/default/MacTitleBarSkin.mxml</path>

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

--- frameworks/projects/airframework/src/mx/core/Window.as
+++ frameworks/projects/airframework/src/mx/core/Window.as
@@ -456,7 +456,7 @@
 //--------------------------------------

 /**
- *  Played when the window is closed.
+ *  Played when the window is closed.
  *
  *  @langversion 3.0
  *  @playerversion AIR 1.1
@@ -2804,6 +2804,9 @@
      */
     public function minimize():void
     {
+        if (!minimizable)
+            return;
+
         if (!nativeWindow.closed)
         {
             var e:NativeWindowDisplayStateEvent = new NativeWindowDisplayStateEvent(


Transferred from the Adobe Open Source Subversion Repository

Revision: 7295
Author:   dsubrama@adobe.com
Date:     2009-05-26T23:59:25.112903Z

Log Message:
-----------
-Add in caret support to Spark List. Our default renderers draw a thin 1px blue line (same color as selection color) around items that are currently in focus.
-Selection and careted item stay in-sync unless the Ctrl key is down in which you can caret away on your own.
-With careting (current item in focus) comes the itemFocusChanged event.
-Add in more states to ItemRenderer, which now supports: normal, hovered, selected, normalAndCaret, hoveredAndCaret, selectedAndCaret.
-Because of the addition of a hasState() method on IStateClient2, IR's that don't support the above-mentioned states won't RTE!
-findKey support like in Halo, for Spark List
-Null check for Line when generating DAPI-2 stroke

Reviewers: Ryan for caret stuff, Ryan/Corey for hasState() impl
Doc: Yes
QA: Yes
Checkintests: Pass

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/DefaultItemRenderer.mxml</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/framework/src/mx/core/IStateClient2.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Line.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/DefaultComplexItemRenderer.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/SkinnableDataContainer.as</path>

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

--- frameworks/projects/spark/src/spark/primitives/Line.as
+++ frameworks/projects/spark/src/spark/primitives/Line.as
@@ -251,7 +251,9 @@
      */
     override protected function beginDraw(g:Graphics):void
     {
-        var graphicsStroke:GraphicsStroke = stroke.generateGraphicsStroke(new
+        var graphicsStroke:GraphicsStroke;
+        if (stroke)
+            graphicsStroke = stroke.generateGraphicsStroke(new
             Rectangle(drawX + measuredX, drawY + measuredY,
             Math.max(width, stroke.weight), Math.max(height, stroke.weight)));


Transferred from the Adobe Open Source Subversion Repository

Revision: 12074
Author:   gruehle@adobe.com
Date:     2009-11-21T01:02:03.186839Z

Log Message:
-----------
Change baseColor to chromeColor.

QE notes: Tests need to be updated.
Doc notes: ASDoc has been updated. Other docs need updating.
Bugs: SDK-24298
Reviewer: Ely
Tests run: checkintests, qe cyclone
Is noteworthy for integration: Yes

Modified Paths:
--------------
112 paths were modified

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

--- frameworks/projects/spark/src/spark/skins/SparkSkin.as
+++ frameworks/projects/spark/src/spark/skins/SparkSkin.as
@@ -34,7 +34,7 @@
     static private var colorTransform:ColorTransform = new ColorTransform();

     /**
-     *  Flag that specified whether or not this skin should be affected by baseColor.
+     *  Flag that specified whether or not this skin should be affected by chromeColor.
      *
      *  @default false
      *
@@ -43,7 +43,7 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    protected var useBaseColor:Boolean = false;
+    protected var useChromeColor:Boolean = false;

     private var colorized:Boolean = false;

@@ -61,7 +61,7 @@
     }

     /**
-     *  Names of items that should not be colorized by the baseColor style.
+     *  Names of items that should not be colorized by the chromeColor style.
      *  Only items of type DisplayObject or GraphicElement should be excluded. Items
      *  of other types will be ignored.
      *
@@ -147,14 +147,14 @@
             }
         }

-        // base color
-        var baseColor:uint = getStyle("baseColor");
-
-        if ((baseColor != DEFAULT_COLOR  || colorized) && useBaseColor)
+        // chrome color
+        var chromeColor:uint = getStyle("chromeColor");
+
+        if ((chromeColor != DEFAULT_COLOR  || colorized) && useChromeColor)
         {
-            colorTransform.redOffset = ((baseColor & (0xFF << 16)) >> 16) - DEFAULT_COLOR_VALUE;
-            colorTransform.greenOffset = ((baseColor & (0xFF << 8)) >> 8) - DEFAULT_COLOR_VALUE;
-            colorTransform.blueOffset = (baseColor & 0xFF) - DEFAULT_COLOR_VALUE;
+            colorTransform.redOffset = ((chromeColor & (0xFF << 16)) >> 16) - DEFAULT_COLOR_VALUE;
+            colorTransform.greenOffset = ((chromeColor & (0xFF << 8)) >> 8) - DEFAULT_COLOR_VALUE;
+            colorTransform.blueOffset = (chromeColor & 0xFF) - DEFAULT_COLOR_VALUE;
             colorTransform.alphaMultiplier = alpha;

             transform.colorTransform = colorTransform;


Try to handle a suddenly dying APIWrapper more gracefully

--- lib/src_linux/com/amanitadesign/steam/FRESteamWorks.as
+++ lib/src_linux/com/amanitadesign/steam/FRESteamWorks.as
@@ -266,7 +266,13 @@
 			while(_buf.length < length) {
 				// basically just wait for data
 				if(!_process.running) return 0;
-				output.readBytes(_buf);
+				try{
+					output.readBytes(_buf);
+				} catch(e:Error) {
+					// for some reason, sometimes the .running check passes even though
+					// the process isn't running anymore, leading to an exception here
+					return 0;
+				}
 			}

 			_buf.position = 0;


flash.events.Event: target and currentTarget should be properties so that they can be overridden

--- src/flash/events/Event.as
+++ src/flash/events/Event.as
@@ -94,6 +94,9 @@

 		private var _bubbles:Boolean;
 		private var _cancelable:Boolean;
+		private var _target:Object;
+		private var _currentTarget:Object;
+
 		public function Event(type:String, bubbles:Boolean = false, cancelable:Boolean = false)
 		{
 			super();
@@ -128,9 +131,13 @@

 		public function get cancelable():Boolean  { return _cancelable }

-		public var target:Object;
+		public function get target():Object  { return _target }

-		public var currentTarget:Object;
+		public function set target(value:Object):void  { _target = value }
+
+		public function get currentTarget():Object  { return _currentTarget }
+
+		public function set currentTarget(value:Object):void  { _currentTarget = value }

 		public function get eventPhase():uint  { return 0 }


safer object get

safer object get

--- src/Modi/ManagedObjectContext.as
+++ src/Modi/ManagedObjectContext.as
@@ -37,6 +37,11 @@

 		public function getManagedObjectById(id:ManagedObjectId):ManagedObject
 		{
+            if (!id)
+            {
+                return null;
+            }
+
 			var managedObject:ManagedObject = _managedObjects[id.objectId];

 			return managedObject;


Quick-and-dirty extension to abcdump to show exception ranges (bug 555097 r=edwsmith+)

--- utils/abcdump.as
+++ utils/abcdump.as
@@ -1140,6 +1140,7 @@
                     //print("magic " + magic.toString(16))
                     //if (magic >= (46<<16|16))
                         var name = names[readU32()];
+                    infoPrint("exception method_id=" + i + " [" + from + ", " + to + "] " + type + " -> " + target)
                 }
                 parseTraits(m.activation = new Traits)
             }


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

--- frameworks/projects/framework/src/mx/events/BrowserChangeEvent.as
+++ frameworks/projects/framework/src/mx/events/BrowserChangeEvent.as
@@ -18,6 +18,11 @@
  *  The BrowserChangeEvent class represents event objects specific to
  *  the BrowserManager.
  *
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class BrowserChangeEvent extends Event
 {
@@ -53,6 +58,11 @@
      *

      *
      *  @eventType applicationURLChange
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public static const APPLICATION_URL_CHANGE:String = "applicationURLChange";

@@ -80,6 +90,11 @@
      *

      *
      *  @eventType browserURLChange
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public static const BROWSER_URL_CHANGE:String = "browserURLChange";

@@ -107,6 +122,11 @@
      *

      *
      *  @eventType urlChange
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public static const URL_CHANGE:String = "urlChange";

@@ -128,6 +148,11 @@
      *  @param url Current URL in the browser.
      *
      *  @param lastURL Previous URL in the browser.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function BrowserChangeEvent(type:String, bubbles:Boolean = false,
                                cancelable:Boolean = false,
@@ -151,6 +176,11 @@

     /**
      *  The previous value of the url property in the BrowserManager.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public var lastURL:String;

@@ -160,6 +190,11 @@

     /**
      *  The new value of the url property in the BrowserManager.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public var url:String;


Transferred from the Adobe Open Source Subversion Repository

Revision: 4726
Author:   gosmith@adobe.com
Date:     2009-01-29T02:47:59.868818Z

Log Message:
-----------
Accessibility changes to the MSAA name of several components, as requested by Freedom Scientific. These changes make Flex controls behave more like standard Windows controls.

In Accordion and TabBar, the name is now just what is displayed, without " Tab" or " Tab, Active" appended.

In ComboBox, List, and Tree, the name of each item is now just what it displays, without, for example, "2 of 7" appended.

Removed an artificial limit of 100000 items in List and Menu.

A Slider with an MXML id no longer returns that id as its name; no other component does this and id's are certainly no intended to be spoken.

Removed the getName() method of ComboBase, which isn't used.

QE Notes: None
Doc Notes: None
Bugs: None
Reviewer: Jason

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/TabBarAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ColorPickerAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/DataGridAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/TreeAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/SliderAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/MenuAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ListBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AlertAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ComboBoxAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/MenuBarAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AccordionHeaderAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ComboBaseAccImpl.as</path>

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

--- frameworks/projects/mx/src/mx/accessibility/ColorPickerAccImpl.as
+++ frameworks/projects/mx/src/mx/accessibility/ColorPickerAccImpl.as
@@ -162,27 +162,24 @@
 	 */
 	override protected function getName(childID:uint):String
 	{
-		if (childID == 0 || childID > 0xFFF)
+		if (childID == 0)
 			return "";

 		var colorPicker:ColorPicker = ColorPicker(master);
+
 		var iterator:IViewCursor = colorPicker.collectionIterator;
 		iterator.seek(CursorBookmark.FIRST, childID - 1);
 		var item:Object = iterator.current;

-
 		if (typeof(item) != "object")
 		{
 			var str:String = item.toString(16);
 			var x:String =  formatColorString(str);
-	//		trace(x);
 			return x;
 		}

 		return !item.label ? item.data : item.label;
 	}
-
-

 	/**
 	 *  @private


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 9864
Author:   anshulg@adobe.com
Date:     2009-09-01T07:42:25.296146Z

Log Message:
-----------
Added support to redirect NetConnectionChannel and HttpChannel requests to Network Monitor (for flex builder).
These changes were required to fix FB-21976
We tested these changes with check in tests for network monitor
Changes are reviewed by Mete Atamel
No change in documentation in SDK.
These changes need to be back ported in sdk3.x

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/NetConnectionChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/HTTPChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/netmon/NetworkMonitor.as</path>

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

--- frameworks/projects/rpc/src/mx/messaging/channels/NetConnectionChannel.as
+++ frameworks/projects/rpc/src/mx/messaging/channels/NetConnectionChannel.as
@@ -23,6 +23,7 @@

 import mx.core.mx_internal;
 import mx.logging.Log;
+import mx.messaging.config.LoaderConfig;
 import mx.messaging.MessageAgent;
 import mx.messaging.MessageResponder;
 import mx.messaging.events.ChannelEvent;
@@ -36,6 +37,7 @@
 import mx.messaging.messages.ISmallMessage;
 import mx.messaging.messages.MessagePerformanceInfo;
 import mx.messaging.messages.MessagePerformanceUtils;
+import mx.netmon.NetworkMonitor;
 import mx.utils.StringUtil;

 use namespace mx_internal;
@@ -223,6 +225,13 @@

         try
         {
+			if (NetworkMonitor.isMonitoring())
+			{
+				var redirectedUrl:String = NetworkMonitor.adjustNetConnectionURL(LoaderConfig.url, url);
+				if(redirectedUrl != null){
+					url = redirectedUrl;
+				}
+			}
             _nc.connect(url);
         }
         catch(e:Error)