Transferred from the Adobe Open Source Subversion Repository

Revision: 18432
Author:   dloverin@adobe.com
Date:     2010-11-03T20:02:02.380580Z

Log Message:
-----------
Initial check-in for RSL Sharing Among Modules Feature

QE notes: testable but not PARB'd
Doc notes: None.
Bugs: SDK-27917
Reviewer: Alex
Tests run: cylone server, checkintests
Is noteworthy for integration: No.

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/CrossDomainRSLItem.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/modules/compiler/src/java/flex2/compiler/config/ConfigurationException_en.properties</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/ApplicationDomainTarget.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/modules/compiler/src/java/flex2/configuration_en.properties</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/modules/compiler/src/java/flex2/tools/PreLink.java</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/modules/compiler/src/java/flex2/compiler/config/ConfigurationException.java</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/IFlexModuleFactory.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/modules/compiler/src/java/flex2/compiler/common/RuntimeSharedLibrarySettingsConfiguration.java</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/RSLData.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/FlexModuleFactory.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/utils/LoaderUtil.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/tools/dependencychecker/flex/tools/dependencychecker/FrameworkSwcDependencyRules.java</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/events/RSLEvent.as</path>

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

--- frameworks/projects/framework/src/mx/core/RSLData.as
+++ frameworks/projects/framework/src/mx/core/RSLData.as
@@ -12,7 +12,6 @@
 package mx.core
 {

-
 [ExcludeClass]

 /**
@@ -39,7 +38,9 @@
     public function RSLData(url:String = null, policyFileUrl:String = null,
                             digest:String = null, hashType:String = null,
                             isSigned:Boolean = false,
-                            verifyDigest:Boolean = false)
+                            verifyDigest:Boolean = false,
+                            applicationDomainTarget:String = "default",
+                            moduleFactory:IFlexModuleFactory = null)
     {
         super();

@@ -49,6 +50,8 @@
         this.hashType = hashType;
         this.isSigned = isSigned;
         this.verifyDigest = verifyDigest;
+        this.applicationDomainTarget = applicationDomainTarget;
+        this.moduleFactory = moduleFactory;
     }

     //--------------------------------------------------------------------------
@@ -58,27 +61,22 @@
     //--------------------------------------------------------------------------

     //----------------------------------
-    //  url
-    //----------------------------------
-
-    /**
-     *  @private
-     *
-     *  Location of the RSL. The URL can be absolute or relative to the
-     *  application or module.
-     */
-    public var url:String;
-
-    //----------------------------------
-    //  policy file url
+    //  applicationDomainTarget
     //----------------------------------

     /**
      *  @private
      *
-     *  Location of the policy file.
+     *  The requested application domain to load the RSL into.
+     *
One of the following:
+     *

+     *
"default"
+     *
"current"
+     *
"parent"
+     *
"top-level"
+     *

      */
-    public var policyFileUrl:String;
+    public var applicationDomainTarget:String;

     //----------------------------------
     //  digest
@@ -98,8 +96,8 @@
     /**
      *  @private
      *
-     *  The type of hash used to create the RSL. This is null for an RSL
-     *  without a digest.
+     *  The type of hash used to create the RSL digest. This is null for an RSL
+     *  without a digest. The only supported hash type is SHA256.TYPE_ID.
      */
     public var hashType:String;

@@ -115,9 +113,46 @@
     public var isSigned:Boolean;

     //----------------------------------
+    //  moduleFactory
+    //----------------------------------
+
+    /**
+     *  @private
+     *
+     *  Non-null if this RSL should be loaded into an application
+     *  domain other than the application domain associated with the
+     *  module factory performing the load. If null, then load into
+     *  the current application domain.
+     */
+    public var moduleFactory:IFlexModuleFactory;
+
+   //----------------------------------
+    //  policy file url
+    //----------------------------------
+
+    /**
+     *  @private
+     *
+     *  Location of the policy file.
+     */
+    public var policyFileUrl:String;
+
+    //----------------------------------
+    //  url
+    //----------------------------------
+
+    /**
+     *  @private
+     *
+     *  Location of the RSL. The URL can be absolute or relative to the
+     *  application or module.
+     */
+    public var url:String;
+
+    //----------------------------------
     //  verifyDigest
     //----------------------------------
-
+
     /**
      *  @private
      *
@@ -125,6 +160,6 @@
      *  False allows the RSL to be loaded without verification.
      */
     public var verifyDigest:Boolean;
-
+
 }
 }


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

