Transferred from the Adobe Open Source Subversion Repository

Revision: 23246
Author:   cframpto@adobe.com
Date:     2011-12-20T17:40:08.069454Z

Log Message:
-----------
Rollback 23243.  If comment followed header it was stripped as well.

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

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

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

 package mx.collections
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 23246
Author:   cframpto@adobe.com
Date:     2011-12-20T17:40:08.069454Z

Log Message:
-----------
Rollback 23243.  If comment followed header it was stripped as well.

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

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

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

 package mx.managers
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 6599
Author:   gosmith@adobe.com
Date:     2009-05-04T20:27:40.909741Z

Log Message:
-----------
RichEditableText and RichEditableText2 are now in the spark.primitives package rather than in spark.components, and RichEditableTextContainerManager is now in spark.primitives.supportClasses rather than in spark.components.supportClasses. This change means that SimpleText, RichText, and RichEditableText are now all together in spark.primitives. They are "primitives" because they aren't skinnable components, even though some extend GraphicElement and some extend UIComponent.

QE Notes: None
Doc Notes: None
Bugs: None
Reviewer: Carol

Modified Paths:
--------------
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/RichEditableText.png</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/RichEditableText2.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/TextBase.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/RichEditableText.as" copyfrom-rev="6590" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichEditableText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/spark-manifest.xml</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/RichEditableText.png" copyfrom-rev="6589" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichEditableText.png</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/RichEditableTextContainerManager.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/RichEditableText2.as" copyfrom-rev="6589" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichEditableText2.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/RichEditableTextContainerManager.as" copyfrom-rev="6589" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/RichEditableTextContainerManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/TextInput.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/RichEditableText.as</path>

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

--- frameworks/projects/spark/src/spark/components/RichEditableText.as
+++ frameworks/projects/spark/src/spark/components/RichEditableText.as
@@ -9,7 +9,7 @@
 //
 ////////////////////////////////////////////////////////////////////////////////

-package spark.components
+package spark.primitives
 {

 import flash.display.BlendMode;
@@ -82,12 +82,13 @@
 import mx.resources.ResourceManager;
 import mx.utils.StringUtil;

-import spark.components.supportClasses.RichEditableTextContainerManager;
+import spark.components.TextSelectionVisibility;
 import spark.core.CSSTextLayoutFormat;
 import spark.core.IViewport;
 import spark.core.ScrollUnit;
 import spark.events.TextOperationEvent;
 import spark.primitives.Rect;
+import spark.primitives.supportClasses.RichEditableTextContainerManager;
 import spark.utils.TextUtil;

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 8268
Author:   gosmith@adobe.com
Date:     2009-06-25T23:00:03.457046Z

Log Message:
-----------
Integrated TLF build 460. This integration required trivial framework changes due to two renamed APIs.

Build 460
---------

* PARB - TextFilter.as - TEXT_LAYOUT_FORMAT:String = "textLayoutformat" now defined as "textLayoutFormat"

* PARB - TextFlowLine/TextFlowLineLocation - now defined in flashx.textLayout.compose package and not flashx.textLayout.elements.

* PARB - IVJLine - renamed IVerticalJustificationLine

* PARB - IFlowComposer.as - removed hide/showSelection.  Code moved to SelectionManager

* PARB - StandardFlowComposer.as - removed implementation of hide/showSelection.

* PARB - IConfiguration.as/Configuration.as Link[XXX]FormatDefault are all now renamed defaultLink[XXX]Format.

* PARB - scrollDragDelay, scrollDragPixels,  scrollMouseWheelMultiplier are now all of type Number vs int

* PARB - FlowElement.as - FlowElement implements ITextLayoutFormat.  Renamed variables and comments as per PARB requirements.

* PARB - FlowGroupElement.as - renamed getChildAtIndex with getChildAt. addChild/ addChildAt/removeChild/removeChildAt all now return a FlowElement.

 PARB - InlineGraphicElement - float property now tlf_internal.

* PARB - LinkElement - link[XXX]FormatName constants are now declared in standard Flex/Flash format of LINK_XXX_FORMAT_NAME.

* PARB - ParagraphElement.as - removed terminator parameter from getText on paragraph.

* PARB - Updated relativePos references to relativePosition.

* PARB - LinkActiveFormat, LinkHoverFormat, and LinkNormalFormat now descend from TextLayoutFormat rather than TextLayoutFormatValueHolder.

* PARB - StatusChangeEvent.as - INLINE_GRAPHIC_STATUS_CHANGE now defined as "inlineGraphicStatusChanged"

* PARB - TextLineFactoryBase.as - contentBounds now called getContentBounds

* PARB - IEditManager/EditManager.as - insertInlineGraphic now takes an options:Object rather than a float:String. Updated comments to reflect change.

* PARB - ApplyLink first parameter is now href vs uriString.

* PARB - ParaEdit.as - createImage now takes options:Object rather than a float:String.  Default is NULL.  Updated comments to read "options - none supported"

* PARB - ISelectionManager/SelectionManager - renamed setSelection to selectRange and  removed default values.

* PARB - Added selectAll method which calls into selectRange.  Replaced all references to TextRangeUtil with NavigationUtil.

* PARB - ChangeElementIDOperation - renamed ApplyElementIDOperation

* PARB - ChangeElementStyleNameOperation - renamed ApplyElementStyleNameOperation

* PARB - SetUserStyleOperation - renamed ApplyElementUserStyleOperation

* PARB - ApplyFormatToElementOperation.as - reduced char/para/cont formats down to single format which is applied once.  Removed unneeded code to apply separately and replaced with single call.

* PARB - ApplyLinkOperation.as - added getters/setters for constructor parameters

* PARB - ApplyTCYOperation.as - added getters/setters for constructor parameters.  Renamed tcyOnValue to tcyValue.

* PARB - CutOperation.as - added getters/setters for constructor parameters

* PARB - DeleteTextOperation.as - added deleteSelectionState member var as well as getter/setter methods

* PARB - FlowElementOperation.as - added getters/setters for constructor parameters as well as storage member variables where needed.

* PARB - FlowOperation.as - added set method for textFlow member

* PARB - InsertInlineGraphicOperation/ModifyInlineGraphicOperation.as - replace all references to float with options and updated ASDoc comments.

* PARB - PasteOperation.as - added getters/setters for constructor parameter textScrap.

* Fix 2365281, 2365287 content bounds way off  (problem with logic to skip empty columns)

Build 459
---------

* PARB - Modify TextLayoutFormat/nullTabStopFormat.defaults(): make this be a static getter, rename it to defaultFormat, improve doc to make it clear it returns the same object repeatedly

Build 458
---------

* Fix 2362126 TLF SWCs should include debugging information (missing code hints for parameters)

* PARB - Rename nullTextLayoutFormat/nullTabStopFormat to emptyTextLayoutFormat/emptyTabStopFormat, move to tlf_internal

Build 456
---------

* Fix 2361076 Contents bounds appears offset for graphic in vertical direction.

* Fix 2360045 Content Bound is not drawn properly in the second container with multiple columns.

* Fix 2359786 Content Bounds need to resize with specified text alignment.

* Fix 2358780 When verticalAlign is "justify", the content bounds are wrong

* Fix 2357611 ContentBounds Open Issues (except for performance optimization)

* Fix 2359840 Scroll works only once by Dragging mouse or using arrow key.

* Fix SDK-21899 RTE on Spark TextArea when deleting text, setting text, and focusing TextArea

* Candidate fix for "Enter key problem"

Build 455
---------

* Fix 2358923 stripDiscretionaryHyphens being ignored by PlainTextExporter

* Fix 2358921 A final "\n" is being appended when exporting PLAIN_TEXT_FORMAT

* Rework fix for 2355912 to work with new plain text export behavior

Build 454
---------

* Fix 2356890 ContainerController.isDamaged always returns true

* Fix 2355912 Text copied from a TextFlow always has a newline at the end, even if the originally selected text did not

* Partial fix for  2357611 ContentBounds Open Issues (continued)
- RTL text incorrectly includes the paragraph terminator in its left side width in lineBreak="explicit" mode

Build 453
---------

* Fix 2357732 FlowComposer no longer swallows errors

* Partial fix for 2357611 ContentBounds Open Issues
- paragraphIndent “gap” changes missing from explicit.  In lineBreak=”toFit” changes were made to account for the paragraph indents.  They aren’t in the explicit case.
- No lines in parcel test (fix for bug 2523538) will incorrectly assume that a parcel containing zero height lines is empty.

* Change how scrolling & vertical alignment work together so that when scrolling is on, if there is more text than fits in the container, vertical alignment will use TOP even if MIDDLE or BOTTOM is specified. Behavior when the text fits or scrolling is off remains unchanged.

* Fix for 2343041, "[SDK-18884] scrolling issue when flow contains an image." Image was not being correctly included in the content area.

* Fix for 2353258, "[Flex SDK-21019] TextFlowTextLineFactory with columnCount=2 produces incorrect width."

* Fix compilation issue in ContextMenu example (update import statement for UndoManager to reflect its new namespace)

Build 452
---------
* Fix 2354401 TextContainerManager.getText doesn't clear _textDamaged

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/in/tlf/textLayout.swz</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/RichEditableText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/libs/textLayout.swc</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/RichText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/in/tlf/textLayout.swf</path>
<path kind="file" action="M">/flex/sdk/trunk/in/tlf/tlf.properties</path>

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

--- frameworks/projects/spark/src/spark/components/RichEditableText.as
+++ frameworks/projects/spark/src/spark/components/RichEditableText.as
@@ -2194,7 +2194,7 @@
         // Othewise, it is at the end.
         var position:int = _clipAndEnableScrolling ? 0 : int.MAX_VALUE;

-        selectionManager.setSelection(position, position);
+        selectionManager.selectRange(position, position);

         // This should not be necessary but it is if the text is changed after
         // the component already has focus.  Need the selectionFormatState
@@ -2509,7 +2509,7 @@

 		var selectionManager:ISelectionManager = getSelectionManager();

-        selectionManager.setSelection(anchorPosition, activePosition);
+        selectionManager.selectRange(anchorPosition, activePosition);

         // Refresh the selection.  This does not cause a damage event.
         selectionManager.refreshSelection();
@@ -2558,7 +2558,7 @@

         // If no selection, then it's an append.
          if (!editManager.hasSelection())
-            editManager.setSelection(int.MAX_VALUE, int.MAX_VALUE);
+            editManager.selectRange(int.MAX_VALUE, int.MAX_VALUE);

         // Our damage handler should be active.  Inserting the text invokes
         // our damage handler to invalidate the text, maybe the size, and
@@ -2591,7 +2591,7 @@
         var editManager:IEditManager = getEditManager();

         // An append is an insert with the selection set to the end.
-        editManager.setSelection(int.MAX_VALUE, int.MAX_VALUE);
+        editManager.selectRange(int.MAX_VALUE, int.MAX_VALUE);

         // Our damage handler should be active.  Inserting the text invokes
         // our damage handler to invalidate the text, maybe the size, and
@@ -2693,7 +2693,7 @@
             oldAnchorPosition = _selectionAnchorPosition;
             oldActivePosition = _selectionActivePosition;

-            selectionManager.setSelection(anchorPosition, activePosition);
+            selectionManager.selectRange(anchorPosition, activePosition);
         }

         if (needContainerFormat)
