Transferred from the Adobe Open Source Subversion Repository

Revision: 7290
Author:   rfrishbe@adobe.com
Date:     2009-05-26T23:06:26.653919Z

Log Message:
-----------
VideoPlayer bug fixes:

- Removing "mx_internal::" and replacing with "use namespace mx_internal"
- Fixing up how we deal with "null", the empty string case, and when a connection error occurs
- Cleaning up some skins

QE Notes: -
Doc Notes: -
Bugs: SDK-21378, SDK-21314, SDK-21303, SDK-20929, SDK-20961
Reviewer: Deepa
tests: checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/VideoElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerScrubBarSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerScrubBarThumbSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerFullScreenScrubBarSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerFullScreenScrubBarThumbSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerScrubBarTrackSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VideoPlayer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerFullScreenScrubBarTrackSkin.mxml</path>

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

--- frameworks/projects/spark/src/spark/components/VideoPlayer.as
+++ frameworks/projects/spark/src/spark/components/VideoPlayer.as
@@ -781,7 +781,7 @@
     //----------------------------------

     [Bindable("playheadUpdate")]
-    [Bindable("autoRewound")]
+    [Bindable("playheadTimeChanged")]
     [Inspectable(Category="General", defaultValue="0")]

     /**
@@ -877,6 +877,7 @@

     [Bindable("complete")]
     [Bindable("metadataReceived")]
+    [Bindable("totalTimeChanged")]
     [Inspectable(Category="General", defaultValue="0")]

     /**
@@ -1026,9 +1027,10 @@
             videoElement.addEventListener(spark.events.VideoEvent.READY, dispatchEvent);
             videoElement.addEventListener(fl.video.VideoEvent.STATE_CHANGE, videoElement_stateChangeHandler);
             videoElement.addEventListener("playingChanged", videoElement_playingChangedHandler);
+            videoElement.addEventListener("playheadTimeChanged", videoElement_playHeadChangedHandler);
+            videoElement.addEventListener("totalTimeChanged", videoElement_totalTimeChangedHandler);

             // just strictly for binding purposes
-            videoElement.addEventListener("autoRewound", videoElement_autoRewoundHandler);
             videoElement.addEventListener("sourceChanged", dispatchEvent);
             videoElement.addEventListener("volumeChanged", videoElement_volumeChangedHandler);

@@ -1216,9 +1218,10 @@
             videoElement.removeEventListener(spark.events.VideoEvent.READY, dispatchEvent);
             videoElement.removeEventListener(fl.video.VideoEvent.STATE_CHANGE, videoElement_stateChangeHandler);
             videoElement.removeEventListener("playingChanged", videoElement_playingChangedHandler);
+            videoElement.removeEventListener("playheadTimeChanged", videoElement_playHeadChangedHandler);
+            videoElement.removeEventListener("totalTimeChanged", videoElement_totalTimeChangedHandler);

             // just strictly for binding purposes
-            videoElement.removeEventListener("autoRewound", videoElement_autoRewoundHandler);
             videoElement.removeEventListener("sourceChanged", dispatchEvent);
             videoElement.removeEventListener("volumeChanged", videoElement_volumeChangedHandler);
         }
@@ -1341,8 +1344,8 @@
         if (!scrubBarMouseCaptured && !scrubBarChanging)
         {
             scrubBar.minimum = 0;
-            scrubBar.maximum = videoElement.totalTime;
-            scrubBar.value = videoElement.playheadTime;
+            scrubBar.maximum = isNaN(videoElement.totalTime) ? 0 : videoElement.totalTime;
+            scrubBar.value = isNaN(videoElement.playheadTime) ? 0 : videoElement.playheadTime;
         }

         if (scrubBar is VideoPlayerScrubBar)
@@ -1367,6 +1370,9 @@
      */
     protected function formatTimeValue(value:Number):String
     {
+        if (isNaN(value))
+            value = 0;
+
         // default format: hours:minutes:seconds
         var hours:uint = Math.floor(value/3600) % 24;
         var minutes:uint = Math.floor(value/60) % 60;
@@ -1432,14 +1438,28 @@
     /**
      *  @private
      */
-    private function videoElement_autoRewoundHandler(event:Event):void
+    private function videoElement_playHeadChangedHandler(event:Event):void
     {
         updateScrubBar();

         if (playheadTimeLabel)
             updatePlayheadTime();

-        // for binding purposes:
+        // for binding purposes
+        dispatchEvent(event);
+    }
+
+    /**
+     *  @private
+     */
+    private function videoElement_totalTimeChangedHandler(event:Event):void
+    {
+        updateScrubBar();
+
+        if (totalTimeLabel)
+            updateTotalTime();
+
+        // for binding purposes
         dispatchEvent(event);
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 3481
Author:   hmuller@adobe.com
Date:     2008-10-03T21:56:11.325817Z

Log Message:
-----------
Bug fixes

Added a special case to VerticalLayout::verticalScrollPositionDelta
and HorizontalLayout::horizontalScrollPositionDelta to handle a single
item that fills the entire viewport.  Made a similar change to
Vertical,HorizontalLayout::inView().  This also fixes bug 17148.

Revised Vertical,HorizontalLayout::updateScrollPosition() to handle
cases where there's no item overlapping one or both ends of
the scrollRect.

QE: No
Doc: No
Checkintests: Pass
Reviewer: Evtim
Bugs:
  SDK-17143 - Scroller Keyboard navigation is incorrect if viewport is DataGroup
  SDK-17148 - inView() is returning a number greater than 1 for a Group item that is partially in the viewport
  SDK-17147 - VerticalLayout's inView() method always returns zero when Setting verticalScrollPosition to show only the last item in a Group
  SDK-17140 - inView() method always returns 0 after moving the Group's viewport with verticalScrollPosition

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/layout/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/layout/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/Scroller.as</path>

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

--- frameworks/projects/spark/src/spark/layouts/VerticalLayout.as
+++ frameworks/projects/spark/src/spark/layouts/VerticalLayout.as
@@ -408,10 +408,7 @@
             return 0.0;
         if ((iy0 >= y0) && (iy1 <= y1))
             return 1.0;
-        if (index == r0)
-            return (iy1 - y0) / (iy1 - iy0);
-        else
-            return (y1 - iy0) / (iy1 - iy0);
+        return (Math.min(y1, iy1) - Math.max(y0, iy0)) / (iy1 - iy0);
 	}

 	/**
@@ -451,7 +448,30 @@
             return findIndexAt(y, gap, g, i0, Math.max(i0, index-1));
         else
             return findIndexAt(y, gap, g, Math.min(index+1, i1), i1);
-	}
+	}
+
+   /**
+    *  Returns the index of the first non-null includeInLayout item,
+    *  beginning with the item at index i.
+    *
+    *  Returns -1 if no such item can be found.
+    *
+    *  @private
+    */
+    private static function findLayoutItemIndex(g:GroupBase, i:int, dir:int):int
+    {
+        var n:int = g.numLayoutItems;
+        while((i >= 0) && (i < n))
+        {
+           var item:ILayoutItem = g.getLayoutItemAt(i);
+           if (item && item.includeInLayout)
+           {
+               return i;
+           }
+           i += dir;
+        }
+        return -1;
+    }

    /**
     *  Updates the first,lastIndexInView properties per the new
@@ -467,19 +487,62 @@
         if (!g)
             return;

-        var r:Rectangle = g.scrollRect;
-        if (!r)
-        {
-            // TBD: find first/last non-null includeInLayout items
-        }
+        var n:int = g.numLayoutItems - 1;
+        if (n < 0)
+        {
+            setIndexInView(-1, -1);
+            return;
+        }
+
+        var scrollR:Rectangle = g.scrollRect;
+        if (!scrollR)
+        {
+            setIndexInView(0, n);
+            return;
+        }
+
+        var y0:Number = scrollR.top;
+        var y1:Number = scrollR.bottom;
+        if (y1 <= y0)
+        {
+            setIndexInView(-1, -1);
+            return;
+        }
+
         // TBD: special case for variableRowHeight false
-        else
-        {
-	        var n:int = Math.max(g.numLayoutItems - 1, 0);
-	        var i0:int = findIndexAt(r.y + gap, gap, g, 0, n);
-	        var i1:int = findIndexAt(r.bottom, gap, g, 0, n);
-	        setIndexInView(i0, i1);
-        }
+
+        var i0:int = findIndexAt(y0 + gap, gap, g, 0, n);
+        var i1:int = findIndexAt(y1, gap, g, 0, n);
+
+        // Special case: no item overlaps y0, is index 0 visible?
+        if (i0 == -1)
+        {
+            var index0:int = findLayoutItemIndex(g, 0, +1);
+            if (index0 != -1)
+            {
+                var item0:ILayoutItem = g.getLayoutItemAt(index0);
+                var p0:Point = item0.actualPosition;
+                var s0:Point = item0.actualSize;
+                if ((p0.y < y1) && ((p0.y + s0.y) > y0))
+                    i0 = index0;
+            }
+        }
+
+        // Special case: no item overlaps y1, is index n visible?
+        if (i1 == -1)
+        {
+            var index1:int = findLayoutItemIndex(g, n, -1);
+            if (index1 != -1)
+            {
+                var item1:ILayoutItem = g.getLayoutItemAt(index1);
+                var p1:Point = item1.actualPosition;
+                var s1:Point = item1.actualSize;
+                if ((p1.y < y1) && ((p1.y + s1.y) > y0))
+                    i1 = index1;
+            }
+        }
+
+        setIndexInView(i0, i1);
     }

    /**
@@ -490,7 +553,7 @@
     *
     *  @private
     */
-    private static function itemScan(g:GroupBase, i:int, dir:int):Rectangle
+    private static function findLayoutItemBounds(g:GroupBase, i:int, dir:int):Rectangle
     {
     	var n:int = g.numLayoutItems;
     	while((i >= 0) && (i < n))
@@ -559,7 +622,7 @@

         var maxDelta:Number = g.contentHeight - scrollR.height - scrollR.y;
         var minDelta:Number = -scrollR.y;
-        var itemR:Rectangle;
+        var itemR:Rectangle = null;
         var firstIndex:int;
         var lastIndex:int;

@@ -576,7 +639,7 @@
                 firstIndex = firstIndexInView;
                 if (inView(firstIndex) >= 1)
                    firstIndex = Math.max(0, firstIndex -1);
-                itemR = itemScan(g, firstIndex, -1);
+                itemR = findLayoutItemBounds(g, firstIndex, -1);
                 break;
             }

@@ -591,28 +654,56 @@
                 lastIndex = lastIndexInView;
                 if (inView(lastIndex) >= 1)
                    lastIndex = Math.min(maxIndex, lastIndex + 1);
-                itemR = itemScan(g, lastIndex, +1);
+                itemR = findLayoutItemBounds(g, lastIndex, +1);
                 break;
             }