--- frameworks/projects/advancedgrids/src/mx/controls/advancedDataGridClasses/AdvancedDataGridBaseSelectionPending.as
+++ frameworks/projects/advancedgrids/src/mx/controls/advancedDataGridClasses/AdvancedDataGridBaseSelectionPending.as
@@ -0,0 +1,198 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2009 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.controls.advancedDataGridClasses
+{
+
+import mx.collections.CursorBookmark;
+
+[ExcludeClass]
+
+/**
+ *  @private
+ *  The object that we use to store seek data
+ *  that was interrupted by an ItemPendingError.
+ *  Used when trying to match a selectedIndex to a selectedItem
+ */
+public class AdvancedDataGridBaseSelectionPending
+{
+	include "../../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Constructor
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Constructor.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public function AdvancedDataGridBaseSelectionPending(index:int,
+                                            anchorIndex:int,
+                                            columnIndex:int,
+                                            anchorColumnIndex:int,
+											stopData:Object,
+											transition:Boolean,
+											placeHolder:CursorBookmark,
+											bookmark:CursorBookmark,
+											offset:int)
+	{
+		super();
+
+		this.index       = index;
+		this.anchorIndex = anchorIndex;
+		this.columnIndex = columnIndex;
+		this.stopData    = stopData;
+		this.transition  = transition;
+		this.placeHolder = placeHolder;
+		this.bookmark    = bookmark;
+		this.offset      = offset;
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Properties
+	//
+	//--------------------------------------------------------------------------
+
+	//----------------------------------
+	//  bookmark
+	//----------------------------------
+
+	/**
+	 *  The bookmark we have to seek to
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public var bookmark:CursorBookmark;
+
+	//----------------------------------
+	//  index
+	//----------------------------------
+
+	/**
+	 *  The index into the iterator when we hit the page fault
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public var index:int;
+
+	//----------------------------------
+	//  anchorIndex
+	//----------------------------------
+
+	/**
+	 *  The row position of the anchor
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public var anchorIndex:int;
+
+	//----------------------------------
+	//  columnIndex
+	//----------------------------------
+
+	/**
+	 *  The current column
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public var columnIndex:int;
+
+	//----------------------------------
+	//  anchorColumnIndex
+	//----------------------------------
+
+	/**
+	 *  The column position of the anchor
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public var anchorColumnIndex:int;
+
+	//----------------------------------
+	//  offset
+	//----------------------------------
+
+	/**
+	 *  The offset from the bookmark we have to seek to
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public var offset:int;
+
+	//----------------------------------
+	//  placeHolder
+	//----------------------------------
+
+	/**
+	 *  The bookmark we have to restore after we're done
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public var placeHolder:CursorBookmark;
+
+	//----------------------------------
+	//  stopData
+	//----------------------------------
+
+	/**
+	 *  The data of the current item, which is the thing we are looking for.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public var stopData:Object;
+
+	//----------------------------------
+	//  transition
+	//----------------------------------
+
+	/**
+	 *  Whether to tween in the visuals
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public var transition:Boolean;
+}
+
+}


:retab

:retab

--- src/tiramisu.as
+++ src/tiramisu.as
@@ -85,9 +85,9 @@
     if (btns == null) {
         return;
     }
-	if (active == 'chanlist') {
-		return;
-	}
+    if (active == 'chanlist') {
+        return;
+    }
     btnbar.height = cmdline.y+cmdline.height-topic.y-1;
     var tmpw:Number = 0;
     for each(var tmpb:SideButton in btns) {
@@ -177,10 +177,10 @@
         addstab('unhandled');
     }
     addstab('status');
-	addstab('chanlist');
-	btns[uniqueidx-1].updatebtninit(chanlistupdate);
-	cl.addEventListener('doubleClick',chanlistclick);
-	setTimeout(clupdater,500);
+    addstab('chanlist');
+    btns[uniqueidx-1].updatebtninit(chanlistupdate);
+    cl.addEventListener('doubleClick',chanlistclick);
+    setTimeout(clupdater,500);
     tabswitch('status');
     addEventListener('keyDown',keylistener);
     addEventListener('mouseMove',mouselistener);
@@ -191,18 +191,18 @@
 }

 internal function clupdater():void {
-	if (clupdate) {
-		cl.dataProvider = chanlist;
-		cl.columns[1].sortDescending = true;
-		cl.dispatchEvent(new DataGridEvent(DataGridEvent.HEADER_RELEASE,false,false,1));
-	}
-	setTimeout(clupdater,500);
+    if (clupdate) {
+        cl.dataProvider = chanlist;
+        cl.columns[1].sortDescending = true;
+        cl.dispatchEvent(new DataGridEvent(DataGridEvent.HEADER_RELEASE,false,false,1));
+    }
+    setTimeout(clupdater,500);
 }

 internal function chanlistclick(e:Event):void {
-	if (cl.selectedItem != null) {
-		swrite('JOIN '+cl.selectedItem.channel);
-	}
+    if (cl.selectedItem != null) {
+        swrite('JOIN '+cl.selectedItem.channel);
+    }
 }

 internal function mouselistener(e:MouseEvent):void {
@@ -985,29 +985,29 @@
                 case 'ERROR':
                     scmsg = trailing;
                     break;
-				case '321':
-					chanlist = new Array();
-					clupdate = true;
-					break;
-				case '322':
-					var tmpchan:Object = new Object();
-					tmpchan.channel = params[0];
-					tmpchan.users = int(params[1]);
-					if (trailing.indexOf('[+') == 0) {
-						tmpchan.modes = trailing.slice(1,trailing.indexOf(']'));
-						tmpchan.topic = cc(trailing.slice(trailing.indexOf(']')+1));
-					} else {
-						tmpchan.modes = '';
-						tmpchan.topic = cc(trailing);
-					}
-					chanlist.push(tmpchan);
-					break;
-				case '323':
-					clupdate = false;
-					cl.dataProvider = chanlist;
-					cl.columns[1].sortDescending = true;
-					cl.dispatchEvent(new DataGridEvent(DataGridEvent.HEADER_RELEASE,false,false,1));
-					break;
+                case '321':
+                    chanlist = new Array();
+                    clupdate = true;
+                    break;
+                case '322':
+                    var tmpchan:Object = new Object();
+                    tmpchan.channel = params[0];
+                    tmpchan.users = int(params[1]);
+                    if (trailing.indexOf('[+') == 0) {
+                        tmpchan.modes = trailing.slice(1,trailing.indexOf(']'));
+                        tmpchan.topic = cc(trailing.slice(trailing.indexOf(']')+1));
+                    } else {
+                        tmpchan.modes = '';
+                        tmpchan.topic = cc(trailing);
+                    }
+                    chanlist.push(tmpchan);
+                    break;
+                case '323':
+                    clupdate = false;
+                    cl.dataProvider = chanlist;
+                    cl.columns[1].sortDescending = true;
+                    cl.dispatchEvent(new DataGridEvent(DataGridEvent.HEADER_RELEASE,false,false,1));
+                    break;
                 case 'KILL':
                 case '436':
                     achans = new Array();
@@ -1788,7 +1788,7 @@
 }

 internal function chanlistupdate(updatesrc:String,b:SideButton):void {
-	swrite('LIST');
+    swrite('LIST');
 }

 internal function closetab(closesrc:String,cb:SideButton):void {
@@ -2099,8 +2099,8 @@
         }
     } else if ((active == 'debug') || (active == 'unhandled') || (active == 'status')) {
         currentState = '';
-	} else if (active == 'chanlist') {
-		currentState = 'list';
+    } else if (active == 'chanlist') {
+        currentState = 'list';
     } else {
         currentState = 'query';
     }


Add URL auto-loading support to the chromeless player

The "url" flashvar now allows the chromeless player to automatically load and play the specified URL.
This allows the player to be used without any JavaScript.

--- src/org/mangui/chromeless/ChromelessPlayer.as
+++ src/org/mangui/chromeless/ChromelessPlayer.as
@@ -31,6 +31,8 @@
         /** current media position */
         private var _media_position : Number;
         private var _duration : Number;
+	/** URL autoload feature */
+	private var _autoLoad : Boolean = false;

         /** Initialization. **/
         public function ChromelessPlayer() {
@@ -122,6 +124,11 @@

         private function _manifestHandler(event : HLSEvent) : void {
             _duration = event.levels[0].duration;
+
+            if (_autoLoad) {
+                _play();
+            }
+
             if (ExternalInterface.available) {
                 ExternalInterface.call("onManifest", event.levels[0].duration);
             }
@@ -398,6 +405,12 @@
             }
             stage.removeEventListener(StageVideoAvailabilityEvent.STAGE_VIDEO_AVAILABILITY, _onStageVideoState);
             // addChild(new TheMiner());
+
+            var autoLoadUrl : String = root.loaderInfo.parameters.url as String;
+            if (autoLoadUrl != null) {
+                _autoLoad = true;
+                _load(autoLoadUrl);
+            }
         };

         private function _onStageResize(event : Event) : void {


Add loadUrl method

Add loadUrl method


Bug 706799: refactor code to throw specific exception when code exhausted (r=fklockii).

--- utils/abcdump.as
+++ utils/abcdump.as
@@ -325,6 +325,11 @@
         var name
     }

+    class ByteArrayExhaustedError extends Error
+    {
+        function ByteArrayExhaustedError(e) { super(e); }
+    }
+
     class MethodInfo extends MemberInfo
     {
         var method_id:int
@@ -399,7 +404,7 @@
                     var start:int = code.position
                     var s = indent + start
                     while (s.length < 12) s += ' ';
-                    var opcode = code.readUnsignedByte()
+                    var opcode = code_readUnsignedByte()

                     if (opcode == OP_label || ((code.position-1) in labels)) {
                         dumpPrint(indent)
@@ -511,9 +516,9 @@
                             s += readU32()
                             break
                         case OP_debug:
-                            s += code.readUnsignedByte()
+                            s += code_readUnsignedByte()
                             s += " " + readU32()
-                            s += " " + code.readUnsignedByte()
+                            s += " " + code_readUnsignedByte()
                             s += " " + readU32()
                             break;
                         case OP_newobject:
@@ -530,7 +535,7 @@
                             break;
                         case OP_pushbyte:
                         case OP_getscopeobject:
-                            s += code.readByte()
+                            s += code_readByte()
                             break;
                         case OP_hasnext2:
                             s += readU32() + " " + readU32()
@@ -558,27 +563,43 @@

         function readU32():int
         {
-            var result:int = code.readUnsignedByte();
+            var result:int = code_readUnsignedByte();
             if (!(result & 0x00000080))
                 return result;
-            result = result & 0x0000007f | code.readUnsignedByte()<<7;
+            result = result & 0x0000007f | code_readUnsignedByte()<<7;
             if (!(result & 0x00004000))
                 return result;
-            result = result & 0x00003fff | code.readUnsignedByte()<<14;
+            result = result & 0x00003fff | code_readUnsignedByte()<<14;
             if (!(result & 0x00200000))
                 return result;
-            result = result & 0x001fffff | code.readUnsignedByte()<<21;
+            result = result & 0x001fffff | code_readUnsignedByte()<<21;
             if (!(result & 0x10000000))
                 return result;
-            return   result & 0x0fffffff | code.readUnsignedByte()<<28;
+            return   result & 0x0fffffff | code_readUnsignedByte()<<28;
         }

         function readS24():int
         {
-            var b:int = code.readUnsignedByte()
-            b |= code.readUnsignedByte()<<8
-            b |= code.readByte()<<16
+            var b:int = code_readUnsignedByte()
+            b |= code_readUnsignedByte()<<8
+            b |= code_readByte()<<16
             return b
+        }
+
+        function code_readUnsignedByte():int
+        {
+            if (code.bytesAvailable > 0)
+                return code.readUnsignedByte();
+            else
+                throw new ByteArrayExhaustedError("code exhausted");
+        }
+
+        function code_readByte():int
+        {
+            if (code.bytesAvailable > 0)
+                return code.readByte();
+            else
+                throw new ByteArrayExhaustedError("code exhausted");
         }
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 16064
Author:   chaase@adobe.com
Date:     2010-05-12T15:37:49.345162Z

Log Message:
-----------
Initial checkin of "true autoReverse" feature. This feature adds no new API, but does add new behavior to the existing autoReverse property on Transition. Now, if autoReverse="true", any transition declared from/to the opposite states of the currently-requested state change can be used as a transition for this state change, played in reverse. This essentially means that you can author a single reverse for a forward direction and have the system play that transition in reverse for the opposite direction. Previously, you needed to author both directions, and take care to make them symmetric, in order to get them to play correctly when reversing in the middle. Note that if you author a *-to-* Transition (any to any), the new reversing behavior does nothing for you, because there is no way for the system to detect the forward (and thus the reverse) direction, so that transition will always play in the declared direction.
The main functionality needed to get this working was bolstering the currentSupport for playReversedFromEnd that already existed in Effect (along with the playReversed functionality in effect instances). There was also some timing engine details in Animation to make it work correctly, especially with startDelay.
Some work was done to make Fade work correctly when playing in reverse, though there is still a problem with some of the auto-fade functionality (fading items because of visible/parent changes between states) when the Fade effect has a startDelay.

QE notes: Tested on existing effects tests to make sure new behavior didn't break anything. But need new tests specifically around this new behavior.
Doc notes: Added new docs to Transition.autoReverse to describe the new behavior
Bugs: None
Reviewer: Corey
Tests run: checkintests, Mustella spark/effects, mx/effects
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Effect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/supportClasses/AnimateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Animate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/animation/Animation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/supportClasses/FadeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/states/Transition.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/SequenceInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/ParallelInstance.as</path>

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

--- frameworks/projects/spark/src/spark/effects/supportClasses/AnimateInstance.as
+++ frameworks/projects/spark/src/spark/effects/supportClasses/AnimateInstance.as
@@ -546,8 +546,6 @@
         animation.animationTarget = this;
         animation.motionPaths = motionPaths;

-        if (_seekTime > 0)
-            animation.playheadTime = _seekTime;
         if (reverseAnimation)
             animation.playReversed = true;
         animation.interpolator = interpolator;
@@ -558,6 +556,8 @@
         animation.startDelay = startDelay;

         animation.play();
+        if (_seekTime > 0)
+            animation.playheadTime = _seekTime;
     }

     /**
@@ -639,7 +639,7 @@
                     // current values of the objects, from getCurrentValue(), may be
                     // set to the end values of that previous transition, so we do not
                     // want those values for the animation
-                    if (Effect(effect).transitionInterruption &&
+                    if ((playReversed || Effect(effect).transitionInterruption) &&
                         propertyChanges &&
                         propertyChanges.start[motionPath.property] !== undefined)
                     {
@@ -896,10 +896,18 @@
             {
                 var parentStart:* = propertyChanges.start["parent"];
                 var parentEnd:* = propertyChanges.end["parent"];
+                if (playReversed)
+                {
+                    var tmp:* = parentStart;
+                    parentStart = parentEnd;
+                    parentEnd = tmp;
+                }
                 if (parentStart && !parentEnd &&
                     (parentStart is IVisualElementContainer || parentStart is SystemManager))
                 {
-                    var startIndex:* = propertyChanges.start["index"];
+                    var startIndex:* = !playReversed ?
+                        propertyChanges.start["index"] :
+                        propertyChanges.end["index"];
                     if (parentStart is IVisualElementContainer)
                     {
                         var startContainer:IVisualElementContainer =
@@ -955,8 +963,14 @@
             // the same target
             if ("parent" in target && target.parent)
             {
-                var parentStart:* = propertyChanges.start["parent"];;
-                var parentEnd:* = propertyChanges.end["parent"];;
+                var parentStart:* = propertyChanges.start["parent"];
+                var parentEnd:* = propertyChanges.end["parent"];
+                if (playReversed)
+                {
+                    var tmp:* = parentStart;
+                    parentStart = parentEnd;
+                    parentEnd = tmp;
+                }
                 if (parentStart && !parentEnd)
                 {
                     if (parentStart is IVisualElementContainer)


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

--- frameworks/projects/airspark/src/spark/components/WindowedApplication.as
+++ frameworks/projects/airspark/src/spark/components/WindowedApplication.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 spark.components
 {


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

--- frameworks/projects/charts/src/mx/charts/chartClasses/DataDescription.as
+++ frameworks/projects/charts/src/mx/charts/chartClasses/DataDescription.as
@@ -0,0 +1,200 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2009 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.charts.chartClasses
+{
+
+/**
+ *  The DataDescription structure is used by ChartElements to describe
+ *  the characteristics of the data they represent to Axis objects
+ *  that auto-generate values from the data represented in the chart.
+ *	ChartElements displaying data should construct and return DataDescriptions
+ *  from their describeData() method when invoked.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+public class DataDescription
+{
+    include "../../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Class constants
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  A bitflag passed by the axis to an element's describeData() method.
+	 *  If this flag is set, the element sets the
+	 *  boundedValues property.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public static const REQUIRED_BOUNDED_VALUES:uint = 0x2;
+
+	/**
+	 *  A bitflag passed by the axis to an element's describeData() method.
+	 *  If this flag is set, the element sets the
+	 *  minInterval property.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public static const REQUIRED_MIN_INTERVAL:uint = 0x1;
+
+	/**
+	 *  A bitflag passed by the axis to an element's describeData() method.
+	 *  If this flag is set, the element sets the
+	 *  DescribeData.min and DescribeData.max properties.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public static const REQUIRED_MIN_MAX:uint = 0x4;
+
+	/**
+	 *  A bitflag passed by the axis to an element's describeData() method.
+	 *  If this flag is set, the element sets the
+	 *  DescribeData.padding property.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public static const REQUIRED_PADDING:uint = 0x8;
+
+	//--------------------------------------------------------------------------
+	//
+	//  Constructor
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Constructor.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public function DataDescription()
+	{
+		super();
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Properties
+	//
+	//--------------------------------------------------------------------------
+
+	//----------------------------------
+	//  boundedValues
+	//----------------------------------
+
+	[Inspectable(environment="none")]
+
+	/**
+	 *  An Array of BoundedValue objects describing the data in the element.
+	 *  BoundedValues are data points that have extra space reserved
+	 *  around the datapoint in the chart's data area.
+	 *  If requested, a chart element fills this property
+	 *  with whatever BoundedValues are necessary
+	 *  to ensure enough space is visible in the chart data area.
+	 *  For example, a ColumnSeries that needs 20 pixels
+	 *  above each column to display a data label.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public var boundedValues:Array /* of BoundedValue */;
+
+	//----------------------------------
+	//  max
+	//----------------------------------
+
+	[Inspectable(environment="none")]
+
+	/**
+	 *  The maximum data value displayed by the element.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public var max:Number;
+
+	//----------------------------------
+	//  min
+	//----------------------------------
+
+	[Inspectable(environment="none")]
+
+	/**
+	 *  The minimum data value displayed by the element.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public var min:Number;
+
+	//----------------------------------
+	//  minInterval
+	//----------------------------------
+
+	[Inspectable(environment="none")]
+
+	/**
+	 *  The minimum interval, in data units,
+	 *  between any two values displayed by the element.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public var minInterval:Number;
+
+	//----------------------------------
+	//  padding
+	//----------------------------------
+
+	[Inspectable(environment="none")]
+
+	/**
+	 *  The amount of padding, in data units, that the element requires
+	 *  beyond its min/max values to display its full values correctly .
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public var padding:Number;
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 14124
Author:   cframpto@adobe.com
Date:     2010-02-11T17:53:35.882363Z

Log Message:
-----------
Merge 14123 from 4.x branch to trunk.

Log Message:
***********
Two additions/corrections to 14076.  Add key mappings for layoutDirection="rtl" for spark list components.  Correct type of keyCode variable so it is an uint rather than an int to match event.keyCode.

BitmapImage has a hard-coded layout direction="ltr".

QE notes: For layoutDirection="rtl" need to test LEFT, RIGHT, UP and DOWN keys.
Doc notes: None
Bugs: SDK-25330
Reviewed By: Hans
Tests run: checkintests
Is noteworthy for integration: No

Ticket Links:
***********
    http://bugs.adobe.com/jira/browse/SDK-25330

Modified Paths:
**************
    flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/containers/Accordion.as
    flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/controls/ButtonBar.as
    flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/controls/CalendarLayout.as
    flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/controls/ColorPicker.as
    flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/controls/Menu.as
    flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/controls/MenuBar.as
    flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/controls/RadioButton.as
    flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/controls/Tree.as
    flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/controls/colorPickerClasses/SwatchPanel.as
    flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/controls/listClasses/TileBase.as
    flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/controls/sliderClasses/SliderThumb.as
    flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/core/Container.as
    flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/core/UIComponent.as
    flex/sdk/branches/4.x/frameworks/projects/spark/src/spark/components/List.as
    flex/sdk/branches/4.x/frameworks/projects/spark/src/spark/components/RadioButton.as
    flex/sdk/branches/4.x/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBarBase.as
    flex/sdk/branches/4.x/frameworks/projects/spark/src/spark/components/supportClasses/DropDownListBase.as
    flex/sdk/branches/4.x/frameworks/projects/spark/src/spark/components/supportClasses/SliderBase.as
    flex/sdk/branches/4.x/frameworks/projects/spark/src/spark/primitives/BitmapImage.as

Property Changed:
****************
    flex/sdk/branches/4.x/frameworks/

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/MenuBar.as</path>
<path kind="dir" action="M">/flex/sdk/trunk/frameworks</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/RadioButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RadioButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Tree.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Accordion.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/colorPickerClasses/SwatchPanel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Menu.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/CalendarLayout.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/spark/src/spark/components/supportClasses/SliderBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ColorPicker.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/DropDownListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/TileBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/sliderClasses/SliderThumb.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBarBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/BitmapImage.as</path>

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

--- frameworks/projects/mx/src/mx/controls/colorPickerClasses/SwatchPanel.as
+++ frameworks/projects/mx/src/mx/controls/colorPickerClasses/SwatchPanel.as
@@ -1336,9 +1336,9 @@
         var currentRow:int = Math.floor(focusedIndex / columnCount);

-        // If rtl layout, need to swap LEFT for RIGHT so correct action
+        // If rtl layout, need to swap LEFT and RIGHT so correct action
         // is done.
-        var keyCode:int = mapKeycodeForLayoutDirection(event);
+        var keyCode:uint = mapKeycodeForLayoutDirection(event);

         switch (keyCode)
         {


Transferred from the Adobe Open Source Subversion Repository

Revision: 18567
Author:   klin@adobe.com
Date:     2010-11-13T00:28:51.781896Z

Log Message:
-----------
Fix for Bindable metadata being in the wrong place in DataGrid, Grid and GridColumn. Made GridColumn.editable Bindable. variableRowHeight and resizableColumns were also not dispatching a change event. I also took the liberty of performing some code clean up and fixing some docs.

QE notes: Check properties to make sure they're Bindable
Doc notes: No
Bugs: SDK-28464
Reviewer: Hans
Tests run: DataGrid, checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/GridColumn.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/events/GridEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/CellPosition.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/GridRowList.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGrid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/GridDimensions.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/IGridItemRendererOwner.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/DefaultGridItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/UITextFieldGridItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Grid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/GridLayer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/CellRegion.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/GridRowNode.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/GridSelection.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/GridSelectionMode.as</path>

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

--- frameworks/projects/spark/src/spark/components/gridClasses/CellRegion.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/CellRegion.as
@@ -75,14 +75,6 @@
     private var _columnCount:int;

     /**
-     *  @private
-     */
-    public function get columnCount():int
-    {
-        return _columnCount;
-    }
-
-    /**
      *  The number of columns in the cell region.
      *
      *  @default 0
@@ -92,6 +84,14 @@
      *  @playerversion AIR 2.0
      *  @productversion Flex 4.5
      */
+    public function get columnCount():int
+    {
+        return _columnCount;
+    }
+
+    /**
+     *  @private
+     */
     public function set columnCount(value:int):void
     {
         _columnCount = value;
@@ -102,14 +102,6 @@
     //----------------------------------

     private var _columnIndex:int;
-
-    /**
-     *  @private
-     */
-    public function get columnIndex():int
-    {
-        return _columnIndex;
-    }

     /**
      *  The 0-based column index of the origin of the cell region.
@@ -122,6 +114,14 @@
      *  @playerversion AIR 2.0
      *  @productversion Flex 4.5
      */
+    public function get columnIndex():int
+    {
+        return _columnIndex;
+    }
+
+    /**
+     *  @private
+     */
     public function set columnIndex(value:int):void
     {
         _columnIndex = value;
@@ -132,14 +132,6 @@
     //----------------------------------

     private var _rowCount:int;
-
-    /**
-     *  @private
-     */
-    public function get rowCount():int
-    {
-        return _rowCount;
-    }

     /**
      *  The number of rows in the cell region.
@@ -151,6 +143,14 @@
      *  @playerversion AIR 2.0
      *  @productversion Flex 4.5
      */
+    public function get rowCount():int
+    {
+        return _rowCount;
+    }
+
+    /**
+     *  @private
+     */
     public function set rowCount(value:int):void
     {
         _rowCount = value;
@@ -161,14 +161,6 @@
     //----------------------------------

     private var _rowIndex:int;
-
-    /**
-     *  @private
-     */
-    public function get rowIndex():int
-    {
-        return _rowIndex;
-    }

     /**
      *  The 0-based row index of the origin of the cell region.
@@ -180,6 +172,15 @@
      *  @playerversion Flash 10
      *  @playerversion AIR 2.0
      *  @productversion Flex 4.5
+
+     */
+    public function get rowIndex():int
+    {
+        return _rowIndex;
+    }
+
+    /**
+     *  @private
      */
     public function set rowIndex(value:int):void
     {


Transferred from the Adobe Open Source Subversion Repository

Revision: 20561
Author:   hmuller@adobe.com
Date:     2011-03-02T22:40:26.962808Z

Log Message:
-----------
GridLayout/layoutLinearElements() no longer sets oldVisibleIndices.length=0 when the elements' factory has changed; the incoming vector is shared state.

Revised DataGrid/initializeGridRowBackground() slightly.

QE notes:
Doc notes:
Bugs: SDK-29802
Reviewer: Carol
Tests run: checkin, mustella
Is noteworthy for integration: no

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

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

--- frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as
@@ -1362,10 +1362,9 @@
         if (!layer)
             return new Vector.<IVisualElement>(0);

-        // If a factory changed, discard the old visual elements.
-
-        if (discardGridElementsIfFactoryChanged(factory, layer, oldVisibleElements))
-            oldVisibleIndices.length = 0;
+        // If a factory changed, free the old visual elements and set oldVisibleElements.length=0
+
+        discardGridElementsIfFactoryChanged(factory, layer, oldVisibleElements);

         if (factory == null)
             return new Vector.<IVisualElement>(0);
@@ -1481,8 +1480,7 @@
         layer:GridLayer,
         oldVisibleElements:Vector.<IVisualElement>):Boolean
     {
-        if (oldVisibleElements.length > 0 &&
-            factory != elementToFactoryMap[oldVisibleElements[0]])
+        if ((oldVisibleElements.length) > 0 && (factory != elementToFactoryMap[oldVisibleElements[0]]))
         {
             for each (var oldElt:IVisualElement in oldVisibleElements)
             {


Transferred from the Adobe Open Source Subversion Repository

Revision: 20474
Author:   hmuller@adobe.com
Date:     2011-02-25T17:38:17.754344Z

Log Message:
-----------
Partial layouts, for example updates to the selection or hover indicators, now update the corresponding item renderer properties.

QE notes:
Doc notes:
Bugs: SDK-29592
Reviewer: Kevin
Tests run: checkin, mustella
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/GridLayer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/GridItemRenderer.as</path>

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

--- frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as
@@ -590,6 +590,9 @@
         if (completeLayoutNeeded || grid.isInvalidateDisplayListReason("editorIndicator"))
             layoutEditorIndicator(editorIndicatorLayer);

+        if (!completeLayoutNeeded)
+            updateVisibleItemRenderers();
+
         // To avoid flashing, force all of the layers to render now

         grid.validateNow();
@@ -603,7 +606,54 @@
             performanceStatistics.updateDisplayListRectangles.push(visibleGridBounds.clone());
             performanceStatistics.updateDisplayListCellCounts.push(cellCount);
         }
-    }
+    }
+
+    /**
+     *  @private
+     *  Reset the selected, showsCaret, and hovered properties for all visible item renderers.
+     *  Run the prepare() method for renderers that have changed.
+     *
+     *  This method is only called when the item renderers are not updated as part of a general
+     *  redisplay, by layoutItemRenderers().
+     */
+    private function updateVisibleItemRenderers():void
+    {
+        const grid:Grid = grid;  // avoid get method cost
+        const rowSelectionMode:Boolean = isRowSelectionMode();
+        const cellSelectionMode:Boolean = isCellSelectionMode();
+
+        if (!rowSelectionMode && !cellSelectionMode)
+            return;
+
+        for each (var renderer:IGridItemRenderer in visibleItemRenderers)
+        {
+            var rowIndex:int = renderer.rowIndex;
+            var columnIndex:int = renderer.columnIndex;
+
+            var oldSelected:Boolean  = renderer.selected;
+            var oldShowsCaret:Boolean = renderer.showsCaret;
+            var oldHovered:Boolean = renderer.hovered;
+
+            // The following initializations should match what's done in initializeItemRenderer()
+            if (rowSelectionMode)
+            {
+                renderer.selected = grid.selectionContainsIndex(rowIndex);
+                renderer.showsCaret = grid.caretRowIndex == rowIndex;
+                renderer.hovered = grid.hoverRowIndex == rowIndex;
+            }
+            else if (cellSelectionMode)
+            {
+                renderer.selected = grid.selectionContainsCell(rowIndex, columnIndex);
+                renderer.showsCaret = (grid.caretRowIndex == rowIndex) && (grid.caretColumnIndex == columnIndex);
+                renderer.hovered = (grid.hoverRowIndex == rowIndex) && (grid.hoverColumnIndex == columnIndex);
+            }
+
+            if ((oldSelected != renderer.selected) ||
+                (oldShowsCaret != renderer.showsCaret) ||
+                (oldHovered != renderer.hovered))
+                renderer.prepare(true);
+        }
+    }

     //--------------------------------------------------------------------------
     //
@@ -1035,7 +1085,8 @@
                 var colWidth:Number = gridDimensions.getColumnWidth(colIndex);
                 layoutItemRenderer(renderer, cellX, cellY, colWidth, rowHeight);

-                gridDimensions.setCellHeight(rowIndex, colIndex, renderer.getPreferredBoundsHeight());
+                var preferredRowHeight:Number = renderer.getPreferredBoundsHeight()
+                gridDimensions.setCellHeight(rowIndex, colIndex, preferredRowHeight);
                 cellX += colWidth + colGap;
             }

@@ -1246,6 +1297,7 @@

             renderer.label = gridColumn.itemToLabel(dataItem);

+            // The following code must be kept in sync with updateVisibleItemRenderers()
             if (isRowSelectionMode())
             {
                 renderer.selected = grid.selectionContainsIndex(rowIndex);
@@ -2191,14 +2243,14 @@
                 graphicElementRenderer.validateProperties();
                 graphicElementRenderer.validateSize();
             }
-
+
             renderer.setLayoutBoundsSize(width, height);
         }

         if ((renderer is IInvalidating) && !(renderer is IGraphicElement))
         {
             const validateNowRenderer:IInvalidating = renderer as IInvalidating;
-            validateNowRenderer.validateNow();
+            validateNowRenderer.validateNow();
         }

         renderer.setLayoutBoundsPosition(x, y);


Transferred from the Adobe Open Source Subversion Repository

Revision: 16729
Author:   hmuller@adobe.com
Date:     2010-06-29T22:37:23.013026Z

Log Message:
-----------
The following changes apply to Spark DataGrid only.   Code reviews have been deferred until the implementation is closer to completion.

Added Grid requestedRowCount, requestedColumnCount, requestedMinRowCount, requestedMinColumnCount properties.   They're similar to the Vertical,HorizontalLayout properties of the same name and are used by GridLayout/measure().   Added covers for same to DataGrid and made requestedRowCount=10 by default.

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Grid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GridDimensions.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GridLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/GridContainerBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ColumnHeaderBarLayout.as</path>

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

--- frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as
@@ -47,7 +47,7 @@
     {
         super();
     }
-
+
     //--------------------------------------------------------------------------
     //
     //  Property Overrides
@@ -105,91 +105,35 @@
     }

     /**
-     *  @private
+	 *  @private
+     *  Computes new values for the grid's measuredWidth,Height and
+	 *  measuredMinWidth,Height properties.
+     *
+     *  If grid.requestedRowCount is GTE 0, then measuredHeight is estimated
+	 *  content height for as many rows.  Otherwise the measuredHeight is the estimated
+	 *  content height for all rows.  The measuredWidth calculation is similar.  The
+	 *  measuredMinWidth,Height properties are also similar however if the corresponding
+	 *  requestedMin property isn't specified, then the measuredMin size is the same
+	 *  as the measured size.
      */
     override public function measure():void
     {
         if (!grid)
             return;

-        var measuredWidth:Number = 0;
-        var measuredHeight:Number = 0;
-
-        if (!isNaN(grid.explicitWidth))
-        {
-            measuredWidth = grid.explicitWidth;
-        }
-        else
-        {
-            const columns:IList = grid.columns;
-            const numColumns:int = columns ? columns.length : 0;
-
-            if (numColumns)
-            {
-                const defaultColumnWidth:Number =
-                    !isNaN(typicalLayoutElement.getLayoutBoundsWidth()) ?
-                    typicalLayoutElement.getLayoutBoundsWidth() :
-                    typicalLayoutElement.getPreferredBoundsWidth();
-
-                const columnGap:Number = gridDimensions.columnGap;
-
-                for (var i:int = 0; i < numColumns; i++)
-                {
-                    var c:GridColumn = columns.getItemAt(i) as GridColumn;
-                    if (c && c.visible)
-                    {
-                        if (!isNaN(c.width))
-                            measuredWidth += c.width + columnGap;
-                        else
-                            measuredWidth += defaultColumnWidth + columnGap;
-                    }
-                }
-
-                if (measuredWidth > 0)
-                    measuredWidth -= columnGap;
-            }
-        }
-
-        if (!isNaN(grid.explicitHeight))
-        {
-            measuredHeight = grid.explicitWidth;
-        }
-        else
-        {
-            const rowCount:int = grid.dataProvider ? grid.dataProvider.length : 0;
-
-            if (rowCount)
-            {
-                const rowGap:Number = gridDimensions.rowGap;
-                const defaultRowHeight:Number =
-                    typicalLayoutElement.getPreferredBoundsHeight();
-
-                measuredHeight = rowCount * (defaultRowHeight + rowGap);
-
-                // One less row gap if there isn't a column header bar.
-                const columnHeaderBar:ColumnHeaderBar = getColumnHeaderBar();
-                if (!columnHeaderBar || !columnHeaderBar.visible)
-                    measuredHeight -= rowGap;
-            }
-        }
-
-        // ToDo:(cframpto) how is this suppose to work if the DataGrid
-        // doesn't have an explicit size and the measuredHeight is large?
-
-        measuredWidth = 600;
-        measuredHeight = 480;
-
+        var measuredWidth:Number = gridDimensions.getContentWidth(grid.requestedColumnCount);
+        var measuredHeight:Number = gridDimensions.getContentHeight(grid.requestedRowCount);
+		var measuredMinWidth:Number = gridDimensions.getContentHeight(grid.requestedMinColumnCount);
+		var measuredMinHeight:Number = gridDimensions.getContentHeight(grid.requestedMinRowCount);
+
+
         // Use Math.ceil() to make sure that if the content partially occupies
         // the last pixel, we'll count it as if the whole pixel is occupied.

         grid.measuredWidth = Math.ceil(measuredWidth);
         grid.measuredHeight = Math.ceil(measuredHeight);
-
-        // Not used if virtual layout so don't bother to calculate.
-        grid.measuredMinWidth = grid.measuredWidth;
-        grid.measuredMinHeight = grid.measuredHeight;
-
-       //trace("GridLayout.measure", grid.measuredWidth, grid.measuredHeight);
+        grid.measuredMinWidth = Math.ceil(measuredMinWidth);
+        grid.measuredMinHeight = Math.ceil(measuredMinHeight);
     }

     /**
@@ -247,8 +191,8 @@
         // Update the content size.  Make sure that if the content spans partially
         // over a pixel to the right/bottom, the content size includes the whole pixel.

-        const contentWidth:Number = Math.ceil(gridDimensions.contentWidth);
-        const contentHeight:Number = Math.ceil(gridDimensions.contentHeight);
+        const contentWidth:Number = Math.ceil(gridDimensions.getContentWidth());
+        const contentHeight:Number = Math.ceil(gridDimensions.getContentHeight());
         grid.setContentSize(contentWidth, contentHeight);
     }

@@ -544,7 +488,6 @@
                 var colWidth:Number = gridDimensions.getColumnWidth(colIndex);
                 layoutGridElement(renderer, cellX, cellY, colWidth, rowHeight);

-                // TBD(hmuller): need a local preferred bounds method once layoutGridElement supports constraints
                 gridDimensions.setCellHeight(rowIndex, colIndex, renderer.getPreferredBoundsHeight());
                 cellX += colWidth + colGap;
             }


Transferred from the Adobe Open Source Subversion Repository

Revision: 19444
Author:   klin@adobe.com
Date:     2010-12-17T01:12:03.325656Z

Log Message:
-----------
Enable easier styling and customization of DataGrid skin parts. Replaced IGridRowBackground with IGridVisualElement. A DataGrid skin part that implements IGridVisualElement will have its prepareGridVisualElement() method called before its layed out. This allows us create skin parts that can pull styles from DataGrid when created. Users can also have their skin parts implement IGridVisualElement to customize their skin part before beign layed out.

Also added the following styles to DataGrid: caretColor, rollOverColor, selectionColor, and symbolColor. Many of the skin parts in the default skin implement IGridVisualElement to enable these styles. Added default caretColor to defaults.css of #0167FF.

QE notes: Will break custom skin tests
Doc notes: No
Bugs: SDK-28491
Reviewer: Hans
Tests run: cyclone, checkintests
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Grid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/DefaultGridHeaderRenderer.mxml</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/IGridRowBackground.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/defaults.css</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGrid.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/IGridVisualElement.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/DataGridSkin.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/wireframe/src/spark/skins/wireframe/DataGridSkin.mxml</path>

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

--- frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as
@@ -1499,17 +1499,17 @@
         if  ((rowIndex < rowCount) && (bounds.width == 0)) // implies no columns
             bounds.width = visibleGridBounds.width;

-        // Call initializeRowBackground() if possible
-
-        const gridRowBackground:IGridRowBackground = rowBackground as IGridRowBackground;
-        if (gridRowBackground)
-            gridRowBackground.initializeRowBackground(grid, rowIndex);
+        // Initialize this visual element
+        intializeGridVisualElement(rowBackground, rowIndex);

         layoutGridElementR(rowBackground, bounds);
     }

     private function layoutRowSeparator(separator:IVisualElement, rowIndex:int):void
     {
+        // Initialize this visual element
+        intializeGridVisualElement(separator, rowIndex);
+
         const height:Number = separator.getPreferredBoundsHeight();
         const rowCount:int = gridDimensions.rowCount;
         const bounds:Rectangle = (rowIndex < rowCount)
@@ -1527,6 +1527,9 @@

     private function layoutColumnSeparator(separator:IVisualElement, columnIndex:int):void
     {
+        // Initialize this visual element
+        intializeGridVisualElement(separator, -1, columnIndex);
+
         const r:Rectangle = visibleItemRenderersBounds;
         const width:Number = separator.getPreferredBoundsWidth();
         const height:Number = Math.max(r.height, visibleGridBounds.height);
@@ -1648,6 +1651,8 @@

     private function layoutRowSelectionIndicator(indicator:IVisualElement, rowIndex:int):void
     {
+        // Initialize this visual element
+        intializeGridVisualElement(indicator, rowIndex);
         layoutGridElementR(indicator, gridDimensions.getRowBounds(rowIndex));
     }

@@ -1655,6 +1660,8 @@
                                                   rowIndex:int,
                                                   columnIndex:int):void
     {
+        // Initialize this visual element
+        intializeGridVisualElement(indicator, rowIndex, columnIndex);
         layoutGridElementR(indicator, gridDimensions.getCellBounds(rowIndex, columnIndex));
     }

@@ -1708,6 +1715,9 @@
             const bounds:Rectangle = isRowSelectionMode() ?
                 gridDimensions.getRowBounds(rowIndex) :
                 gridDimensions.getCellBounds(rowIndex, columnIndex);
+
+            // Initialize this visual element
+            intializeGridVisualElement(indicator, rowIndex, columnIndex);

             // TODO (klin): Remove this special case for the caret overlapping separators
             // when we implement column/row gaps.
@@ -1788,6 +1798,9 @@
         if (editorIndicator)
         {
             const bounds:Rectangle = gridDimensions.getCellBounds(rowIndex, columnIndex);
+
+            // Initialize this visual element
+            intializeGridVisualElement(editorIndicator, rowIndex, columnIndex);

             layoutGridElementR(editorIndicator, bounds);
             layer.addElement(editorIndicator);
@@ -2211,6 +2224,20 @@

         elt.setLayoutBoundsSize(width, height);
         elt.setLayoutBoundsPosition(x, y);
+    }
+
+    /**
+     *  @private
+     *  Calls prepareGridVisualElement() on the element if it is an
+     *  IGridVisualElement.
+     */
+    private function intializeGridVisualElement(elt:IVisualElement, rowIndex:int = -1, columnIndex:int = -1):void
+    {
+        const gridVisualElement:IGridVisualElement = elt as IGridVisualElement;
+        if (gridVisualElement)
+        {
+            gridVisualElement.prepareGridVisualElement(grid, rowIndex, columnIndex);
+        }
     }

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


Everything working on this end... committing because other server is bugging out

--- flexEditor/src/org/arisgames/editor/view/GameDetailsEditorView.as
+++ flexEditor/src/org/arisgames/editor/view/GameDetailsEditorView.as
@@ -84,6 +84,7 @@

 	public var game:Game;
 	[Bindable] public var nodes:ArrayCollection;
+	private var editors:ArrayCollection;

     /**
      * Constructor
@@ -480,6 +481,9 @@
 		}
 	}

+	public function populateEditors(){
+
+	}

 	public function handleAddEditor(evt:Event):void {
 		if(addEditorEmail.text != ""){


fixed compile error after removing WeaveArchive.as

--- WeaveJS/src/WeaveTest.as
+++ WeaveJS/src/WeaveTest.as
@@ -24,7 +24,6 @@
 	import weavejs.core.LinkableVariable;
 	import weavejs.core.LinkableWatcher;
 	import weavejs.core.SessionStateLog;
-	import weavejs.core.WeaveArchive;
 	import weavejs.data.bin.AbstractBinningDefinition;
 	import weavejs.data.bin.CategoryBinningDefinition;
 	import weavejs.data.bin.CustomSplitBinningDefinition;
@@ -155,7 +154,6 @@

 			WeaveMenuItem,
 			ZoomBounds,
-			WeaveArchive,
 			WeaveRootDataTreeNode,
 			SolidLineStyle,
 			SolidFillStyle,


Transferred from the Adobe Open Source Subversion Repository

Revision: 5115
Author:   rfrishbe@adobe.com
Date:     2009-02-27T21:27:41.731597Z

Log Message:
-----------
Adding SpriteVisualElement, a light-weight, Sprited-based implementation of IVisualElement.  This will be used for some FXG compiler optimizations.

Added setter for includeInLayout into IVisualElement so that DataGroup's virtualization code can use this, rather than cast it to a UIComponent.  I also removed an unused method in DataGroup: _removeChild.  We needed this before to remove children on a previously parented DataGroup, but now that we do the cleanup pro-actively, this is no longer needed.

Also a few ASDoc cleanups in IVisualElement, ILayoutElement, and FxDataContainer.

QE Notes: -
Doc Notes: -
Bugs: -
Reviewer: Chet, Evtim
tests: checkintests, mustella list, datagroup, fxdatacontainer, buttonbar.  Some mustella were failing, but I think it's just a mac thing.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/Flex4Classes.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/core/SpriteVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxDataContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ILayoutElement.as</path>

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

--- frameworks/projects/framework/src/mx/core/ILayoutElement.as
+++ frameworks/projects/framework/src/mx/core/ILayoutElement.as
@@ -48,6 +48,10 @@
      *  @productversion Flex 3
      */
     function get left():Object;
+
+    /**
+     *  @private
+     */
     function set left(value:Object):void;

     /**
@@ -71,6 +75,10 @@
      *  @productversion Flex 3
      */
     function get right():Object;
+
+    /**
+     *  @private
+     */
     function set right(value:Object):void;

     /**
@@ -94,6 +102,10 @@
      *  @productversion Flex 3
      */
     function get top():Object;
+
+    /**
+     *  @private
+     */
     function set top(value:Object):void;

     /**
@@ -117,6 +129,10 @@
      *  @productversion Flex 3
      */
     function get bottom():Object;
+
+    /**
+     *  @private
+     */
     function set bottom(value:Object):void;

     /**
@@ -143,6 +159,10 @@
      *  @productversion Flex 3
      */
     function get horizontalCenter():Object;
+
+    /**
+     *  @private
+     */
     function set horizontalCenter(value:Object):void;

     /**
@@ -169,6 +189,10 @@
      *  @productversion Flex 3
      */
     function get verticalCenter():Object;
+
+    /**
+     *  @private
+     */
     function set verticalCenter(value:Object):void;

     /**
@@ -193,6 +217,10 @@
      *  @productversion Flex 3
      */
     function get baseline():Object;
+
+    /**
+     *  @private
+     */
     function set baseline(value:Object):void;

     /**
@@ -213,6 +241,10 @@
      *  @productversion Flex 3
      */
     function get percentWidth():Number;
+
+    /**
+     *  @private
+     */
     function set percentWidth(value:Number):void;

     /**
@@ -233,6 +265,10 @@
      *  @productversion Flex 3
      */
     function get percentHeight():Number;
+
+    /**
+     *  @private
+     */
     function set percentHeight(value:Number):void;

     /**
@@ -251,6 +287,11 @@
      *  @productversion Flex 3
      */
     function get includeInLayout():Boolean;
+
+    /**
+     *  @private
+     */
+    function set includeInLayout(value:Boolean):void;

     /**
      *  @return Returns the element's preferred width.  Preferred width is


Transferred from the Adobe Open Source Subversion Repository

Revision: 22951
Author:   smgilson@adobe.com
Date:     2011-10-11T14:07:37.755588Z

Log Message:
-----------
Fix broken links for ASDoc bug Watson #2925508

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

Modified Paths:
--------------
/private/flex/sdk/branches/4.y/frameworks/projects/framework/src/mx/core/ILayoutElement.as

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

--- frameworks/projects/framework/src/mx/core/ILayoutElement.as
+++ frameworks/projects/framework/src/mx/core/ILayoutElement.as
@@ -319,7 +319,7 @@
      *  For UIComponent this is the same value as returned by
      *  the getExplicitOrMeasuredWidth() method.
      *
-     *  @see #getPreferredHeight()
+     *  @see #getPreferredBoundsHeight()
      *  @see #getLayoutMatrix()
      *  @see #getLayoutMatrix3D()
      *
@@ -344,7 +344,7 @@
      *  For UIComponent this is the same value as returned by
      *  the getExplicitOrMeasuredHeight() method.
      *
-     *  @see #getPreferredWidth()
+     *  @see #getPreferredBoundsWidth()
      *  @see #getLayoutMatrix()
      *  @see #getLayoutMatrix3D()
      *
@@ -366,7 +366,7 @@
      *
      *  @return The element's maximum width.
      *
-     *  @see #getMinHeight()
+     *  @see #getMinBoundsHeight()
      *  @see #getLayoutMatrix()
      *  @see #getLayoutMatrix3D()
      *
@@ -388,7 +388,7 @@
      *
      *  @return The element's maximum height.
      *
-     *  @see #getMinWidth()
+     *  @see #getMinBoundsWidth()
      *  @see #getLayoutMatrix()
      *  @see #getLayoutMatrix3D()
      *
@@ -409,7 +409,7 @@
      *
      *  @return The element's maximum width.
      *
-     *  @see #getMaxHeight()
+     *  @see #getMaxBoundsHeight()
      *  @see #getLayoutMatrix()
      *  @see #getLayoutMatrix3D()
      *
@@ -430,7 +430,7 @@
      *
      *  @return The element's maximum height.
      *
-     *  @see #getMaxWidth()
+     *  @see #getMaxBoundsWidth()
      *  @see #getLayoutMatrix()
      *  @see #getLayoutMatrix3D()
      *
@@ -458,7 +458,6 @@
      *  @return The x coordinate of the element's bounds at the specified element size.
      *
      *  @see #setLayoutBoundsSize()
-     *  @see #getLayoutPositionX()
      *  @see #getLayoutMatrix()
      *  @see #getLayoutMatrix3D()
      *
@@ -486,7 +485,7 @@
      *  @return The y coordinate of the element's bounds at the specified element size.
      *
      *  @see #setLayoutBoundsSize()
-     *  @see #getLayoutPositionY()
+     *  @see #getLayoutBoundsY()
      *  @see #getLayoutMatrix()
      *  @see #getLayoutMatrix3D()
      *
@@ -508,7 +507,7 @@
      *
      *  @return The element's layout width.
      *
-     *  @see #getLayoutHeight()
+     *  @see #getLayoutBoundsHeight()
      *  @see #getLayoutMatrix()
      *  @see #getLayoutMatrix3D()
      *
@@ -530,7 +529,7 @@
      *
      *  @return The element's layout height.
      *
-     *  @see #getLayoutWidth()
+     *  @see #getLayoutBoundsWidth()
      *  @see #getLayoutMatrix()
      *  @see #getLayoutMatrix3D()
      *
@@ -551,7 +550,7 @@
      *
      *  @return The x coordinate that the element uses to draw on screen.
      *
-     *  @see #getLayoutPositionY()
+     *  @see #getLayoutBoundsY()
      *  @see #getLayoutMatrix()
      *  @see #getLayoutMatrix3D()
      *
@@ -572,7 +571,7 @@
      *
      *  @return The y coordinate that the element uses to draw on screen.
      *
-     *  @see #getLayoutPositionX()
+     *  @see #getLayoutBoundsX()
      *  @see #getLayoutMatrix()
      *  @see #getLayoutMatrix3D()
      *
@@ -598,7 +597,7 @@
      *  The bounding box is in the element's parent coordinate space and is calculated
      *  from the element's layout size, layout position and layout transform matrix.
      *
-     *  @see #setLayoutSize()
+     *  @see #setLayoutBoundsSize()
      *  @see #getLayoutMatrix()
      *  @see #getLayoutMatrix3D()
      *
@@ -628,7 +627,7 @@
      *  The bounding box is in the element's parent coordinate space and is calculated
      *  from the element's layout size, layout position, and layout transform matrix.
      *
-     *  @see #setLayoutPosition()
+     *  @see #setLayoutBoundsPosition()
      *  @see #getLayoutMatrix()
      *  @see #getLayoutMatrix3D()
      *


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/mx/src/mx/skins/halo/SliderTrackSkin.as
+++ frameworks/projects/mx/src/mx/skins/halo/SliderTrackSkin.as
@@ -19,6 +19,11 @@

 /**
  *  The skin for the track in a Slider.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class SliderTrackSkin extends Border
 {
@@ -32,6 +37,11 @@

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 12860
Author:   mhorn@adobe.com
Date:     2009-12-11T20:35:27.553353Z

Log Message:
-----------
asdoc updates for l10n

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/MXFTETextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/mx/core/UIFTETextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/mx/core/FTETextField.as</path>

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

--- frameworks/projects/spark/src/mx/controls/MXFTETextInput.as
+++ frameworks/projects/spark/src/mx/controls/MXFTETextInput.as
@@ -47,8 +47,10 @@

 /**
  *  MXFTETextInput is a UIComponent which is used to support TLF text
- *  in Halo controls and data grid renderers.  It can be used in place
- *  of a Halo TextInput control.
+ *  in MX controls and data grid renderers. It can be used in place
+ *  of an MX TextInput control.
+ *
+ *  @see mx.controls.TextInput
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
@@ -278,6 +280,9 @@
      *  Used to determine if the control's border and background are
      *  visible.
      *
+     *  @param visible Set to true to make the border and background
+     *  visible. Otherwise, set to false.
+     *
      *  @langversion 3.0
      *  @playerversion Flash 10
      *  @playerversion AIR 1.5


Transferred from the Adobe Open Source Subversion Repository

Revision: 9188
Author:   jszeto@adobe.com
Date:     2009-08-07T23:07:44.171789Z

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

Missing file for revision 9183

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as

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

--- frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as
+++ frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as
@@ -3012,6 +3012,16 @@
         var m3:Matrix3D =  value.matrix3D;
         var ct:ColorTransform = value.colorTransform;
         var pp:PerspectiveProjection = value.perspectiveProjection;
+
+        var mxTransform:mx.geom.Transform = value as mx.geom.Transform;
+        if (mxTransform)
+        {
+            if (!mxTransform.applyMatrix)
+                m = null;
+
+            if (!mxTransform.applyMatrix3D)
+                m3 = null;
+        }

         setTransform(value);


Transferred from the Adobe Open Source Subversion Repository

Revision: 16507
Author:   chiedozi@adobe.com
Date:     2010-06-09T20:03:51.811780Z

Log Message:
-----------
Fixed a small memory leak related to dataProvider in ButtonBar, ButtonBarBase, ListBase and AsyncListView

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBarBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/collections/AsyncListView.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/ButtonBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as</path>

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

--- frameworks/projects/framework/src/mx/collections/AsyncListView.as
+++ frameworks/projects/framework/src/mx/collections/AsyncListView.as
@@ -151,7 +151,7 @@
             _list.removeEventListener(CollectionEvent.COLLECTION_CHANGE, handleCollectionChangeEvent);
         _list = value;
         if (_list)
-            _list.addEventListener(CollectionEvent.COLLECTION_CHANGE, handleCollectionChangeEvent);
+            _list.addEventListener(CollectionEvent.COLLECTION_CHANGE, handleCollectionChangeEvent, false, 0, true);

         dispatchEvent(new Event("listChanged"));
         dispatchEvent(new CollectionEvent(CollectionEvent.COLLECTION_CHANGE, false, false, CollectionEventKind.RESET));


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

--- frameworks/projects/framework/src/mx/events/BrowserChangeEvent.as
+++ frameworks/projects/framework/src/mx/events/BrowserChangeEvent.as
@@ -0,0 +1,181 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 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.events
+{
+
+import flash.events.Event;
+
+/**
+ *  The BrowserChangeEvent class represents event objects specific to
+ *  the BrowserManager.
+ *
+ */
+public class BrowserChangeEvent extends Event
+{
+    include "../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Class constants
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  The BrowserChangeEvent.APPLICATION_URL_CHANGE constant defines the value of the
+     *  type property of the event object for a applicationURLChange event.
+     *
+     *
The properties of the event object have the following values:

+     *

+     *
Property	Value

+     *
bubbles	false

+     *
cancelable	false

+     *
currentTarget	The Object that defines the
+     *       event listener that handles the event. For example, if you use
+     *       myButton.addEventListener() to register an event listener,
+     *       myButton is the value of the currentTarget.

+     *
lastURL	The previous value of the BrowserManager's
+     *       url property.

+     *
target	The Object that dispatched the event;
+     *       it is not always the Object listening for the event.
+     *       Use the currentTarget property to always access the
+     *       Object listening for the event.

+     *
url	The new value of the BrowserManager's
+     *       url property.

+     *

+     *
+     *  @eventType applicationURLChange
+     */
+    public static const APPLICATION_URL_CHANGE:String = "applicationURLChange";
+
+    /**
+     *  The BrowserChangeEvent.BROWSER_URL_CHANGE constant defines the value of the
+     *  type property of the event object for a browserURLChange event.
+     *
+     *
The properties of the event object have the following values:

+     *

+     *
Property	Value

+     *
bubbles	false

+     *
cancelable	false

+     *
currentTarget	The Object that defines the
+     *       event listener that handles the event. For example, if you use
+     *       myButton.addEventListener() to register an event listener,
+     *       myButton is the value of the currentTarget.

+     *
lastURL	The previous value of the BrowserManager's
+     *       url property.

+     *
target	The Object that dispatched the event;
+     *       it is not always the Object listening for the event.
+     *       Use the currentTarget property to always access the
+     *       Object listening for the event.

+     *
url	The new value of the BrowserManager's
+     *       url property.

+     *

+     *
+     *  @eventType browserURLChange
+     */
+    public static const BROWSER_URL_CHANGE:String = "browserURLChange";
+
+    /**
+     *  The BrowserChangeEvent.URL_CHANGE constant defines the value of the
+     *  type property of the event object for a urlChange event.
+     *
+     *
The properties of the event object have the following values:

+     *

+     *
Property	Value

+     *
bubbles	false

+     *
cancelable	false

+     *
currentTarget	The Object that defines the
+     *       event listener that handles the event. For example, if you use
+     *       myButton.addEventListener() to register an event listener,
+     *       myButton is the value of the currentTarget.

+     *
lastURL	The previous value of the BrowserManager's
+     *       url property.

+     *
target	The Object that dispatched the event;
+     *       it is not always the Object listening for the event.
+     *       Use the currentTarget property to always access the
+     *       Object listening for the event.

+     *
url	The new value of the BrowserManager's
+     *       url property.

+     *

+     *
+     *  @eventType urlChange
+     */
+    public static const URL_CHANGE:String = "urlChange";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     *
+     *  @param type The event type; indicates the action that caused the event.
+     *
+     *  @param bubbles Specifies whether the event can bubble up the display list hierarchy.
+     *
+     *  @param cancelable Specifies whether the behavior associated with the event can be prevented.
+     *
+     *  @param url Current URL in the browser.
+     *
+     *  @param lastURL Previous URL in the browser.
+     */
+    public function BrowserChangeEvent(type:String, bubbles:Boolean = false,
+                               cancelable:Boolean = false,
+                               url:String = null, lastURL:String = null)
+    {
+        super(type, bubbles, cancelable);
+
+        this.url = url;
+        this.lastURL = lastURL;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  lastURL
+    //----------------------------------
+
+    /**
+     *  The previous value of the url property in the BrowserManager.
+     */
+    public var lastURL:String;
+
+    //----------------------------------
+    //  url
+    //----------------------------------
+
+    /**
+     *  The new value of the url property in the BrowserManager.
+     */
+    public var url:String;
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden methods: Event
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    override public function clone():Event
+    {
+        return new BrowserChangeEvent(type, bubbles, cancelable, url, lastURL);
+    }
+}
+
+}


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

--- frameworks/projects/mobilecomponents/src/spark/components/View.as
+++ frameworks/projects/mobilecomponents/src/spark/components/View.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 spark.components
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 15675
Author:   klin@adobe.com
Date:     2010-04-23T22:00:42.744815Z

Log Message:
-----------
Merge from 4.x to trunk.

Fix for http://bugs.adobe.com/jira/browse/SDK-26267. Embedded assets were depending on AdvancedLayoutFeatures and other framework classes. This caused a simple AS-only swf size to be quite large, and even fail to build in an AS-only project in FB. The fixes are:

-Softlink FlexVersion using hasDefinition/getDefinition. This gets rid of the dependency on the ResourceManager, which fixes the compile error in FB.
-Introduce a new interface, IAssetLayoutFeatures, which contains a subset of the API from AdvancedLayoutFeatures only used by the asset classes. AdvancedLayoutFeatures implements this interface. The interface also removes the API dependency on TransformOffsets.
-We can then softlink AdvancedLayoutFeatures and MatrixUtil to remove that dependency.
-Use the hardcoded string "ltr" instead of the constant LayoutDirection.LTR to remove the dependency on LayoutDirection.

All of these fixes bring swf size down to near the original (around 2k more in the reference case).

QE notes: No
Doc notes: No
Bugs: SDK-26267
Reviewer: Alex, Carol
Tests run: checkintests, Mirroring
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" copyfrom-path="/flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/core/IAssetLayoutFeatures.as" copyfrom-rev="15674" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IAssetLayoutFeatures.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/SpriteAsset.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/BitmapAsset.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/AdvancedLayoutFeatures.as</path>

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

--- frameworks/projects/framework/src/mx/core/AdvancedLayoutFeatures.as
+++ frameworks/projects/framework/src/mx/core/AdvancedLayoutFeatures.as
@@ -32,7 +32,7 @@
      *  @playerversion AIR 1.1
      *  @productversion Flex 3
      */
-    public class AdvancedLayoutFeatures
+    public class AdvancedLayoutFeatures implements IAssetLayoutFeatures
     {
     //--------------------------------------------------------------------------
     //


Transferred from the Adobe Open Source Subversion Repository

Revision: 5331
Author:   dloverin@adobe.com
Date:     2009-03-16T20:29:20.872892Z

Log Message:
-----------
FxApplication related API changes.

1. Rename ApplicationGlobals.application -> FlexGlobals.topLevelApplication
2. Application.application will be deprecated. FlexGlobals.topLevelApplication will be the recommend alternative.
3. Application.application will return null if the top-level application is not of type Application or a subclass of Application.
4. Change the FxApplication.backgroundColor property from type Object to uint.

QE Notes: None
Doc Notes: None
Bugs: sdk-19677
Reviewer: Ryan
tests: checkintests, Application mustella tests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ActivatorSkin.as</path>
<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/framework/src/mx/core/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/BrowserManagerImpl.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ApplicationGlobals.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ToolTipManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/LayoutManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/EffectManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Menu.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/haloclassic/src/haloclassic/ActivatorSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Alert.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/RadioButtonGroup.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/managers/HistoryManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/ResizeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxRadioButtonGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/halo/src/mx/skins/halo/ActivatorSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/checkinapp/ProductDetail.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/flex/tools/dependencychecker/FrameworkSwcDependencyRules.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Glow.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/core/UIComponent.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/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ApplicationGlobals.as" copyfrom-rev="5314" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/FlexGlobals.as</path>

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

--- frameworks/projects/framework/src/mx/managers/BrowserManagerImpl.as
+++ frameworks/projects/framework/src/mx/managers/BrowserManagerImpl.as
@@ -18,7 +18,7 @@
 import flash.external.ExternalInterface;
 import flash.net.navigateToURL;
 import flash.net.URLRequest;
-import mx.core.ApplicationGlobals;
+import mx.core.FlexGlobals;
 import mx.events.BrowserChangeEvent;

 /**
@@ -309,8 +309,8 @@
      */
     public function init(defaultFragment:String = "", defaultTitle:String = ""):void
     {
-        if ("historyManagementEnabled" in ApplicationGlobals.application)
-		  ApplicationGlobals.application.historyManagementEnabled = false;
+        if ("historyManagementEnabled" in FlexGlobals.topLevelApplication)
+		  FlexGlobals.topLevelApplication.historyManagementEnabled = false;

 		setup(defaultFragment, defaultTitle);
 	}
@@ -320,7 +320,7 @@
 	 *  prepare the BrowserManager for further calls from the HistoryManager.  Use
 	 *  of HistoryManager and setFragment calls from the application is
 	 *  not supported, so the init() method sets
-	 *  ApplicationGlobals.application.historyManagementEnabled to false to disable
+	 *  FlexGlobals.topLevelApplication.historyManagementEnabled to false to disable
 	 *  the HistoryManager
      *
      *  @langversion 3.0