@@ -2707,7 +2707,7 @@

         if (anchorPosition != -1 && activePosition != -1)
         {
-            selectionManager.setSelection(oldAnchorPosition, oldActivePosition);
+            selectionManager.selectRange(oldAnchorPosition, oldActivePosition);
         }

         // Extract the requested formats to return.


update main file

update main file

git-svn-id: 44dac414ef660a76a1e627c7b7c0e36d248d62e4@22 c2cce57b-6cbb-4450-ba62-5fdab5196ef5

--- src/spitfire.as
+++ src/spitfire.as
@@ -17,25 +17,25 @@
 // example2
 /*
 var server = new SimpleSocketServerSelect();
-	server.showAddressInfo1();
-	server.showAddressInfo2();
-	server.showAddressInfo3();
-	server.showAddressInfo3( "localhost" );
+    server.showAddressInfo1();
+    server.showAddressInfo2();
+    server.showAddressInfo3();
+    server.showAddressInfo3( "localhost" );

-	// pass trough cloudflare
-	server.showAddressInfo3( "www.corsaair.com" );
+    // pass trough cloudflare
+    server.showAddressInfo3( "www.corsaair.com" );

-	// direct to the server
-	server.showAddressInfo3( "www.as3lang.org" );
+    // direct to the server
+    server.showAddressInfo3( "www.as3lang.org" );

-	// more example
-	server.showAddressInfo3( "www.google.com" );
-	server.showAddressInfo3( "www.yahoo.com" );
-	server.showAddressInfo3( "www.cloudflare.com" );
+    // more example
+    server.showAddressInfo3( "www.google.com" );
+    server.showAddressInfo3( "www.yahoo.com" );
+    server.showAddressInfo3( "www.cloudflare.com" );

-	server.main();
+    server.main();
 */

-// example2
+// example3
 var server = new SimpleSocketServerSelect2();
-	server.main();
+    server.main();


Further clarification in monster class comment

--- HLSPlugin/src/org/osmf/net/httpstreaming/HLSHTTPNetStream.as
+++ HLSPlugin/src/org/osmf/net/httpstreaming/HLSHTTPNetStream.as
@@ -88,6 +88,8 @@
 		 * We use a duplicate of the class instead of extending the original
 		 * because the original is completely closed and private, and unable
 		 * to be properly extended to override the desired functionality.
+		 * By duplicating it, we can modify the alternate audio stream
+		 * data instantiation to suit our needs.
 		 *
 		 * The org.osmf.net.httpstreaming namespace is required due to
 		 * internal namespace usage.


Filtering resource dir only shows relavant folders

--- Bin/Data/Scripts/Editor/EditorResourceBrowser.as
+++ Bin/Data/Scripts/Editor/EditorResourceBrowser.as
@@ -145,7 +145,12 @@

     // collect all of the items and sort them afterwards
     for(uint i=0; i < cache.resourceDirs.length; ++i)
+    {
+        if (activeResourceDirFilters.Find(i) > -1)
+            continue;
+
         ScanResourceDir(i);
+    }
 }

 // used to stop ui from blocking while determining file types
@@ -564,8 +569,6 @@
     for(uint x=0; x < dir.files.length; x++)
     {
         BrowserFile@ file = dir.files[x];
-        if (activeResourceDirFilters.Find(file.resourceSourceIndex) > -1)
-            continue;

         if (activeResourceTypeFilters.Find(file.resourceType) == -1)
             files.Push(file);
@@ -702,7 +705,7 @@
             filter.checked = checkbox.checked;
     }
     ignoreRefreshBrowserResults = false;
-    RefreshBrowserResults();
+    RebuildResourceDatabase();
 }

 void HandleResourceDirFilterToggled(StringHash eventType, VariantMap& eventData)
@@ -720,7 +723,7 @@
         activeResourceDirFilters.Push(resourceDir);

     if (ignoreRefreshBrowserResults == false)
-        RefreshBrowserResults();
+        RebuildResourceDatabase();
 }

 void HandleRescanResourceBrowserClick(StringHash eventType, VariantMap& eventData)
@@ -1323,6 +1326,7 @@
         files.Push(file);
         return file;
     }
+
 }

 class BrowserFile


Transferred from the Adobe Open Source Subversion Repository

Revision: 12374
Author:   jon.avila@ssbbartgroup.com
Date:     2009-12-02T17:12:33.477062Z

Log Message:
-----------
Updated the VideoPlayerAccImpl to support the new VideoPlayer component.  This commit mostly addresses changing the names of components and event in the VideoPlayer that were referenced from the AccImpl.
QE notes: none
Doc notes: none
Bugs: n/a
Reviewer: Gordon
Tests run: checkintests
Is noteworthy for integration: no

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/VideoPlayerAccImpl.as

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

--- frameworks/projects/spark/src/spark/accessibility/VideoPlayerAccImpl.as
+++ frameworks/projects/spark/src/spark/accessibility/VideoPlayerAccImpl.as
@@ -16,6 +16,7 @@
 import flash.events.Event;
 import flash.events.MouseEvent;
 import flash.events.FocusEvent;
+import org.osmf.events.TimeEvent;
 import spark.components.VideoPlayer;
 import spark.components.Button;
 import spark.events.VideoEvent;
@@ -64,7 +65,7 @@
     /**
      *  @private
      */
-    private static const VIDEOPLAYER_PLAYHEADTIMEDISPLAY:uint = 3;
+    private static const VIDEOPLAYER_CURRENTTIMEDISPLAY:uint = 3;

     /**
      *  @private
@@ -148,6 +149,13 @@
 	    super(master);

 	    role = AccConst.ROLE_SYSTEM_PANE;
+
+        VideoPlayer(master).playPauseButton.addEventListener(Event.CHANGE,
+        eventHandler);
+        VideoPlayer(master).volumeBar.addEventListener(Event.CHANGE,
+        eventHandler);
+        VideoPlayer(master).volumeBar.addEventListener(FlexEvent.MUTED_CHANGE,
+        eventHandler);
 	}

 	//--------------------------------------------------------------------------
@@ -166,17 +174,8 @@
 	 */
 	override protected function get eventsToHandle():Array
 	{
-	    VideoPlayer(master).playPauseButton.addEventListener(Event.CHANGE,
-        eventHandler);
-	    VideoPlayer(master).volumeBar.addEventListener(Event.CHANGE,
-        eventHandler);
-	    VideoPlayer(master).volumeBar.addEventListener(FlexEvent.MUTED_CHANGE,
-        eventHandler);
-	    VideoPlayer(master).videoElement.addEventListener(VideoEvent.
-        PLAYHEAD_UPDATE, eventHandler);
-
         return super.eventsToHandle.concat([MouseEvent.CLICK,
-        FocusEvent.FOCUS_IN])
+        FocusEvent.FOCUS_IN, TimeEvent.CURRENT_TIME_CHANGE ])
 	}

@@ -207,9 +206,9 @@
             {
                 return videoPlayer.scrubBar;
             }