-        }
-
+
+            default:
+                return super.verticalScrollPositionDelta(unit);
+        }
+
+        if (!itemR)
+            return 0;
+
         switch (unit)
         {
+            // Special case: only one item is partially visible.   If it
+            // extends below the scrollR, then bottom justify it
+            case Keyboard.DOWN:
+            case Keyboard.PAGE_DOWN:
+            {
+                if ((itemR.top <= scrollR.top) && (itemR.bottom > scrollR.bottom))
+                   return itemR.bottom - scrollR.bottom;
+                break;
+            }
+
+            // Special case: only one item is partially visible.   If it
+            // extends above the scrollR, then top justify it
             case Keyboard.UP:
-                return (itemR) ? Math.max(minDelta, itemR.top - scrollR.top) : 0;
+            case Keyboard.PAGE_UP:
+            {
+                if ((itemR.top < scrollR.top) && (itemR.bottom >= scrollR.bottom))
+                    return itemR.top - scrollR.top;
+                break;
+            }
+        }
+
+        switch (unit)
+        {
+            case Keyboard.UP:
+                return Math.max(minDelta, itemR.top - scrollR.top);

             case Keyboard.DOWN:
-            	return (itemR) ? Math.min(maxDelta, itemR.bottom - scrollR.bottom) : 0;
+                return Math.min(maxDelta, itemR.bottom - scrollR.bottom);

             case Keyboard.PAGE_UP:
-                return (itemR) ? Math.max(minDelta, itemR.bottom - scrollR.bottom) : 0;
+                return Math.max(minDelta, itemR.bottom - scrollR.bottom);

             case Keyboard.PAGE_DOWN:
-                return (itemR) ? Math.min(maxDelta, itemR.top - scrollR.y) : 0;
-
-            default:
-                return super.verticalScrollPositionDelta(unit);
-        }
+                return Math.min(maxDelta, itemR.top - scrollR.top);
+        }
+
+        return 0;
     }

     private function variableRowHeightMeasure(layoutTarget:GroupBase):void


Transferred from the Adobe Open Source Subversion Repository

Revision: 5214
Author:   egeorgie@adobe.com
Date:     2009-03-09T23:37:14.735677Z

Log Message:
-----------
Remove unused class and small update to VerticalLayout

QE Notes: None
Doc Notes:
Bugs: None
Reviewer: Hans
tests: build

Modified Paths:
--------------
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/ILayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/VerticalLayout.as</path>

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

--- frameworks/projects/spark/src/spark/layouts/VerticalLayout.as
+++ frameworks/projects/spark/src/spark/layouts/VerticalLayout.as
@@ -1229,7 +1229,6 @@
         var totalPercentHeight:Number = 0;
         var childInfoArray:Array = [];
         var childInfo:LayoutElementFlexChildInfo;
-        var newWidth:Number;
         var layoutElement:ILayoutElement;

         // rowHeight can be expensive to compute


Transferred from the Adobe Open Source Subversion Repository

Revision: 7053
Author:   egeorgie@adobe.com
Date:     2009-05-19T04:01:43.055157Z

Log Message:
-----------
Fix bug http://bugs.adobe.com/jira/browse/SDK-21194 [ASDoc] VerticalLayout documentation issues, http://bugs.adobe.com/jira/browse/SDK-21189 [ASDoc] HorizontalLayout documentation issues, http://bugs.adobe.com/jira/browse/SDK-21179 [ASDoc] spark.components.Button Button ASDoc issues, http://bugs.adobe.com/jira/browse/SDK-21192 [ASDoc] for BasicLayout need some clarification, add extra information, http://bugs.adobe.com/jira/browse/SDK-19538 UIComponent's includeInLayout property needs documentation.

Fix: update asdoc comments.

QE Notes: None
Doc Notes: None
Bugs: SDK-21194, SDK-21189, SDK-21179, SDK-21192, SDK-19538
Reviewer:
tests: build, checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/BasicLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ILayoutElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>

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

--- frameworks/projects/spark/src/spark/layouts/VerticalLayout.as
+++ frameworks/projects/spark/src/spark/layouts/VerticalLayout.as
@@ -291,8 +291,8 @@
     [Inspectable(category="General")]

     /**
-     *  All layout elements will have at least that much space
-     *  on the left.
+     *  The minimum number of pixels between the container's left edge and
+     *  the left edge of the layout element.
      *
      *  @default 0
      *
@@ -327,8 +327,8 @@
     [Inspectable(category="General")]

     /**
-     *  All layout elements will have at least that much space
-     *  on the right.
+     *  The minimum number of pixels between the container's right ecdge and
+     *  the right edge of the layout element.
      *
      *  @default 0
      *
@@ -363,7 +363,7 @@
     [Inspectable(category="General")]

     /**
-     *  Number of pixels between the container's top border
+     *  Number of pixels between the container's top edge
      *  and the top edge of the first layout element.
      *
      *  @default 0
@@ -399,7 +399,7 @@
     [Inspectable(category="General")]

     /**
-     *  Number of pixels between the container's bottom border
+     *  Number of pixels between the container's bottom edge
      *  and the bottom edge of the last layout element.
      *
      *  @default 0
@@ -435,7 +435,7 @@
     [Inspectable(category="General")]

     /**
-     *  The measured size of this layout will be big enough to display
+     *  The measured size of this layout will be tall enough to display
      *  the first requestedRowCount layout elements.
      *
      *  If requestedRowCount is -1, then the measured
@@ -528,13 +528,13 @@
     [Inspectable(category="General")]

     /**
-     *  Specifies that layout elements are to be allocated their
+     *  Specifies whether or not layout elements are to be allocated their
      *  preferred height.
      *
      *  Setting this property to false specifies fixed height rows.
      *
      *  If false, the actual height of each layout element will be
-     *  the value value of rowHeight.
+     *  the value of rowHeight.
      *
      *  Setting this property to false causes the layout to ignore
      *  layout elements' percentHeight.
@@ -679,13 +679,13 @@
     }

 	/**
+     *  Returns 1.0 if the specified index is completely in view, 0.0 if
+     *  it's not, and a value in between if the index is partially
+     *  within the view.
+     *
 	 *  An index is "in view" if the corresponding non-null layout element is
 	 *  within the vertical limits of the layout target's scrollRect
 	 *  and included in the layout.
-	 *
-	 *  Returns 1.0 if the specified index is completely in view, 0.0 if
-	 *  it's not, and a value in between if the index is partially
-	 *  within the view.
 	 *
 	 *  If the specified index is partially within the view, the
 	 *  returned value is the percentage of the corresponding layout


Transferred from the Adobe Open Source Subversion Repository

Revision: 17653
Author:   clucier@adobe.com
Date:     2010-09-10T13:43:38.628266Z

Log Message:
-----------
We no longer cache previous image's bounds when a load fails for BitmapImage.

QE notes: None
Doc notes:  None
Bugs: SDK-27722
Reviewer: Ryan
Tests run: Checkin
Is noteworthy for integration: No

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

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

--- frameworks/projects/spark/src/spark/primitives/BitmapImage.as
+++ frameworks/projects/spark/src/spark/primitives/BitmapImage.as
@@ -206,6 +206,7 @@
     private var previousUnscaledWidth:Number;
     private var previousUnscaledHeight:Number;
     private var sourceInvalid:Boolean;
+    private var loadFailed:Boolean;

     //----------------------------------
     //  bitmapData
@@ -754,6 +755,7 @@

             _source = value;
             sourceInvalid = true;
+            loadFailed = false;
             invalidateProperties();
             dispatchEvent(new Event("sourceChanged"));
         }
@@ -930,8 +932,9 @@
             // If we are loading new content we keep the old measured width/height to avoid
             // sizing to 0,0 for a frame unnecessarily. Otherwise we fall back to 0 unless
             // a preliminaryWidth/Height is set.
-            var previousWidth:Number = (_source == null || _source == "") ? 0 : measuredWidth;
-            var previousHeight:Number = (_source == null || _source == "") ? 0 : measuredHeight;
+            var usePreviousSize:Boolean = !(_source == null || _source == "" || loadFailed);
+            var previousWidth:Number = usePreviousSize ? measuredWidth : 0;
+            var previousHeight:Number = usePreviousSize ? measuredHeight : 0;

             measuredWidth = !isNaN(_preliminaryWidth) && (previousWidth == 0) ?
                 _preliminaryWidth : previousWidth;
@@ -1701,6 +1704,7 @@
         // clear any current image and remove any event listeners from
         // load-event  dispatcher.
         setBitmapData(null);
+        loadFailed = true;
     }

     /**
@@ -1713,6 +1717,7 @@
         // clear any current image and remove any event listeners from
         // load-event  dispatcher.
         setBitmapData(null);
+        loadFailed = true;
     }

     /**
@@ -1738,6 +1743,7 @@
         // clear any current image and remove any event listeners from
         // load-event  dispatcher.
         setBitmapData(null);
+        loadFailed = true;
     }
 }
 }


330 mapToMethod bugfix

330 mapToMethod bugfix


Fixed an issue with probing points where the points importance wasn't
considered correctly and the wrong parameters were passed to
PolygonOverlapsPoint.

Tested with temp.xml.

Change-Id: I7256f3e3067231a9cea7a071aa6418171c62fde3

--- WeaveUI/src/weave/utils/SpatialIndex.as
+++ WeaveUI/src/weave/utils/SpatialIndex.as
@@ -237,10 +237,10 @@
 		{
 			var keys:Array;
 			// if this index isn't for an IPlotterWithGeometries OR the user wants legacy probing
-			if (_keyToGeometriesMap == null || !Weave.properties.enableGeometryProbing.value == true)
+			if (_keyToGeometriesMap == null || Weave.properties.enableGeometryProbing.value == false)
 				return getKeysOverlappingCollectiveBounds(bounds, 0);
 			else
-				keys = getKeysOverlappingCollectiveBounds(bounds, minImportance);
+				keys = getKeysOverlappingCollectiveBounds(bounds, 0);

 			// if there are 0 keys
 			if (keys.length == 0)
@@ -304,7 +304,7 @@
 							{
 								if (ComputationalGeometryUtils.polygonOverlapsPoint(
 									_tempBoundsPolygon, /* bounds polygon */
