Transferred from the Adobe Open Source Subversion Repository

Revision: 21680
Author:   jszeto@adobe.com
Date:     2011-07-21T21:56:22.533455Z

Log Message:
-----------
Item Snapping, SpinnerList and DateSpinner Initial checkin

Merging in changes from sandbox development branch

SpinnerList and DateSpinner are in usable states, but there is still unimplemented functionality.

QE notes: none
Doc notes: none
Bugs: none
Reviewer: Tom Kraikit, Eric Day, Jason Szeto
Tests run: checkintests, full cyclone
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/SpinnerListSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/layouts/VerticalLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/DateSpinnerSkin.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/DateAndTimeRangeList.as</path>
<path kind="dir" action="A">/private/flex/sdk/branches/4.y/development/eclipse/flex/DateSpinnerTest</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/development/eclipse/flex/DateSpinnerTest/.settings/org.eclipse.core.resources.prefs</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/SpinnerListScrollerSkin.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/ScrollSnappingMode.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/manifest.xml</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/CalendarDate.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/DateSelectorDisplayMode.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/layouts/TileLayout.as</path>
<path kind="dir" action="A">/private/flex/sdk/branches/4.y/development/eclipse/flex/DateSpinnerTest/.settings</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile320/assets/SpinnerListContainerBackground.fxg</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile240/assets/SpinnerListContainerBackground.fxg</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/development/eclipse/flex/DateSpinnerTest/src/DateSpinnerTest-app.xml</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/effects/ThrowEffect.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile160/assets/SpinnerListContainerBackground.fxg</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/SpinnerListContainer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/List.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as</path>
<path kind="dir" action="A">/private/flex/sdk/branches/4.y/development/eclipse/flex/DateSpinnerTest/src/views</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/layouts/VerticalSpinnerLayout.as</path>
<path kind="dir" action="A">/private/flex/sdk/branches/4.y/development/eclipse/flex/DateSpinnerTest/src</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/development/eclipse/flex/DateSpinnerTest/.flexProperties</path>
<path kind="dir" action="A">/private/flex/sdk/branches/4.y/development/eclipse/flex/DateSpinnerTest/libs</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/Scroller.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/SpinnerListContainerSkin.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/development/eclipse/flex/DateSpinnerTest/.actionScriptProperties</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/bundles/en_US/components.properties</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/supportClasses/TouchScrollHelper.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile320/assets/TabbedViewNavigatorButtonBarFirstButton_down.fxg</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/SpinnerList.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/development/eclipse/flex/DateSpinnerTest/src/DateSpinnerTest.mxml</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/development/eclipse/flex/DateSpinnerTest/src/blackberry-tablet.xml</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/development/eclipse/flex/DateSpinnerTest/src/views/DateSpinnerTestHomeView.mxml</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/DateSpinner.as</path>
<path kind="dir" action="M">/private/flex/sdk/branches/4.y</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/mobile320/assets/SpinnerListContainerSelectionIndicator.fxg</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile240/assets/SpinnerListContainerSelectionIndicator.fxg</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/SpinnerListItemRenderer.as</path>
<path kind="dir" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/.settings</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile160/assets/SpinnerListContainerSelectionIndicator.fxg</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/development/eclipse/flex/DateSpinnerTest/.project</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile320/assets/SpinnerListContainerShadow.fxg</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile240/assets/SpinnerListContainerShadow.fxg</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile160/assets/SpinnerListContainerShadow.fxg</path>

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

--- frameworks/projects/spark/src/spark/components/List.as
+++ frameworks/projects/spark/src/spark/components/List.as
@@ -1046,6 +1046,81 @@
         invalidateProperties();
     }

+    //----------------------------------
+    //  pageScrollingEnabled
+    //----------------------------------
+
+    private var _pageScrollingEnabled:Boolean = false;
+
+    [Inspectable(category="General", defaultValue="false")]
+
+    /**
+     *  Whether page scrolling is currently enabled for this Scroller
+     *
+     *  @default false
+     *
+     *  @langversion 3.0
+     *  @playerversion AIR 3
+     *  @productversion Flex 4.5.2
+     */
+    public function get pageScrollingEnabled():Boolean
+    {
+        if (scroller)
+            return scroller.pageScrollingEnabled;
+        return _pageScrollingEnabled;
+    }
+
+    /**
+     *  @private
+     */
+    public function set pageScrollingEnabled(value:Boolean):void
+    {
+        if (scroller)
+            scroller.pageScrollingEnabled = value;
+        _pageScrollingEnabled = value;
+    }
+
+    //----------------------------------
+    //  scrollSnappingMode
+    //----------------------------------
+
+    private var _scrollSnappingMode:String = ScrollSnappingMode.NONE;
+
+    [Inspectable(category="General", enumeration="none,leadingEdge,center,trailingEdge", defaultValue="none")]
+
+    /**
+     *  The scroll snapping mode currently in effect for this Scroller
+     *
+     *
Changing this property to anything other than "off" may
+     *  result in an immediate change in scroll position to ensure
+     *  an element is correctly "snapped" into position.  This change
+     *  in scroll position is not animated

+     *
+     *  @see spark.components.ScrollSnappingMode
+     *
+     *  @default "off"
+     *
+     *  @langversion 3.0
+     *  @playerversion AIR 3
+     *  @productversion Flex 4.5.2
+     */
+    public function get scrollSnappingMode():String
+    {
+        if (scroller)
+            return scroller.scrollSnappingMode;
+        return _scrollSnappingMode;
+    }
+
+    /**
+     *  @private
+     */
+    public function set scrollSnappingMode(value:String):void
+    {
+        if (scroller)
+            scroller.scrollSnappingMode = value;
+        _scrollSnappingMode = value;
+    }
+
     //--------------------------------------------------------------------------
     //
     //  Overridden methods
@@ -1101,7 +1176,10 @@

             const hsp:String = getStyle("horizontalScrollPolicy");
             if (hsp && (hsp !== ScrollPolicy.AUTO))
-                scroller.setStyle("horizontalScrollPolicy", hsp);
+                scroller.setStyle("horizontalScrollPolicy", hsp);
+
+            scroller.pageScrollingEnabled = _pageScrollingEnabled;
+            scroller.scrollSnappingMode = _scrollSnappingMode;
         }
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 6403
Author:   dsubrama@adobe.com
Date:     2009-04-29T23:52:29.565854Z

Log Message:
-----------
-Single selection support hooked up to keyboard navigation
-We no longer listen to keyboard events at the capture phase
-We now delegate to layout to tell us which item to navigate to next - implemented for Vertical, Horizontal and Tile layouts. A List with BasicLayout/ScrollerLayout doesn't really make sense.
-Selection and keyboard navigation stay in lockstep correctly.

QA: Yes
Doc: No
Checkintests: Pass

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

--- frameworks/projects/spark/src/spark/components/List.as
+++ frameworks/projects/spark/src/spark/components/List.as
@@ -13,6 +13,7 @@
 {
 import flash.events.KeyboardEvent;
 import flash.events.MouseEvent;
+import flash.events.FocusEvent;
 import flash.geom.Point;
 import flash.ui.Keyboard;

@@ -123,11 +124,24 @@
     {
         super();

-        // This listener handles the arrow keys.   It runs at capture time
-        // so that can cancel - Event.preventDefault() - events we've processed
-        // before they're seen by the skin's Scroller
-        addEventListener(KeyboardEvent.KEY_DOWN, list_keyDownHandler, true);
-    }
+        addEventListener(KeyboardEvent.KEY_DOWN, list_keyDownHandler);
+    }
+
+    //----------------------------------
+    //  scroller
+    //----------------------------------
+
+    [SkinPart(required="false")]
+
+    /**
+     *  The optional Scroller used to scroll the List.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public var scroller:Scroller;

     //--------------------------------------------------------------------------
     //
@@ -397,6 +411,10 @@
             dataGroup.addEventListener(
                 RendererExistenceEvent.RENDERER_REMOVE, dataGroup_rendererRemoveHandler);
         }
+        // The scroller, between textView and this in the chain, should not
+        // getFocus.
+        if (instance == scroller)
+            scroller.focusEnabled = false;
     }

     /**
@@ -599,7 +617,7 @@
         if (renderer)
         {
         	renderer.addEventListener("click", item_clickHandler);
-            updateRendererInformation(IVisualElement(renderer));
+        	updateRendererInformation(IVisualElement(renderer));
         }

         if (isItemIndexSelected(index))
@@ -677,46 +695,24 @@
     /**
      *  @private
      *  Build in basic keyboard navigation support in List.
-     *  TODO: Deepa - add overrideable methods to control
-     *  keyboard navigation across components and layout.
      */
     protected function list_keyDownHandler(event:KeyboardEvent):void