-            case VIDEOPLAYER_PLAYHEADTIMEDISPLAY:
-            {
-                return videoPlayer.playheadTimeDisplay;
+            case VIDEOPLAYER_CURRENTTIMEDISPLAY:
+            {
+                return videoPlayer.currentTimeDisplay;
             }
             case VIDEOPLAYER_MUTEBUTTON:
             {
@@ -282,9 +281,9 @@
 			    accRole = AccConst.ROLE_SYSTEM_SLIDER;  // scrubBar
 			    break;
 		    }
-		    case VIDEOPLAYER_PLAYHEADTIMEDISPLAY:
-            {
-			    accRole = AccConst.ROLE_SYSTEM_STATICTEXT; // playHeadTime
+		    case VIDEOPLAYER_CURRENTTIMEDISPLAY:
+            {
+			    accRole = AccConst.ROLE_SYSTEM_STATICTEXT; // currentTime
 			    break;
        		}
     		case VIDEOPLAYER_MUTEBUTTON:
@@ -351,8 +350,8 @@
         videoPlayer.playPauseButton.enabled == false) ||
         (childID == VIDEOPLAYER_SCRUBBAR &&
         videoPlayer.scrubBar.enabled == false) ||
-        (childID == VIDEOPLAYER_PLAYHEADTIMEDISPLAY &&
-        videoPlayer.playheadTimeDisplay.enabled == false) ||
+        (childID == VIDEOPLAYER_CURRENTTIMEDISPLAY &&
+        videoPlayer.currentTimeDisplay.enabled == false) ||
         (childID == VIDEOPLAYER_MUTEBUTTON &&
         videoPlayer.volumeBar.enabled == false) ||
         (childID == VIDEOPLAYER_VOLUMEBAR &&
@@ -364,8 +363,8 @@
            return accState;
         }

-        // eveything except for the playheadTimeDisplay should be focusable
-        if (childID != VIDEOPLAYER_PLAYHEADTIMEDISPLAY)
+        // eveything except for the currentTimeDisplay should be focusable
+        if (childID != VIDEOPLAYER_CURRENTTIMEDISPLAY)
             accState |=	AccConst.STATE_SYSTEM_FOCUSABLE;

         if (childID == index)
@@ -541,10 +540,10 @@
                 resourceManager.getString("components","videoPlayerScrubBarAccName")
                 break;
 	        }
-		    case VIDEOPLAYER_PLAYHEADTIMEDISPLAY:
-            {
-		        label = String(videoPlayer.playheadTimeDisplay.text+"/"+
-                videoPlayer.totalTimeDisplay.text);
+		    case VIDEOPLAYER_CURRENTTIMEDISPLAY:
+            {
+		        label = String(videoPlayer.currentTimeDisplay.text+"/"+
+                videoPlayer.durationDisplay.text);
 		        break;
 		    }
             case VIDEOPLAYER_MUTEBUTTON:
@@ -612,7 +611,7 @@
 		var accValue:String = "";

 		if (childID == VIDEOPLAYER_SCRUBBAR)
-  	   	    accValue = videoPlayer.playheadTimeDisplay.text;
+  	   	    accValue = videoPlayer.currentTimeDisplay.text;

         if (childID == VIDEOPLAYER_VOLUMEBAR)
             accValue = String(Math.floor(videoPlayer.volumeBar.value*100));
@@ -685,8 +684,8 @@
             index = VIDEOPLAYER_PLAYPAUSEBUTTON;
         else if (str.search("scrubBar") > 0)
             index = VIDEOPLAYER_SCRUBBAR;
-        else if (str.search("totalTimeDisplay") > 0)
-            index = VIDEOPLAYER_PLAYHEADTIMEDISPLAY;
+        else if (str.search("durationDisplay") > 0)
+            index = VIDEOPLAYER_CURRENTTIMEDISPLAY;
         else if (str.search("volumeBar") > 0)
             index = VIDEOPLAYER_VOLUMEBAR;
         else if (str.search("fullScreenButton") > 0)
@@ -741,7 +740,7 @@
 				else if (childID == VIDEOPLAYER_SCRUBBAR || childID ==
                 VIDEOPLAYER_VOLUMEBAR)
 					msaaEvt = AccConst.EVENT_OBJECT_VALUECHANGE;
-                if (childID != VIDEOPLAYER_PLAYHEADTIMEDISPLAY && childID != 0)
+                if (childID != VIDEOPLAYER_CURRENTTIMEDISPLAY && childID != 0)
                 {
 				    Accessibility.sendEvent(master, childID, msaaEvt);
 				    Accessibility.updateProperties();
@@ -755,11 +754,11 @@
 				Accessibility.updateProperties();
 				break;
 			}
-            case VideoEvent.PLAYHEAD_UPDATE:
+            case TimeEvent.CURRENT_TIME_CHANGE:
 			{
 				Accessibility.sendEvent(master, VIDEOPLAYER_SCRUBBAR,
                 AccConst.EVENT_OBJECT_VALUECHANGE);
-				Accessibility.sendEvent(master, VIDEOPLAYER_PLAYHEADTIMEDISPLAY,
+				Accessibility.sendEvent(master, VIDEOPLAYER_CURRENTTIMEDISPLAY,
                 AccConst.EVENT_OBJECT_NAMECHANGE);
 				Accessibility.updateProperties();
 				break;


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

--- frameworks/projects/rpc/src/mx/rpc/soap/LoadEvent.as
+++ frameworks/projects/rpc/src/mx/rpc/soap/LoadEvent.as
@@ -0,0 +1,111 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2005-2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.rpc.soap
+{
+
+import flash.events.Event;
+import flash.xml.XMLDocument;
+import mx.rpc.events.WSDLLoadEvent;
+import mx.rpc.wsdl.WSDL;
+
+// Note that this event is retained in the mx.rpc.soap package
+// for backwards compatibility.
+
+/**
+ * This event is dispatched when a WSDL XML document has loaded successfully.
+ */
+public class LoadEvent extends WSDLLoadEvent
+{
+    /**
+     * Creates a new WSDLLoadEvent.
+     * @param type The event type; indicates the action that triggered 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 wsdl Object that contains the WSDL document.
+     * @param location URL of the WSDL document.
+     */
+    public function LoadEvent(type:String, bubbles:Boolean = false,
+        cancelable:Boolean = true, wsdl:WSDL = null, location:String = null)
+    {
+        super(type == null ? LOAD : type,
+            bubbles,
+            cancelable,
+            wsdl,
+            location);
+    }
+
+    [Deprecated(replacement="xml")]
+    /**
+     * This getter is retained to provide legacy access to the loaded document
+     * as an instance of flash.xml.XMLDocument.
+     */
+    public function get document():XMLDocument
+    {
+        if (_document == null && xml != null)
+        {
+            try
+            {
+                _document = new XMLDocument(xml.toXMLString());
+            }
+            catch(e:Error)
+            {
+            }
+        }
+        return _document;
+    }
+
+    /**
+     * Returns a copy of this LoadEvent.
+     */
+    override public function clone():Event
+    {
+        return new LoadEvent(type, bubbles, cancelable, wsdl, location);
+    }
+
+    /**
+     * Returns a String representation of this LoadEvent.
+     */
+    override public function toString():String
+    {
+        return formatToString("LoadEvent", "location", "type", "bubbles",
+            "cancelable", "eventPhase");
+    }
+
+    /**
+     * A helper method to create a new LoadEvent.
+     * @private
+     */
+    public static function createEvent(wsdl:WSDL, location:String = null):LoadEvent
+    {
+        return new LoadEvent(LOAD, false, true, wsdl, location);
+    }
+
+
+  /**
+    * The LOAD event type.
+    *
+    *
The properties of the event object have the following values:

+    *

+    *
Property	Value

+    *
bubbles	false

+    *
cancelable	true

+    *
wsdl	WSDL object.

+    *
location	URI of the WSDL document

+    *

+    *  @eventType load
+    */
+    public static const LOAD:String = "load";
+
+    private var _document:XMLDocument;
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 12469
Author:   jimurphy@adobe.com
Date:     2009-12-03T22:04:16.560316Z

Log Message:
-----------
fix offsets for FB.  Convert line ending from lf to crlf in svn for the proects directory only.  When checking project files in, be sure to save you files this way.  Another update to make sure happens is set the svn properties svn:eol-style = native and svn:mime-type = text/plain (these have been updated on theses files as well)

QE notes: make sure the proper class is selected
Doc notes: no
Bugs: http://bugs.adobe.com/jira/browse/SDK-24498
Reviewer:
Tests run: checkintests
Is noteworthy for integration: no

Modified Paths:
--------------
133 paths were modified

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

--- frameworks/projects/spark/src/spark/effects/Scale.as
+++ frameworks/projects/spark/src/spark/effects/Scale.as
@@ -269,4 +269,4 @@
         super.initInstance(instance);
     }
 }
-}+}


cleaning up controller references.

cleaning up controller references.

--- flash/flexunit/src/com/infrared5/application/controller/Controller.as
+++ flash/flexunit/src/com/infrared5/application/controller/Controller.as
@@ -8,8 +8,6 @@

 		public var getUsersCommand:ICommand;
 		public var addUserCommand:IUserCommand;
-		public var removeUserCommand:IUserCommand;
-		public var updateUserCommand:IUserCommand;

 		public function Controller() {}


give/Take saving

give/Take saving

--- flexEditor/src/org/arisgames/editor/view/PlayerStateChangesEditorView.as
+++ flexEditor/src/org/arisgames/editor/view/PlayerStateChangesEditorView.as
@@ -132,7 +132,6 @@
 			dg.editedItemRenderer.data = st;
 			var newAd:Number = PlayerStateChangesItemComboBoxMX(DataGrid(evt.target).itemEditorInstance).cbo.selectedItem.data;

-
 			// Close the cell editor.
 			dg.destroyItemEditor();

@@ -142,20 +141,22 @@

 			// Notify the list control to update its display.
 			pscs.refresh();
-
-
-
-
-
+
 		}

 		if (DataGrid(evt.target).itemEditorInstance is PlayerStateChangesEditorActionRendererMX)
 		{
+			trace("PlayerStateChangeEditorView: Event CBO");
 			evt.preventDefault();

 			// Get new requirement from editor for renderer to display
 			st = PlayerStateChangesEditorActionRendererMX(DataGrid(evt.target).itemEditorInstance).cbo.text;
 			dg.editedItemRenderer.data = st;
+			psc.actionHuman = st;
+			trace("PlayerStateChangeEditorView: st:" + st);
+
+
+
 		}


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