-									part[0].x, part[0].x))
+									part[0].x, part[0].y))
 								{
 									result.push(key);
 									continue keyLoop;


No such thing as sub-params, dammit.

No such thing as sub-params, dammit.

--- flash/org/windmill/WMController.as
+++ flash/org/windmill/WMController.as
@@ -222,20 +222,19 @@
       var obj:* = WMLocator.lookupDisplayObject(params);
       var sel:* = obj.selectedItem;
       var item:*;
-      var subParams:Object = params.params;
       // Give the item focus
       Events.triggerFocusEvent(obj, FocusEvent.FOCUS_IN);
       // Set by index
       switch (true) {
-        case ('index' in subParams):
-          if (obj.selectedIndex != subParams.index) {
+        case ('index' in params):
+          if (obj.selectedIndex != params.index) {
             Events.triggerListEvent(obj, ListEvent.CHANGE);
-            obj.selectedIndex = subParams.index;
+            obj.selectedIndex = params.index;
           }
           break;
-        case ('label' in subParams):
-        case ('text' in subParams):
-          var targetLabel:String = subParams.label || subParams.text;
+        case ('label' in params):
+        case ('text' in params):
+          var targetLabel:String = params.label || params.text;
           // Can set a custom label field via labelField attr
           var labelField:String = obj.labelField ?
               obj.labelField : 'label';
@@ -248,9 +247,9 @@
             }
           }
           break;
-        case ('data' in subParams):
-        case ('value' in subParams):
-          var targetData:String = subParams.data || subParams.value;
+        case ('data' in params):
+        case ('value' in params):
+          var targetData:String = params.data || params.value;
           if (sel.data != targetData) {
             Events.triggerListEvent(obj, ListEvent.CHANGE);
             for each (item in obj.dataProvider) {


Fix editor warnings

Fix editor warnings

--- Bin/Data/Scripts/Editor/EditorResourceBrowser.as
+++ Bin/Data/Scripts/Editor/EditorResourceBrowser.as
@@ -215,7 +215,7 @@
     }
     HideResourceFilterWindow();

-    int height = Min(ui.root.height * .25, 300);
+    int height = Min(ui.root.height / 4, 300);
     browserWindow.SetSize(900, height);
     browserWindow.SetPosition(35, ui.root.height - height - 25);

@@ -550,7 +550,7 @@
             if (find > -1)
             {
                 int fudge = query.length - file.fullname.length;
-                int score = find * Abs(fudge*2) + Abs(fudge);
+                int score = find * int(Abs(fudge*2)) + int(Abs(fudge));
                 file.sortScore = score;
                 scored.Push(file);
                 scores.Push(score);


Fixed defaultMaterialFunction : using the passed material instead of default material

--- src/aerys/minko/type/loader/parser/ParserOptions.as
+++ src/aerys/minko/type/loader/parser/ParserOptions.as
@@ -1,14 +1,15 @@
 package aerys.minko.type.loader.parser
 {
+	import flash.net.URLRequest;
+
 	import aerys.minko.render.Effect;
 	import aerys.minko.render.material.Material;
 	import aerys.minko.render.material.basic.BasicMaterial;
+	import aerys.minko.render.material.basic.BasicProperties;
 	import aerys.minko.type.loader.AssetsLibrary;
 	import aerys.minko.type.loader.ILoader;
 	import aerys.minko.type.loader.SceneLoader;
 	import aerys.minko.type.loader.TextureLoader;
-
-	import flash.net.URLRequest;

 	/**
 	 * ParserOptions objects provide properties and function references
@@ -223,7 +224,7 @@
 		private function defaultMaterialFunction(materialName	: String,
 												 material		: Material) : Material
 		{
-			return _material ? _material : material; // default material if nothing
+			return material ? material : _material; // default material if nothing
 		}
     }
 }


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

--- frameworks/projects/advancedgrids/src/mx/controls/olapDataGridClasses/OLAPDataGridHeaderRendererProvider.as
+++ frameworks/projects/advancedgrids/src/mx/controls/olapDataGridClasses/OLAPDataGridHeaderRendererProvider.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.controls.olapDataGridClasses
 {


define a static const default effect for the RealisticMaterial and use it properly in the constructor

--- src/aerys/minko/render/material/realistic/RealisticMaterial.as
+++ src/aerys/minko/render/material/realistic/RealisticMaterial.as
@@ -13,7 +13,9 @@
 	public class RealisticMaterial extends PhongMaterial
 	{
 		private static const DEFAULT_NAME		: String		= 'RealisticMaterial';
-		private static const SCENE_TO_EFFECT	: Dictionary	= new Dictionary(true);
+        private static const DEFAULT_EFFECT     : Effect        = new PhongEffect(
+            new RealisticShader()
+        );

 		public function get environmentMap() : ITextureResource
 		{
@@ -91,7 +93,7 @@
 										  effect		: Effect	= null,
 										  name			: String	= DEFAULT_NAME)
 		{
-			super(properties, effect || new PhongEffect(new RealisticShader()), name);
+			super(properties, effect || DEFAULT_EFFECT, name);
 		}

         override public function clone() : IDataProvider


Added ATF support for Cube textures

Added ATF support for Cube textures

--- src/aerys/minko/render/resource/texture/CubeTextureResource.as
+++ src/aerys/minko/render/resource/texture/CubeTextureResource.as
@@ -2,7 +2,7 @@
 {
 	import aerys.minko.render.resource.Context3DResource;
 	import aerys.minko.type.enum.SamplerFormat;
-
+
 	import flash.display.BitmapData;
 	import flash.display3D.Context3DTextureFormat;
 	import flash.display3D.textures.CubeTexture;
@@ -19,15 +19,29 @@
 	{
 		private static const SIDE_X : Vector.<Number> = new <Number>[2, 0, 1, 1, 1, 3];
 		private static const SIDE_Y : Vector.<Number> = new <Number>[1, 1, 0, 2, 1, 1];
-
+
+		private static const FORMAT_BGRA				: String	= 'bgra';
+		private static const FORMAT_COMPRESSED			: String	= 'compressed';
+		private static const FORMAT_COMPRESSED_ALPHA 	: String 	= 'compressedAlpha';
+
+		private static const TEXTURE_FORMAT_TO_SAMPLER	: Array 	= []
+		{
+			TEXTURE_FORMAT_TO_SAMPLER[FORMAT_BGRA] 				= SamplerFormat.RGBA;
+			TEXTURE_FORMAT_TO_SAMPLER[FORMAT_COMPRESSED] 		= SamplerFormat.COMPRESSED;
+			TEXTURE_FORMAT_TO_SAMPLER[FORMAT_COMPRESSED_ALPHA] 	= SamplerFormat.COMPRESSED_ALPHA;
+		}
+
 		private var _bitmapDatas	: Vector.<BitmapData>;
 		private var _resource		: CubeTexture;
 		private var _size			: uint;
         private var _mipMapping     : Boolean;
+		private var _atf			: ByteArray;
+		private var _atfFormat		: uint;
+		private var _format 		: String;

         public function get format() : uint
         {
-            return SamplerFormat.RGBA;
+	        return TEXTURE_FORMAT_TO_SAMPLER[_format];
         }

         public function get mipMapping() : Boolean
@@ -61,7 +75,8 @@
 		{
 			_bitmapDatas = new <BitmapData>[];
             _mipMapping = mipmap;
-
+			_format = FORMAT_BGRA;
+
 			var width	: Number = bitmapData.width / 4;
 			var height	: Number = bitmapData.height / 3;

@@ -97,14 +112,44 @@

 		public function setContentFromATF(atf : ByteArray) : void
 		{
-			throw new Error('Not yet implemented');
+			_atf			= atf;
+			_bitmapDatas    = null;
+
+			var oldSize 	: uint = _size;
+			var oldFormat	: String = _format;
+
+			atf.position 	= 6;
+
+			var formatByte 	: uint  = atf.readUnsignedByte();
+			var atfFormat   : uint	= formatByte & 7;
+			_size 			        = 1 << atf.readUnsignedByte();
+
+			atf.position 	= 0;
+
+			switch (atfFormat) {
+				case 0: case 1: _format = FORMAT_BGRA; break;
+				case 2: case 3: _format = FORMAT_COMPRESSED; break;
+				case 4: case 5: _format = FORMAT_COMPRESSED_ALPHA; break
+				default: throw new Error("Invalid ATF format");
+			}
+
+			if (_resource
+					&& (oldFormat != _format
+					|| oldSize != _size
+					))
+			{
+				_resource.dispose();
+				_resource = null;
+			}
 		}

 		public function getTexture(context : Context3DResource) : TextureBase
 		{
 			if (!_resource)
-				_resource = context.createCubeTexture(_size, Context3DTextureFormat.BGRA, true);
-
+				_resource = context.createCubeTexture(_size, _format, _bitmapDatas != null && _atf == null);
+			else
+				return _resource;
+
 			if (_bitmapDatas != null)
 			{
 				for (var side : uint = 0; side < 6; ++side)
@@ -138,6 +183,11 @@

 				_bitmapDatas = null;
 			}
+			else if (_atf)
+			{
+				_resource.uploadCompressedTextureFromByteArray(_atf, 0);
+				_atf = null;
+			}

 			if (!_resource)
 				throw new Error();


Fix live edge valid check to be in sync with liveEdge time math.

--- HLSPlugin/src/com/kaltura/hls/HLSIndexHandler.as
+++ HLSPlugin/src/com/kaltura/hls/HLSIndexHandler.as
@@ -946,8 +946,8 @@

 		public function get isLiveEdgeValid():Boolean
 		{
-			var seg:Vector.<HLSManifestSegment> = getSegmentsForQuality(lastQuality);
-			return checkAnySegmentKnowledge(seg) && getManifestForQuality(lastQuality).streamEnds == false;
+			var seg:Vector.<HLSManifestSegment> = getSegmentsForQuality(targetQuality);
+			return getManifestForQuality(targetQuality).streamEnds == false && checkAnySegmentKnowledge(seg);
 		}

 		public function get liveEdge():Number


Transferred from the Adobe Open Source Subversion Repository

Revision: 23243
Author:   cframpto@adobe.com
Date:     2011-12-20T00:59:57.384047Z

Log Message:
-----------
In frameworks, remove Adobe headers from all files except xml/mxml file types.  There are also a few .txt files that are license files that I didn't touch yet.

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

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

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

 package mx.automation.delegates.controls
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 15587
Author:   sameer@adobe.com
Date:     2010-04-20T05:29:09.135493Z

Log Message:
-----------
Merge from 4.x to trunk
QE notes:
Doc notes:
Bugs: http://bugs.adobe.com/jira/browse/FLEXDMV-2378
Reviewer: Sreeni
Tests run: checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/datavisualization/src/mx/controls/advancedDataGridClasses/AdvancedDataGridGroupItemRenderer.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/datavisualization/src/mx/controls/listClasses/AdvancedListBase.as</path>

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

--- frameworks/projects/advancedgrids/src/mx/controls/advancedDataGridClasses/AdvancedDataGridGroupItemRenderer.as
+++ frameworks/projects/advancedgrids/src/mx/controls/advancedDataGridClasses/AdvancedDataGridGroupItemRenderer.as
@@ -28,6 +28,7 @@
 import mx.core.IFlexDisplayObject;
 import mx.core.IFlexModuleFactory;
 import mx.core.IFontContextComponent;
+import mx.core.ILayoutDirectionElement;
 import mx.core.IToolTip;
 import mx.core.IUITextField;
 import mx.core.SpriteAsset;
@@ -367,6 +368,11 @@
                 {
                     disclosureIcon = disclosureInstance;
                 }
+
+				// Let the disclosureIcon inherit the layoutDirection
+				if (disclosureIcon is ILayoutDirectionElement)
+					ILayoutDirectionElement(disclosureIcon).layoutDirection = null;
+

                 addChild(disclosureIcon as DisplayObject);
                 // set the x position


FLEX-32599 Fix RTE when handling mouse event before header renderers setup

--- frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGrid.as
+++ frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGrid.as
@@ -8382,6 +8382,9 @@

         if (tween)
             return;
+
+		if (!visibleColumns || !visibleColumns.length)
+			return;

         // mouse-out should remove the "proposed" numeric sort icon
         if (!sortExpertMode)
@@ -8631,7 +8634,7 @@
      */
     override protected function mouseClickHandler(event:MouseEvent):void
     {
-        if (!tween)
+        if (!tween && visibleColumns && visibleColumns.length > 0)
             super.mouseClickHandler(event);
     }

@@ -8641,7 +8644,7 @@
      */
     override protected function mouseDoubleClickHandler(event:MouseEvent):void
     {
-        if (!tween)
+        if (!tween && visibleColumns && visibleColumns.length > 0)
             super.mouseDoubleClickHandler(event);
     }

@@ -8650,7 +8653,7 @@
      */
     override protected function mouseDownHandler(event:MouseEvent):void
     {
-        if (!tween)
+        if (!tween && visibleColumns && visibleColumns.length > 0)
         {
             super.mouseDownHandler(event);
             updateSelectedCells();
@@ -8663,7 +8666,7 @@
      */
     override protected function mouseUpHandler(event:MouseEvent):void
     {
-        if (!tween)
+        if (!tween && visibleColumns && visibleColumns.length > 0)
             super.mouseUpHandler(event);
     }

@@ -8673,7 +8676,7 @@
      */
     override protected function mouseWheelHandler(event:MouseEvent):void
     {
-        if (!tween)
+        if (!tween && visibleColumns && visibleColumns.length > 0)
             super.mouseWheelHandler(event);
     }


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

--- frameworks/projects/charts/src/mx/charts/chartClasses/AxisLabelSet.as
+++ frameworks/projects/charts/src/mx/charts/chartClasses/AxisLabelSet.as
@@ -0,0 +1,124 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.charts.chartClasses
+{
+
+/**
+ *  An AxisLabelSet represents the label and tick data
+ *  generated by an implementation of IAxis.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+public class AxisLabelSet
+{
+    include "../../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function AxisLabelSet()
+    {
+        super();
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  accurate
+    //----------------------------------
+
+    [Inspectable(environment="none")]
+
+    /**
+     *  When returned from the getLabelEstimate() method,
+     *  set to true if the estimate accurately represents
+     *  the final labels to be rendered. This property is irrelevant
+     *  in other contexts.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public var accurate:Boolean;
+
+    //----------------------------------
+    //  labels
+    //----------------------------------
+
+    [Inspectable(environment="none")]
+
+    /**
+     *  An array of AxisLabel objects
+     *  representing the values of the generating axis.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public var labels:Array /* of AxisLabel */;
+
+    //----------------------------------
+    //  minorTicks
+    //----------------------------------
+
+    [Inspectable(environment="none")]
+
+    /**
+     *  An array of values from 0 to 1
+     *  representing where to place minor tick marks along the axis.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public var minorTicks:Array /* of Number */;
+
+    //----------------------------------
+    //  ticks
+    //----------------------------------
+
+    [Inspectable(environment="none")]
+
+    /**
+     *  An array of values from 0 to 1
+     *  representing where to place tick marks along the axis.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public var ticks:Array /* of Number */;
+}
+
+}


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

--- frameworks/projects/framework/src/mx/core/FlexApplicationBootstrap.as
+++ frameworks/projects/framework/src/mx/core/FlexApplicationBootstrap.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2006-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.
 //
 ////////////////////////////////////////////////////////////////////////////////


removing ; after for()

removing ; after for()

--- WeaveJS/src/weavejs/util/DateUtils.as
+++ WeaveJS/src/weavejs/util/DateUtils.as
@@ -43,7 +43,7 @@

 			for each (var date:String in dates)
 			{
-				for (var fmtIdx:int in validFormatsSparse);
+				for (var fmtIdx:int in validFormatsSparse)
 				{
 					fmt = validFormatsSparse[fmtIdx];
 					if (!fmt)


enabled export menu. still uses hard coded url which should be changed

--- WeaveUI/src/weave/menus/ExportMenu.as
+++ WeaveUI/src/weave/menus/ExportMenu.as
@@ -52,7 +52,8 @@

 		public static function get shown():Boolean
 		{
-			return Weave.properties.version.value == 'Custom';
+			// todo - test if weavejs is available
+			return true;
 		}

 		private static function jsVars(catchErrors:Boolean):Object


Исправление ошибки

Исправление ошибки

--- src/main/org/shypl/common/util/progress/TemporaryProgress.as
+++ src/main/org/shypl/common/util/progress/TemporaryProgress.as
@@ -16,7 +16,7 @@
 			_startTime = getTimer();

 			if (_autoComplete) {
-				_autoCompleteTask = GlobalTimeline.schedule(seconds, complete);
+				_autoCompleteTask = GlobalTimeline.schedule(_time, complete);
 			}
 		}


Transferred from the Adobe Open Source Subversion Repository

Revision: 20845
Author:   mhorn@adobe.com
Date:     2011-03-14T15:29:23.391952Z

Log Message:
-----------
merge 20756,20790,20712,20805

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/spark/src/spark/formatters/NumberFormatter.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSCondition.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/ISortField.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/spark/src/spark/formatters/CurrencyFormatter.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/BitmapFill.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/spark/src/spark/formatters/DateTimeFormatter.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/charts/src/mx/charts/chartClasses/CartesianChart.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/GradientStroke.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/ArrayList.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/GradientBase.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/charts/src/mx/charts/chartClasses/PolarChart.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/ColorDodgeShader.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/charts/src/mx/charts/chartClasses/PolarDataCanvas.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/charts/src/mx/charts/series/PlotSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/OnDemandEventDispatcher.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TabBar.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/SolidColorStroke.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSStyleDeclaration.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/advancedgrids/src/mx/collections/HierarchicalCollectionViewCursor.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/Transform.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/spark/src/spark/globalization/StringTools.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/StringUtil.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/charts/src/mx/charts/series/CandlestickSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/FlexEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/CompoundTransform.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/AdvancedStyleClient.as</path>
<path kind="dir" action="M">/private/flex/sdk/trunk</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/binding/utils/ChangeWatcher.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/LinearGradientStroke.as</path>

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

--- frameworks/projects/framework/src/mx/collections/ArrayList.as
+++ frameworks/projects/framework/src/mx/collections/ArrayList.as
@@ -95,6 +95,8 @@
     /**
      *  Construct a new ArrayList using the specified array as its source.
      *  If no source is specified an empty array will be used.
+     *
+     *  @param source The Array to use as a source for the ArrayList.
      *
      *  @langversion 3.0
      *  @playerversion Flash 9


Transferred from the Adobe Open Source Subversion Repository

Revision: 20054
Author:   smgilson@adobe.com
Date:     2011-02-02T16:27:21.894790Z

Log Message:
-----------
Update ASDoc on View events, and Application style default

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

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

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

--- frameworks/projects/spark/src/spark/components/Application.as
+++ frameworks/projects/spark/src/spark/components/Application.as
@@ -100,6 +100,8 @@
 /**
  *  The background color of the application. This color is used as the stage color for the
  *  application and the background color for the HTML embed tag.
+ *
+ *  @default 0x464646
  *
  *  @langversion 3.0
  *  @playerversion Flash 10


Transferred from the Adobe Open Source Subversion Repository

Revision: 12625
Author:   mhorn@adobe.com
Date:     2009-12-07T21:50:25.279856Z

Log Message:
-----------
asdoc updates for l10n; add examples

Modified Paths:
--------------
<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/filters/ColorMatrixFilter.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/GradientGlowFilter.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/GlowFilter.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/filters/GradientBevelFilter.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@1284792 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/spark/src/spark/filters/GradientFilter.as
+++ frameworks/projects/spark/src/spark/filters/GradientFilter.as
@@ -38,11 +38,14 @@
  *  <s:GradientFilter
  *    Properties
  *    angle="45"
- *    disatance="4.0"
+ *    distance="4.0"
  *    entries="[]"
  *    type="inner"
  *  />
  *

+ *
+ * @see spark.filters.GradientGlowFilter
+ * @see spark.filters.GradientBevelFilter
  *
  * @langversion 3.0
  * @playerversion Flash 10


Transferred from the Adobe Open Source Subversion Repository

Revision: 12005
Author:   rfrishbe@adobe.com
Date:     2009-11-19T20:31:59.069383Z

Log Message:
-----------
Fixing a bunch of video player bugs:

- Fixing Binding events properties were using as they were still using the old events rather than the new ones
- Fixing issues around mute/volume.  Now the video component's definition of mute/volume is the same as Strobe (i.e.-when muted, volume is not neecessarily 0).  However, because of this, extra code had to be added in the VolumeBar and MuteButton to get the user-interaction correct so that when a user clicks on the slider, that automatically unmutes the video.
- Adding seekToFirstFrame, which needs to be PARBed, but gives us the old video component's behavior when autoPlay = false so that it connects to the server, loads up the first frame, and sizes the video.
- Fixing up DynamicStreamingVideoSource to have the host property typed as Object instead of a serverURI:String
- Now I'm exposing mediaPlayerState and videoObject on VideoDisplay and VideoPlayer
- Fixing a bug where someone clicks on the playPauseButton when no source is loaded and the "play button" changes to a "pause" when it should just stay as a "play" because the video didn't actually start playing.

QE notes: -
Doc notes: -
Bugs: SDK-24323, SDK-24285, SDK-24321, SDK-24313, SDK-22337
Reviewer: Kevin
Tests run: checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/mediaClasses/VolumeBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VideoDisplay.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/mediaClasses/normal/MuteButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/mediaClasses/DynamicStreamingVideoSource.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VideoPlayer2.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/VideoPlayerSkin2.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/VideoPlayerSkin.mxml</path>

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

--- frameworks/projects/spark/src/spark/components/mediaClasses/DynamicStreamingVideoSource.as
+++ frameworks/projects/spark/src/spark/components/mediaClasses/DynamicStreamingVideoSource.as
@@ -50,6 +50,37 @@
     //--------------------------------------------------------------------------

     //----------------------------------
+    //  host
+    //----------------------------------
+
+    private var _host:Object;
+
+    [Inspectable(category="General")]
+
+    /**
+     *  The uri pointing to the location of the server.
+     *  This should be a String, but it's typed as an Object
+     *  to support any future changes.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function get host():Object
+    {
+        return _host;
+    }
+
+    /**
+     *  @private
+     */
+    public function set host(value:Object):void
+    {
+        _host = value;
+    }
+
+    //----------------------------------
     //  initialIndex
     //----------------------------------

@@ -77,35 +108,6 @@
     public function set initialIndex(value:int):void
     {
         _initialIndex = value;
-    }
-
-    //----------------------------------
-    //  serverURI
-    //----------------------------------
-
-    private var _serverURI:String;
-
-    [Inspectable(category="General")]
-
-    /**
-     *  The uri pointing to the location of the server
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
-     */
-    public function get serverURI():String
-    {
-        return _serverURI;
-    }
-
-    /**
-     *  @private
-     */
-    public function set serverURI(value:String):void
-    {
-        _serverURI = value;
     }

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


def: 6182 retrieve referrer when no referrer is passed

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

--- kdp3Lib/src/com/kaltura/kdpfl/controller/LoadConfigCommand.as
+++ kdp3Lib/src/com/kaltura/kdpfl/controller/LoadConfigCommand.as
@@ -625,7 +625,7 @@
 					KTrace.getInstance().jsCallback = true;
 			}
 			//in this case if external interface enabled will look for referrer, otherwise referrer will be empty
-			if (_flashvars.disableReferrerOverride == "true") {
+			if (_flashvars.disableReferrerOverride == "true" || !_flashvars.referrer) {
 				if (_flashvars.externalInterfaceDisabled == "false" || _flashvars.externalInterfaceDisabled == "0")
 				{
 					var foundReferer:String = ExternalInterface.call('window.location.href.toString');


Transferred from the Adobe Open Source Subversion Repository

Revision: 22118
Author:   jasonsj@adobe.com
Date:     2011-08-19T22:45:54.903069Z

Log Message:
-----------
SDK-31259 CalloutSkin graphic ordering
SDK-29673 default button skins for ActionBar buttons.

Update CalloutArrow to match spec, useBackgroundGradient should be protected.

Update mobile skins test app with emphasized examples and fix Callout examples to use to contentBackgroundAppearance.

QE notes: Fixed regression from contentBackgroundAppearance. Update baselines for ActionBar accentColor tests.
Doc notes: ActionBar buttons now support emphasized (i.e. accentColor)
Bugs:
SDK-31259 slight difference in callout content for 320 and 240/160 runs
SDK-29673 accentColor not working inside ActionBarsdk
Reviewer: tkraikit, betravis
Tests run: checkintests, mustella-mobile
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/BeveledActionButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/DefaultButtonSkin.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/DefaultTransparentActionButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile320/assets/CalloutContentBackground.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/defaults.css</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/DefaultTransparentNavigationButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/BeveledBackButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/CalloutSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ActionBarButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/CalloutArrow.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/MobileThemeClasses.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/DefaultBeveledActionButtonSkin.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/DefaultBeveledBackButtonSkin.as</path>

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ActionBarButtonSkinBase.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ActionBarButtonSkinBase.as
@@ -139,7 +139,7 @@
         // omit super.drawBackground() to drawRect instead
         // only draw chromeColor in down state (transparent hit zone otherwise)
         var isDown:Boolean = (currentState == "down");
-        var chromeColor:uint = isDown ? getStyle("chromeColor") : 0;
+        var chromeColor:uint = isDown ? getStyle(fillColorStyleName) : 0;
         var chromeAlpha:Number = isDown ? 1 : 0;

         graphics.beginFill(chromeColor, chromeAlpha);


Transferred from the Adobe Open Source Subversion Repository

Revision: 20524
Author:   chiedozi@adobe.com
Date:     2011-03-01T22:27:51.727707Z

Log Message:
-----------
Views are now properly reactivated when a the nativeApplication of a ViewNavigatorApplication receives an ACTIVATE event

QE notes:
Doc notes:
Bugs: SDK-29662
Reviewer: Ryan
Tests run:
Is noteworthy for integration: No

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

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

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

 package spark.components
 {
+import flash.desktop.NativeApplication;
 import flash.events.Event;
 import flash.events.InvokeEvent;
 import flash.events.KeyboardEvent;
@@ -122,6 +123,8 @@
     public function TabbedViewNavigatorApplication()
     {
         super();
+
+        NativeApplication.nativeApplication.addEventListener(Event.ACTIVATE, activateHandler);
     }

     //--------------------------------------------------------------------------
@@ -199,6 +202,24 @@
             navigatorProperties.navigators = value;
     }

+    //--------------------------------------------------------------------------
+    //
+    //  Private Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    private function activateHandler(event:Event):void
+    {
+		if (tabbedNavigator && tabbedNavigator.activeView)
+		{
+			if (!tabbedNavigator.activeView.isActive)
+				tabbedNavigator.activeView.setActive(true);
+		}
+    }
+
     //--------------------------------------------------------------------------
     //
     //  Overridden Methods: ViewNavigatorApplicationBase


Transferred from the Adobe Open Source Subversion Repository

Revision: 7154
Author:   srahim@adobe.com
Date:     2009-05-20T21:20:01.377159Z

Log Message:
-----------
ASDoc updates; bug fix.
QE Notes: None
Doc Notes: None
Bugs: FLEXDOCS-831 (for the filter classes and RichEditableTextContainerManager.as)
Checkintests: passed

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/TextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/filters/GradientGlowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/filters/ShaderFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/RichEditableTextContainerManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/TextInput.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/RichEditableTextContainerManager.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/RichEditableTextContainerManager.as
@@ -33,6 +33,8 @@
 use namespace mx_internal;

 /**
+ *  A subclass of TextContainerManager that manages the text in
+ *  a RichEditableText component.
  *
  *  @langversion 3.0
  *  @playerversion Flash 10


Transferred from the Adobe Open Source Subversion Repository

Revision: 4131
Author:   smgilson@adobe.com
Date:     2008-11-18T16:53:13.213130Z

Log Message:
-----------
Make commitProperties() @private

QE Notes: None
Doc Notes: None
Bugs:

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Text.as

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

--- frameworks/projects/mx/src/mx/controls/Text.as
+++ frameworks/projects/mx/src/mx/controls/Text.as
@@ -193,25 +193,25 @@
     /**
      *  @private
      */
-	private var widthChanged:Boolean = true;
-
+    private var widthChanged:Boolean = true;
+
     /**
      *  @private
      */
     override public function set explicitWidth(value:Number):void
     {
-    	// Due to player bugs relating to scaling text, we
-    	// have to be careful to set wordWrap appropriately
-    	// (which we do in commitProperties).
-    	// Also have to re-measure when width changes, because width
-    	// can affect height.
-    	if (value != explicitWidth)
-    	{
-    		widthChanged = true;
-   			invalidateProperties();
-    		invalidateSize();
-    	}
-    	super.explicitWidth = value;
+        // Due to player bugs relating to scaling text, we
+        // have to be careful to set wordWrap appropriately
+        // (which we do in commitProperties).
+        // Also have to re-measure when width changes, because width
+        // can affect height.
+        if (value != explicitWidth)
+        {
+            widthChanged = true;
+            invalidateProperties();
+            invalidateSize();
+        }
+        super.explicitWidth = value;
     }

     /**
@@ -219,18 +219,18 @@
      */
     override public function set percentWidth(value:Number):void
     {
-    	// Due to player bugs relating to scaling text, we
-    	// have to be careful to set wordWrap appropriately
-    	// (which we do in commitProperties).
-    	// Also have to re-measure when width changes, because width
-    	// can affect height.
-    	if (value != percentWidth)
-    	{
-    		widthChanged = true;
- 			invalidateProperties();
-    		invalidateSize();
-    	}
-    	super.percentWidth = value;
+        // Due to player bugs relating to scaling text, we
+        // have to be careful to set wordWrap appropriately
+        // (which we do in commitProperties).
+        // Also have to re-measure when width changes, because width
+        // can affect height.
+        if (value != percentWidth)
+        {
+            widthChanged = true;
+            invalidateProperties();
+            invalidateSize();
+        }
+        super.percentWidth = value;
     }

     //--------------------------------------------------------------------------
@@ -251,17 +251,20 @@

     }

-	override protected function commitProperties():void
-	{
-		super.commitProperties();
-		// if explicitWidth or percentWidth changed, we want to set
-		// wordWrap appropriately before measuring()
-		if (widthChanged)
-		{
-			textField.wordWrap = !isNaN(percentWidth) || !isNaN(explicitWidth);
-			widthChanged = false;
-		}
-	}
+    /**
+     *  @private
+     */
+    override protected function commitProperties():void
+    {
+        super.commitProperties();
+        // if explicitWidth or percentWidth changed, we want to set
+        // wordWrap appropriately before measuring()
+        if (widthChanged)
+        {
+            textField.wordWrap = !isNaN(percentWidth) || !isNaN(explicitWidth);
+            widthChanged = false;
+        }
+    }

     /**
      *  @private
@@ -347,7 +350,7 @@
         // Although we also set wordWrap in commitProperties(), we do
         // this here to handle width being set through setActualSize().
         if (Math.floor(width) < Math.floor(measuredWidth))
-			textField.wordWrap =  true;
+            textField.wordWrap =  true;
     }

     //--------------------------------------------------------------------------
@@ -423,7 +426,7 @@
         // from the explicit line breaks such as "\n" and "<br>".
         else
         {
-        	var oldWordWrap:Boolean = textField.wordWrap;
+            var oldWordWrap:Boolean = textField.wordWrap;
             textField.wordWrap = false;

             measuredWidth = Math.ceil(textField.textWidth) + UITextField.TEXT_WIDTH_PADDING;


Transferred from the Adobe Open Source Subversion Repository

Revision: 12394
Author:   gosmith@adobe.com
Date:     2009-12-02T23:30:32.897486Z

Log Message:
-----------
Renamed spark.accessibility.ButtonAccImpl to ButtonBaseAccImpl because it is associated via [AccessibilityImplementation] metadata with the ButtonBase class, not with the Button class.

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ToggleButtonAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBase.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ButtonAccImpl.as" copyfrom-rev="12392" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ButtonBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/CheckBoxAccImpl.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ButtonAccImpl.as</path>

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

--- frameworks/projects/spark/src/spark/accessibility/ButtonBaseAccImpl.as
+++ frameworks/projects/spark/src/spark/accessibility/ButtonBaseAccImpl.as
@@ -29,7 +29,7 @@

 /**
- *  ButtonAccImpl is a subclass of AccessibilityImplementation
+ *  ButtonBaseAccImpl is a subclass of AccessibilityImplementation
  *  which implements accessibility for the Button class.
  *
  *  @langversion 3.0
@@ -37,7 +37,7 @@
  *  @playerversion AIR 1.5
  *  @productversion Flex 4
  */
-public class ButtonAccImpl extends AccImpl
+public class ButtonBaseAccImpl extends AccImpl
 {
     include "../core/Version.as";

@@ -77,7 +77,7 @@
                                 component:UIComponent):void
     {
         component.accessibilityImplementation =
-            new ButtonAccImpl(component);
+            new ButtonBaseAccImpl(component);
     }

     //--------------------------------------------------------------------------
@@ -97,7 +97,7 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    public function ButtonAccImpl(master:UIComponent)
+    public function ButtonBaseAccImpl(master:UIComponent)
     {
         super(master);


Улучшение SwfAsset

Улучшение SwfAsset

--- src/main/org/shypl/common/assets/SwfAsset.as
+++ src/main/org/shypl/common/assets/SwfAsset.as
@@ -4,6 +4,7 @@
 	import flash.display.Sprite;
 	import flash.media.Sound;
 	import flash.system.ApplicationDomain;
+	import flash.utils.getQualifiedClassName;

 	import org.shypl.common.lang.IllegalArgumentException;
 	import org.shypl.common.util.progress.Progress;
@@ -41,6 +42,14 @@
 			throw new IllegalArgumentException("Class " + className + " is not defined in SwfAsset " + path);
 		}

+		public function createRootSprite():Sprite {
+			return createSprite(getQualifiedClassName(_sprite));
+		}
+
+		public function createRootMovieClip():MovieClip {
+			return MovieClip(createRootSprite());
+		}
+
 		public function createSprite(className:String):Sprite {
 			return Sprite(create(className));
 		}


remove dead code

remove dead code

--- src/aerys/minko/scene/controller/scene/RenderingController.as
+++ src/aerys/minko/scene/controller/scene/RenderingController.as
@@ -322,9 +322,7 @@

 			_scene = scene;
 			_scene.enterFrame.add(sceneEnterFrameHandler);
-//			_scene.exitFrame.add(sceneExitFrameHandler);
 			_scene.descendantAdded.add(descendantAddedHandler);
-//			_scene.descendantRemoved.add(descendantRemovedHandler);
 		}

 		private function sceneEnterFrameHandler(scene 		: Scene,
@@ -347,20 +345,6 @@
 			_lastViewportWidth	= viewportWidth;
 			_lastViewportHeight	= viewportHeight
 		}
-
-//		private function sceneExitFrameHandler(scene 		: Scene,
-//											   viewport 	: Viewport,
-//											   destination 	: BitmapData,
-//											   time			: Number) : void
-//		{
-//			if (viewport.ready && viewport.visible)
-//			{
-//				_renderingBegin.execute(scene, viewport, destination, time);
-//				_numTriangles = render(viewport, destination);
-//				Factory.sweep();
-//				_renderingEnd.execute(scene, viewport, destination, time);
-//			}
-//		}

 		/**
 		 * Remove callbacks and reset the whole controller.
@@ -369,9 +353,6 @@
 											  scene		 : Scene) : void
 		{
 			throw new Error();
-//			_scene.descendantAdded.remove(descendantAddedHandler);
-//			_scene.descendantRemoved.remove(descendantRemovedHandler);
-//			_scene = null;
 		}

 		/**
@@ -390,23 +371,6 @@
 				TMP_MESHES.length = 0;
 			}
 		}
-
-		/**
-		 * Is called each time something is removed from the scene.
-		 * This will forward its calls to removeMesh.
-		 */
-//		private function descendantRemovedHandler(group : Group,
-//											 	  child : ISceneNode) : void
-//		{
-//			if (child is Mesh)
-//				removeMesh(Mesh(child));
-//			else if (child is Group)
-//			{
-//				for each (var mesh : Mesh in Group(child).getDescendantsByType(Mesh, TMP_MESHES))
-//					removeMesh(mesh);
-//				TMP_MESHES.length = 0;
-//			}
-//		}

 		private function addMesh(mesh : Mesh) : void
 		{


M Fix geometry sanitizer

M Fix geometry sanitizer

--- src/aerys/minko/scene/node/mesh/geometry/GeometrySanitizer.as
+++ src/aerys/minko/scene/node/mesh/geometry/GeometrySanitizer.as
@@ -18,6 +18,21 @@
 		private static const INDEX_LIMIT	: uint = 524270;
 		private static const VERTEX_LIMIT	: uint = 65535;

+		public static function isValid(indexData		: Vector.<uint>,
+									   vertexData		: Vector.<Number>,
+									   dwordsPerVertex	: uint = 3) : Boolean
+		{
+			var numIndices	: uint = indexData.length;
+			var numVertices	: uint = vertexData.length;
+
+			for (var indexId : uint = 0; indexId < numIndices; ++indexId)
+				if (indexData[indexId] >= numVertices)
+					return false;
+
+			return true;
+		}
+
+
 		/**
 		 * Split vertex and index buffers too big the be rendered.
 		 * The index stream limit is 524270, the vertex stream limit is 65536.
@@ -163,6 +178,9 @@

 			vertexCopy.position = 0;

+
+			var newLimit : uint = 0;
+
 			for (var oldVertexId : uint = 0; oldVertexId < numVertices; ++oldVertexId)
 			{
 				var vertexHash	: uint		= CRC32.computeForByteArrayChunk(vertexCopy, bytesPerVertex);
@@ -174,11 +192,12 @@
 					newVertexId = newVertexCount++;
 					hashToNewVertexId[vertexHash] = newVertexId;

+					newLimit = (1 + newVertexId) * dwordsPerVertex;
+
 					if (newVertexId != oldVertexId)
 					{
 						var oldOffset	: uint = oldVertexId * dwordsPerVertex;
 						var newOffset	: uint = newVertexId * dwordsPerVertex;
-						var newLimit	: uint = newOffset + dwordsPerVertex;

 						for (; newOffset < newLimit; ++newOffset, ++oldOffset)
 							vertexData[newOffset] = vertexData[oldOffset];


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

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

 package mx.controls
 {


Transferred from the Adobe Open Source Subversion Repository

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

--- frameworks/projects/mx/src/mx/controls/Image.as
+++ frameworks/projects/mx/src/mx/controls/Image.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2003-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: 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@1261148 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/framework/src/mx/graphics/RadialGradient.as
+++ frameworks/projects/framework/src/mx/graphics/RadialGradient.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2004-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: 11423
Author:   dloverin@adobe.com
Date:     2009-11-04T13:37:42.534490Z

Log Message:
-----------
Style manager fixes

StyleManagerImpl:
The code to remove style declarations from Subject was calling delete to remove the declaration. It removed the declaration but left an undefined entry in the Array because the array length was not changed. Later when the parent and child arrays are concatenated an undefined entry exists which causes the exception. Using splice() keeps the array length correct. Additionally, when there is only one entry in the array the entire Object from _subject is removed.

Alert.show() is called from a module and crashes because it is trying to use styles in the top-level app but the top-level app does not use Alert so the styles are not loaded. A work around would be to declare Alert in the top level application to draw in the needed styles. I made a fix in Alert so that work around is not needed.

Panel:
Null pointer check for titleBarBackground. This fix avoids the RTE but the Alert has no background.

Alert:
Add a module factory argument to Alert.show(). This is an alternative workaround to declaring Alert in the top-level application.

QE notes: None.
Doc notes: None.
Bugs: SDK-23977, SDK-23974, SDK-23995
Reviewer: Alex
Tests run: checkintests, components/Alert, Managers/StyleManager, Managers/PopUpManager
Is noteworthy for integration: No.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Alert.as</path>

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

--- frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as
+++ frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as
@@ -957,11 +957,18 @@
             decls = _subjects[styleDeclaration.subject] as Array;
             if (decls)
             {
-                for (i = 0; i < decls.length; i++)
+                // Work from the back of the array so we can remove elements
+                // as we go.
+                for (i = decls.length - 1; i >= 0; i--)
                 {
                     decl = decls[i];
                     if (decl && decl.selectorString == selector)
-                        delete decls[i];
+                    {
+                        if (decls.length == 1)
+                            delete _subjects[styleDeclaration.subject];
+                        else
+                            decls.splice(i, 1);
+                    }
                 }
             }
         }
@@ -975,13 +982,18 @@
             {
                 if (decls)
                 {
-                    for (i = 0; i < decls.length; i++)
+                    // Work from the back of the array so we can remove elements
+                    // as we go.
+                    for (i = decls.length - 1; i >= 0; i--)
                     {
                         decl = decls[i];
                         if (decl && decl.selectorString == selector)
                         {
                             matchingSubject = true;
-                            delete decls[i];
+                            if (decls.length == 1)
+                                delete _subjects[styleDeclaration.subject];
+                            else
+                                decls.splice(i, 1);
                         }
                     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 3554
Author:   hmuller@adobe.com
Date:     2008-10-09T23:47:11.193434Z

Log Message:
-----------
Bug fixes: 17258, 17146, 17193

Now correctly handle the
HorizontalLayout::horizontalScrollPositionDelta() special case where
there's just one item the scrollRect, and the item is partially
visible and left justified, and the requested scroll unit is RIGHT.
Likewise for right justified and RIGHT and likewise for
VerticalLayout.

The fix is in findLayoutItemBounds() (defined in both Horizontal
and VerticalLayout), which now deals with this case correctly.
This method's responsibilities have changed as part of a larger
refactoring effort that also supports better step/page behavior
for extremely large items.

QE: No
Doc: No
Checkintests: Pass
Reviewer: Evtim
Bugs:
    SDK-17258 - inView method throws an RTE when passing in invalid indexes
    SDK-17146 - Horizontal Scroller only respond to RIGHT/LEFT buttons
    SDK-17193 - Scroll position delta methods loop when scrolling through items larger than the viewport size

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

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

--- frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
+++ frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
@@ -389,6 +389,9 @@
         var g:GroupBase = GroupBase(target);
         if (!g)
             return 0.0;
+
+        if ((index < 0) || (index >= g.numLayoutItems))
+           return 0.0;

         var li:ILayoutItem = g.getLayoutItemAt(index);
         if ((li == null) || !li.includeInLayout)
@@ -551,31 +554,61 @@
         setIndexInView(i0, i1);
     }

-   /**
-    *  Returns the actual position/size Rectangle of the first non-null
-    *  includeInLayout item, beginning with the item at index i.
-    *
-    *  Returns null if no such item can be found.
-    *
-    *  @private
-    */
-    private static function findLayoutItemBounds(g:GroupBase, i:int, dir:int):Rectangle
+       /**
+     *  If the item at index i is non-null and includeInLayout,
+     *  then return it's actual bounds, otherwise return null.
+     *
+     *  @private
+     */
+    private static function layoutItemBounds(g:GroupBase, i:int):Rectangle
+    {
+        var item:ILayoutItem = g.getLayoutItemAt(i);
+        if (item && item.includeInLayout)
+        {
+            var p:Point = item.actualPosition;
+            var s:Point = item.actualSize;
+            return new Rectangle(p.x, p.y, s.x, s.y);
+        }
+        return null;
+    }
+
+    /**
+     *  Returns the actual position/size Rectangle of the first partially
+     *  visible or not-visible, non-null includeInLayout item, beginning
+     *  with the item at index i, searching in direction dir (dir must
+     *  be +1 or -1).   The last argument is the GroupBase scrollRect, it's
+     *  guaranteed to be non-null.
+     *
+     *  Returns null if no such item can be found.
+     *
+     *  @private
+     */
+    private function findLayoutItemBounds(g:GroupBase, i:int, dir:int, r:Rectangle):Rectangle
     {
         var n:int = g.numLayoutItems;
+
+        if (inView(i) >= 1)
+            i = Math.max(0, Math.min(n - 1, i + dir));
+
         while((i >= 0) && (i < n))
         {
-           var item:ILayoutItem = g.getLayoutItemAt(i);
-           if (item && item.includeInLayout)
+           var itemR:Rectangle = layoutItemBounds(g, i);
+           // Special case: if the scrollRect r _only_ contains
+           // itemR, then if we're searching left (dir == -1),
+           // and itemR's left edge is visible, then try again
+           // with i-1.   Likewise for dir == +1.
+           if (itemR)
            {
-               var p:Point = item.actualPosition;
-               var s:Point = item.actualSize;
-               return new Rectangle(p.x, p.y, s.x, s.y);
+               var overlapsLeft:Boolean = (dir == -1) && (itemR.left == r.left) && (itemR.right >= r.right);
+               var overlapsRight:Boolean = (dir == +1) && (itemR.right == r.right) && (itemR.left <= r.left);
+               if (!(overlapsLeft || overlapsRight))
+                   return itemR;
            }
            i += dir;
         }
         return null;
     }
-
+
     /**
      *  Overrides the default handling of UP/DOWN and
      *  PAGE_UP, PAGE_DOWN.
@@ -626,90 +659,55 @@
         if (!scrollR)
             return 0;

-        var maxDelta:Number = g.contentWidth - scrollR.width - scrollR.x;
-        var minDelta:Number = -scrollR.x;
         var itemR:Rectangle = null;
-        var firstIndex:int;
-        var lastIndex:int;
-
-        switch (unit)
-        {
-            // Compute the bounds of the leftmost item that's not
-            // completely visible, is non-null, and is includeInLayout.
-            // If the item whose index is firstIndexInView satisfies
-            // all of the requirements, we'll use that, otherwise we'll
-            // scan "leftwards" until we find one.
+        switch(unit)
+        {
             case Keyboard.LEFT:
             case Keyboard.PAGE_UP:
-            {
-                firstIndex = firstIndexInView;
-                if (inView(firstIndex) >= 1)
-                   firstIndex = Math.max(0, firstIndex -1);
-                itemR = findLayoutItemBounds(g, firstIndex, -1);
+                itemR = findLayoutItemBounds(g, firstIndexInView, -1, scrollR);
                 break;
-            }
-
-            // Compute the bounds of the rightmost item that's not
-            // completely visible, is non-null, and is includeInLayout.
-            // If the item whose index is lastIndexInView satisfies
-            // all of the requirements, we'll use that, otherwise we'll
-            // scan "rightwards" until we find one.
+
             case Keyboard.RIGHT:
             case Keyboard.PAGE_DOWN:
-            {
-                lastIndex = lastIndexInView;
-                if (inView(lastIndex) >= 1)
-                   lastIndex = Math.min(maxIndex, lastIndex + 1);
-                itemR = findLayoutItemBounds(g, lastIndex, +1);
+                itemR = findLayoutItemBounds(g, lastIndexInView, +1, scrollR);
                 break;
-            }
-
+
             default:
                 return super.horizontalScrollPositionDelta(unit);
         }
-
+
         if (!itemR)
             return 0;
-
+
+        var delta:Number = 0;
         switch (unit)
         {
-            // Special case: only one item is partially visible.   If it
-            // extends above the scrollR, then top justify it
             case Keyboard.LEFT:
-            case Keyboard.PAGE_UP:
-            {
-                if ((itemR.left < scrollR.left) && (itemR.right >= scrollR.right))
-                    return itemR.left - scrollR.left;
+                delta = Math.max(-scrollR.width, itemR.left - scrollR.left);
                 break;
-            }
-
-            // Special case: only one item is partially visible.   If it
-            // extends below the scrollR, then bottom justify it
-            case Keyboard.RIGHT:
-            case Keyboard.PAGE_DOWN:
-            {
-                if ((itemR.left <= scrollR.left) && (itemR.right > scrollR.right))
-                   return itemR.right - scrollR.right;
-                break;
-            }
-        }
-
-        switch (unit)
-        {
-            case Keyboard.LEFT:
-                return Math.max(minDelta, itemR.left - scrollR.left);

             case Keyboard.RIGHT:
-                return Math.min(maxDelta, itemR.right - scrollR.right);
+                delta = Math.min(scrollR.width, itemR.right - scrollR.right);
+                break;

             case Keyboard.PAGE_UP:
-                return Math.max(minDelta, itemR.right - scrollR.right);
+                if ((itemR.left < scrollR.left) && (itemR.right >= scrollR.right))
+                    delta = Math.max(-scrollR.width, itemR.left - scrollR.left);
+                else
+                    delta = itemR.right - scrollR.right;
+                break;

             case Keyboard.PAGE_DOWN:
-                return Math.min(maxDelta, itemR.left - scrollR.left);
-        }
-
-        return 0;
+                if ((itemR.left < scrollR.left) && (itemR.right >= scrollR.right))
+                    delta = Math.min(scrollR.width, itemR.right - scrollR.right);
+                else
+                    delta = itemR.left - scrollR.left;
+                break;
+        }
+
+        var maxDelta:Number = g.contentWidth - scrollR.width - scrollR.x;
+        var minDelta:Number = -scrollR.x;
+        return Math.min(maxDelta, Math.max(minDelta, delta));
     }

     public function variableColumnWidthMeasure(layoutTarget:GroupBase):void


Fixed detection data for Google Pepper Flash Player version

--- src/com/zehfernando/input/binding/KeyActionBinder.as
+++ src/com/zehfernando/input/binding/KeyActionBinder.as
@@ -68,7 +68,7 @@
 			var platformsObj:Object = {
 				"windows7" : {
 					"filters" : {
-						"manufacturer"		: "Adobe Windows",
+						"manufacturer"		: null, // "Adobe Windows" or "Google Pepper"
 						"os"				: "Windows 7",
 						"version"			: "WIN"
 					},
@@ -107,7 +107,7 @@
 				},
 				"ouya" : {
 					"filters" : {
-						"manufacturer"		: "Android Linux",
+						"manufacturer"		: null, // "Android Linux"
 						"os"				: "Linux",
 						"version"			: "AND"
 					},


Transferred from the Adobe Open Source Subversion Repository

Revision: 19972
Author:   sameer@adobe.com
Date:     2011-01-27T10:21:47.304564Z

Log Message:
-----------
https://bugs.adobe.com/jira/browse/FLEXDMV-2489
Made the specificity of AdvancedDataGridColumn as 10 so that it can get sorted correctly.
QE notes: Test CSS type selectors and class selectors - combination of headerStyleName in AdvancedDataGridColumn and Type selector for AdvancedDataGridHeaderRenderer
Doc notes: No
Bugs: https://bugs.adobe.com/jira/browse/FLEXDMV-2489
Reviewer: Sreeni
Tests run: checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
/private/flex/sdk/branches/hero_private/frameworks/projects/advancedgrids/src/mx/controls/advancedDataGridClasses/AdvancedDataGridColumn.as

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

--- frameworks/projects/advancedgrids/src/mx/controls/advancedDataGridClasses/AdvancedDataGridColumn.as
+++ frameworks/projects/advancedgrids/src/mx/controls/advancedDataGridClasses/AdvancedDataGridColumn.as
@@ -1623,6 +1623,16 @@
         }

     }
+
+	/**
+	 * @private
+	 */
+	override public function get specificity():int
+	{
+		// Return 10 as there is a sorting mechanism based on specificity now
+		// and there could be ancestor specificity also!!
+		return 10;
+	}

     //--------------------------------------------------------------------------
     //
@@ -1809,7 +1819,7 @@

         return " ";
     }
-
+
     /**
      * @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@1251836 13f79535-47bb-0310-9956-ffa450edef68

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


Improved default lighting in viewer.

Improved default lighting in viewer.

--- tools/viewers/flash/src/AWDViewer.as
+++ tools/viewers/flash/src/AWDViewer.as
@@ -77,7 +77,9 @@
 			_hoverCtrl.maxTiltAngle = 60;

 			_defDirLight = new DirectionalLight(1, -3, 1);
+			_defDirLight.specular = 0.1;
 			_defCamLight = new PointLight();
+			_defCamLight.specular = 0.1;
 			_defLightPicker = new StaticLightPicker([_defDirLight,_defCamLight]);

 			stage.addEventListener(MouseEvent.MOUSE_DOWN, onStageMouseDown);