Transferred from the Adobe Open Source Subversion Repository

Revision: 7979
Author:   aharui@adobe.com
Date:     2009-06-18T21:47:52.364806Z

Log Message:
-----------
ButtonBar PARB changes:

-arrowKeysWrapFocus removed from ButtonBar
-arrowKeysWrapFocus added to ListBase
-arrowKeysWrapFocus added as parameter to LayoutBase.getNavigationDestinationIndex (and subclasses of LayoutBase)
-itemClick event removed from ButtonBar, now uses "change" event like other ListBase components
-ASDoc removed for partAdded/partRemoved

QE Notes: None
Doc Notes: Yes, ASDoc affected by every change listed above
Bugs: N/A
Reviewer: szeto
tests: checkintests mustella/List mustella/ButtonBar

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/TileLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/supportClasses/LayoutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/VerticalLayout.as</path>

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

--- frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as
+++ frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as
@@ -581,10 +581,13 @@
      *  values that are based on the current index and key
      *  stroke encountered.
      *
+     *  @param currentIndex The current index of the item with focus.
+     *
      *  @param navigationUnit The NavigationUnit constant that determines
      *  which item to navigate to next.
      *
-     *  @param currentIndex The current index of the item with focus.
+     *  @param arrowKeysWrapFocus If true, using arrow keys to
+     *  navigate within the component wraps when it hits either end.
      *
      *  @return The index of the next item to jump to. Returns -1
      *  when if the layout doens't recognize the navigationUnit.