--- frameworks/projects/automation/src/mx/automation/events/MenuShowEvent.as
+++ frameworks/projects/automation/src/mx/automation/events/MenuShowEvent.as
@@ -0,0 +1,131 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2009 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.automation.events
+{
+
+	import flash.events.Event;
+	import mx.controls.menuClasses.IMenuBarItemRenderer;
+
+	/**
+	 *  The MenuShowEvent class represents events that are associated with menuBar.
+	 *
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public class MenuShowEvent extends Event
+	{
+		include "../../core/Version.as";
+
+		//--------------------------------------------------------------------------
+		//
+		//  Class constants
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  The MenuShowEvent.MENU_SHOW constant defines the value of the
+		 *  type property of the event object for a menuShow 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.

+		 *
itemRenderer	The item renderer object
+		 *              for the associated menu item.

+		 *
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.

+		 *

+		 *
+		 *  @eventType menuShow
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public static const MENU_SHOW:String = "menuShow";
+
+		//--------------------------------------------------------------------------
+		//
+		//  Constructor
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  Constructor.
+		 *
+		 *  Normally called by the Menu object.
+		 *
+		 *  @param type The event type; indicates the action that caused the event.
+		 *
+		 *  @param itemRenderer The IMenuBarItemRenderer of the associated menu item.
+		 *
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public function MenuShowEvent(type:String,
+									  itemRenderer:IMenuBarItemRenderer = null)
+		{
+			super(type);
+
+			this.itemRenderer = itemRenderer;
+		}
+
+		//--------------------------------------------------------------------------
+		//
+		//  Properties
+		//
+		//--------------------------------------------------------------------------
+
+		//----------------------------------
+		//  itemRenderer
+		//----------------------------------
+
+		/**
+		 *  The item renderer of the associated menu item where the event occurred.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public var itemRenderer:IMenuBarItemRenderer;
+
+		//--------------------------------------------------------------------------
+		//
+		//  Overridden methods: Event
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  @private
+		 */
+		override public function clone():Event
+		{
+			return new MenuShowEvent(type, itemRenderer);
+		}
+	}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 22508
Author:   jszeto@adobe.com
Date:     2011-09-12T20:19:02.026327Z

Log Message:
-----------
SpinnerList ASDoc examples

QE notes: none
Doc notes: none
Bugs: none
Reviewer: Steve S
Tests run: none
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/asdoc/en_US/spark/components/examples/SpinnerListExample.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/SpinnerList.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/asdoc/en_US/spark/components/examples/SpinnerListContainerExample.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/SpinnerListContainer.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/SpinnerList.as
+++ frameworks/projects/mobilecomponents/src/spark/components/SpinnerList.as
@@ -48,15 +48,13 @@

 [IconFile("SpinnerList.png")]

-/*
-
-TODO
-	Prevent the changing event from getting dispatched
-*/
-
 /**
  *  The SpinnerList component displays a list of items. The item in the center of the
  *  list is always the selectedItem. By default, the list wraps around.
+ *
+ *  @includeExample examples/SpinnerListExample.mxml -noswf
+ *  @includeExample examples/SpinnerListContainerExample.mxml -noswf
+ *
  *
  *  @langversion 3.0
  *  @playerversion AIR 3
@@ -322,7 +320,7 @@

 		Animate(event.currentTarget).removeEventListener(EffectEvent.EFFECT_END, animateToIndex_effectEndHandler);
 	}
-
+
 	//--------------------------------------------------------------------------
 	//
 	//  Event handlers


remove try and catch to improve performance

--- frameworks/projects/mx/src/mx/controls/dataGridClasses/DataGridColumn.as
+++ frameworks/projects/mx/src/mx/controls/dataGridClasses/DataGridColumn.as
@@ -1739,17 +1739,17 @@

         if (typeof(data) == "object" || typeof(data) == "xml")
         {
-            try
-            {
-                if (!hasComplexFieldName)
-                	data = data[dataField];
-                else
-                    data = deriveComplexColumnData(data);
-            }
-            catch(e:Error)
-            {
-                data = null;
-            }
+            if (hasComplexFieldName)
+			{
+				data = deriveComplexColumnData(data);
+			}
+			else if (dataField != null)
+			{
+				if (dataField in data)
+	            	data = data[dataField];
+	            else
+					data = null;
+			}
         }

         if (data is String)
@@ -1798,17 +1798,13 @@
             var field:String = dataTipField;
             if (!field)
                 field = owner.dataTipField;
-            try
-            {
-                if (data[field] != null)
-                    data = data[field];
-                else if (data[dataField] != null)
-                    data = data[dataField];
-            }
-            catch(e:Error)
-            {
-                data = null;
-            }
+
+            if (field in data && data[field] != null)
+                data = data[field];
+            else if (dataField in data && data[dataField] != null)
+                data = data[dataField];
+			else
+				data = null;
         }

         if (data is String)
@@ -1828,13 +1824,15 @@
     /**
      * @private
      */