-    {
+    {
         super.keyDownHandler(event);

         if (dataProvider)
         {
-	        var delta:int = 0;
-
-	        if (layout is VerticalLayout)
-	        {
-	            switch(event.keyCode)
-	            {
-	                case Keyboard.UP: delta = -1; break;
-	                case Keyboard.DOWN: delta = +1; break;
-	            }
-            }
-	        else if (layout is HorizontalLayout)
-	        {
-	            switch(event.keyCode)
-	            {
-	                case Keyboard.LEFT: delta = -1; break;
-	                case Keyboard.RIGHT: delta = +1; break;
-	            }
-	        }
+            //Delegate to the layout to tell us what the next item is we shoudl select.
+	        var proposedSelectedIndex:int = layout.nextItemIndex(event.keyCode, selectedIndex, dataProvider.length - 1);
 	        // Note that the KeyboardEvent is canceled even if the selectedIndex doesn't
-	        // change because we don't want another component to start handling these
-	        // events when the selectedIndex reaches a limit.
-	        if (delta != 0)
-	        {
-	            event.preventDefault();
-	            var maxSelectedIndex:int = dataProvider.length - 1;
-	            selectedIndex = Math.min(Math.max(0, selectedIndex + delta), maxSelectedIndex);
-	            // TODO (jszeto) Added this because we want the selection to commit immediately
-	            // Explore better way to accomplish this.
-	            commitSelectedIndex();
-	            ensureItemIsVisible(selectedIndex);
-	        }
+            // change because we don't want another component to start handling these
+            // events when the selectedIndex reaches a limit.
+            if (proposedSelectedIndex != -1)
+            {
+                event.preventDefault();
+                selectedIndex = proposedSelectedIndex;
+                ensureItemIsVisible(selectedIndex);
+            }
 		}
     }


Optimised fragmentPlayingHandler

Optimised fragmentPlayingHandler

--- src/org/mangui/hls/loader/SubtitlesFragmentLoader.as
+++ src/org/mangui/hls/loader/SubtitlesFragmentLoader.as
@@ -9,6 +9,8 @@
 	import flash.events.SecurityErrorEvent;
 	import flash.net.URLLoader;
 	import flash.net.URLRequest;
+	import flash.utils.clearTimeout;
+	import flash.utils.setTimeout;

 	import org.mangui.hls.HLS;
 	import org.mangui.hls.HLSSettings;
@@ -40,6 +42,7 @@
 		protected var _currentSubtitles:Subtitles;
 		protected var _seqSubsIndex:int;
 		protected var _remainingRetries:int;
+		protected var _retryTimeout:uint;

 		public function SubtitlesFragmentLoader(hls:HLS)
 		{
@@ -133,6 +136,9 @@
 		 */
 		protected function fragmentPlayingHandler(event:HLSEvent):void
 		{
+			// If subtitles are disabled, there's nothing to do
+			if (_hls.subtitlesTrack == -1) return;
+
 			if (_hls.type == HLSTypes.LIVE)
 			{
 				_currentSubtitles = null;
@@ -217,6 +223,9 @@
 			}
 		}

+		/**
+		 * Are the specified subtitles the correct ones for the specified position?
+		 */
 		protected function isCurrent(subtitles:Subtitles, position:Number):Boolean
 		{
 			return subtitles
@@ -257,6 +266,7 @@
 		 */
 		protected function loadFragment():void
 		{
+			clearTimeout(_retryTimeout);
 			_loader.load(new URLRequest(_fragment.url));
 		}

@@ -296,9 +306,12 @@
 				Log.error(_remainingRetries+" retries remaining");
 			}

+			// We only wait 1s to retry because if we waited any longer the playhead will probably
+			// have moved past the position where these subtitles were supposed to be used
 			if (_remainingRetries--)
 			{
-				loadFragment();
+				clearTimeout(_retryTimeout);
+				_retryTimeout = setTimeout(loadFragment, 1000);
 			}
 			else
 			{


add tooltips for units

add tooltips for units

--- src/battlecode/client/viewer/render/DrawHUDUnit.as
+++ src/battlecode/client/viewer/render/DrawHUDUnit.as
@@ -22,6 +22,7 @@
             image.height = 25;
             image.x = 5;
             image.y = 0;
+            image.toolTip = type;

             addChild(image);


Skip opening scene by pulling the lever completely by pressing P outside VR.


XIFF-37: If a server requires TLS, dispatch an error event and disconnect since we do not support this feature yet. To be reviewed by David.

--- src/org/jivesoftware/xiff/core/XMPPConnection.as
+++ src/org/jivesoftware/xiff/core/XMPPConnection.as
@@ -635,8 +635,21 @@
 			{
 				for each(var feature:XMLNode in node.childNodes)
 				{
-		            if (feature.nodeName == "mechanisms")
+					if (feature.nodeName == "starttls")
+					{
+						if (feature.firstChild && feature.firstChild.nodeName == "required")
+						{
+							// No TLS support yet
+							dispatchError("TLS required", "The server requires TLS, but this feature is not implemented.", "cancel", 501);
+							disconnect();
+							return;
+						}
+					}
+					else if (feature.nodeName == "mechanisms")
+					{
 						configureAuthMechanisms(feature);
+					}
+
 		        }

 				if(useAnonymousLogin || (username != null && username.length > 0))


Transferred from the Adobe Open Source Subversion Repository

Revision: 12568
Author:   gruehle@adobe.com
Date:     2009-12-05T00:33:54.244586Z

Log Message:
-----------
Fix the theme attribute for cornerRadius metadata on mx components. This required moving the metadata out of BorderStyles.as and into each file that includes BorderStyle.as

QE notes: -
Doc notes: -
Bugs: SDK-24437
Reviewer: Kevin
Tests run: checkintests
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ToolTip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/VideoDisplay.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ScrollControlBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/BorderStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>

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

--- frameworks/projects/framework/src/mx/controls/ToolTip.as
+++ frameworks/projects/framework/src/mx/controls/ToolTip.as
@@ -58,6 +58,18 @@
 include "../styles/metadata/LeadingStyle.as"
 include "../styles/metadata/PaddingStyles.as"
 include "../styles/metadata/TextStyles.as"
+
+/**
+ *  Radius of component corners.
+ *
+ *  @default 2
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="cornerRadius", type="Number", format="Length", inherit="no", theme="halo, spark")]

 /**
  *  Number of pixels between the container's bottom border and its content area.


Transferred from the Adobe Open Source Subversion Repository

Revision: 18551
Author:   smgilson@adobe.com
Date:     2010-11-12T14:08:11.380016Z

Log Message:
-----------
Update ASDoc comments with invalid HTML

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/spark/src/spark/events/PopUpCloseEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/SkinnablePopUpContainer.as</path>

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

--- frameworks/projects/spark/src/spark/events/PopUpEvent.as
+++ frameworks/projects/spark/src/spark/events/PopUpEvent.as
@@ -24,7 +24,7 @@
  *  true to the commit parameter and optionally passing in
  *  any relevant data.  When the SkinnablePopUpContainer has completed closing,
  *  it will dispatch this event.  Then, in the listener, the developer can check
- *  the commit parameter and perform the appropriate action.
+ *  the commit parameter and perform the appropriate action.

  *
  *  @langversion 3.0
  *  @playerversion Flash 10


fixed labeling bug with normalize option disabled

--- WeaveUISpark/src/weave/visualization/plotters/SimpleParallelCoordinatesAxesPlotter.as
+++ WeaveUISpark/src/weave/visualization/plotters/SimpleParallelCoordinatesAxesPlotter.as
@@ -71,6 +71,7 @@
 			if (!plotter)
 				return;
 			var columns:Array = plotter.columns.getObjects();
+			var normalize:Boolean = plotter.normalize.value;

 			// set up bitmapBounds so the direction matches that of screenBounds
 			if (screenBounds.getXDirection() > 0)
@@ -107,14 +108,14 @@
 				graphics.lineTo(maxPoint.x, maxPoint.y);

 				// draw axis min value
-				bitmapText.text = ColumnUtils.deriveStringFromNumber(column, stats.getMin());
+				bitmapText.text = ColumnUtils.deriveStringFromNumber(column, normalize ? stats.getMin() : dataBounds.getYMin());
 				bitmapText.x = minPoint.x;
 				bitmapText.y = minPoint.y;
 				bitmapText.verticalAlign = screenBounds.getYDirection() > 0 ? BitmapText.VERTICAL_ALIGN_BOTTOM : BitmapText.VERTICAL_ALIGN_TOP;
 				bitmapText.draw(destination);

 				// draw axis max value
-				bitmapText.text = ColumnUtils.deriveStringFromNumber(column, stats.getMax());
+				bitmapText.text = ColumnUtils.deriveStringFromNumber(column, normalize ? stats.getMax() : dataBounds.getYMax());
 				bitmapText.x = maxPoint.x;
 				bitmapText.y = maxPoint.y;
 				bitmapText.verticalAlign = screenBounds.getYDirection() > 0 ? BitmapText.VERTICAL_ALIGN_TOP : BitmapText.VERTICAL_ALIGN_BOTTOM;


ps: add ADID and EDIR support

ps: add ADID and EDIR support

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

--- kdp3Lib/src/com/kaltura/kdpfl/model/vo/AdMetadataVO.as
+++ kdp3Lib/src/com/kaltura/kdpfl/model/vo/AdMetadataVO.as
@@ -4,37 +4,43 @@
 	{
 		[Bindable]
 		public var id : String;
-
+
 		[Bindable]
 		public var width : Number;
-
+
 		[Bindable]
 		public var height : Number;
-
+
 		[Bindable]
 		public var mimeType : String;
-
+
 		[Bindable]
 		public var url : String;
-
+
 		[Bindable]
 		public var duration : Number;
-
+
 		[Bindable]
 		public var type : String;
-
+
 		[Bindable]
 		public var name : String;
-
+
 		[Bindable]
 		public var title : String;
-
+
 		[Bindable]
 		public var iabCategory : String;
-
+
 		[Bindable]
 		public var advertiser : String;
-
-
+
+		[Bindable]
+		public var adid : String;
+
+		[Bindable]
+		public var eidr : String;
+
+
 	}
 }


Now XMLListCollection behaves closer to be expected -- does not update parent from updated XMLList.  I guess it should be debated wether it should...

--- frameworks/projects/framework/src/mx/collections/XMLListAdapter.as
+++ frameworks/projects/framework/src/mx/collections/XMLListAdapter.as
@@ -248,16 +248,30 @@

 		if (length > 0)
 		{
-			var localLength:uint = source.length();
-
-			// Adjust all indexes by 1
-			for (var i:uint = localLength; i>index; i--)
-			{
-				source[i] = source[i - 1];
-			}
+            var newSource:XMLList = new XMLList();
+
+            for (var i:uint = 0; i <= (length); i++)
+            {
+                if (i < index)
+                {
+                    newSource[i] = source[i];
+                }
+                else if (i == index)
+                {
+                    newSource[i] = item;
+                }
+                else if (i > index)
+                {
+                    newSource[i] = source[i-1];
+                }
+            }
+
+            source = newSource;
 		}
-
-		source[index] = item;
+		else
+        {
+            source[index] = item;
+        }

         startTrackUpdates(item, seedUID + uidCounter.toString());
 		uidCounter++;


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

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

 package mx.effects.easing
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 3613
Author:   gosmith@adobe.com
Date:     2008-10-14T01:00:48.451990Z

Log Message:
-----------
TextGraphic and TextView now use TCAL_FORMAT rather than FXG_FORMAT when importing a text string, so that all TCAL formats are recognized rather than just FXG ones.

Also, each class now maintains an importer object in a static var rather than creating one each time text needs to be imported.

Reviewer: Deepa
Bugs: SDK-17160, SDK-17287
QA: No
Doc: No

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

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

--- frameworks/projects/spark/src/spark/components/RichEditableText.as
+++ frameworks/projects/spark/src/spark/components/RichEditableText.as
@@ -26,6 +26,7 @@
 import flashx.tcal.compose.StandardFlowComposer;
 import flashx.tcal.container.DisplayObjectContainerController;
 import flashx.tcal.container.IContainerController;
+import flashx.tcal.conversion.ITextImporter;
 import flashx.tcal.conversion.TextFilter;
 import flashx.tcal.conversion.ConversionType;
 import flashx.tcal.edit.EditManager;
@@ -105,6 +106,20 @@
 {
     include "../core/Version.as";

+	//--------------------------------------------------------------------------
+	//
+	//  Class variables
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+     *  Since this static var gets initialized by calling a method
+     *  in another class, we initialize it in the constructor to avoid
+     *  any class-initialization-order problems.
+	 */
+    private static var textImporter:ITextImporter;
+
     //--------------------------------------------------------------------------
     //
     //  Constructor
@@ -117,6 +132,9 @@
     public function TextView()
     {
         super();
+
+        if (!textImporter)
+            textImporter = TextFilter.getImporter(TextFilter.TCAL_FORMAT);

         _content = textFlow = createEmptyTextFlow();
     }
@@ -900,12 +918,11 @@
 	 */
 	private function importMarkup(markup:String):TextFlow
 	{
-		markup =
-			'<TextGraphic xmlns="http://ns.adobe.com/fxg/2008">' +
-			    '<content>' + markup + '</content>' +
-			'</TextGraphic>';
+		markup = '<TextFlow xmlns="http://ns.adobe.com/tcal/2008">' +
+                 markup +
+                 '</TextFlow>';

-		return TextFilter.importToFlow(markup, TextFilter.FXG_FORMAT);
+		return textImporter.importToFlow(markup);
 	}

 	/**


little refactoring 2

little refactoring 2

--- src/com/merlinds/miracle_tool/controllers/CreateProjectCommand.as
+++ src/com/merlinds/miracle_tool/controllers/CreateProjectCommand.as
@@ -6,17 +6,13 @@
 package com.merlinds.miracle_tool.controllers {
 	import com.merlinds.miracle_tool.events.EditorEvent;
 	import com.merlinds.miracle_tool.models.ProjectModel;
-	import com.merlinds.miracle_tool.models.vo.AnimationVO;
-	import com.merlinds.miracle_tool.models.vo.SourceVO;
 	import com.merlinds.miracle_tool.services.ActionService;
 	import com.merlinds.miracle_tool.services.FileSystemService;
 	import com.merlinds.miracle_tool.views.AppView;
 	import com.merlinds.miracle_tool.views.project.ProjectView;
 	import com.merlinds.miracle_tool.views.widgets.ProjectWidgets;

-	import flash.filesystem.File;
 	import flash.geom.Point;
-	import flash.utils.setTimeout;

 	import org.robotlegs.mvcs.Command;


Added getters for racetrack progress and lap.

--- src/engine/tetragon/systems/racetrack/RacetrackSystem.as
+++ src/engine/tetragon/systems/racetrack/RacetrackSystem.as
@@ -104,11 +104,11 @@
 		private var _speed:Number;				// current speed
 		private var _speedPercent:Number;

-		private var _progressCounter:uint;
-		private var _lap:uint;
+		private var _progress:uint;
+		private var _currentLap:uint;
 		private var _startTime:uint;
 		private var _currentLapTime:uint;		// current lap time
-		private var _lastLapTime:uint;		// last lap time
+		private var _lastLapTime:uint;			// last lap time
 		private var _fastestLapTime:uint;

 		private var _isAccelerating:Boolean;
@@ -117,6 +117,7 @@
 		private var _isSteeringRight:Boolean;
 		private var _isJump:Boolean;
 		private var _isFall:Boolean;
+
 		private var _started:Boolean;

 		/* Racetrack properties */
@@ -220,8 +221,8 @@
 			_heightHalf = _height * 0.5;
 			_bgScrollOffset = 0.0;

-			_progressCounter = 0;
-			_lap = 1;
+			_progress = 0;
+			_currentLap = 1;
 			_startTime = 0;
 			_currentLapTime = 0;
 			_lastLapTime = 0;
@@ -250,8 +251,8 @@
 				{
 				}

-				if (_lapSignal) _lapSignal.dispatch(_lap, _lastLapTime, fastest);
-				++_lap;
+				if (_lapSignal) _lapSignal.dispatch(_currentLap, _lastLapTime, fastest);
+				++_currentLap;
 			}
 			else
 			{
@@ -362,7 +363,7 @@
 			/* Increase move counter only if the player is moving. */
 			if (_prevSegment != playerSegment)
 			{
-				++_progressCounter;
+				++_progress;
 			}

 			_prevSegment = playerSegment;
@@ -529,6 +530,26 @@
 		// -----------------------------------------------------------------------------------------
 		// Accessors
 		// -----------------------------------------------------------------------------------------
+
+		/**
+		 * The progress of the player's movement on the racetrack. This value increases
+		 * by 1 whenever the player crosses the next racetrack segment.
+		 */
+		public function get progress():uint
+		{
+			return _progress;
+		}
+
+
+		/**
+		 * The current lap. This value starts with 1 and increases whenever the player
+		 * crosses the finish line.
+		 */
+		public function get currentLap():uint
+		{
+			return _currentLap;
+		}
+

 		public function get currentLapTime():uint
 		{


[VectorCommon] caret blinks now in VectorEditor

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

--- VectorCommon/src/org/jbei/components/sequenceClasses/Caret.as
+++ VectorCommon/src/org/jbei/components/sequenceClasses/Caret.as
@@ -1,100 +1,144 @@
 package org.jbei.components.sequenceClasses
 {
-	import flash.geom.Rectangle;
-
-	import mx.core.UIComponent;
-
-	public class Caret extends UIComponent
-	{
-		private const CARET_COLOR:int = 0x000000;
-		private const CARET_WIDTH:int = 1;
-
-		private var contentHolder:ContentHolder;
-
-		private var _caretHeight:int = 20;
-		private var _position:int;
-
-		private var needsRemeasurement:Boolean = false;
-
-		// Constructor
-		public function Caret(contentHolder:ContentHolder)
-		{
-			super();
-
-			this.contentHolder = contentHolder;
-		}
-
-		// Properties
-		public function get position():int
-		{
-			return _position;
-		}
-
-		public function set position(value:int):void
-		{
-			_position = value;
-
-			needsRemeasurement = true;
-
-			invalidateDisplayList();
-		}
-
-		// Public Methods
-		public function show():void
-		{
-			visible = true;
-		}
-
-		public function hide():void
-		{
-			visible = false;
-		}
-
-		public function get caretHeight():int
-		{
-			return _caretHeight;
-		}
-
-		public function set caretHeight(value:int):void
-		{
-			if(_caretHeight != value) {
-				_caretHeight = value;
-
-				needsRemeasurement = true;
-
-				invalidateDisplayList();
-			}
-		}
-
-		// Protected Methods
-		protected override function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
-		{
-			super.updateDisplayList(unscaledWidth, unscaledHeight);
-
-			if(! contentHolder.featuredSequence) { return; }
-
-			if(needsRemeasurement) {
-				needsRemeasurement = false;
-
-				render();
-			}
-		}
-
-		// Private Methods
-		private function render():void
-		{
-			var caretMetrics:Rectangle = contentHolder.bpMetricsByIndex(_position);
-
-			this.x = caretMetrics.x + 1; // +1 to look pretty
-			this.y = caretMetrics.y + 2; // +2 to look pretty
-
-			measuredWidth = CARET_WIDTH;
-			measuredHeight = _caretHeight;
-
-			graphics.clear();
-			graphics.lineStyle(1, CARET_COLOR);
-			graphics.moveTo(0, 0);
-			graphics.lineTo(0, measuredHeight);
-		}
-	}
-}
+    import flash.events.TimerEvent;
+    import flash.geom.Rectangle;
+    import flash.utils.Timer;
+
+    import mx.core.UIComponent;
+
+    /**
+     * @author Zinovii Dmytriv
+     */
+    public class Caret extends UIComponent
+    {
+        public static const CARET_COLOR:int = 0x000000;
+        public static const CARET_WIDTH:int = 1;
+        public static const TIMER_REFRESH_SPEED:int = 500; // in ms
+
+        private var contentHolder:ContentHolder;
+        private var timer:Timer;
+
+        private var _caretHeight:int = 20;
+        private var _position:int;
+
+        private var needsRemeasurement:Boolean = false;
+
+        // Constructor
+        public function Caret(contentHolder:ContentHolder)
+        {
+            super();
+
+            this.contentHolder = contentHolder;
+
+            initializeTimer();
+        }
+
+        // Properties
+        public function get position():int
+        {
+            return _position;
+        }
+
+        public function set position(value:int):void
+        {
+            _position = value;
+
+            needsRemeasurement = true;
+
+            delayTimer();
+
+            invalidateDisplayList();
+        }
+
+        // Public Methods
+        public function show():void
+        {
+            visible = true;
+
+            activateTimer();
+        }
+
+        public function hide():void
+        {
+            visible = false;
+
+            deactivateTimer();
+        }
+
+        public function get caretHeight():int
+        {
+            return _caretHeight;
+        }
+
+        public function set caretHeight(value:int):void
+        {
+            if(_caretHeight != value) {
+                _caretHeight = value;
+
+                needsRemeasurement = true;
+
+                invalidateDisplayList();
+            }
+        }
+
+        // Protected Methods
+        protected override function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
+        {
+            super.updateDisplayList(unscaledWidth, unscaledHeight);
+
+            if(! contentHolder.featuredSequence) { return; }
+
+            if(needsRemeasurement) {
+                needsRemeasurement = false;
+
+                render();
+            }
+        }
+
+        // Private Methods
+        private function onTimerEvent(event:TimerEvent):void
+        {
+            visible = !visible;
+        }
+
+        private function render():void
+        {
+            var caretMetrics:Rectangle = contentHolder.bpMetricsByIndex(_position);
+
+            this.x = caretMetrics.x + 1; // +1 to look pretty
+            this.y = caretMetrics.y + 2; // +2 to look pretty
+
+            measuredWidth = CARET_WIDTH;
+            measuredHeight = _caretHeight;
+
+            graphics.clear();
+            graphics.lineStyle(1, CARET_COLOR);
+            graphics.moveTo(0, 0);
+            graphics.lineTo(0, measuredHeight);
+        }
+
+        private function initializeTimer():void
+        {
+            timer = new Timer(TIMER_REFRESH_SPEED, 0);
+            timer.addEventListener(TimerEvent.TIMER, onTimerEvent);
+        }
+
+        private function activateTimer():void
+        {
+            timer.reset();
+            timer.start();
+        }
+
+        private function deactivateTimer():void
+        {
+            timer.stop();
+        }
+
+        private function delayTimer():void
+        {
+            show();
+
+            timer.delay = TIMER_REFRESH_SPEED;
+        }
+    }
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 5097
Author:   gauravj@adobe.com
Date:     2009-02-27T02:06:23.424936Z

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

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/fileSystemClasses/FileSystemTreeDataDescriptor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/FlexHTMLLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemEnumerationMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemHistoryButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemTree.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/HTML.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/FlexContentHolder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/utils/DirectoryEnumeration.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/ContainerMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/utils/DirectoryEnumerationMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/AIREvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/windowClasses/StatusBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FileEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/WindowExistenceEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemDataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/ApplicationTitleBarBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/fileSystemClasses/FileSystemControlHelper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/NativeDragManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FlexNativeMenuEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemRawChildrenList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowMinimizeButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowRestoreButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowMaximizeButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/StatusBarBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/IWindow.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemSizeDisplayMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FlexNativeWindowBoundsEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowBackground.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/windowClasses/TitleBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemChildrenList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowCloseButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FlexNativeMenu.as</path>

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

--- frameworks/projects/airframework/src/mx/skins/halo/ApplicationTitleBarBackgroundSkin.as
+++ frameworks/projects/airframework/src/mx/skins/halo/ApplicationTitleBarBackgroundSkin.as
@@ -18,6 +18,10 @@
 /**
  *  The skin for the TitleBar of a WindowedApplication or Window.
  *
+ *
+ *  @langversion 3.0
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class ApplicationTitleBarBackgroundSkin extends ProgrammaticSkin
 {
@@ -31,6 +35,10 @@

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


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

--- frameworks/projects/automation/src/mx/automation/tabularData/OLAPDataGridTabularData.as
+++ frameworks/projects/automation/src/mx/automation/tabularData/OLAPDataGridTabularData.as
@@ -0,0 +1,247 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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
+{
+
+	import mx.collections.ArrayCollection;
+	import mx.controls.OLAPDataGrid;
+	import mx.controls.advancedDataGridClasses.AdvancedDataGridColumn;
+	import mx.core.mx_internal;
+	import mx.olap.IOLAPAxisPosition;
+	import mx.olap.IOLAPResult;
+	import mx.olap.IOLAPResultAxis;
+	import mx.olap.OLAPQuery;
+
+	use namespace mx_internal;
+
+	/**
+	 * @private
+	 */
+	public class OLAPDataGridTabularData extends AdvancedDataGridTabularData
+	{
+		/**
+		 *  Constructor
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public function OLAPDataGridTabularData(dg:OLAPDataGrid)
+		{
+
+			super(dg);
+			this.OLAPdg = dg;
+		}
+
+		/**
+		 *  @private
+		 */
+		private var OLAPdg:OLAPDataGrid;
+
+		/**
+		 *  @private
+		 */
+		override public function get numColumns():int
+		{
+			/*
+			var resultVar:IOLAPResult = OLAPdg.dataProvider as IOLAPResult;
+			// no of the columns of the tabular data is the actual column count +
+			// the rowHeader.count
+			var columnCount:int = resultVar.getAxis(OLAPQuery.COLUMN_AXIS).positions.length;
+			var rowHeaderCount : int =  resultVar.getAxis(OLAPQuery.ROW_AXIS).positions[0].members.length;
+			return  (columnCount + rowHeaderCount);
+			*/
+			return OLAPdg.columns.length;
+		}
+
+
+		/**
+		 *  @private
+		 */
+		override public function get columnNames():Array
+		{
+			//override to provide the column names
+			// this includes the rowHeader names + leaf level column Names
+			var result:Array = [];
+
+
+			//**************get the columnHeader names*************
+			var columns:Array = OLAPdg.columns;
+			var colCount:int = columns.length;
+			for (var i:int = 0; i < colCount; i++)
+			{
+				result.push((AdvancedDataGridColumn (columns[i])).headerText);
+			}
+			//*******************************************************
+
+			return result;
+		}
+
+		/**
+		 *  @private
+		 */
+		override public function get firstVisibleRow():int
+		{
+			var listItems:Array = OLAPdg.rendererArray;
+
+			if (!OLAPdg.headerVisible)
+				return super.firstVisibleRow;
+			else
+				return (listItems[0][0]
+					? OLAPdg.itemRendererToIndex(listItems[0][0])
+					: 0);
+		}
+
+
+		/**
+		 *   @private
+		 * */
+
+		override public function getValues(start:uint = 0, end:uint = 0):Array
+		{
+			var result:Array = [];
+
+			// index include the header also
+			var rowInex:int = start;
+			var endRowIndex:int = end;
+
+
+
+			// this method is used to give the data of the ODG table as the tabular data
+			// the ODG structure will be as follows
+
+			// RowHeader1:RowHeader2:Column1;Colum2...... Columnn
+			// i.e we want the data of the rowAxis also to be added to the columns
+
+
+
+			// *********** get the total column count ************
+			// we need to get the total number of columns
+			// i.e the sum of the  rowHeader counts + lno : of column count
+			var resultVar:IOLAPResult = OLAPdg.dataProvider as IOLAPResult;
+			var rowAxis:IOLAPResultAxis = resultVar.getAxis(OLAPQuery.ROW_AXIS);
+			var rowAxisHeader:IOLAPAxisPosition = rowAxis.positions[0];
+			var columns:Array = OLAPdg.columns;
+
+			// ********** get the counts **********
+			// get the rowHeader Count
+			var rowHeaderCount:int = rowAxisHeader.members.length;
+			// get the row Count
+			var rowCount:int = rowAxis.positions.length;
+			// get column count
+			var columnCount:int = columns.length - rowHeaderCount;
+
+
+			// check for the validity of the start and the end index
+			if (rowInex <  0)
+			{
+				trace (" the start Index is less than zero. set it to zero");
+				rowInex = 0;
+			}
+			if (endRowIndex > rowCount)
+			{
+				trace (" the end Index is greater than rowCount. set it to maxValue");
+				endRowIndex = rowCount;
+			}
+
+
+
+			// the user given rowIndex is with the header
+			// but the position on the rowAxis and hte getcell is from the first data row
+			// remember that the row indices are inclusive of the column Header
+			for (var currRowIndex:int = rowInex; currRowIndex < endRowIndex ; currRowIndex++)
+			{
+				var rowData:Array = []; // array to hold a row info
+				var rowMembersList:IOLAPAxisPosition = rowAxis.positions[currRowIndex];
+				for (var rowMemberIndex:int =0; rowMemberIndex < rowHeaderCount ; rowMemberIndex++)
+				{
+					var rowDatString:String = rowMembersList.members[rowMemberIndex].name;
+					rowData.push(rowDatString);
+				}
+
+				// traverse the column data using getCell
+				for (var columnIndex:int = 0; columnIndex < columnCount ; columnIndex++)
+				{
+					var columnDataString:String = String(resultVar.getCell(currRowIndex,columnIndex).value);
+					rowData.push(columnDataString);
+				}
+
+				var rowString:String = rowData.join("|")
+				result.push(rowData);
+			}
+
+			return result;
+
+		}
+
+
+
+		/**
+		 *  @inheritDoc
+		 */
+		override public function get numRows():int
+		{
+			var resultVar:IOLAPResult = OLAPdg.dataProvider as IOLAPResult;
+			// rows for the tabular data includes the column header also
+			// hence add one to the length
+			return resultVar.getAxis(OLAPQuery.ROW_AXIS).positions.length + 1;
+		}
+
+		override public function getAutomationValueForData(data:Object):Array
+		{
+			// we get the data as the IOLAPAxisPosition
+			// hence we need a diff handling compared to the the
+			// DG and ADG
+			// This method gets the Automationvalue corresponding to the
+			// current IOLAPPosition
+
+			var ret:Array = [];
+			var rowMembersList:IOLAPAxisPosition = data as IOLAPAxisPosition;
+			// this should be present in the ROW_AXIS
+			// get the row no:
+			var resultVar:IOLAPResult = OLAPdg.dataProvider as IOLAPResult;
+			var rowAxis:IOLAPResultAxis = resultVar.getAxis(OLAPQuery.ROW_AXIS);
+			var rowElements:ArrayCollection =  rowAxis.positions as ArrayCollection;
+			if (rowElements != null)
+			{
+				var rowPos:Number = rowElements.getItemIndex(data);
+				if (rowPos != -1)
+				{
+					var rowHeaderCount:int = rowMembersList.members.length;
+
+					for (var rowMemberIndex:int = 0; rowMemberIndex < rowHeaderCount ; rowMemberIndex++)
+					{
+						var rowDatString:String = rowMembersList.members[rowMemberIndex].name;
+						ret.push(rowDatString);
+					}
+
+					var columns:Array = OLAPdg.columns;
+					var columnCount:int = columns.length - rowHeaderCount;
+					// traverse the column data using getCell
+					for (var columnIndex:int = 0; columnIndex < columnCount ; columnIndex++)
+					{
+						var columnDataString:String = String(resultVar.getCell(rowPos,columnIndex).value);
+						ret.push(columnDataString);
+					}
+
+					ret.join("|")
+				}
+			}
+
+
+			return ret;
+		}
+
+
+	}
+}


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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ButtonSkinBase.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ButtonSkinBase.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2010 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: 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@1260992 13f79535-47bb-0310-9956-ffa450edef68


Transferred from the Adobe Open Source Subversion Repository

Revision: 2462
Author:   jimurphy@adobe.com
Date:     2008-07-14T19:13:06.620116Z

Log Message:
-----------
gumbo push to trunk

Modified Paths:
--------------
214 paths were modified

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

--- frameworks/projects/framework/src/mx/states/OverrideBase.as
+++ frameworks/projects/framework/src/mx/states/OverrideBase.as
@@ -0,0 +1,64 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2005-2008 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.states
+{
+
+import flash.events.EventDispatcher;
+import mx.core.UIComponent;
+
+public class OverrideBase extends EventDispatcher
+{
+	//--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+    public function OverrideBase() {}
+
+    //--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     * @private
+     * Initialize this object from a descriptor.
+     */
+    public function initializeFromObject(properties:Object):Object
+    {
+        for (var p:String in properties)
+        {
+            this[p] = properties[p];
+        }
+
+        return Object(this);
+    }
+
+    /**
+     * @private
+     * @param parent The document level context for this override.
+     * @param target The component level context for this override.
+     */
+    protected function getOverrideContext(target:Object, parent:UIComponent):Object
+    {
+        if (target == null)
+            return parent;
+
+        if (target is String)
+            return parent[target];
+
+        return target;
+    }
+}
+
+}


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

--- frameworks/projects/charts/src/mx/charts/series/PlotSeries.as
+++ frameworks/projects/charts/src/mx/charts/series/PlotSeries.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.charts.series
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 2464
Author:   jimurphy@adobe.com
Date:     2008-07-14T19:50:33.449468Z

Log Message:
-----------
add flex 4 to trunk

Modified Paths:
--------------
134 paths were modified

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

--- frameworks/projects/spark/src/spark/filters/GradientFilter.as
+++ frameworks/projects/spark/src/spark/filters/GradientFilter.as
@@ -0,0 +1,276 @@
+package flex.filters
+{
+
+import flash.events.Event;
+import flash.events.EventDispatcher;
+import flash.filters.BitmapFilter;
+import flash.filters.BitmapFilterType;
+import flash.filters.GradientBevelFilter;
+
+import mx.core.mx_internal;
+import mx.events.PropertyChangeEvent;
+import mx.graphics.GradientEntry;
+
+use namespace mx_internal;
+
+[DefaultProperty("entries")]
+
+public class GradientFilter extends BaseDimensionFilter
+{
+	public function GradientFilter(colors:Array = null,
+								   alphas:Array = null,
+								   ratios:Array = null)
+	{
+		super();
+
+		var newEntries:Array = [];
+		var colorsLen:int = colors ? colors.length : 0;
+		var alphasLen:int = alphas ? alphas.length : 0;
+		var ratiosLen:int = ratios ? ratios.length : 0;
+		var maxLen:int = Math.max(colorsLen, alphasLen, ratiosLen);
+
+		for (var i:int = 0; i < maxLen; i++)
+		{
+			var newEntry:GradientEntry = new GradientEntry();
+			if (colorsLen > i)
+				newEntry.color = colors[i];
+			if (alphasLen > i)
+				newEntry.alpha = alphas[i];
+			if (ratiosLen > i)
+				newEntry.ratio = ratios[i];
+
+			newEntries.push(newEntry);
+		}
+
+		entries = newEntries;
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Variables
+	//
+	//--------------------------------------------------------------------------
+
+ 	/**
+	 *  @private
+	 */
+	mx_internal var colors:Array /* of uint */ = [];
+
+ 	/**
+	 *  @private
+	 */
+	mx_internal var ratios:Array /* of Number */ = [];
+
+ 	/**
+	 *  @private
+	 */
+	mx_internal var alphas:Array /* of Number */ = [];
+
+	//--------------------------------------------------------------------------
+	//
+	//  Properties
+	//
+	//--------------------------------------------------------------------------
+
+	//----------------------------------
+    //  angle
+    //----------------------------------
+
+	private var _angle:Number = 45;
+
+	/**
+	 *  The angle, in degrees. Valid values are 0 to 360. The default is 45.
+	 *  The angle value represents the angle of the theoretical light source
+	 *  falling on the object and determines the placement of the effect
+	 *  relative to the object. If distance is set to 0, the effect is not
+	 *  offset from the object, and therefore the angle property has no effect.
+	 */
+	public function get angle():Number
+	{
+		return _angle;
+	}
+
+	public function set angle(value:Number):void
+	{
+		if (value != _angle)
+		{
+			_angle = value;
+			notifyFilterChanged();
+		}
+	}
+
+	//----------------------------------
+    //  distance
+    //----------------------------------
+
+	private var _distance:Number = 4.0;
+
+	/**
+	 *  The offset distance of the glow. The default value is 4.
+	 */
+	public function get distance():Number
+	{
+		return _distance;
+	}
+
+	public function set distance(value:Number):void
+	{
+		if (value != _distance)
+		{
+			_distance = value;
+			notifyFilterChanged();
+		}
+	}
+
+	//----------------------------------
+	//  entries
+	//----------------------------------
+
+ 	/**
+	 *  @private
+	 *  Storage for the entries property.
+	 */
+	private var _entries:Array = [];
+
+	[Bindable("propertyChange")]
+    [Inspectable(category="General", arrayType="mx.graphics.GradientEntry")]
+
+	/**
+	 *  An Array of GradientEntry objects
+	 *  defining the fill patterns for the gradient fill.
+	 *
+	 *  @default []
+	 */
+	public function get entries():Array
+	{
+		return _entries;
+	}
+
+ 	/**
+	 *  @private
+	 */
+	public function set entries(value:Array):void
+	{
+		var oldValue:Array = _entries;
+		_entries = value;
+
+		processEntries();
+		notifyFilterChanged();
+		//dispatchGradientChangedEvent("entries", oldValue, value);
+	}
+
+	//----------------------------------
+    //  type
+    //----------------------------------
+
+	private var _type:String = BitmapFilterType.INNER;
+
+	/**
+	 *  The placement of the filter effect. Possible values are
+	 *  flash.filters.BitmapFilterType constants:
+ 	 *  BitmapFilterType.OUTER — Glow on the outer edge of the object
+	 *  BitmapFilterType.INNER — Glow on the inner edge of the object; the default.
+	 *  BitmapFilterType.FULL — Glow on top of the object
+	 */
+	public function get type():String
+	{
+		return _type;
+	}
+
+	public function set type(value:String):void
+	{
+		if (value != _type)
+		{
+			_type = value;
+			notifyFilterChanged();
+		}
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Methods
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 *  Extract the gradient information in the public entries
+	 *  Array into the internal colors, ratios,
+	 *  and alphas arrays.
+	 */
+	private function processEntries():void
+	{
+		colors = [];
+		ratios = [];
+		alphas = [];
+
+		if (!_entries || _entries.length == 0)
+			return;
+
+		var ratioConvert:Number = 255;
+
+		var i:int;
+
+		var n:int = _entries.length;
+		for (i = 0; i < n; i++)
+		{
+			var e:GradientEntry = _entries[i];
+			e.addEventListener(PropertyChangeEvent.PROPERTY_CHANGE,
+							   entry_propertyChangeHandler, false, 0, true);
+			colors.push(e.color);
+			alphas.push(e.alpha);
+			ratios.push(e.ratio * ratioConvert);
+		}
+
+		if (isNaN(ratios[0]))
+			ratios[0] = 0;
+
+		if (isNaN(ratios[n - 1]))
+			ratios[n - 1] = 255;
+
+		i = 1;
+
+		while (true)
+		{
+			while (i < n && !isNaN(ratios[i]))
+			{
+				i++;
+			}
+
+			if (i == n)
+				break;
+
+			var start:int = i - 1;
+
+			while (i < n && isNaN(ratios[i]))
+			{
+				i++;
+			}
+
+			var br:Number = ratios[start];
+			var tr:Number = ratios[i];
+
+			for (var j:int = 1; j < i - start; j++)
+			{
+				ratios[j] = br + j * (tr - br) / (i - start);
+			}
+		}
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Event handlers
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	private function entry_propertyChangeHandler(event:Event):void
+	{
+		processEntries();
+
+		//dispatchGradientChangedEvent("entries", entries, entries);
+	}
+}
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 3576
Author:   mhorn@adobe.com
Date:     2008-10-10T20:28:57.093323Z

Log Message:
-----------
more asdoc updates

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/Line.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/BitmapGraphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/Graphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/Rect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/PathSegment.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/QuadraticBezierSegment.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/BitmapResizeMode.as</path>

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

--- frameworks/projects/spark/src/spark/primitives/BitmapImage.as
+++ frameworks/projects/spark/src/spark/primitives/BitmapImage.as
@@ -94,17 +94,17 @@
     //  resizeMode
     //----------------------------------
     /**
-     *  Documentation is not currently available.
+     *  The default state.
      */
     protected static const _NORMAL_UINT:uint = 0;

     /**
-     *  Documentation is not currently available.
+     *  Repeats the graphic.
      */
     protected static const _REPEAT_UINT:uint = 1;

     /**
-     *  Documentation is not currently available.
+     *  Scales the graphic.
      */
     protected static const _SCALE_UINT:uint = 2;

@@ -153,15 +153,17 @@
     [Inspectable(category="General")]

     /**
-     *  The resizeMode determines how the bitmap fills in the dimensions.
+     *  The resizeMode determines how the bitmap fills in the dimensions. If you set the value
+     *  of this property in a tag, use the string (such as "Repeat"). If you set the value of
+     *  this property in ActionScript, use the constant (such as BitmapResizeMode.NORMAL).
      *
-     *  When set to BitmapResizeMode.NORMAL, the bitmap
+     *  When set to BitmapResizeMode.NORMAL ("Normal"), the bitmap
      *  ends at the edge of the region.
      *
-     *  When set to BitmapResizeMode.REPEAT, the bitmap
+     *  When set to BitmapResizeMode.REPEAT ("Repeat"), the bitmap
      *  repeats to fill the region.
      *
-     *  When set to BitmapResizeMode.SCALE, the bitmap
+     *  When set to BitmapResizeMode.SCALE ("Scale"), the bitmap
      *  stretches to fill the region.
      *
      *  @default BitmapResizeMode.NORMAL
@@ -171,6 +173,9 @@
         return resizeModeToString(_resizeMode);
     }

+    /**
+     *  @private
+     */
     public function set resizeMode(mode:String):void
     {
         var value:uint = resizeModeToUINT(mode);


Bug 544533: Adobe ASDoc edits are needed for some flash.sampler API content (p=djacowit,r=dschaffe)

--- extensions/Sampler.as
+++ extensions/Sampler.as
@@ -168,6 +168,14 @@
     	 */
     	public native function get object():*;

+        /**
+         * The NewObjectSample object size. If the object has been garbagecollected, this property is
+         * undefined and a corresponding DeleteObjectSample exists. For FlashPlayer debugger version only.
+         * @playerversion Flash 9.0.115.0
+         * @langversion 3.0
+         * @keyword NewObjectSample, NewObjectSample.size, size
+         * @see flash.sampler.DeleteObjectSample
+         */
         public native function get size() : Number;
     };

@@ -433,7 +441,7 @@
     public native function isGetterSetter(obj:Object, qname:QName):Boolean;

    /**
-     * Expose the lexical scope of a Function so that activation objects and with objects and all
+     * Expose the lexical scope of a Function so that activation objects and all
      * captured scope objects can be seen by the profiler as being retained by the Function instance.
      * @param obj A function
      * @return An array containings all the lexical scope elements


Delete fbApplicationNoTUI.as

Delete fbApplicationNoTUI.as

--- fbApplicationNoTUI.as
+++ fbApplicationNoTUI.as
@@ -1,463 +0,0 @@
-package touchAll.demos.tronFiducialsDemo
-{
-	import flash.ui.*;
-	import flash.display.*;
-	//import flash.filters.*;
-	//import flash.events.*;
-	import flash.events.Event;
-	//import flash.events.TouchEvent;
-	import flash.events.MouseEvent;
-	import flash.events.KeyboardEvent;
-	//import flash.events.TransformGestureEvent;
-
-	import org.tuio.*;
-	import org.tuio.connectors.*;
-	import org.tuio.debug.*;
-	import org.tuio.fiducial.*;
-	import org.tuio.gestures.*;
-	import org.tuio.mouse.*;
-	import org.tuio.windows7.*;
-
-	import touchAll.piano.Piano;
-	import touchAll.keyboard.CustomKeyboard;
-	import touchAll.pong.cl.kirill.PongGame;
-
-	/**
-	 * @author Gonçalo Amador
-	 */
-	[SWF(width = "1280", height = "720", frameRate = "60", backgroundColor = "#ffffff")]
-	//[SWF(width = "1280", height = "720", frameRate = "60", backgroundColor = "#000000")]
-	public class ExampleFiducialsDemo extends MovieClip
-	{
-		/* global variables */
-		private var _stage:Stage;
-		private var _width:int = 1280;
-		private var _height:int = 720;
-		private var _color:uint = 0x000000;
-		private var _tm:TuioManager;
-		private var _gm:GestureManager;
-		private var _packets_count:uint = 0;
-		private var _log:String = "";
-		private var _mouseCursor:Sprite;
-		private var _background:Sprite = new Sprite;
-
-		private var _keyboard:CustomKeyboard;
-		private var _pongGame:PongGame;
-		private var _piano:Piano;
-		private var _textColor:uint = 0x8B8B8B;
-		private var _buttonColor:uint = 0x000000;
-		private var _buttonTextColor:uint = 0xFFFFFF;
-		private var _buttonOnColor:uint = 0xBB0000;
-		private var _buttonOffColor:uint = 0x330000;
-		private var _borderColor:uint = 0x000000;
-		private var _white_keys_color:uint = 0xFEFEFE;
-
-		private var _debug:Boolean = true;
-		private var _LCconnector:Boolean = false;
-		private var _UDPconnector:Boolean = true;
-		private var _TCPconnector:Boolean = false;
-		private var _host:String = "127.0.0.1";
-		private var _port:int = 3333;
-		private var _fiducialHandler:Boolean = true;
-		private var _tuioManager:Boolean = true;
-		private var _gestureManager:Boolean = true;
-		private var _mouseToTouch:Boolean = false;
-		private var _tc:TuioClient;
-
-		public function ExampleFiducialsDemo():void
-		{
-			if (stage) init();
-			else addEventListener(Event.ADDED_TO_STAGE, init);
-		}
-
-		private function init(e:Event = null):void
-		{
-			removeEventListener(Event.ADDED_TO_STAGE, init);
-
-			_stage = stage;
-
-			/* LOAD STAGE CONTENT */
-			backgroundLoader();
-			//backgroundEventListenersLoader();
-
-			/* stage set up */
-			stageLoader();
-			stageEventListenersLoader();
-
-			/* tuio set up */
-			tuioLoader();
-		}
-
-		/* BACKGROUND FUNCTIONS */
-		/**
-		 * load default stage background
-		 */
-		public function backgroundLoader():void {
-			/*
-			 * Set blend mode "ALPHA" and
-			 * fill background at the starting position (0,0), with rgb color 0xFFFFFF and alpha blending 1
-			 */
-			_background.blendMode = BlendMode.ALPHA;
-			_background.graphics.beginFill(0xFFFFFF,1);
-			_background.graphics.drawRect(0,0,_stage.stageWidth,_stage.stageHeight);
-			_background.graphics.endFill();
-
-			/* set activate doubleClick mouse checks */
-			trace("set activate doubleClick mouse checks.");
-			_background.doubleClickEnabled = true;
-
-			/* add the background to the stage */
-			trace("add the background to the stage.");
-			_stage.addChild(_background);
-		}
-
-
-		public function backgroundEventListenersLoader():void {
-			trace("backgroundEventListenersLoader.");
-		}
-
-		/**
-		 * stage set up
-		 */
-		public function stageLoader():void {
-			/* STAGE SET UP */
-			trace("STAGE SET UP.");
-			_stage.stageWidth = _width;
-			_stage.stageHeight = _height;
-
-			/* AIR stage settings */
-			trace("AIR stage settings.");
-			//_stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
-			_stage.scaleMode = StageScaleMode.NO_SCALE;
-			_stage.align = StageAlign.TOP_LEFT;
-
-			/* set activate doubleClick mouse checks */
-			trace("set activate doubleClick mouse checks.");
-			_stage.doubleClickEnabled = true;
-
-			/* load an circle to track mouse cursor */
-			trace("load an circle to track mouse cursor.");
-			if (_debug) {
-				addMouseCursor();
-			}
-		}
-
-		/**
-		 * stage event listeners set up
-		 */
-		public function stageEventListenersLoader():void {
-			/* STAGE EVENT LISTENERS */
-			/* add stage keyboard event listeners */
-			trace("add stage keyboard event listeners.");
-			if (_tuioManager) {
-				_stage.addEventListener(KeyboardEvent.KEY_DOWN, showTuioNetworkPacketsLog);
-			}
-
-			/* add stage mouse event listeners */
-			trace("add stage mouse event listeners.");
-			if (_debug) {
-				_stage.addEventListener(MouseEvent.MOUSE_MOVE, followMouse);
-				_stage.addEventListener(MouseEvent.MOUSE_DOWN, mouseDown);
-				_stage.addEventListener(MouseEvent.MOUSE_UP, mouseUp);
-			}
-
-			/* add stage Fiducial (object) event listeners */
-			trace("add stage fiducial event listeners.");
-			_stage.addEventListener(FiducialEvent.ADD, fiducialADD);
-			_stage.addEventListener(FiducialEvent.MOVE, fiducialUPDATE);
-			_stage.addEventListener(FiducialEvent.REMOVED, fiducialREMOVE);
-		}
-
-		/* FIDUCIAL FUNCTIONS */
-		/**
-		 * handle fiducial (Object) add events
-		 */
-		public function fiducialADD(e:FiducialEvent):void {
-			// debug mode console message if FiducialEvent.ADD event captured
-			trace("Fiducial #" + e.fiducialId + " fiducial added.");
-
-			if (e.fiducialId == 0)
-			{
-				/* alternative 1: load keyboard class */
-				_keyboard = new CustomKeyboard(e.x, e.y, 718, 200, e.x, e.y + 220, _buttonTextColor, _buttonColor, _borderColor);
-				//_keyboard.filters = [new GlowFilter(0x0055ff, .75, 100, 100, 2, 2, false, false)];
-
-				_stage.addChild(_keyboard);
-
-				/* alternative 2: load the content of *.swf file */
-				//var _objectLoader:Loader = new Loader;
-				//_objectLoader.load(new URLRequest("CustomKeyboard.swf"));
-				//_stage.addChild(_objectLoader);
-			}
-
-			if (e.fiducialId == 1)
-			{
-				_pongGame = new PongGame(_stage, _borderColor);
-				_pongGame.x = e.x;
-				_pongGame.y = e.y;
-				_stage.addChild(_pongGame);
-			}
-
-			if (e.fiducialId == 2)
-			{
-				_piano = new Piano(_textColor, _buttonTextColor, _buttonOnColor, _buttonOffColor, _white_keys_color);
-				//_piano = new Piano();
-				_piano.x = e.x;
-				_piano.y = e.y;
-				_piano.rotation = 90;
-				_piano.scaleX = 2;
-				_piano.scaleY = 2;
-				_stage.addChild(_piano);
-			}
-		}
-
-		/**
-		 * handle fiducial (Object) remove events
-		 */
-		public function fiducialREMOVE(e:FiducialEvent):void {
-			trace("Fiducial #" + e.fiducialId + " fiducial removed.");
-
-			if (e.fiducialId == 0)
-			{
-				/* alternative 1: remove keyboard class from stage */
-				_stage.removeChild(_keyboard);
-
-				/* alternative 2: remove loaded *.swf file from stage */
-				//_stage.removeChild(_objectLoader);
-			}
-
-			if (e.fiducialId == 1)
-			{
-				_pongGame.stopGame();
-				_stage.removeChild(_pongGame);
-			}
-
-			if (e.fiducialId == 2)
-			{
-				_stage.removeChild(_piano);
-			}
-		}
-
-		/**
-		 * handle fiducial (Object) move events
-		 */
-		public function fiducialUPDATE(e:FiducialEvent):void {
-			trace("Fiducial #" + e.fiducialId + " fiducial move.");
-
-			if (e.fiducialId == 0) {
-				_keyboard.update(e.x, e.y, e.x, e.y + 220);
-			}
-
-			if (e.fiducialId == 1) {
-				_pongGame.x = e.x;
-				_pongGame.y = e.y;
-			}
-
-			if (e.fiducialId == 2)
-			{
-				_piano.x = e.x;
-				_piano.y = e.y;
-			}
-		}
-
-		/**
-		 * tuio set up
-		 */
-		public function tuioLoader():void {
-			//var _tc:TuioClient;
-
-			/* tuio client setup (a LC/UDP/TCP socket that connects to the server '_host' using port '_port') creation */
-			if (_LCconnector) {
-				trace("tuioClient LC connector.")
-				_tc = new TuioClient(new LCConnector());
-			}
-
-			if (_TCPconnector) {
-				trace("tuioClient TCP connector.")
-				_tc = new TuioClient(new TCPConnector(_host, _port));
-			}
-
-			if (_UDPconnector) {
-				trace("tuioClient UDP connector.")
-				_tc = new TuioClient(new UDPConnector(_host, _port));
-			}
-
-			/* optional: activate tuio fiducial capture events */
-			if (_fiducialHandler) {
-				trace("fiducial Handler on.")
-				var fiducialDispatcher:TuioFiducialDispatcher = TuioFiducialDispatcher.init(_stage);
-				_tc.addListener(fiducialDispatcher);
-			}
-
-			/* optional: activate tuio debug mode to display touches */
-			if (_debug) {
-				trace("tuioDebug on.")
-				_tc.addListener(TuioDebug.init(_stage));
-			}
-
-			/* tuioManager setup (a container which processes the Tuio tracking data received by the given TuioClient) creation */
-			//if (_tuioManager) {
-			if (_tuioManager) {
-				trace("tuioManager on.")
-				_tm = TuioManager.init(_stage, _tc);
-				//_tm.touchTargetDiscoveryMode = TuioManager.TOUCH_TARGET_DISCOVERY_NONE
-
-				/* add tuioManager tuio event listeners */
-				_tm.addEventListener(TuioEvent.ADD, packetsCount);
-				_tm.addEventListener(TuioEvent.REMOVE, packetsCount);
-				_tm.addEventListener(TuioEvent.UPDATE, packetsCount);
-			}
-
-			/* optional: treat Gestures */
-			if (_gestureManager) {
-				trace("gestureManager on.")
-				_gm = GestureManager.init(_stage, _tc);
-				//_gm.touchTargetDiscoveryMode = GestureManager.TOUCH_TARGET_DISCOVERY_NONE;
-
-				GestureManager.addGesture(new DragGesture());
-				GestureManager.addGesture(new ZoomGesture());
-				GestureManager.addGesture(new RotateGesture());
-
-				//GestureManager.addGesture(new ScrollGesture());
-				GestureManager.addGesture(new PressTapGesture());
-				GestureManager.addGesture(new OneDownOneMoveGesture());
-			}
-
-			/* optional: treat MouseEvents also as TouchEvents */
-			if (_mouseToTouch) {
-				var mouseToTouch:MouseToTouchDispatcher = new MouseToTouchDispatcher(_stage);
-			}
-
-			/* optional: convert the native TouchEvents into tuio TouchEvents */
-			//var winTouch:Windows7TouchToTuioDispatcher = new Windows7TouchToTuioDispatcher(_stage,false,false);
-
-			/* optional: dispatch the events by using the TuioManager */
-			//var winTouch:Windows7TouchToTuioDispatcher = new Windows7TouchToTuioDispatcher(_stage,true,false);
-		}
-
-		/**
-		 * Show total tuio events captured log
-		 */
-		private function packetsCount(e:TuioEvent):void {
-			var date:Date = new Date();
-			_packets_count++;
-
-			_log += _packets_count + " Packet captured TuioEvent at " + date.fullYear;
-
-			if ((date.month + 1) < 10) {
-				_log += "-0" + (date.month + 1);
-			}
-			else {
-				_log += "-" + (date.month + 1);
-			}
-
-			if (date.date < 10) {
-				_log += "-0" + date.date;
-			}
-			else {
-				_log += "-" + date.date;
-			}
-
-			if (date.hours < 10) {
-				_log += " 0" + date.hours;
-			}
-			else {
-				_log += " " + date.hours;
-			}
-
-			if (date.minutes < 10) {
-				_log += ":0" + date.minutes;
-			}
-			else {
-				_log += ":" + date.minutes;
-			}
-
-			if (date.seconds < 10) {
-				_log += ":0" + date.seconds;
-			}
-			else {
-				_log += ":" + date.seconds;
-			}
-
-			if (date.milliseconds < 10) {
-				_log += ".00" + date.milliseconds;
-			} else if (date.milliseconds < 100) {
-				_log += ".0" + date.milliseconds;
-			}
-			else {
-				_log += "." + date.milliseconds;
-			}
-
-			_log += "\n";
-		}
-
-		/**
-		 * handle stage "F1" keyboard events
-		 */
-		private function showTuioNetworkPacketsLog(e:KeyboardEvent):void {
-			if (e.keyCode == Keyboard.F1) {
-				trace("touch hold.");
-				trace(_log);
-				trace("Packets captured " + _packets_count + "\n");
-			}
-		}
-
-		/* MOUSE CURSOR FUNCTIONS */
-		/**
-		 * display a circle where mouse cursor is
-		 */
-		private function addMouseCursor():void {
-			/* Create a Sprite instance called _mouseCursor */
-			_mouseCursor = new Sprite;
-
-			/*
-			 * Set blend mode "DARKEN" and
-			 * fill a circle at the starting position (0,0) of radius 5, with rgb color '_color' and alpha blending 1 or
-			 * draw a circle with line thickness 1.1, with rgb color '_color' and alpha blending 1.
-			 */
-			//_mouseCursor.blendMode = BlendMode.DARKEN;
-			//_mouseCursor.graphics.beginFill(0x770000, 1);
-			_mouseCursor.graphics.lineStyle(1.1, _color, 1, false, LineScaleMode.NONE);
-			_mouseCursor.graphics.drawCircle(0, 0, 20);
-			//_mouseCursor.graphics.endFill();
-
-			/* set circle center at mouse coursor position */
-			_mouseCursor.x = _mouseCursor.mouseX;
-			_mouseCursor.y = _mouseCursor.mouseY;
-
-			/* set circle visibility default value */
-			_mouseCursor.visible = false;
-
-			/* add the circle to the stage */
-			_stage.addChild(_mouseCursor);
-		}
-
-		/**
-		 * handle mouse movement events for the circle
-		 */
-		private function followMouse(e:MouseEvent):void {
-			if (_mouseCursor != null) {
-				_mouseCursor.x = _stage.mouseX;
-				_mouseCursor.y = _stage.mouseY;
-			}
-		}
-
-		/**
-		 * handle mouse down events for circle
-		 */
-		private function mouseDown(e:MouseEvent):void {
-			if (_mouseCursor != null) {
-				_mouseCursor.visible = true;
-			}
-		}
-
-		/**
-		 * handle mouse up events for circle
-		 */
-		private function mouseUp(e:MouseEvent):void {
-			if (_mouseCursor != null) {
-				_mouseCursor.visible = false;
-			}
-		}
-	}
-}


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

--- frameworks/projects/framework/src/mx/core/UIComponentDescriptor.as
+++ frameworks/projects/framework/src/mx/core/UIComponentDescriptor.as
@@ -0,0 +1,180 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2003-2006 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.core
+{
+
+/**
+ *  A UIComponentDescriptor instance encapsulates the information that you
+ *  specified in an MXML tag for an instance of a visual component.
+ *
+ *
Most of the tags in an MXML file describe a tree of UIComponent objects.
+ *  For example, the <mx:Application> tag represents a
+ *  UIComponent object, and its child containers and controls are all
+ *  UIComponent objects.

+ *
+ *
The MXML compiler compiles each of these MXML tags into a
+ *  UIComponentDescriptor instance.
+ *  To be precise, the MXML compiler autogenerates an ActionScript
+ *  data structure which is a tree of UIComponentDescriptor objects.

+ *
+ *
At runtime, the createComponentsFromDescriptors() method
+ *  of the Container class uses the information in the UIComponentDescriptor
+ *  objects in the container's childDescriptors array to create
+ *  the actual UIComponent objects that are the container's children,
+ *  plus deeper descendants as well.
+ *  Depending on the value of the container's creationPolicy,
+ *  property, the descendants might be created at application startup,
+ *  when some part of the component is about to become visible,
+ *  or when the application developer manually calls
+ *  the createComponentsFromDescriptors() method.

+ *
+ *
You do not typically create UIComponentDescriptor instances yourself;
+ *  you can access the ones that the MXML compiler autogenerates via the
+ *  childDescriptors array of the Container class.

+ *
+ *  @see mx.core.Container#childDescriptors
+ *  @see mx.core.Container#creationPolicy
+ *  @see mx.core.Container#createComponentsFromDescriptors()
+ */
+public class UIComponentDescriptor extends ComponentDescriptor
+{
+    include "../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     *
+     *  @param descriptorProperties An Object containing name/value pairs
+	 *  for the  properties of the UIComponentDescriptor object, such as its
+	 *  type, id, propertiesFactory,
+	 *  events, stylesFactory,
+	 *  and effects.
+     */
+    public function UIComponentDescriptor(descriptorProperties:Object)
+    {
+        super(descriptorProperties);
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  effects
+    //----------------------------------
+
+    /**
+     *  An Array containing the effects for the component, as specified in MXML.
+     *
+     *
For example, if you write the following code:

+	 *
+     *

+	 *  <mx:TextInput showEffect="Fade" hideEffect="Fade"/>

+	 *
+     *
The descriptor's effects property is the Array
+     *  [ "showEffect", "hideEffect" ].

+     *
+     *
The effectsproperty is null
+	 *  if no MXML effects were specified for the component.

+	 *
+	 *
Note that the values of the effect attributes are not specified
+	 *  in this property.
+	 *  Instead, effects are treated like styles and therefore are include
+	 *  in the stylesFactory property.
+	 *  The effect Array simply keeps track of which styles
+	 *  in the stylesFactory are actually effects.

+	 *
+     *
This property is used by the Container method
+	 *  createComponentsFromDescriptors()
+	 *  to register the effects with the EffectManager.

+     */
+    public var effects:Array;
+
+	//----------------------------------
+	//  instanceIndices
+	//----------------------------------
+
+	/**
+	 *  @private
+	 */
+	mx_internal var instanceIndices:Array /* of int */;
+
+	//----------------------------------
+	//  repeaterIndices
+	//----------------------------------
+
+	/**
+	 *  @private
+	 */
+	mx_internal var repeaterIndices:Array /* of int */;
+
+	//----------------------------------
+	//  repeaters
+	//----------------------------------
+
+	/**
+	 *  @private
+	 */
+	mx_internal var repeaters:Array /* of Repeater */;
+
+    //----------------------------------
+    //  stylesFactory
+    //----------------------------------
+
+    /**
+     *  A Function that constructs an Object containing name/value pairs
+	 *  for the instance styles for the component, as specified in MXML.
+	 *
+	 *
For example, if you write the following code:

+	 *
+     *

+	 *  <mx:TextInput borderColor="0x888888" color="0xDDDDDD"/>

+	 *
+	 *
Then the descriptors' stylesFactory property
+	 *  is the Function:

+	 *
+     *

+	 *  function():void { this.borderColor = 0x888888; this.color = 0xDDDDDD };

+	 *
+     *
The stylesFactory property is null
+	 *  if no MXML styles were specified for the component instance.

+     */
+    public var stylesFactory:Function;
+
+    //--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------
+
+	/**
+     *  @private
+	 *  Returns the string "UIComponentDescriptor_" plus the value of the
+	 *  UIComponentDescriptor object's id property.
+	 *
+	 *  @return The string "UIComponentDescriptor_" plus the value of the
+	 *  UIComponentDescriptor object's id property.
+	 */
+    override public function toString():String
+    {
+        return "UIComponentDescriptor_" + id;
+    }
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 5647
Author:   pfarland@adobe.com
Date:     2009-03-27T13:59:54.760468Z

Log Message:
-----------
Fixing programmatic usages of 'mx.components' to the spark equivalent after the rename.

Also fixing calls to StyleManager.getStyleDeclaration() that use an unqualified type name. Type selectors should be referenced via fully qualified ActionScript class names at runtime. When compatibility version is set to 3, getStyleDeclaration will remove the package name to match type selectors in the legacy unqualified manner.

QE: This fixes bug SDK-20253, and potentially a few other edge cases like the CursorManager RTE.
Doc: No
Checkintests: Pass

Bugs:
SDK-20253 - [rename_work] Spark RadioButton and CheckBox focus ring now highlights the label of the RadioButton

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/FocusSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/printing/FlexPrintJob.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/halo/src/mx/skins/halo/BusyCursor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/CursorManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/DragManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/haloclassic/src/haloclassic/BusyCursor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/NativeDragManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/BusyCursor.as</path>

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

--- frameworks/projects/framework/src/mx/managers/CursorManagerImpl.as
+++ frameworks/projects/framework/src/mx/managers/CursorManagerImpl.as
@@ -107,10 +107,10 @@
 		sandboxRoot.dispatchEvent(me);
 		// trace("<---update request for CursorManagerImpl", sm);

-		// If available, get soft-link to the TextView class to use in mouseMoveHandler().
+		// If available, get soft-link to the RichEditableText class to use in mouseMoveHandler().
         // ToDo: revisit the correct way to do this for modules.
-        if (ApplicationDomain.currentDomain.hasDefinition("mx.components.TextView"))
-            textViewClass = Class(ApplicationDomain.currentDomain.getDefinition("mx.components.TextView"));
+        if (ApplicationDomain.currentDomain.hasDefinition("spark.components.RichEditableText"))
+            textViewClass = Class(ApplicationDomain.currentDomain.getDefinition("spark.components.RichEditableText"));
     }

     //--------------------------------------------------------------------------
@@ -585,7 +585,7 @@
 		}

         var cursorManagerStyleDeclaration:CSSStyleDeclaration =
-            StyleManager.getStyleDeclaration("CursorManager");
+            StyleManager.getStyleDeclaration("mx.managers.CursorManager");

         var busyCursorClass:Class =
             cursorManagerStyleDeclaration.getStyle("busyCursor");