@@ -594,7 +597,7 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-     public function getNavigationDestinationIndex(currentIndex:int, navigationUnit:uint):int
+    public function getNavigationDestinationIndex(currentIndex:int, navigationUnit:uint, arrowKeysWrapFocus:Boolean):int
      {
         if (!target || target.numElements < 1)
             return -1;


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

--- frameworks/projects/mobilecomponents/src/spark/components/SpinnerListContainer.as
+++ frameworks/projects/mobilecomponents/src/spark/components/SpinnerListContainer.as
@@ -1,13 +1,3 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2011 Adobe Systems Incorporated
-//  All Rights Reserved.
-//
-//  NOTICE: Adobe permits you to use, modify, and distribute this file
-//  in accordance with the terms of the license agreement accompanying it.
-//
-////////////////////////////////////////////////////////////////////////////////
 package spark.components
 {
 /**


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

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


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

 package spark.effects.supportClasses
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 9183
Author:   jszeto@adobe.com
Date:     2009-08-07T22:25:44.263850Z

Log Message:
-----------
Transform matrix bug fix

http://bugs.adobe.com/jira/browse/SDK-22390 - Color transform is incorrectly applied in MXML Graphics

For a component or graphic, specifying a transform without an explicit matrix declaration was overriding the convenience transform properties.

The new behavior is to only apply the transform’s matrix to the component or graphic if it was explicitly specified.

QE notes: Add test case
Doc notes: Explain that transform matrix will only apply if explicitly set
Bugs: SDK-22390
Reviewer: Glenn
Tests run: spark primitives
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/Transform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>

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

--- frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
+++ frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
@@ -1756,10 +1756,19 @@
     public function set transform(value:flash.geom.Transform):void
     {
         // TODO (jszeto): Add perspectiveProjection support
-
         var matrix:Matrix = value && value.matrix ? value.matrix.clone() : null;
         var matrix3D:Matrix3D = value && value.matrix3D ? value.matrix3D.clone() : null;
         var colorTransform:ColorTransform = value ? value.colorTransform : null;
+
+        var mxTransform:mx.geom.Transform = value as mx.geom.Transform;
+        if (mxTransform)
+        {
+            if (!mxTransform.applyMatrix)
+                matrix = null;
+
+            if (!mxTransform.applyMatrix3D)
+                matrix3D = null;
+        }

         setTransform(value);

@@ -1779,7 +1788,7 @@
             }
         }

-        var mxTransform:mx.geom.Transform = value as mx.geom.Transform;
+
         applyColorTransform(colorTransform, mxTransform && mxTransform.applyColorTransformAlpha);

         invalidateTransform(previous != needsDisplayObject);


FLEX-34852 Alex H rightly pointed out that there can be objects with fields that contain "." in them. So I added a unit test to cater for this scenario, which changes the way this feature can be implemented.

--- frameworks/projects/framework/tests/ListCollectionView_Sort_Tests.as
+++ frameworks/projects/framework/tests/ListCollectionView_Sort_Tests.as
@@ -309,6 +309,33 @@
             assertRemoveAll();
         }

+        [Test]
+        public function test_simple_numeric_ascending_sort_on_complex_objects_with_dot_in_property_name():void
+        {
+            //given
+            var from4To0:IList = generateVOs(5, true);
+
+            const fieldName:String = "property.with.dot";
+            for(var i:int = 0; i < from4To0.length; i++)
+            {
+                var object:ListCollectionView_Sort_VO = from4To0.getItemAt(i) as ListCollectionView_Sort_VO;
+                object[fieldName] = object.index;
+            }
+            _sut.addAll(from4To0); //values["name"]: Object4, Object3, Object2, Object1, Object0
+
+            const sortByIndexAscending:Sort = new Sort();
+            sortByIndexAscending.fields = [new SortField(fieldName, false, false, true)];
+            _sut.sort = sortByIndexAscending;
+
+            //when
+            _sut.refresh(); //should be: Object0, Object1, Object2, Object3, Object4
+
+            //then
+            assertIndexesAre([0, 1, 2, 3, 4]);
+            assertGetItemIndex(from4To0);
+            assertRemoveAll();
+        }
+

         [Test(description="Testing that changing the properties of the Sort doesn't impact the actual sort order")]
         public function test_sort_fields_on_complex_objects_dont_change_unless_sort_reapplied():void
@@ -413,7 +440,7 @@
     }
 }

-class ListCollectionView_Sort_VO
+dynamic class ListCollectionView_Sort_VO
 {
     [Bindable]
     public var name:String;


Transferred from the Adobe Open Source Subversion Repository

Revision: 11863
Author:   smgilson@adobe.com
Date:     2009-11-16T20:29:57.198196Z

Log Message:
-----------
ASDoc updates.

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Border.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/events/TitleWindowBoundsEvent.as</path>

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

--- frameworks/projects/spark/src/spark/events/TitleWindowBoundsEvent.as
+++ frameworks/projects/spark/src/spark/events/TitleWindowBoundsEvent.as
@@ -81,7 +81,8 @@
      *       myButton.addEventListener() to register an event listener,
      *       myButton is the value of the currentTarget.

      *
beforeBounds	The current bounds of the object.

-     *
afterBounds	The future bounds of the object.

+     *
afterBounds	The future bounds of the object
+     *       if the object moves to the current cursor position.

      *
target	The Object that dispatched the event;
      *       it is not always the Object listening for the event.
      *       Use the currentTarget property to always access the
@@ -244,8 +245,9 @@
      *

      *
WINDOW_MOVE - The current bounds of the window.

      *
WINDOW_MOVE_END - The final bounds of the window, before the drag.

-     *
WINDOW_MOVE_START    - The final bounds of the window.

-     *
WINDOW_MOVING - The future bounds of the window.

+     *
WINDOW_MOVE_START    - null.

+     *
WINDOW_MOVING - The future bounds of the window
+     *      if the window moves to the current cursor position.

      *

      *
      *  @langversion 3.0


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 18072
Author:   chiedozi@adobe.com
Date:     2010-10-07T21:09:04.099363Z

Log Message:
-----------
PARB Changes to ViewNavigator feature set.  Changes summarized below:

View
active getter renamed to isActive
Removed context property from View and moved it to ViewNavigator

ViewNavigator
context property is now typed Object
navigationStack property now mx_internal in ViewNavigatorBase
factory parameter for push operations renamed to  viewClass
NavigationStack push and pop api names changed to match ViewNavigator methods
active getter renamed isActive
viewNavigator no longer dispatches a COMPLETE event
defaultTransitions are no longer skin parts.  They are now  mx_internal vars.

TabbedViewNavigator
No longer dispatches complete, instead dispatches IndexChangeEvent.CHANGE

ViewProxy
ViewProxy renamed to ViewDescriptor
persistedData renamed to persistenceData

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/core/ContainerDestructionPolicy.as</path>
<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/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/MobileApplication.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewReturnObject.as</path>
<path kind="dir" action="M">/private/flex/sdk/branches/hero_private</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/TabbedMobileApplication.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/defaults.css</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/NavigationStack.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewNavigatorSkin.as</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewProxy.as" copyfrom-rev="18044" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewDescriptor.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/events/FlexEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewProxy.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigator.as
+++ frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigator.as
@@ -69,21 +69,6 @@
  *  TabbedViewNavigator changes.
  */
 [Event(name="collectionChange", type="mx.events.CollectionEvent")]
-
-/**
- *  Dispatched when a child ViewNavigator has completed a view change
- *  process.  If a transition is played, this method is dispatched
- *  after the animation completes.
- *
- *  @eventType flash.events.Event
- *
- *  @langversion 3.0
- *  @playerversion Flash 10.1
- *  @playerversion AIR 2.5
- *  @productversion Flex 4.5
- */
- // FIXME (chiedozi): PARB
-[Event(name="complete", type="flash.events.Event")]

 /**
  *  Dispatched when the navigator's selected index has changed.  When
@@ -127,7 +112,7 @@
 {
     //--------------------------------------------------------------------------
     //
-    //  Constants
+    //  Class variables
     //
     //--------------------------------------------------------------------------

@@ -136,6 +121,12 @@
      *  Static constant representing no proposed selection.
      */
     private static const NO_PROPOSED_SELECTION:int = -1;
+
+    /**
+     *  @private
+     *  The animation duration used when hiding and showing the action bar.
+     */
+    private static const TAB_BAR_ANIMATION_DURATION:Number = 250;

     //--------------------------------------------------------------------------
     //
@@ -561,7 +552,7 @@
      */
     private function setupNavigator(navigator:ViewNavigatorBase):void
     {
-        navigator.parentNavigator = this;
+        navigator.setParentNavigator(this);
         navigator.visible = false;

         // All navigators should be inactive when initialized.  The proper
@@ -582,9 +573,9 @@
      */
     private function cleanUpNavigator(navigator:ViewNavigatorBase):void
     {
-        navigator.parentNavigator = null;
-
-        if (navigator.active)
+        navigator.setParentNavigator(null);
+
+        if (navigator.isActive)
             navigator.setActive(false);

         if (navigator.activeView)
@@ -617,7 +608,10 @@
         if (selectedIndexChanged || dataProviderChanged)
         {
             var navigator:ViewNavigatorBase;
-
+
+            // Store the old index
+            var oldIndex:int = _selectedIndex;
+
             // If the data provider has changed, the navigator elements have
             // already been removed, so the following code doesn't need to run
             if (!selectedIndexAdjusted && !dataProviderChanged && _selectedIndex >= 0)
@@ -630,7 +624,6 @@
                     navigator.activeView.removeEventListener(PropertyChangeEvent.PROPERTY_CHANGE,
                                                                 view_propertyChangeHandler);

-                navigator.removeEventListener(Event.COMPLETE, navigator_completeHandler);
                 navigator.removeEventListener(ElementExistenceEvent.ELEMENT_ADD, navigator_elementAddHandler);
                 navigator.removeEventListener(ElementExistenceEvent.ELEMENT_REMOVE, navigator_elementRemoveHandler);
             }
@@ -641,7 +634,6 @@
             {
                 navigator = navigators[_selectedIndex];

-                navigator.addEventListener(Event.COMPLETE, navigator_completeHandler);
                 navigator.addEventListener(ElementExistenceEvent.ELEMENT_ADD, navigator_elementAddHandler);
                 navigator.addEventListener(ElementExistenceEvent.ELEMENT_REMOVE, navigator_elementRemoveHandler);

@@ -665,12 +657,19 @@
                 }
             }

+            // Dispatch selection change event
+            if (hasEventListener(IndexChangeEvent.CHANGE))
+            {
+                var e:IndexChangeEvent = new IndexChangeEvent(IndexChangeEvent.CHANGE, false, false);
+                e.oldIndex = oldIndex;
+                e.newIndex = _selectedIndex;
+
+                dispatchEvent(e);
+            }
+
             selectedIndexAdjusted = false;
             dataProviderChanged = false;
             selectedIndexChanged = false;
-
-            // Dispatch a complete event
-            dispatchEvent(new Event(Event.COMPLETE));
         }

         if (tabBarVisibilityChanged)
@@ -751,7 +750,7 @@
     {
         var animate:Animate = new Animate();
         animate.target = tabBar;
-        animate.duration = getStyle("animationDuration");
+        animate.duration = TAB_BAR_ANIMATION_DURATION;
         animate.motionPaths = new Vector.<MotionPath>();
         animate.motionPaths.push(new SimpleMotionPath("y", props.start.y, props.end.y));

@@ -794,7 +793,7 @@

         var animate:Animate = new Animate();
         animate.target = contentGroup;
-        animate.duration = getStyle("animationDuration");
+        animate.duration = TAB_BAR_ANIMATION_DURATION;
         animate.motionPaths = new Vector.<MotionPath>();
         animate.motionPaths.push(new SimpleMotionPath("y", contentGroupProps.start.y,
                                                            contentGroupProps.end.y));
@@ -805,18 +804,8 @@
         contentGroup.cacheAsBitmap = true;

         finalEffect.addChild(animate);
-        finalEffect.duration = getStyle("animationDuration");
+        finalEffect.duration = TAB_BAR_ANIMATION_DURATION;
         return finalEffect;
-    }
-
-    /**
-     *  @private
-     *  Redispatches the child navigators COMPLETE event.
-     */
-    private function navigator_completeHandler(event:Event):void
-    {
-        if (hasEventListener(Event.COMPLETE))
-            dispatchEvent(event);
     }

     /**


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

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


Transferred from the Adobe Open Source Subversion Repository

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

--- frameworks/projects/automation/src/mx/automation/tabularData/TreeTabularData.as
+++ frameworks/projects/automation/src/mx/automation/tabularData/TreeTabularData.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.tabularData
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 22206
Author:   jszeto@adobe.com
Date:     2011-08-25T05:05:31.305350Z

Log Message:
-----------
SpinnerList and BorderContainer bug fixes

SDK-31257 - DateSpinner doesn't show today's date with a certain application

Added a resize listener to SpinnerList

SDK-31335 - SpinnerList with NumericDataProvider doesn't spin

Copy enabled logic from DateSpinnerItemRenderer

SDK-31171 - BorderContainerSkin's minHeight is too big

Changed minimum dimensions from 112 to 30

QE notes: none
Doc notes: none
Bugs: SDK-31257, SDK-31335, SDK-31171
Reviewer: Tom K, Chiedo
Tests run: checkintests
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/SpinnerList.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/skins/spark/BorderContainerSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/layouts/VerticalSpinnerLayout.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/layouts/VerticalSpinnerLayout.as
+++ frameworks/projects/mobilecomponents/src/spark/layouts/VerticalSpinnerLayout.as
@@ -482,21 +482,20 @@

     // Helper function to return whether an element is enabled or not
     private function isElementEnabled(element:Object):Boolean
-    {
-        // Element is false if it was a simple type and didn't survive the
-        // casting as an object
-        try
-        {
-            if (!element || element["_enabled_"] == undefined || element["_enabled_"] == true)
-                return true;
+    {
+        var result:Boolean = true;
+
+        // If data is a String or other primitive, this call will fail
+        try
+        {
+            result = element["_enabled_"] == undefined || element["_enabled_"];
         }
         catch (e:Error)
         {

         }
-
-
-        return false;
+
+        return result;
     }
 }
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 10075
Author:   rfrishbe@adobe.com
Date:     2009-09-09T01:01:58.077369Z

Log Message:
-----------
Cleanups from the spark text changes and some bug fixes for VideoElement.  Also some PARB changes for UIComponent.

TitleBar: Changing the skin part type from Label to Textbase

UIComponent: skipMeasure()->canSkipMeasurement() to be in line with GraphicElement.  This has been PARB approved.
UIComponent: same with hasComplexLayoutMatrix...this replaces hasDeltaIdentityTransform.  This has been PARB approved.

StyleProtoChain: cleanup around what interfaces to use

TextBase: clean up code that’s no longer needed.

VideoElement: Fixing 4 bugs:
SDK-22824: sourceLastPlayed keeps track of what video file we’ve called play() with last.  This way if a user pauses the video and wants to start it up again at the same point, we can call play(null) on the underlying FLVPlayback videoPlayer.  However, anytime the souce changes, we want to null out sourceLastPlayed.  This was causing a bug when someone set the source to null and then reset it to it’s previous value.

SDK-23034 (GUMBO_PRIORITY): This deals with some FLVPlayback quirks around sizing.  I had put in a fix so we weren’t setting width/height on the underlying videoPlayer too many times, but apparently we need to make sure it always gets called once.  Hopefully when switching to Strobe we can cleanup this logic...I put a FIXME in to do this.

SDK-21947/ SDK-22533 - some video files don’t always send out a metadata event.  I’m not quite sure why this is, but in case this happens, we do a check in the ready handler to see whether we should call invalidateSize() to make sure it gets sized properly.

QE notes:-
Doc notes:-
Bugs: SDK-22824, SDK-23034, SDK-21947, SDK-22533
Reviewer: Glenn, Corey
Tests run: checkintests, Button, GraphicTags, VideoElement, and VideoPlayer (some VideoPlayer were failing, but I think it should be fine)
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RichText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Skin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/supportClasses/AddActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/mx/core/UITLFTextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/windowClasses/TitleBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/supportClasses/RemoveActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Label.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/supportClasses/AnimateTransformInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RichEditableText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/VideoElement.as</path>

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

--- frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
+++ frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
@@ -3526,12 +3526,7 @@
     }

     /**
-     *  Determines if the call to the measure() method can be skipped.
-     *
-     *  @return Returns true when the measureSizes() method can skip the call to
-     *  the measure() method. For example this is usually true when both explicitWidth and
-     *  explicitHeight are set. For paths, this is true when the bounds of the path
-     *  have not changed.
+     *  @copy mx.core.UIComponent#canSkipMeasurement
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -3669,7 +3664,7 @@
         {
             if (drawnDisplayObject is Sprite)
                 Sprite(drawnDisplayObject).graphics.clear();
-            // FIXME (rfrishbe): We don't really support shapes, but we should
+            // TODO (rfrishbe): We don't really support shapes, but we should
             //else if (drawnDisplayObject is Shape)
                 //Shape(drawnDisplayObject).graphics.clear();
         }


Transferred from the Adobe Open Source Subversion Repository

Revision: 19724
Author:   jasonsj@adobe.com
Date:     2011-01-12T01:07:20.451197Z

Log Message:
-----------
Moved ActionBar font color style declaration to #titleDisplay part and subclasses of ButtonBase
Replaced MobileSkin usage of layoutMeasuredWidth/Height with minWidth/Height

QE notes: Some mustella baselines for ActionBar custom content will need to be regenerated. In particular, usage of TextInput with text content.
Doc notes:
Bugs:
SDK-28948 The default color for text in TextInput on ActionBar is white so it looks invisible
SDK-28953 Button width not adjusted as expected when changing percentWidth at runtime
Reviewer: rfrishbe, chiedozi
Tests run: checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/MobileSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/TextAreaVScrollBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/defaults.css</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextInputSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/VScrollBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/NavigationBackButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ActionBarButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/TextAreaHScrollBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/CheckBoxSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/TabbedViewNavigatorButtonBarButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionRoundedButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/RadioButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HScrollBarSkin.as</path>

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


- add text for score distance

- add text for score distance

--- framework/screenstates/GamePlay.as
+++ framework/screenstates/GamePlay.as
@@ -49,6 +49,7 @@
 		private var touchY:Number;

 		private var itemsToAnimate:Vector.<Item>;
+		private var scoreText:TextField;

 		/* for quiz declaration */
 		//for managing questions:
@@ -78,6 +79,18 @@
 		{
 			this.removeEventListener(Event.ADDED_TO_STAGE,onAddedToStage);
 			drawGame();
+
+			fontRegular = Fonts.getFont("Regular");
+
+			//sementara pakai chiller, karena font regulernya masih ada karakter yang ilang
+			//sementara juga masih pakai box
+			scoreText = new TextField(300,100, "Score: 0","chiller", 14, 0xffffff);
+			scoreText.hAlign = HAlign.LEFT;
+			scoreText.vAlign = VAlign.TOP;
+			scoreText.x = 20;
+			scoreText.y = 20;
+			scoreText.border = true;
+			this.addChild(scoreText);
 		}

 		private function drawGame():void
@@ -204,6 +217,8 @@
 						bg.speed = playerSpeed * elapsed;
 						scoreDistance += (playerSpeed * elapsed)*0.1;

+						scoreText.text = "Score: "+scoreDistance;
+
 						initObstacle();
 						animateObstacles();

@@ -372,8 +387,6 @@

 		private function initQuiz():void
 		{
-			fontRegular = Fonts.getFont("Regular");
-
 			statusT = new TextField(480, 600, "", fontRegular.fontName, fontRegular.fontSize, 0xffffff);
 			statusT.x = 0;
 			statusT.y = 100;


Transferred from the Adobe Open Source Subversion Repository

Revision: 7501
Author:   rfrishbe@adobe.com
Date:     2009-06-03T00:33:34.079861Z

Log Message:
-----------
Fixing a bug in Flex Component Kit for Flash where flash components weren't being sized correctly inside of a Halo Canvas or a Panel with absolute positioning.

PARB Changes: "trackSizeChanges" -> "autoUpdateMeasuredSize" and "trackStateChanges" -> "autoUpdateCurrentState"

QE Notes: -
Doc Notes: -
Bugs: SDK-21546
Reviewer: Deepa
tests: mustella FCK

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/FlexContentHolder.as</path>

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

--- frameworks/projects/flash-integration/src/mx/flash/FlexContentHolder.as
+++ frameworks/projects/flash-integration/src/mx/flash/FlexContentHolder.as
@@ -50,7 +50,6 @@
     public function FlexContentHolder()
     {
         super();
-        trackSizeChanges = false;
         showInAutomationHierarchy = false;

         _width = this.width;