-    protected function deriveComplexColumnData( data:Object ):Object
+    protected function deriveComplexColumnData(data:Object):Object
     {
         var currentRef:Object = data;
-        if ( complexFieldNameComponents )
-        {
-            for ( var i:int=0; currentRef && i < complexFieldNameComponents.length; i++ )
-                currentRef = currentRef[ complexFieldNameComponents[ i ] ];
+		var length:int = complexFieldNameComponents.length
+
+        if (complexFieldNameComponents)
+        {
+            for (var i:int=0; currentRef && i < length; i++)
+                currentRef = currentRef[complexFieldNameComponents[i]];
         }

         return currentRef?currentRef:"";


simplified if statement

simplified if statement

Change-Id: I0488601a46587ea9bd30125c73aced304b62b102

--- WeaveCore/src/weave/compiler/StandardLib.as
+++ WeaveCore/src/weave/compiler/StandardLib.as
@@ -302,8 +302,8 @@
 		 */
 		public static function roundSignificant(value:Number, significantDigits:uint = 14):Number
 		{
-			// it doesn't make sense to round infinity
-			if (isNaN(value) || value == Number.NEGATIVE_INFINITY || value == Number.POSITIVE_INFINITY)
+			// it doesn't make sense to round infinity or NaN
+			if (!isFinite(value))
 				return value;

 			var sign:Number = (value < 0) ? -1 : 1;


working around Array.sort(Array.NUMERIC) crash when there is an
undefined value.

Change-Id: I6416759410aa7cd19e83e36e11f41648667a199c

--- WeaveCore/src/weave/compiler/StandardLib.as
+++ WeaveCore/src/weave/compiler/StandardLib.as
@@ -598,11 +598,6 @@
 		 */
 		public static function sortOn(array:*, params:*, sortDirections:* = undefined, inPlace:Boolean = true, returnSortedIndexArray:Boolean = false):*
 		{
-			var time_read:Array = [];
-			var time_slice:int;
-			var time_sort:int;
-			var time_init:int;
-
 			if (array.length == 0)
 				return inPlace ? array : [];

@@ -611,83 +606,47 @@
 			var sortDirection:int;
 			var i:int;

-//			var t:int;
-//			t = getTimer();
 			// expand _sortBuffer as necessary
 			for (i = _sortBuffer.length; i < array.length; i++)
 				_sortBuffer[i] = [];
-//			time_init = getTimer() - t;
-
-			if (params != array && params is Array)
-			{
-				var fields:Array = new Array(params.length);
-				var fieldOptions:Array = new Array(params.length);
-				for (var p:int = 0; p < params.length; p++)
-				{
-//					t = getTimer();
-
-					param = params[p];
-					sortDirection = sortDirections && sortDirections[p] < 0 ? Array.DESCENDING : 0;
-
-					i = array.length;
-					if (param is Array || param is Vector)
-						while (i--)
-							_sortBuffer[i][p] = param[i];
-					else if (param is Function)
-						while (i--)
-							_sortBuffer[i][p] = param(array[i]);
-					else if (typeof param === 'object')
-						while (i--)
-							_sortBuffer[i][p] = param[array[i]];
-					else
-						while (i--)
-							_sortBuffer[i][p] = array[i][param];
-
-//					time_read[p] = getTimer() - t;
-
-					fields[p] = p;
-					fieldOptions[p] = Array.RETURNINDEXEDARRAY | guessSortMode(_sortBuffer[0][p]) | sortDirection;
-				}
+
+			// If there is only one param, wrap it in an array.
+			// Array.sortOn() is preferred over Array.sort() in this case
+			// since an undefined value will crash Array.sort(Array.NUMERIC).
+			if (params === array || !(params is Array))
+			{
+				params = [params];
+				if (sortDirections)
+					sortDirections = [sortDirections];
+			}
+
+			var fields:Array = new Array(params.length);
+			var fieldOptions:Array = new Array(params.length);
+			for (var p:int = 0; p < params.length; p++)
+			{
+				param = params[p];
+				sortDirection = sortDirections && sortDirections[p] < 0 ? Array.DESCENDING : 0;

-//				t = getTimer();
-				values = _sortBuffer.slice(0, array.length)
-//				time_slice = getTimer() - t;
-
-//				t = getTimer();
-				values = values.sortOn(fields, fieldOptions);
-//				time_sort = getTimer() - t;
-
-//				debugTrace(
-//					'sorted',values.length,
-//					'params',params.map(function(o:*,i:*,a:*):*{return debugId(o);}).join(','),
-//					'init',time_init,
-//					'read',time_read.join(','),
-//					'slice',time_slice,
-//					'sort',time_sort
-//				);
-			}
-			else
-			{
-				param = params;
-				sortDirection = sortDirections < 0 ? Array.DESCENDING : 0;
-
-				values = new Array(array.length);
 				i = array.length;
-				if (param === array || param is Vector)
+				if (param is Array || param is Vector)
 					while (i--)
-						values[i] = param[i];
+						_sortBuffer[i][p] = param[i];
 				else if (param is Function)
 					while (i--)
-						values[i] = param(array[i]);
+						_sortBuffer[i][p] = param(array[i]);
 				else if (typeof param === 'object')
 					while (i--)
-						values[i] = param[array[i]];
+						_sortBuffer[i][p] = param[array[i]];
 				else
 					while (i--)
-						values[i] = array[i][param];
+						_sortBuffer[i][p] = array[i][param];

-				values = values.sort(Array.RETURNINDEXEDARRAY | guessSortMode(values[0]) | sortDirection);
-			}
+				fields[p] = p;
+				fieldOptions[p] = Array.RETURNINDEXEDARRAY | guessSortMode(_sortBuffer[0][p]) | sortDirection;
+			}
+
+			values = _sortBuffer.slice(0, array.length);
+			values = values.sortOn(fields, fieldOptions);

 			if (returnSortedIndexArray)
 				return values;


added check for disposed

added check for disposed

--- WeaveData/src/weave/services/EntityCache.as
+++ WeaveData/src/weave/services/EntityCache.as
@@ -25,6 +25,7 @@
     import weave.api.data.ColumnMetadata;
     import weave.api.data.EntityType;
     import weave.api.getCallbackCollection;
+    import weave.api.objectWasDisposed;
     import weave.api.registerLinkableChild;
     import weave.api.reportError;
     import weave.api.services.IWeaveEntityManagementService;
@@ -107,6 +108,9 @@
 		 */
 		public function invalidate(id:int, alsoInvalidateRelatives:Boolean = false):void
 		{
+			if (objectWasDisposed(this))
+				return;
+
 			//trace('invalidate',id, alsoInvalidateRelatives, entityCache[id]);
 			callbacks.delayCallbacks();

@@ -371,7 +375,9 @@
 		 * @param purge If set to true, clears cache instead of just invalidating it.
 		 */
 		public function invalidateAll(purge:Boolean = false):void
-        {
+        {
+			if (objectWasDisposed(this))
+				return;
 			if (purge)
 			{
 				idsToFetch = {};


Transferred from the Adobe Open Source Subversion Repository

Revision: 12457
Author:   smgilson@adobe.com
Date:     2009-12-03T18:13:50.586970Z

Log Message:
-----------
asdoc updates for localization

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Effect.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/Scale3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateTransitionShader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateTransform3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/animation/MotionPath.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/animation/Keyframe.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/AnchorStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Wipe.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/IEffect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ILayoutElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateTransform.as</path>

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

--- frameworks/projects/spark/src/spark/effects/animation/MotionPath.as
+++ frameworks/projects/spark/src/spark/effects/animation/MotionPath.as
@@ -125,7 +125,7 @@
      *  during that interval. The sequence of keyframes must be sorted in
      *  order of increasing time values.
      *
-     *
Animations always start at time=0 and will last for a duration
+     *
Animations always start at time=0 and lasts for a duration
      *  equal to the time value in the final keyframe.
      *  If no keyframe is defined at time=0,
      *  that keyframe is implicit, using the value of the
@@ -136,7 +136,7 @@
      *  of the final keyframe of all MotionPaths in the effect.
      *  For example, if an effect has keyframes
      *  at times 0, 500, 1000, and 2000, then the effective duration of that
-     *  effect will be 2000 ms, regardless of any duration property set on the
+     *  effect is 2000 ms, regardless of any duration property set on the
      *  effect itself.
      *  Because the final keyframe determines the duration, there
      *  must always be a final keyframe in any MotionPath. That is,


Transferred from the Adobe Open Source Subversion Repository

Revision: 23246
Author:   cframpto@adobe.com
Date:     2011-12-20T17:40:08.069454Z

Log Message:
-----------
Rollback 23243.  If comment followed header it was stripped as well.

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

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

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

 package mx.olap
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 14744
Author:   klin@adobe.com
Date:     2010-03-12T23:33:39.865284Z

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

Adding ILayoutDirectionElement to address issues with non-styled components such as embedded bitmaps. Also, addressed issues with changing layoutDirection at runtime.

-Added ILayoutDirectionElement.as with the layoutDirection property and invalidateLayoutDirection(). I took them out of IVisualElement.
-Moved the mirroring code from FlexBitmap to BitmapAsset as well as SpriteAsset. Also, implemented ILayoutDirectionElement in both.
-Addressed issues with layoutDirection changing at runtime by adding logic in UIComponent and Container to call invalidateLayoutDirection() on all of their ILayoutDirectionElement children.
-Updated various other components to use the new interface.
-Updated the dependency checker.

QE notes: No
Doc notes: No
Bugs: SDK-25656, SDK-25685, SDK-25726, SDK-25758 , SDK-25776 , SDK-25784 , SDK-25791, SDK-25806
Reviewer: Jason, Carol
Tests run: checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.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/IVisualElement.as</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/FlexBitmap.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/LayoutDirection.as</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/frameworkSwcExceptionsList.txt</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/DragManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/core/ILayoutDirectionElement.as" copyfrom-rev="14741" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ILayoutDirectionElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>

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

--- frameworks/projects/framework/src/mx/core/LayoutDirection.as
+++ frameworks/projects/framework/src/mx/core/LayoutDirection.as
@@ -14,7 +14,7 @@
     /**
      *  The LayoutDirection class defines the constant values
      *  for the layoutDirection style of an IStyleClient and the
-     *  layoutDirection property of an IVisualElement.
+     *  layoutDirection property of an ILayoutDirectionElement.
      *
      *  Left-to-right layoutDirection is typically used with Latin-style
      *  scripts. Right-to-left layoutDirection is used with scripts such as
@@ -23,11 +23,11 @@
      *  If an IStyleClient, set the layoutDirection style to undefined to
      *  inherit the layoutDirection from its ancestor.
      *
-     *  If an IVisualElement, set the layoutDirection property to null to
+     *  If an ILayoutDirectionElement, set the layoutDirection property to null to
      *  inherit the layoutDirection from its ancestor.
      *
      *  @see mx.styles.IStyleClient
-     *  @see mx.core.IVisualElement
+     *  @see mx.core.ILayoutDirectionElement
      *
      *  @langversion 3.0
      *  @playerversion Flash 10


Transferred from the Adobe Open Source Subversion Repository

Revision: 23246
Author:   cframpto@adobe.com
Date:     2011-12-20T17:40:08.069454Z

Log Message:
-----------
Rollback 23243.  If comment followed header it was stripped as well.

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

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

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

 package mx.rpc.http
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 9938
Author:   clucier@adobe.com
Date:     2009-09-02T21:07:27.190464Z

Log Message:
-----------
Quick convenience logic to remove a DL from a previous parent if it's ever reparented with addLayer.

QE notes: None
Doc notes: None
Bugs: None
Reviewer: Steve S. ;)
Tests run: Checkin (before the previous build breakage)
Is noteworthy for integration: No

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/DesignLayer.as

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

--- frameworks/projects/framework/src/mx/core/DesignLayer.as
+++ frameworks/projects/framework/src/mx/core/DesignLayer.as
@@ -131,6 +131,9 @@
          */
         protected function parentChanged(value:DesignLayer):void
         {
+            if (_parent)
+                _parent.removeLayer(this);
+
             _parent = value;
             effectiveVisibilityChanged(_visible);
             effectiveAlphaChanged(_alpha);


Transferred from the Adobe Open Source Subversion Repository

Revision: 4899
Author:   jimurphy@adobe.com
Date:     2009-02-09T15:58:02.302090Z

Log Message:
-----------
Merge i10 revisions 4865,4870-4871,4877,4880-4882,4890-4891 -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/init/StyleInitializer.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/XMLBuilder.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/AbstractBuilder.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/asc/src/java/macromedia/asc/embedding/LintEvaluator.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/init/VisualChildInitializer.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/init/ValueInitializer.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextGraphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/init/Initializer.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/TextBlockComposer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/decl/InitializedPropertyDeclaration.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/init/EventInitializer.java</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/init/NamedInitializer.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/TextParser.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/init/ArrayElementInitializer.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Move.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/XMLListBuilder.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/init/EffectInitializer.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/As3Compiler.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/LinearGradient.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/flex4/src/mx/components/TextView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationGenerator.java</path>

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

--- frameworks/projects/framework/src/mx/core/UIComponent.as
+++ frameworks/projects/framework/src/mx/core/UIComponent.as
@@ -33,6 +33,7 @@
 import flash.geom.Transform;
 import flash.geom.Vector3D;
 import flash.system.ApplicationDomain;
+import flash.text.TextFormatAlign;
 import flash.text.TextLineMetrics;
 import flash.utils.getQualifiedClassName;

@@ -8502,7 +8503,13 @@
             textFormat = new UITextFormat(getNonNullSystemManager(), font);
             textFormat.moduleFactory = moduleFactory;

-            textFormat.align = _inheritingStyles.textAlign;
+            // Not all flex4 textAlign values are valid so convert to a valid one.
+            var align:String = _inheritingStyles.textAlign;
+            if (align == "start")
+                align = TextFormatAlign.LEFT;
+            else if (align == "end")
+                align = TextFormatAlign.RIGHT;
+            textFormat.align = align;
             textFormat.bold = _inheritingStyles.fontWeight == "bold";
             textFormat.color = enabled ?
                                _inheritingStyles.color :


Transferred from the Adobe Open Source Subversion Repository

Revision: 2796
Author:   jimurphy@adobe.com
Date:     2008-08-11T14:31:56.866734Z

Log Message:
-----------
Merged 3.0.x revisions [2767,2780,2784] -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</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/managers/SystemManagerProxy.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/framework/src/mx/controls/PopUpButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateField.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/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/Compc.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/NativeDragManagerImpl.as</path>

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

--- frameworks/projects/framework/src/mx/core/UIComponent.as
+++ frameworks/projects/framework/src/mx/core/UIComponent.as
@@ -1760,6 +1760,7 @@
         if (_scaleX == value)
             return;

+        // trace("set scaleX:" + this + "value = " + value);
         _scaleX = value;

         invalidateProperties();
@@ -2407,13 +2408,17 @@
         if (!_systemManager || _systemManagerDirty)
         {
             var r:DisplayObject = root;
-            if (r && !(r is Stage))
+            if (_systemManager is SystemManagerProxy)
+            {
+                // keep the existing proxy
+            }
+            else if (r && !(r is Stage))
             {
                 // If this object is attached to the display list, then
                 // the root property holds its SystemManager.
                 _systemManager = (r as ISystemManager);
             }
-          else if (r)
+            else if (r)
             {
                 // if the root is the Stage, then we are in a second AIR window
                 _systemManager = Stage(r).getChildAt(0) as ISystemManager;


Transferred from the Adobe Open Source Subversion Repository

Revision: 4449
Author:   egeorgie@adobe.com
Date:     2009-01-08T21:24:44.060483Z

Log Message:
-----------
Fix bug http://bugs.adobe.com/jira/browse/SDK-18423 Setting enabled=false on any Spark container does not set its children to be disabled
Fix:
1. Make sure the mouseShield is on top of the display list
2. Add a mouseShield to FxTextBase
3. Update the FxContainer skin with alpha.disabled=0.5

QE Notes: Add tests for these cases
Doc Notes: None
Bugs: SDK-18423
Reviewer: Glenn, Ryan
tests: checkintests, mustella (FxContainer, FxTextArea)

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxContainerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxContainerBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxTextBase.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/utils/MouseShieldUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>

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

--- frameworks/projects/framework/src/mx/core/UIComponent.as
+++ frameworks/projects/framework/src/mx/core/UIComponent.as
@@ -5438,6 +5438,19 @@
     {
         return super.removeChildAt(index);
     }
+
+    /**
+     *  @private
+     *  This method allows access to the Player's native implementation
+     *  of setChildIndex(), which can be useful since components
+     *  can override setChildIndex() and thereby hide the native implementation.
+     *  Note that this "base method" is final and cannot be overridden,
+     *  so you can count on it to reflect what is happening at the player level.
+     */
+    mx_internal final function $setChildIndex(child:DisplayObject, index:int):void
+    {
+        super.setChildIndex(child, index);
+    }

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 13259
Author:   clucier@adobe.com
Date:     2010-01-04T19:52:51.953785Z

Log Message:
-----------
Restoring unconditional event dispatching for early life cycle events to facilitate external frameworks such as Mate and Swiz.

For 10.1 player and above we now sync layout immediately after stage resize for Application (mx/spark).

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

Modified Paths:
--------------
<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/events/FlexEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>

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

--- frameworks/projects/framework/src/mx/core/UIComponent.as
+++ frameworks/projects/framework/src/mx/core/UIComponent.as
@@ -133,9 +133,6 @@
  *
  *
At this point, depending on its visible property,
  *  the component is not visible even though it has been drawn.

- *
- *
This event is only dispatched when there are one or more
- *  relevant listeners attached to the dispatching object.

  *
  *  @eventType mx.events.FlexEvent.CREATION_COMPLETE
  *
@@ -186,9 +183,6 @@
  *
After the initialization phase, properties are processed, the component
  *  is measured, laid out, and drawn, after which the
  *  creationComplete event is dispatched.

- *
- *
This event only dispatched when there are one or more
- *  relevant listeners attached to the dispatching object.

  *
  *  @eventType mx.events.FlexEvent.INITIALIZE
  *
@@ -244,9 +238,6 @@
  *  When Flex dispatches the preinitialize event,
  *  the children, including the internal children, of a component
  *  have not yet been created.
- *
- *
This event only dispatched when there are one or more
- *  relevant listeners attached to the dispatching object.

  *
  *  @eventType mx.events.FlexEvent.PREINITIALIZE
  *
@@ -1583,9 +1574,7 @@
         if (value)
         {
             setVisible(_visible, true);
-
-            if (hasEventListener(FlexEvent.CREATION_COMPLETE))
-                dispatchEvent(new FlexEvent(FlexEvent.CREATION_COMPLETE));
+            dispatchEvent(new FlexEvent(FlexEvent.CREATION_COMPLETE));
         }
     }

@@ -1637,7 +1626,7 @@
     {
         _processedDescriptors = value;

-        if (value && hasEventListener(FlexEvent.INITIALIZE))
+        if (value)
             dispatchEvent(new FlexEvent(FlexEvent.INITIALIZE));
     }

@@ -7255,8 +7244,7 @@
         // affect child creation.
         // Note that this implies that "preinitialize" handlers are called
         // top-down; i.e., parents before children.
-        if (hasEventListener(FlexEvent.PREINITIALIZE))
-            dispatchEvent(new FlexEvent(FlexEvent.PREINITIALIZE));
+        dispatchEvent(new FlexEvent(FlexEvent.PREINITIALIZE));

         // Create child objects.
         createChildren();


Transferred from the Adobe Open Source Subversion Repository

Revision: 2586
Author:   jimurphy@adobe.com
Date:     2008-07-23T15:42:56.370538Z

Log Message:
-----------
Merged 3.0.x rev. [2567,2582,2584] -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</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/events/ModalWindowRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilerAPI.java</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/frameworkSwcExceptionsList.txt</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/DragManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/dragClasses/DragProxy.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/core/CrossDomainRSLItem.as</path>

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

--- frameworks/projects/framework/src/mx/core/UIComponent.as
+++ frameworks/projects/framework/src/mx/core/UIComponent.as
@@ -2772,12 +2772,6 @@
      */
     public function get parentApplication():Object
     {
-    	// TODODJL: I think the below check can be removed since we are now using
-    	// SystemManagerProxy to host a form on the top-level system manager.
-    	// systemManager could be null if the systemManager of this component lives in another sandbox.
-    	if (!systemManager)
-    		return null;
-
         // Look for the SystemManager's document,
         // which should be the Application.
         var o:Object = systemManager.document;
@@ -9257,6 +9251,67 @@
         return false;
     }

+
+    /**
+     *  @private
+     *
+     *  Get the bounds of this object that are visible to the user
+     *  on the screen.
+     *
+     *  @param stopParent The parent to stop at when calculating the visible
+     *  bounds. If null, this object's system manager will be used as
+     *  the parent.
+     *
+     *  @return a Rectangle including the visible portion of the this
+     *  object. The rectangle is in the coordinate system relative to the
+     *  stopParent parameter.
+     */
+    public function getVisibleRect(stopParent:DisplayObject):Rectangle
+    {
+        if (!stopParent)
+            stopParent = DisplayObject(systemManager);
+
+        var pt:Point = new Point();
+        pt.x = x;
+        pt.y = y;
+        pt = $parent.localToGlobal(pt);
+        pt = stopParent.globalToLocal(pt);
+        var bounds:Rectangle = new Rectangle(pt.x, pt.y, width, height);
+        var current:DisplayObject = this;
+        var currentRect:Rectangle;
+        var currentParent:DisplayObject;
+
+        do
+        {
+            if (current is UIComponent)
+                current = UIComponent(current).$parent;
+            else
+                current = current.parent;
+
+            currentRect = current.scrollRect;
+            if (currentRect)
+            {
+                if (current is UIComponent)
+                    currentParent = UIComponent(current).$parent;
+                else
+                    currentParent = current.parent;
+
+                pt.x = current.x;
+                pt.y = current.y;
+
+                pt = currentParent.localToGlobal(pt);
+                pt = stopParent.globalToLocal(pt);
+                currentRect.x = pt.x;
+                currentRect.y = pt.y;
+                currentRect.width = currentRect.width;
+                currentRect.height = currentRect.height;
+                bounds = bounds.intersection(currentRect);
+            }
+        } while (current != stopParent);
+
+        return bounds;
+    }
+
     //--------------------------------------------------------------------------
     //
     //  Diagnostics


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

--- frameworks/projects/framework/src/mx/resources/Locale.as
+++ frameworks/projects/framework/src/mx/resources/Locale.as
@@ -24,6 +24,11 @@
  *
  *  @see mx.resources.IResourceBundle
  *  @see mx.resources.IResourceManager
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class Locale
 {
@@ -64,6 +69,11 @@
      *  @param sm The current SystemManager.
      *
      *  @return Returns a Locale object.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public static function getCurrent(sm:ISystemManager):Locale
     {
@@ -97,6 +107,11 @@
      *  to optionally distinguish multiple locales for the same language and country.
      *  It is sometimes used to indicate the operating system
      *  that the locale should be used with, such as "MAC", "WIN", or "UNIX".
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function Locale(localeString:String)
     {
@@ -152,6 +167,11 @@
      *  var locale:Locale = new Locale("en_US_MAC");
      *  trace(locale.language); // outputs "en"
      *

+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get language():String
     {
@@ -177,6 +197,11 @@
      *  var locale:Locale = new Locale("en_US_MAC");
      *  trace(locale.country); // outputs "US"
      *

+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get country():String
     {
@@ -202,6 +227,11 @@
      *  var locale:Locale = new Locale("en_US_MAC");
      *  trace(locale.variant); // outputs "MAC"
      *

+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get variant():String
     {
@@ -225,6 +255,11 @@
      *
      *  @return Returns the locale String that was used to
      *  construct this Locale instance.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function toString():String
     {


Transferred from the Adobe Open Source Subversion Repository

Revision: 23246
Author:   cframpto@adobe.com
Date:     2011-12-20T17:40:08.069454Z

Log Message:
-----------
Rollback 23243.  If comment followed header it was stripped as well.

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

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

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

 package spark.components
 {


fixed parsing sound version

fixed parsing sound version

--- src/main/actionscript/com/castlabs/dash/boxes/SampleEntry.as
+++ src/main/actionscript/com/castlabs/dash/boxes/SampleEntry.as
@@ -49,26 +49,10 @@
     }

     protected function parseMp4a(ba:ByteArray):void {
-
-        ba.position += 6;
-
-        var soundVersion:uint;
-        soundVersion = ba.readUnsignedShort();
-
-
-        ba.position += 8;
+        ba.position += 16;

         channelCount = ba.readUnsignedShort();
         sampleSize = ba.readUnsignedShort();
-
-        // skip
-        ba.position += 8;
-        if (soundVersion==1) {
-            ba.position += 16;
-        }
-        if (soundVersion==2) {
-            ba.position += 36;
-        }

         _data = parseMp4aData(ba);
     }
@@ -103,13 +87,14 @@
     }

     private function parseMp4aData(ba:ByteArray):ByteArray {
+        ba.position = goToBox("esds", ba);

-        // 4-bytes size
-        ba.position += 4;
+//        // 4-bytes size
+//        ba.position += 4;
+//        // 4-bytes type
+//        ba.position += 4;

-        if (ba.readUTFBytes(4) != 'esds') {
-            throw _context.console.logAndBuildError("Couldn't find a 'esds' box");
-        }
+        ba.position += 8;

 //        // 4-bytes version/flags
 //        ba.position += 4;


Update idiomesAnimation.as

Update idiomesAnimation.as

--- com/segonquart/idiomesAnimation.as
+++ com/segonquart/idiomesAnimation.as
@@ -14,6 +14,13 @@
 			this.onEnterFrame = this.enterSlide;

 		}
+
+	private function onSlideIN()
+		{
+			this.stop();
+			this.onEnterFrame = this.enterSlide;
+
+		}

 	private function enterSlide()
                 {
@@ -22,8 +29,6 @@
 			arrayLang_arr[1].slideTo('0', '-40', 0.8, 'easeInOutBack', 1.1);
 			arrayLang_arr[2].slideTo('0', '-40', 0.9, 'easeInOutBack', 1.2);
 			arrayLang_arr[3].slideTo('0', '-40', 1, 'easeInOutBack', 1.3);
-
-			return this;

 		}


Transferred from the Adobe Open Source Subversion Repository

Revision: 23246
Author:   cframpto@adobe.com
Date:     2011-12-20T17:40:08.069454Z

Log Message:
-----------
Rollback 23243.  If comment followed header it was stripped as well.

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

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

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

 package mx.events
 {


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


Transferred from the Adobe Open Source Subversion Repository

Revision: 8401
Author:   smgilson@adobe.com
Date:     2009-07-06T21:34:44.861518Z

Log Message:
-----------
ASDoc on filters/BevelFilter.as

QE Notes: None
Doc Notes: None
Bugs: -
Checkintests: passed

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/ConvolutionFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/ColorMatrixFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/BlurFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/DisplacementMapFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GradientGlowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/ShaderFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GlowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/DropShadowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GradientBevelFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/BevelFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GradientFilter.as</path>

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

--- frameworks/projects/spark/src/spark/filters/GradientFilter.as
+++ frameworks/projects/spark/src/spark/filters/GradientFilter.as
@@ -1,7 +1,7 @@
 package spark.filters
 {
-
-import flash.events.Event;
+
+import flash.events.Event;
 import flash.events.EventDispatcher;
 import flash.filters.BitmapFilter;
 import flash.filters.BitmapFilterType;
@@ -18,6 +18,20 @@

 /**
  * The base class for filters that provide gradient visual effects.
+ *
+ *  @mxml
+ *
The <GradientFilter> tag inherits all of the tag
+ *  attributes of its superclass and adds the following tag attributes:

+ *
+ *

+ *  <GradientFilter
+ *    Properties
+ *    angle="45"
+ *    disatance="4.0"
+ *    entries="[]"
+ *    type="inner"
+ *  />
+ *

  *
  * @langversion 3.0
  * @playerversion Flash 10
@@ -27,297 +41,307 @@
  */
 public class GradientFilter extends BaseDimensionFilter
 {
-	/**
-	 * Constructor.
-	 *
-	 * @param colors An array of RGB hexadecimal color values to use in the gradient.
-	 * For example, red is 0xFF0000, blue is 0x0000FF, and so on.
-	 * @param alphas An array of alpha transparency values for the corresponding colors in
-	 * the colors array. Valid values for each element in the array are 0 to 1.
-	 * For example, .25 sets a transparency value of 25%.
-	 * @param ratios An array of color distribution ratios; valid values are
-	 * 0 to 255.
-	 *
-	 * @langversion 3.0
-	 * @playerversion Flash 10
-	 * @playerversion AIR 1.5
- 	 * @productversion Flex 4
-	 *
-	 */
-	public function GradientFilter(colors:Array = null,
-								   alphas:Array = null,
-								   ratios:Array = null)
-	{
-		super();
-
-		var newEntries:Array = [];
-		var colorsLen:int = colors ? colors.length : 0;
-		var alphasLen:int = alphas ? alphas.length : 0;
-		var ratiosLen:int = ratios ? ratios.length : 0;
-		var maxLen:int = Math.max(colorsLen, alphasLen, ratiosLen);
-
-		for (var i:int = 0; i < maxLen; i++)
-		{
-			var newEntry:GradientEntry = new GradientEntry();
-			if (colorsLen > i)
-				newEntry.color = colors[i];
-			if (alphasLen > i)
-				newEntry.alpha = alphas[i];
-			if (ratiosLen > i)
-				newEntry.ratio = ratios[i];
-
-			newEntries.push(newEntry);
-		}
-
-		entries = newEntries;
-	}
-
-	//--------------------------------------------------------------------------
-	//
-	//  Variables
-	//
-	//--------------------------------------------------------------------------
-
- 	/**
-	 *  @private
-	 */
-	mx_internal var colors:Array /* of uint */ = [];
-
- 	/**
-	 *  @private
-	 */
-	mx_internal var ratios:Array /* of Number */ = [];
-
- 	/**
-	 *  @private
-	 */
-	mx_internal var alphas:Array /* of Number */ = [];
-
-	//--------------------------------------------------------------------------
-	//
-	//  Properties
-	//
-	//--------------------------------------------------------------------------
-
-	//----------------------------------
+    /**
+     * Constructor.
+     *
+     * @param colors An array of RGB hexadecimal color values to use in the gradient.
+     * For example, red is 0xFF0000, blue is 0x0000FF, and so on.
+     * @param alphas An array of alpha transparency values for the corresponding colors in
+     * the colors array. Valid values for each element in the array are 0 to 1.
+     * For example, .25 sets a transparency value of 25%.
+     * @param ratios An array of color distribution ratios; valid values are
+     * 0 to 255.
+     *
+     * @langversion 3.0
+     * @playerversion Flash 10
+     * @playerversion AIR 1.5
+     * @productversion Flex 4
+     *
+     */
+    public function GradientFilter(colors:Array = null,
+                                   alphas:Array = null,
+                                   ratios:Array = null)
+    {
+        super();
+
+        var newEntries:Array = [];
+        var colorsLen:int = colors ? colors.length : 0;
+        var alphasLen:int = alphas ? alphas.length : 0;
+        var ratiosLen:int = ratios ? ratios.length : 0;
+        var maxLen:int = Math.max(colorsLen, alphasLen, ratiosLen);
+
+        for (var i:int = 0; i < maxLen; i++)
+        {
+            var newEntry:GradientEntry = new GradientEntry();
+            if (colorsLen > i)
+                newEntry.color = colors[i];
+            if (alphasLen > i)
+                newEntry.alpha = alphas[i];
+            if (ratiosLen > i)
+                newEntry.ratio = ratios[i];
+
+            newEntries.push(newEntry);
+        }
+
+        entries = newEntries;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Variables
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    mx_internal var colors:Array /* of uint */ = [];
+
+    /**
+     *  @private
+     */
+    mx_internal var ratios:Array /* of Number */ = [];
+
+    /**
+     *  @private
+     */
+    mx_internal var alphas:Array /* of Number */ = [];
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
     //  angle
     //----------------------------------
-
-	private var _angle:Number = 45;
-
-	/**
-	 *  The angle, in degrees. Valid values are 0 to 360. The default is 45.
-	 *  The angle value represents the angle of the theoretical light source
-	 *  falling on the object and determines the placement of the effect
-	 *  relative to the object. If distance is set to 0, the effect is not
-	 *  offset from the object, and therefore the angle property has no effect.
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 10
-	 *  @playerversion AIR 1.5
-	 *  @productversion Flex 4
-	 */
-	public function get angle():Number
-	{
-		return _angle;
-	}
-
-	public function set angle(value:Number):void
-	{
-		if (value != _angle)
-		{
-			_angle = value;
-			notifyFilterChanged();
-		}
-	}
-
-	//----------------------------------
+
+    private var _angle:Number = 45;
+
+    /**
+     *  The angle, in degrees. Valid values are 0 to 360.
+     *  The angle value represents the angle of the theoretical light source
+     *  falling on the object and determines the placement of the effect
+     *  relative to the object. If distance is set to 0, the effect is not
+     *  offset from the object, and therefore the angle property has no effect.
+     *
+     *  @default 45
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function get angle():Number
+    {
+        return _angle;
+    }
+
+    public function set angle(value:Number):void
+    {
+        if (value != _angle)
+        {
+            _angle = value;
+            notifyFilterChanged();
+        }
+    }
+
+    //----------------------------------
     //  distance
     //----------------------------------
-
-	private var _distance:Number = 4.0;
-
-	/**
-	 *  The offset distance of the glow. The default value is 4.
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 10
-	 *  @playerversion AIR 1.5
-	 *  @productversion Flex 4
-	 */
-	public function get distance():Number
-	{
-		return _distance;
-	}
-
-	public function set distance(value:Number):void
-	{
-		if (value != _distance)
-		{
-			_distance = value;
-			notifyFilterChanged();
-		}
-	}
-
-	//----------------------------------
-	//  entries
-	//----------------------------------
-
- 	/**
-	 *  @private
-	 *  Storage for the entries property.
-	 */
-	private var _entries:Array = [];
-
-	[Bindable("propertyChange")]
+
+    private var _distance:Number = 4.0;
+
+    /**
+     *  The offset distance of the glow.
+     *
+     *  @default 4.0
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function get distance():Number
+    {
+        return _distance;
+    }
+
+    public function set distance(value:Number):void
+    {
+        if (value != _distance)
+        {
+            _distance = value;
+            notifyFilterChanged();
+        }
+    }
+
+    //----------------------------------
+    //  entries
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for the entries property.
+     */
+    private var _entries:Array = [];
+
+    [Bindable("propertyChange")]
     [Inspectable(category="General", arrayType="mx.graphics.GradientEntry")]

-	/**
-	 *  An Array of GradientEntry objects
-	 *  defining the fill patterns for the gradient fill.
-	 *
-	 *  @default []
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 10
-	 *  @playerversion AIR 1.5
-	 *  @productversion Flex 4
-	 */
-	public function get entries():Array
-	{
-		return _entries;
-	}
-
- 	/**
-	 *  @private
-	 */
-	public function set entries(value:Array):void
-	{
-		var oldValue:Array = _entries;
-		_entries = value;
-
-		processEntries();
-		notifyFilterChanged();
-		//dispatchGradientChangedEvent("entries", oldValue, value);
-	}
-
-	//----------------------------------
+    /**
+     *  An Array of GradientEntry objects
+     *  defining the fill patterns for the gradient fill.
+     *
+     *  @default []
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function get entries():Array
+    {
+        return _entries;
+    }
+
+    /**
+     *  @private
+     */
+    public function set entries(value:Array):void
+    {
+        var oldValue:Array = _entries;
+        _entries = value;
+
+        processEntries();
+        notifyFilterChanged();
+        //dispatchGradientChangedEvent("entries", oldValue, value);
+    }
+
+    //----------------------------------
     //  type
     //----------------------------------
-
-	private var _type:String = BitmapFilterType.INNER;
-
-	/**
-	 *  The placement of the filter effect. Possible values are
-	 *  flash.filters.BitmapFilterType constants:
- 	 *  BitmapFilterType.OUTER — Glow on the outer edge of the object
-	 *  BitmapFilterType.INNER — Glow on the inner edge of the object; the default.
-	 *  BitmapFilterType.FULL — Glow on top of the object
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 10
-	 *  @playerversion AIR 1.5
-	 *  @productversion Flex 4
-	 */
-	public function get type():String
-	{
-		return _type;
-	}
-
-	public function set type(value:String):void
-	{
-		if (value != _type)
-		{
-			_type = value;
-			notifyFilterChanged();
-		}
-	}
-
-	//--------------------------------------------------------------------------
-	//
-	//  Methods
-	//
-	//--------------------------------------------------------------------------
-
-	/**
-	 *  @private
-	 *  Extract the gradient information in the public entries
-	 *  Array into the internal colors, ratios,
-	 *  and alphas arrays.
-	 */
-	private function processEntries():void
-	{
-		colors = [];
-		ratios = [];
-		alphas = [];
-
-		if (!_entries || _entries.length == 0)
-			return;
-
-		var ratioConvert:Number = 255;
-
-		var i:int;
-
-		var n:int = _entries.length;
-		for (i = 0; i < n; i++)
-		{
-			var e:GradientEntry = _entries[i];
-			e.addEventListener(PropertyChangeEvent.PROPERTY_CHANGE,
-							   entry_propertyChangeHandler, false, 0, true);
-			colors.push(e.color);
-			alphas.push(e.alpha);
-			ratios.push(e.ratio * ratioConvert);
-		}
-
-		if (isNaN(ratios[0]))
-			ratios[0] = 0;
-
-		if (isNaN(ratios[n - 1]))
-			ratios[n - 1] = 255;
-
-		i = 1;
-
-		while (true)
-		{
-			while (i < n && !isNaN(ratios[i]))
-			{
-				i++;
-			}
-
-			if (i == n)
-				break;
-
-			var start:int = i - 1;
-
-			while (i < n && isNaN(ratios[i]))
-			{
-				i++;
-			}
-
-			var br:Number = ratios[start];
-			var tr:Number = ratios[i];
-
-			for (var j:int = 1; j < i - start; j++)
-			{
-				ratios[j] = br + j * (tr - br) / (i - start);
-			}
-		}
-	}
-
-	//--------------------------------------------------------------------------
-	//
-	//  Event handlers
-	//
-	//--------------------------------------------------------------------------
-
-	/**
-	 *  @private
-	 */
-	private function entry_propertyChangeHandler(event:Event):void
-	{
-		processEntries();
-
-		//dispatchGradientChangedEvent("entries", entries, entries);
-	}
+
+    private var _type:String = BitmapFilterType.INNER;
+
+    /**
+     *  The placement of the filter effect. Possible values are
+     *  flash.filters.BitmapFilterType constants:
+     *

+     *
BitmapFilterType.OUTER - Glow on the outer edge of the object.

+     *
BitmapFilterType.INNER - Glow on the inner edge of the object.

+     *
BitmapFilterType.FULL - Glow on top of the object.

+     *

+     *
+     *  @default BitmapFilterType.INNER
+     *
+     *  @see flash.filters.BitmapFilterType
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function get type():String
+    {
+        return _type;
+    }
+
+    public function set type(value:String):void
+    {
+        if (value != _type)
+        {
+            _type = value;
+            notifyFilterChanged();
+        }
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     *  Extract the gradient information in the public entries
+     *  Array into the internal colors, ratios,
+     *  and alphas arrays.
+     */
+    private function processEntries():void
+    {
+        colors = [];
+        ratios = [];
+        alphas = [];
+
+        if (!_entries || _entries.length == 0)
+            return;
+
+        var ratioConvert:Number = 255;
+
+        var i:int;
+
+        var n:int = _entries.length;
+        for (i = 0; i < n; i++)
+        {
+            var e:GradientEntry = _entries[i];
+            e.addEventListener(PropertyChangeEvent.PROPERTY_CHANGE,
+                               entry_propertyChangeHandler, false, 0, true);
+            colors.push(e.color);
+            alphas.push(e.alpha);
+            ratios.push(e.ratio * ratioConvert);
+        }
+
+        if (isNaN(ratios[0]))
+            ratios[0] = 0;
+
+        if (isNaN(ratios[n - 1]))
+            ratios[n - 1] = 255;
+
+        i = 1;
+
+        while (true)
+        {
+            while (i < n && !isNaN(ratios[i]))
+            {
+                i++;
+            }
+
+            if (i == n)
+                break;
+
+            var start:int = i - 1;
+
+            while (i < n && isNaN(ratios[i]))
+            {
+                i++;
+            }
+
+            var br:Number = ratios[start];
+            var tr:Number = ratios[i];
+
+            for (var j:int = 1; j < i - start; j++)
+            {
+                ratios[j] = br + j * (tr - br) / (i - start);
+            }
+        }
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Event handlers
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    private function entry_propertyChangeHandler(event:Event):void
+    {
+        processEntries();
+
+        //dispatchGradientChangedEvent("entries", entries, entries);
+    }
 }
 }