Found nefarious bug (when it bit me, of course).
If a listener was removed during event dispatch, the size of the list
was shrinking and putting the kibosh on listeners at the end of the list.
(The Java side avoids this due to the different way arrays work.)
- Changed the listener and subscriber lists to simple arrays, and make
  a copy prior to dispatch so that we don't miss anybody!

git-svn-id: a1a4b28b82a3276cc491891159dd9963a0a72fae@4467 542714f4-19e9-0310-aa3c-eee0fc999fb1

--- src/as/com/threerings/presents/dobj/DObject.as
+++ src/as/com/threerings/presents/dobj/DObject.as
@@ -1,8 +1,6 @@
 package com.threerings.presents.dobj {

 import flash.events.EventDispatcher;
-
-import mx.collections.ArrayCollection;

 import com.threerings.util.ClassUtil;
 import com.threerings.util.StringBuilder;
@@ -29,10 +27,10 @@
     public function addSubscriber (sub :Subscriber) :void
     {
         if (_subscribers == null) {
-            _subscribers = new ArrayCollection();
-        }
-        if (!_subscribers.contains(sub)) {
-            _subscribers.addItem(sub);
+            _subscribers = [ ];
+        }
+        if (_subscribers.indexOf(sub) == -1) {
+            _subscribers.push(sub);
         }
     }

@@ -41,9 +39,9 @@
         if (_subscribers == null) {
             return;
         }
-        var dex :int = _subscribers.getItemIndex(sub);
+        var dex :int = _subscribers.indexOf(sub);
         if (dex != -1) {
-            _subscribers.removeItemAt(dex);
+            _subscribers.splice(dex, 1);
             if (_subscribers.length == 0) {
                 _omgr.removedLastSubscriber(this, _deathWish);
             }
@@ -58,23 +56,23 @@
     public function addListener (listener :ChangeListener) :void
     {
         if (_listeners == null) {
-            _listeners = new ArrayCollection();
-
-        } else if (_listeners.contains(listener)) {
+            _listeners = [ ];
+
+        } else if (_listeners.indexOf(listener) != -1) {
             log.warning("Refusing repeat listener registration " +
                 "[dobj=" + which() + ", list=" + listener + "].");
             log.logStackTrace(new Error());
             return;
         }
-        _listeners.addItem(listener);
+        _listeners.push(listener);
     }

     public function removeListener (listener :ChangeListener) :void
     {
         if (_listeners != null) {
-            var dex :int = _listeners.getItemIndex(listener);
+            var dex :int = _listeners.indexOf(listener);
             if (dex != -1) {
-                _listeners.removeItemAt(dex);
+                _listeners.splice(dex, 1);
             }
         }
     }
@@ -85,8 +83,13 @@
             return;
         }

-        for (var ii :int = 0; ii < _listeners.length; ii++) {
-            var listener :Object = _listeners.getItemAt(ii);
+        var listenersCopy :Array = _listeners.concat();
+        for each (var listener :Object in listenersCopy) {
+            // make sure the listener is still a listener
+            // and hasn't been removed while dispatching to another listener..
+            if (_listeners.indexOf(listener) == -1) {
+                continue;
+            }
             try {
                 event.friendNotifyListener(listener);

@@ -282,9 +285,9 @@
     protected var _omgr :DObjectManager;

     /** Our event listeners. */
-    protected var _listeners :ArrayCollection;
-
-    protected var _subscribers :ArrayCollection;
+    protected var _listeners :Array;
+
+    protected var _subscribers :Array;

     protected var _deathWish :Boolean = false;
 }


more ideas for textfield target

more ideas for textfield target

--- src/ktu/utils/align/VizAlignTextFieldTarget.as
+++ src/ktu/utils/align/VizAlignTextFieldTarget.as
@@ -36,6 +36,8 @@
 	 */
 	public class VizAlignTextFieldTarget extends VizAlignTarget {

+		static private const MUST_TEXTFIELD:String = "VizAlignTextFieldTarget : target must be of type TextField";
+

 		//	instead of using the bounds of the textfield, we use textWidth, textHeight
 		public var useTextBounds:Boolean = false;
@@ -50,6 +52,7 @@
 		override public function set target(value:DisplayObject):void {
 			if (value is TextField)
 				super.target = value;
+			else throw new Error(MUST_TEXTFIELD);
 		}

 		public function VizAlignTextFieldTarget(target:TextField){


beautify logs

beautify logs

--- src/org/mangui/HLS/streaming/ManifestLoader.as
+++ src/org/mangui/HLS/streaming/ManifestLoader.as
@@ -105,7 +105,7 @@
             } else {
                 _type = HLSTypes.LIVE;
                 var timeout:Number = Math.max(100,_reload_playlists_timer + 1000*_levels[index].averageduration - getTimer());
-                Log.txt("Level " + index + " Live Playlist parsing finished: reload in " + timeout + " ms");
+                Log.txt("Level " + index + " Live Playlist parsing finished: reload in " + timeout.toFixed(0) + " ms");
                 _timeoutID = setTimeout(_loadPlaylist,timeout);
             }
             if (!_canStart && (_canStart = (_levels[index].fragments.length >= 2  ))) {


Transferred from the Adobe Open Source Subversion Repository

Revision: 4233
Author:   clucier@adobe.com
Date:     2008-12-04T20:15:28.146965Z

Log Message:
-----------
When an FxComponent is removed from the stage and then re-added, we no longer reload the associated Skin unless it is absolutely necessary.
Bug Notes: None
QE Notes: None
Doc Notes: None

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxComponent.as

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

--- frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as
@@ -16,6 +16,7 @@
 import flash.system.ApplicationDomain;
 import flash.utils.*;

+import mx.core.ClassFactory;
 import mx.core.IFactory;
 import mx.core.IFlexModuleFactory;
 import mx.core.IInvalidating;
@@ -153,9 +154,29 @@
         if (skinChanged)
         {
             skinChanged = false;
-            if (skin)
-                unloadSkin();
-            loadSkin();
+
+            // If our new skin Class happens to match our existing skin Class there is no
+            // reason to fully unload then reload our skin.
+            var skipReload:Boolean = false;
+
+            if (_skin)
+            {
+                var factory:Object = getStyle("skinFactory");
+
+                var newSkinClass:Class = (factory && factory is ClassFactory) ?
+                    ClassFactory(factory).generator :
+                    getStyle("skinClass");
+
+                skipReload = newSkinClass &&
+                    getQualifiedClassName(newSkinClass) == getQualifiedClassName(_skin);
+            }
+
+            if (!skipReload)
+            {
+                if (skin)
+                    unloadSkin();
+                loadSkin();
+            }
         }

         if (skinStateIsDirty)


Transferred from the Adobe Open Source Subversion Repository

Revision: 19111
Author:   hmuller@adobe.com
Date:     2010-12-07T20:43:25.708042Z

Log Message:
-----------
Removed the IGridItemRendererOwner interface since it wasn't used.

Added or @privatized missing ASDoc in: DataGridSkin, DefaultGridHeaderRenderer, DefaultGridItemRenderer (TextFieldGridItemRendererInclude.as), UITexFieldGridItemRenderer (TextFieldGridItemRendererInclude.as), GridColumnHeaderGroup

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/DefaultGridHeaderRenderer.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/GridColumnHeaderGroup.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/TextFieldGridItemRendererInclude.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGrid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/DataGridSkin.mxml</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/IGridItemRendererOwner.as</path>

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

--- frameworks/projects/spark/src/spark/skins/spark/TextFieldGridItemRendererInclude.as
+++ frameworks/projects/spark/src/spark/skins/spark/TextFieldGridItemRendererInclude.as
@@ -108,7 +108,7 @@
      *  @inheritDoc
      *
      *
The Grid's updateDisplayList() method sets this property
-     *  before calling preprare()
.
+     *  before calling prepare()
.
      *
      *  @default null
      */
@@ -504,12 +504,7 @@
     }

     /**
-     *  @copy mx.core.UIComponent#setStyle()
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 2.5
-     *  @productversion Flex 4.5
+     *  @private
      */
     override public function setStyle(styleProp:String, newValue:*):void
     {
@@ -674,33 +669,54 @@
         }
     }

+    /**
+     *  @private
+     */
     public function get depth():Number
     {
         return 0;
     }

+    /**
+     *  @private
+     */
     public function set depth(value:Number):void
     {
     }

+    /**
+     *  @private
+     */
     public function get designLayer():DesignLayer
     {
         return null;
     }

+    /**
+     *  @private
+     */
     public function set designLayer(value:DesignLayer):void
     {
     }

+    /**
+     *  @private
+     */
     public function get postLayoutTransformOffsets():TransformOffsets
     {
         return null;
     }

+    /**
+     *  @private
+     */
     public function set postLayoutTransformOffsets(value:TransformOffsets):void
     {
     }

+    /**
+     *  @private
+     */
     public function get is3D():Boolean
     {
         return false;
@@ -723,6 +739,8 @@
     private var _estimatedHeight:Number;

     /**
+     *  @private
+     *
      *  The height a component is likely to be given at layout time.  It is
      *  determined by examining the parent's estimatedHeight, and the
      *  component's percentHeight, explicitHeight, top and bottom constraints.
@@ -754,6 +772,8 @@
     private var _estimatedWidth:Number;

     /**
+     *  @private
+     *
      *  The width a component is likely to be given at layout time.  It is
      *  determined by examining the parent's estimatedWidth, and the
      *  component's percentWidth, explicitWidth, left and right constraints.
@@ -938,12 +958,7 @@
     }

     /**
-     *  @inheritDoc
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
+     *  @private
      */
     public function getBoundsYAtSize(width:Number, height:Number, postLayoutTransform:Boolean = true):Number
     {
@@ -1056,7 +1071,7 @@
     }

     /**
-     *  @inheritDoc
+     *  @private
      *
      *  @langversion 3.0
      *  @playerversion Flash 10.2
@@ -1226,7 +1241,7 @@
     }

     /**
-     *  @copy mx.core.UIComponent#clearStyle()
+     *  @private
      *
      *  @langversion 3.0
      *  @playerversion Flash 10


Worked on security

Worked on security

git-svn-id: 27326a786375daad9d33dc990c6f272e4c8f567c@1385 fda5f131-174c-0410-8613-e0905860106b

--- org.openwms/trunk/org.openwms.core/org.openwms.client.flex.lib/src/main/flex/org/openwms/web/flex/client/util/Security.as
+++ org.openwms/trunk/org.openwms.core/org.openwms.client.flex.lib/src/main/flex/org/openwms/web/flex/client/util/Security.as
@@ -23,30 +23,30 @@
     import flash.utils.Dictionary;
     import flash.utils.Proxy;
     import flash.utils.flash_proxy;
-    import org.openwms.web.flex.client.model.ModelLocator;
+    import org.granite.tide.spring.Identity;
     import org.openwms.core.domain.system.usermanagement.Grant;

     [Name]
     [Bindable]
     /**
-     * A Security.
+     * A SecurityUtil.
      *
      * @author Heiko Scherrer
      * @version $Revision: 1301 $
      * @since 0.1
      */
-    public class Security {
+    public class SecurityUtil {

         [Inject]
         /**
-         * Injected Model.
+         * Injected Tide identity object.
          */
-        private static var modelLocator : ModelLocator;
+        public static var identity : Identity;

         /**
          * Constructor.
          */
-        public function Security() : void {
+        public function SecurityUtil() : void {
             super();
         }

@@ -54,12 +54,7 @@
          *
          */
         public static function hasPermissions(grantName : String) : Boolean {
-            if (null != modelLocator.securityObjects[grantName]) {
-                // check logged in user and his roles for permission
-                var grant : Grant = modelLocator.securityObjects[grantName];
-                return modelLocator.userLoggedin.roles.grants.contains(grant);
-            }
-            return false;
+            return identity.ifAllGranted(grantName);
         }
     }
 }


Expanded test case.

Expanded test case.

--- src/avm2/tests/hello.as
+++ src/avm2/tests/hello.as
@@ -1,3 +1,6 @@
+trace("Hello");
+trace("Hello");
+trace("Hello");
 trace("Hello");
 trace("Hello");
 trace("Hello");


Modify test

Modify test

--- test/src/krewfw_builtin_actor/tests/KrewStateMachineTestCase.as
+++ test/src/krewfw_builtin_actor/tests/KrewStateMachineTestCase.as
@@ -2,8 +2,8 @@

     import org.flexunit.Assert;

-    import krewfw.builtin_actor.KrewState;
-    import krewfw.builtin_actor.KrewStateMachine;
+    import krewfw.builtin_actor.system.KrewState;
+    import krewfw.builtin_actor.system.KrewStateMachine;
     import krewfw.core.KrewActor;
     import krewfw.core.KrewScene;
     import krewfw.utils.dev_tool.KrewTestUtil;


Разширение возможностей FilePath

Разширение возможностей FilePath

--- src/main/org/shypl/common/util/FilePath.as
+++ src/main/org/shypl/common/util/FilePath.as
@@ -25,6 +25,10 @@

 		public function get fileName():String {
 			return getPartName(_parts.length - 1);
+		}
+
+		public function get parts():Vector.<String> {
+			return _parts.concat();
 		}

 		public function isEmpty():Boolean {


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

 package mx.olap
 {


FLEX-28530 stop RTE when allowedFormatChars is null

--- frameworks/projects/framework/src/mx/validators/DateValidator.as
+++ frameworks/projects/framework/src/mx/validators/DateValidator.as
@@ -167,7 +167,10 @@
 		var i:int;
 		var temp:String;

-		n = allowedFormatChars.length;
+
+		if (allowedFormatChars != null)
+			n = allowedFormatChars.length;
+
 		for (i = 0; i < n; i++)
 		{
 			if (DECIMAL_DIGITS.indexOf(allowedFormatChars.charAt(i)) != -1)


Transferred from the Adobe Open Source Subversion Repository

Revision: 7743
Author:   clucier@adobe.com
Date:     2009-06-11T13:53:10.203664Z

Log Message:
-----------
Moving away from using namespace qualifiers in most cases in the SDK.  We've run into a few cases now where the use of qualifiers in code that is called excessively can slow things down.
Bugs: SDK-21337
Reviewer: Ryan, Paul
QE Notes: None
Tests: Ran several random Mustella test groups, checkintests.

Modified Paths:
--------------
106 paths were modified

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

--- frameworks/projects/mx/src/mx/skins/halo/DateChooserIndicator.as
+++ frameworks/projects/mx/src/mx/skins/halo/DateChooserIndicator.as
@@ -78,7 +78,7 @@

 		g.clear();
         g.lineStyle(0, getStyle("themeColor"), 0)
-        g.beginFill(getStyle(mx_internal::indicatorColor));
+        g.beginFill(getStyle(indicatorColor));
         g.drawRect(1, 0, w - 2, h);
         g.endFill();
 	}


Transferred from the Adobe Open Source Subversion Repository

Revision: 20931
Author:   cframpto@adobe.com
Date:     2011-03-21T14:21:57.979092Z

Log Message:
-----------
ASdoc changes that missed Flex 4.5 - mostly the mxml syntax sections for the new DataGrid and Image components but also some other errors I noticed in various classes.

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/gridClasses/GridItemEditor.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DataGrid.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Label.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBase.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Image.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableDataContainer.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/NumericStepper.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/gridClasses/GridColumn.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/GridColumnHeaderGroup.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableContainer.as</path>

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

--- frameworks/projects/spark/src/spark/components/NumericStepper.as
+++ frameworks/projects/spark/src/spark/components/NumericStepper.as
@@ -195,7 +195,7 @@
 *    dominantBaseline="AUTO"
 *    firstBaselineOffset="AUTO"
 *    focusedTextSelectionColor=""
-*    fontFamily="Times New Roman"
+*    fontFamily="Arial"
 *    fontLookup="DEVICE"
 *    fontSize="12"
 *    fontStyle="NORMAL"


Transferred from the Adobe Open Source Subversion Repository

Revision: 19321
Author:   mhorn@adobe.com
Date:     2010-12-13T19:48:59.851835Z

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/ILayoutElement.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/supportClasses/CollatorBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/Skin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/StringTools.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/mediaClasses/DynamicStreamingVideoSource.as</path>

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

--- frameworks/projects/spark/src/spark/globalization/StringTools.as
+++ frameworks/projects/spark/src/spark/globalization/StringTools.as
@@ -312,7 +312,10 @@
     }

     /**
-     *  @copy spark.globalization.SupportedClasses.CollatorBase#getAvailableLocaleIDNames
+     *  Lists all of the locale ID names supported by this class.
+     *
+     *  @return A vector of strings containing all of the locale ID names
+     *         supported by this class and operating system.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10.1


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

--- frameworks/projects/automation_spark/src/mx/automation/delegates/controls/dataGridClasses/FTEDataGridItemRendererAutomationImpl.as
+++ frameworks/projects/automation_spark/src/mx/automation/delegates/controls/dataGridClasses/FTEDataGridItemRendererAutomationImpl.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.automation.delegates.controls.dataGridClasses
 {


Removed unnecessary IUIComponent requirement for IVisTool.


normalizing line endings?

normalizing line endings?

--- node_modules/karma/node_modules/socket.io/node_modules/socket.io-client/lib/vendor/web-socket-js/flash-src/com/hurlant/crypto/rsa/RSAKey.as
+++ node_modules/karma/node_modules/socket.io/node_modules/socket.io-client/lib/vendor/web-socket-js/flash-src/com/hurlant/crypto/rsa/RSAKey.as
@@ -69,7 +69,7 @@

 		}
-
+
 		public static function parsePublicKey(N:String, E:String):RSAKey {
 			return new RSAKey(new BigInteger(N, 16, true), parseInt(E,16));
 		}
@@ -94,14 +94,14 @@
 			n = null;
 			Memory.gc();
 		}
-
+
 		public function encrypt(src:ByteArray, dst:ByteArray, length:uint, pad:Function=null):void {
 			_encrypt(doPublic, src, dst, length, pad, 0x02);
 		}
 		public function decrypt(src:ByteArray, dst:ByteArray, length:uint, pad:Function=null):void {
 			_decrypt(doPrivate2, src, dst, length, pad, 0x02);
 		}
-
+
 		public function sign(src:ByteArray, dst:ByteArray, length:uint, pad:Function = null):void {
 			_encrypt(doPrivate2, src, dst, length, pad, 0x01);
 		}
@@ -109,7 +109,7 @@
 			_decrypt(doPublic, src, dst, length, pad, 0x01);
 		}

-
+
 		private function _encrypt(op:Function, src:ByteArray, dst:ByteArray, length:uint, pad:Function, padType:int):void {
 			// adjust pad if needed
 			if (pad==null) pad = pkcs1pad;


Added title to uload limit warning

Added title to uload limit warning

--- flexEditor/src/org/arisgames/editor/components/ItemEditorMediaPickerUploadFormView.as
+++ flexEditor/src/org/arisgames/editor/components/ItemEditorMediaPickerUploadFormView.as
@@ -188,9 +188,9 @@
 					fileOK = true;
 				}
 				else {
-					Alert.show("Sorry!\n"+fileChosen.name+" is too large...\n\n"+
+					Alert.show("Sorry! The file you chose is too large...\n\n"+
 						fileChosen.name+": "+Math.round(((fileChosen.size)/1024)/1024)+" MB\n"+
-						"Max Filesize: "+Math.round(((AppConstants.MAX_UPLOAD_SIZE)/1024)/1024)+" MB");
+						"Max Filesize: "+Math.round(((AppConstants.MAX_UPLOAD_SIZE)/1024)/1024)+" MB", "File Size Too Large");
 				}
             }
         }


improved gui

improved gui

Change-Id: I7ad3e33c09ab54e42d69818923a914ba2ea00da7

--- WeaveUI/src/weave/ui/VariableListController.as
+++ WeaveUI/src/weave/ui/VariableListController.as
@@ -92,12 +92,15 @@
 			{
 				dataGrid.editable = true;
 				dataGrid.addEventListener(ListEvent.ITEM_EDIT_END, handleItemEditEnd);
+				dataGrid.draggableColumns = false;

 				var nameCol:DataGridColumn = new DataGridColumn();
 				nameCol.sortable = false;
 				nameCol.editable = true;
-				nameCol.headerText = lang("Name");
+				nameCol.headerText = lang("Name (Click to edit)");
 				nameCol.labelFunction = getObjectName;
+				nameCol.showDataTips = true;
+				nameCol.dataTipFunction = nameColumnDataTip;

 				var valueCol:DataGridColumn = new DataGridColumn();
 				valueCol.sortable = false;
@@ -115,6 +118,11 @@
 			if (dynamicObject && _editor)
 				_editor.rowCount = 1;
 			updateDataProvider();
+		}
+
+		private function nameColumnDataTip(item:Object, ..._):String
+		{
+			return lang("{0} (Click to rename)", getObjectName(item));
 		}

 		private var _allowMultipleSelection:Boolean = true;


qnd: remove redundant code

qnd: remove redundant code

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

--- plugins/playlistApiPlugin/src/playlistAPIPluginCode.as
+++ plugins/playlistApiPlugin/src/playlistAPIPluginCode.as
@@ -250,8 +250,7 @@
 		private function mrssToMediaEntryArray():Array {
 			var itemToList:Array = _akamaiMRSS.itemArray;
 			var entries:Array = [];
-			var fv:Object	= (Facade.getInstance().retrieveProxy(ConfigProxy.NAME) as ConfigProxy).vo.flashvars;
-			var ks:String	= (Facade.getInstance().retrieveProxy(ServicesProxy.NAME) as ServicesProxy).vo.kalturaClient.ks;
+
 			for each (var itemTo:ItemTO in itemToList) {
 				var kalturaEntry:KalturaPlayableEntry = new KalturaPlayableEntry();


added support for {or: ...} and now returning data as label if label
undefined.

Change-Id: Iaba929021438f0d24d404e914c04829add434440

--- WeaveData/src/weave/primitives/WeaveTreeItem.as
+++ WeaveData/src/weave/primitives/WeaveTreeItem.as
@@ -98,21 +98,51 @@
 			{
 				_recursion[recursionName] = true;

-				if (param is Object && param.constructor == Object && param.hasOwnProperty('not'))
+				if (isSimpleObject(param, 'not'))
 					param = !getBoolean(param['not'], "not_" + recursionName);
+				if (isSimpleObject(param, 'or'))
+					param = getBoolean(param['or'], "or_" + recursionName);
 				if (param is Function)
 					param = param.apply(this, param.length ? [this] : null);
 				if (param is ILinkableVariable)
 					param = (param as ILinkableVariable).getSessionState();
 				if (param is Array)
+				{
+					var breakValue:Boolean = recursionName.indexOf("or_") == 0;
 					for each (param in param)
-						if (!(param = getBoolean(param, recursionName + "_item")))
+					{
+						param = getBoolean(param, recursionName + "_item");
+						if (param ? breakValue : !breakValue)
 							break;
+					}
+				}
 				param = param ? true : false;

 				_recursion[recursionName] = false;
 			}
 			return param;
+		}
+
+		/**
+		 * Checks if an object has a single specified property.
+		 */
+		protected function isSimpleObject(object:*, singlePropertyName:String):Boolean
+		{
+			if (!(object is Object) || object.constructor != Object)
+				return false;
+
+			var found:Boolean = false;
+			for (var key:* in object)
+			{
+				if (found)
+					return false; // two or more properties
+
+				if (key !== singlePropertyName)
+					return false; // not the desired property
+
+				found = true; // found the desired property
+			}
+			return found;
 		}

 		/**
@@ -165,10 +195,14 @@
 		/**
 		 * This can be set to either a String or a Function.
 		 * This property is checked by Flex's default data descriptor.
+		 * If this property is not set, the data property will be used as the label.
 		 */
 		public function get label():String
 		{
-			return getString(_label, 'label');
+			var str:String = getString(_label, 'label');
+			if (!str && data != null)
+				str = String(data);
+			return str;
 		}
 		public function set label(value:*):void
 		{
@@ -180,7 +214,7 @@
 		 * When this property is accessed, refresh() will be called except if refresh() is already being called.
 		 * This property is checked by Flex's default data descriptor.
 		 */
-		public function get children():*
+		public function get children():Array
 		{
 			var items:Array = getObject(_children, 'children') as Array;
 			if (!items)


"Mouseover Window" now hidden from tools menu when dashboard is enabled

--- WeaveUI/src/weave/application/VisApplication.as
+++ WeaveUI/src/weave/application/VisApplication.as
@@ -905,7 +905,8 @@

 				createToolMenuItem(Weave.properties.showColorController, lang("Color Controller"), DraggablePanel.openStaticInstance, [ColorController]);
 				createToolMenuItem(Weave.properties.showProbeToolTipEditor, lang("Edit Mouseover Info"), DraggablePanel.openStaticInstance, [ProbeToolTipEditor]);
-				createToolMenuItem(Weave.properties.showProbeWindow, lang("Mouseover Window"), createGlobalObject, [ProbeToolTipWindow, "ProbeToolTipWindow"]);
+				if (!Weave.properties.dashboardMode.value)
+					createToolMenuItem(Weave.properties.showProbeWindow, lang("Mouseover Window"), createGlobalObject, [ProbeToolTipWindow, "ProbeToolTipWindow"]);
 				createToolMenuItem(Weave.properties.showEquationEditor, lang("Equation Column Editor"), DraggablePanel.openStaticInstance, [EquationEditor]);
 				createToolMenuItem(Weave.properties.showCollaborationEditor, lang("Collaboration Settings"), DraggablePanel.openStaticInstance, [CollaborationEditor]);
 				createToolMenuItem(Weave.properties.showAddExternalTools, lang("Add external tool..."), AddExternalTool.show);


added LineChartPlotter option useFilteredDataGaps

--- WeaveUISpark/src/weave/visualization/plotters/LineChartPlotter.as
+++ WeaveUISpark/src/weave/visualization/plotters/LineChartPlotter.as
@@ -20,10 +20,12 @@

 	import weave.api.data.IQualifiedKey;
 	import weave.api.newLinkableChild;
+	import weave.api.registerLinkableChild;
 	import weave.api.reportError;
 	import weave.api.ui.IPlotTask;
 	import weave.api.ui.IPlotter;
 	import weave.api.ui.ISelectableAttributes;
+	import weave.core.LinkableBoolean;
 	import weave.data.AttributeColumns.DynamicColumn;
 	import weave.data.KeySets.FilteredKeySet;
 	import weave.visualization.layers.PlotTask;
@@ -55,6 +57,7 @@
 		public const group:DynamicColumn = newLinkableChild(this, DynamicColumn);
  		public const order:DynamicColumn = newLinkableChild(this, DynamicColumn);
 		public const lineStyle:SolidLineStyle = newLinkableChild(this, SolidLineStyle);
+		public const useFilteredDataGaps:LinkableBoolean = registerLinkableChild(this, new LinkableBoolean(false));

 		override public function drawPlotAsyncIteration(task:IPlotTask):Number
 		{
@@ -67,7 +70,7 @@
 		{
 			var x:Number = dataX.getValueFromKey(recordKey, Number);
 			var y:Number = dataY.getValueFromKey(recordKey, Number);
-			initBoundsArray(output).setCenteredRectangle(x, y, 0, 0);
+			initBoundsArray(output).setBounds(x, y, x, y);
 		}
 	}
 }
@@ -99,16 +102,16 @@
 		this.renderer = new AsyncLineRenderer();

 		if ((task as PlotTask).taskType != PlotTask.TASK_TYPE_SUBSET)
-			this.keySet = newDisposableChild(plotter, KeySet);
+			this.taskKeySet = newDisposableChild(plotter, KeySet);
 	}

 	public var renderer:AsyncLineRenderer;
 	public var plotter:LineChartPlotter;
 	public var task:IPlotTask;
 	public var unfilteredKeySet:IKeySet;
-	public var keys:Array;
+	public var allKeys:Array;
 	public var keyIndex:Number;
-	public var keySet:KeySet;
+	public var taskKeySet:KeySet;
 	public var group:Number;

 	private static const tempPoint:Point = new Point();
@@ -118,28 +121,28 @@
 		if (task.iteration == 0)
 		{
 			renderer.reset();
-			if (keySet)
+			if (taskKeySet)
 			{
-				keySet.clearKeys();
-				keySet.replaceKeys(task.recordKeys);
+				taskKeySet.clearKeys();
+				taskKeySet.replaceKeys(task.recordKeys);
 			}
-			keys = unfilteredKeySet.keys;
+			allKeys = plotter.useFilteredDataGaps.value ? unfilteredKeySet.keys : plotter.filteredKeySet.keys;
 			keyIndex = 0;
 		}

 		try
 		{
-			for (; keyIndex < keys.length; keyIndex++)
+			for (; keyIndex < allKeys.length; keyIndex++)
 			{
 				if (getTimer() > task.iterationStopTime)
 				{
 					renderer.flush(task.buffer);
-					return keyIndex / keys.length;
+					return keyIndex / allKeys.length;
 				}

-				var key:IQualifiedKey = keys[keyIndex] as IQualifiedKey;
-
-				if (keySet ? keySet.containsKey(key) : plotter.filteredKeySet.containsKey(key))
+				var key:IQualifiedKey = allKeys[keyIndex] as IQualifiedKey;
+
+				if (taskKeySet ? taskKeySet.containsKey(key) : plotter.filteredKeySet.containsKey(key))
 				{
 					tempPoint.x = plotter.dataX.getValueFromKey(key, Number);
 					tempPoint.y = plotter.dataY.getValueFromKey(key, Number);


Fix for dispose function in HLS.as

Fix for dispose function in HLS.as

while disposing HLS stream it throws a NPE,

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at org.mangui.hls.stream::StreamBuffer/stop()[flashls/src/org/mangui/hls/stream/StreamBuffer.as:87]
at org.mangui.hls.stream::HLSNetStream/close()[flashls/src/org/mangui/hls/stream/HLSNetStream.as:346]
at org.mangui.hls.stream::HLSNetStream/dispose_()[flashls/src/org/mangui/hls/stream/HLSNetStream.as:353]
at org.mangui.hls::HLS/dispose()[flashls/src/org/mangui/hls/HLS.as:81]

Fixed it by disposing _hlsNetStream first and then disposing _streamBuffer in HLS.as

--- src/org/mangui/hls/HLS.as
+++ src/org/mangui/hls/HLS.as
@@ -77,8 +77,8 @@
             _altAudioLevelLoader.dispose();
             _audioTrackController.dispose();
             _levelController.dispose();
+            _hlsNetStream.dispose_();
             _streamBuffer.dispose();
-            _hlsNetStream.dispose_();
             _levelLoader = null;
             _altAudioLevelLoader = null;
             _audioTrackController = null;
@@ -214,4 +214,4 @@
         }
     }
     ;
-}+}


Adjusted the urls used by the application to match the new server.

--- core/src/main/flex/org/dukecon/controller/ConferenceController.as
+++ core/src/main/flex/org/dukecon/controller/ConferenceController.as
@@ -47,7 +47,7 @@
         service.method = "GET";
         service.contentType = "application/json";
         service.headers = { Accept:"application/json" };
-        service.url = "http://dev.dukecon.org:9090/talks/";
+        service.url = "http://dev.dukecon.org/latest/rest/talks/";

         // This file will be used for storing the data on the device.
         var db:File = File.applicationStorageDirectory.resolvePath("dukecon.db");


Transferred from the Adobe Open Source Subversion Repository

Revision: 3499
Author:   rfrishbe@adobe.com
Date:     2008-10-06T23:57:04.003486Z

Log Message:
-----------
Code cleanup:

1.  Remove IDisplayObjectElement and IAssignableDisplayObjectElement.  No one was actually using these interfaces...a few classes were implementing them though.

2.  Big ASDoc comment scrub for Group, DataGroup, and GroupBase.  Fixed some ASDoc in LayoutBase, IViewport, and ResizeMode.

3.  Spit and finish on Group.  No more variables or parameters typed as "*".  Got the content APIs in-line with Flash's DisplayObjectContainer, which means exceptions are now thrown where appropriate.

4.  Fixed a bug in DataGround where graphic items with item renderers had trouble in itemRemoved() (SDK-17175)

QE: Yes - Please revamp the excluded test cases to look for the new exceptions.
Doc: Yes
Bugs: SDK-17175
Reviewer: Glenn

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/TextBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/ResizeMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/GroupBase.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/IDisplayObjectElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/TextGraphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/StrokedElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/graphicsClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/layout/LayoutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/ItemsComponent.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/IAssignableDisplayObjectElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/intf/IViewport.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/BitmapGraphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/graphicsClasses/TextGraphicElement.as</path>

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

--- frameworks/projects/spark/src/spark/components/DataGroup.as
+++ frameworks/projects/spark/src/spark/components/DataGroup.as
@@ -158,8 +158,10 @@
     {
         return _dataProvider;
     }
-
-
+
+    /**
+     *  @private
+     */
     public function set dataProvider(value:IList):void
     {
         if (_dataProvider)
@@ -182,6 +184,10 @@
         invalidateProperties();
     }

+    /**
+     *  Internal DataGroup method used to grab the elements in the dataProvider
+     *  and add them to the DataGroup.
+     */
     protected function initializeDataProvider():void
     {
         // Get rid of existing display object children.
@@ -239,6 +245,18 @@
         } */
     }

+    /**
+     *  Create the visual representation for the item, if needed.
+     *
+     *
The rules to create a visual item are:

+     *

if itemRendererFunction is defined, call
+     *  it to get the renderer factory and instantiate it

+     *
if itemRenderer is defined, instantiate one

+     *
if item is a GraphicElement, create the display
+     *  object for it

+     *
if item is a DisplayObject, use it directly

+     *
+     */
     protected function createVisualForItem(item:Object):DisplayObject
     {
         var itemSkin:Object;
@@ -247,7 +265,7 @@
         if (item === null)
             throw new Error("DataGroup content can not contain null items.");

-        // Rules for skin lookup:
+        // Rules for lookup:
         // 1. if itemRendererFunction is defined, call it to get the renderer factory and instantiate it
         // 2. if itemRenderer is defined, instantiate one
         // 3. if item is a GraphicElement, create the display object for it
@@ -296,6 +314,9 @@
         return itemDisplayObject;
     }

+    /**
+     *  Documentation is not currently available.
+     */
     protected function registerSkin(item:*, itemSkin:Object):void
     {
         if (!skinRegistry)
@@ -304,6 +325,9 @@
         skinRegistry[item] = itemSkin;
     }

+    /**
+     *  Documentation is not currently available.
+     */
     protected function unregisterSkin(item:*, itemSkin:DisplayObject):void
     {
         if (!skinRegistry)
@@ -312,6 +336,9 @@
         delete skinRegistry[item];
     }

+    /**
+     *  @private
+     */
     override protected function commitProperties():void
     {
         super.commitProperties();
@@ -337,6 +364,9 @@
         }
     }

+    /**
+     *  @private
+     */
     override public function validateSize(recursive:Boolean = false):void
     {
         // Since GraphicElement is not ILayoutManagerClient, we need to make sure we
@@ -356,6 +386,9 @@
         super.validateSize(recursive);
     }

+    /**
+     *  @private
+     */
     override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
     {
         super.updateDisplayList(unscaledWidth, unscaledHeight);
@@ -379,9 +412,9 @@
     //  is the item itself. For data items, the layout item is the item renderer
     //  instance that is associated with the item.
     //--------------------------------------------------------------------------
-     /**
-     *  The number of layout items in this Group. Typically this is the same
-     *  as the number of items in the Group.
+
+    /**
+     *  @private
      */
     override public function get numLayoutItems():int
     {
@@ -389,23 +422,23 @@
     }

     /**
-     *  Gets the nth layout item in the Group. For visual items, the
-     *  layout item is the item itself. For data items, the layout item is the
-     *  item renderer instance that is associated with the item.
+     *  @private
+     */
+    override public function getLayoutItemAt(index:int):ILayoutItem
+    {
+        var item:* = dataProvider.getItemAt(index);
+
+        var itemSkin:Object = getItemSkin(item);
+
+        return LayoutItemFactory.getLayoutItemFor(itemSkin);
+    }
+
+    /**
+     *  Internal DataGroup method called to add an item to this DataGroup.
      *
-     *  @param index The index of the item to retrieve.
-     *
-     *  @return The layout item at the specified index.
-     */
-    override public function getLayoutItemAt(index:int):ILayoutItem
-    {
-        var item:* = dataProvider.getItemAt(index);
-
-        var itemSkin:Object = getItemSkin(item);
-
-        return LayoutItemFactory.getLayoutItemFor(itemSkin);
-    }
-
+     *  @param item The item that was added.
+     *  @param index The index where the item was added.
+     */
     protected function itemAdded(item:Object, index:int):void
     {
         var childDO:DisplayObject;
@@ -422,9 +455,7 @@
             childDO = createVisualForItem(graphicItem);
         }
         else
-        {
-            // This always adds the child to the end of the display list. Any
-            // ordering discrepancies will be fixed up in assignDisplayObjects().
+        {
             childDO = createVisualForItem(item);
         }

@@ -437,6 +468,12 @@
         invalidateDisplayList();
     }

+    /**
+     *  Internal DataGroup method called to remove an item from this DataGroup.
+     *
+     *  @param item The item that is being removed.
+     *  @param index The index of the item that is being removed.
+     */
     protected function itemRemoved(item:Object, index:int):void
     {
         var skin:* = getItemSkin(item);
@@ -444,16 +481,25 @@

         dispatchEvent(new ItemExistenceChangedEvent(
                       ItemExistenceChangedEvent.ITEM_REMOVE, false, false, item));
+
+        // if either the item or the skin is a GraphicElement,
+        // release the display objects
         if (item && (item is GraphicElement))
         {
             item.elementHost = null;
             item.sharedDisplayObject = null;
-            childDO = GraphicElement(item).displayObject;
-        }
-        else if (skin && skin is DisplayObject)
+        }
+
+        // determine who the child display object is
+        if (skin && (skin is GraphicElement))
+        {
+            childDO = GraphicElement(skin).displayObject;
+        }
+        else if (skin && (skin is DisplayObject))
         {
             childDO = skin as DisplayObject;
         }
+
         // If the item and skin are different objects, set the skin data to
         // null here to clear it out. Otherwise, the skin keeps a reference to the item,
         // which can cause problems later.
@@ -467,8 +513,17 @@
         invalidateDisplayList();
     }

-    // Helper function to remove child from other Group or display list before
-    // adding to the display list.
+    /**
+     *  Internal helper method to remove item from another datagroup or display list
+     *  before adding it to this display list.
+     *
+     *  @param child DisplayObject to add to the display list
+     *  @param item Item associated with the display object to be added.  If
+     *  the item itself is a display object, it will be the same as the child parameter.
+     *  @param index Index position where the display object will be added
+     *
+     *  @return DisplayObject that was added
+     */
     protected function addItemToDisplayList(child:DisplayObject, item:*, index:int = -1):DisplayObject
     {
         var host:DisplayObject;
@@ -513,6 +568,9 @@
         return super.addChildAt(child, index != -1 ? index : super.numChildren);
     }

+    /**
+     *  Collection change handler for the dataProvider.
+     */
     protected function collectionChangeHandler(event:Event):void
     {
         if (event is CollectionEvent)
@@ -642,6 +700,9 @@
     //
     //--------------------------------------------------------------------------

+    /**
+     *  Documentation is not currently available.
+     */
     public function getItemSkin(item:*):Object
     {
         var result:Object = null;
@@ -655,6 +716,9 @@
         return result;
     }

+    /**
+     *  Documentation is not currently available.
+     */
     public function getSkinItem(skin:Object):*
     {
         // !! This implementation is really slow...
@@ -672,6 +736,9 @@

     protected var maskElements:Dictionary;

+    /**
+     *  @private
+     */
     override public function addMaskElement(mask:DisplayObject, target:IGraphicElement):void
     {
         if (!maskElements)
@@ -685,6 +752,9 @@

     }

+    /**
+     *  @private
+     */
     override public function removeMaskElement(mask:DisplayObject, target:IGraphicElement):void
     {
         if (maskElements && mask in maskElements)
@@ -703,36 +773,54 @@
                 "Use methods defined on the dataProvider instead"));
     }

+    /**
+     *  @private
+     */
     override public function addChildAt(child:DisplayObject, index:int):DisplayObject
     {
         throw(new Error("addChildAt is not available in DataGroup. " +
                 "Use methods defined on the dataProvider instead"));
     }

+    /**
+     *  @private
+     */
     override public function removeChild(child:DisplayObject):DisplayObject
     {
         throw(new Error("removeChild is not available in DataGroup. " +
                 "Use methods defined on the dataProvider instead"));
     }

+    /**
+     *  @private
+     */
     override public function removeChildAt(index:int):DisplayObject
     {
         throw(new Error("removeChildAt is not available in DataGroup. " +
                 "Use methods defined on the dataProvider instead"));
     }

+    /**
+     *  @private
+     */
     override public function setChildIndex(child:DisplayObject, index:int):void
     {
         throw(new Error("setChildIndex is not available in DataGroup. " +
                 "Use methods defined on the dataProvider instead"));
     }

+    /**
+     *  @private
+     */
     override public function swapChildren(child1:DisplayObject, child2:DisplayObject):void
     {
         throw(new Error("swapChildren is not available in DataGroup. " +
                 "Use methods defined on the dataProvider instead"));
     }

+    /**
+     *  @private
+     */
     override public function swapChildrenAt(index1:int, index2:int):void
     {
         throw(new Error("swapChildrenAt is not available in DataGroup. " +


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

 package mx.charts.chartClasses


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

--- frameworks/projects/framework/src/mx/collections/ItemResponder.as
+++ frameworks/projects/framework/src/mx/collections/ItemResponder.as
@@ -1,13 +1,3 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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.collections
 {


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

--- frameworks/projects/rpc/src/mx/messaging/messages/AsyncMessage.as
+++ frameworks/projects/rpc/src/mx/messaging/messages/AsyncMessage.as
@@ -0,0 +1,222 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.messaging.messages
+{
+
+import flash.utils.ByteArray;
+import flash.utils.IDataInput;
+import flash.utils.IDataOutput;
+
+import mx.utils.UIDUtil;
+
+[RemoteClass(alias="flex.messaging.messages.AsyncMessage")]
+
+/**
+ *  AsyncMessage is the base class for all asynchronous messages.
+ */
+public class AsyncMessage extends AbstractMessage implements ISmallMessage
+{
+    //--------------------------------------------------------------------------
+    //
+    // Static Constants
+    //
+    //--------------------------------------------------------------------------
+
+	/**
+	 *  Messages sent by a MessageAgent with a defined subtopic
+	 *  property indicate their target subtopic in this header.
+	 */
+	public static const SUBTOPIC_HEADER:String = "DSSubtopic";
+
+    //--------------------------------------------------------------------------
+    //
+    // Private Static Constants for Serialization
+    //
+    //--------------------------------------------------------------------------
+
+    private static const CORRELATION_ID_FLAG:uint = 1;
+    private static const CORRELATION_ID_BYTES_FLAG:uint = 2;
+
+    //--------------------------------------------------------------------------
+    //
+    // Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructs an instance of an AsyncMessage with an empty body and header.
+     *  In addition to this default behavior, the body and the headers for the
+     *  message may also be passed to the constructor as a convenience.
+     *  An example of this invocation approach for the body is:
+     *  var msg:AsyncMessage = new AsyncMessage("Body text");
+     *  An example that provides both the body and headers is:
+     *  var msg:AsyncMessage = new AsyncMessage("Body text", {"customerHeader":"customValue"});
+     *
+     *  @param body The optional body to assign to the message.
+     *
+     *  @param headers The optional headers to assign to the message.
+     */
+    public function AsyncMessage(body:Object = null, headers:Object = null)
+    {
+        super();
+
+        correlationId = "";
+        if (body != null)
+            this.body = body;
+
+        if (headers != null)
+            this.headers = headers;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    // Variables
+    //
+    //--------------------------------------------------------------------------
+
+	//----------------------------------
+	//  correlationId
+	//----------------------------------
+
+    /**
+     * @private
+     */
+    private var _correlationId:String;
+
+    /**
+     * @private
+     */
+    private var correlationIdBytes:ByteArray;
+
+    /**
+     *  Provides access to the correlation id of the message.
+     *  Used for acknowledgement and for segmentation of messages.
+     *  The correlationId contains the messageId of the
+     *  previous message that this message refers to.
+     *
+     *  @see mx.messaging.messages.AbstractMessage#messageId
+     */
+    public function get correlationId():String
+    {
+        return _correlationId;
+    }
+
+    /**
+     * @private
+     */
+    public function set correlationId(value:String):void
+    {
+        _correlationId = value;
+        correlationIdBytes = null;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    // Overridden Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     * @private
+     */
+    public function getSmallMessage():IMessage
+    {
+        // If it is a subclass, it will need to override this itself if it wants to use
+        // small messages.
+        var o:Object = this;
+        if (o.constructor == AsyncMessage)
+            return new AsyncMessageExt(this);
+        return null;
+    }
+
+    /**
+     * @private
+     */
+    override public function readExternal(input:IDataInput):void
+    {
+        super.readExternal(input);
+
+        var flagsArray:Array = readFlags(input);
+        for (var i:uint = 0; i < flagsArray.length; i++)
+        {
+            var flags:uint = flagsArray[i] as uint;
+            var reservedPosition:uint = 0;
+
+            if (i == 0)
+            {
+                if ((flags & CORRELATION_ID_FLAG) != 0)
+                    correlationId = input.readObject() as String;
+
+                if ((flags & CORRELATION_ID_BYTES_FLAG) != 0)
+                {
+                    correlationIdBytes = input.readObject() as ByteArray;
+                    correlationId = UIDUtil.fromByteArray(correlationIdBytes);
+                }
+
+                reservedPosition = 2;
+            }
+
+            // For forwards compatibility, read in any other flagged objects
+            // to preserve the integrity of the input stream...
+            if ((flags >> reservedPosition) != 0)
+            {
+                for (var j:uint = reservedPosition; j < 6; j++)
+                {
+                    if (((flags >> j) & 1) != 0)
+                    {
+                        input.readObject();
+                    }
+                }
+            }
+        }
+    }
+
+    /**
+     * @private
+     */
+    override public function writeExternal(output:IDataOutput):void
+    {
+        super.writeExternal(output);
+
+        if (correlationIdBytes == null)
+            correlationIdBytes = UIDUtil.toByteArray(_correlationId);
+
+        var flags:uint = 0;
+
+        if (correlationId != null && correlationIdBytes == null)
+            flags |= CORRELATION_ID_FLAG;
+
+        if (correlationIdBytes != null)
+            flags |= CORRELATION_ID_BYTES_FLAG;
+
+        output.writeByte(flags);
+
+        if (correlationId != null && correlationIdBytes == null)
+            output.writeObject(correlationId);
+
+        if (correlationIdBytes != null)
+            output.writeObject(correlationIdBytes);
+    }
+
+    /**
+     *  @private
+     */
+    override protected function addDebugAttributes(attributes:Object):void
+    {
+        super.addDebugAttributes(attributes);
+        attributes["correlationId"] = correlationId;
+    }
+
+
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

 package mx.core
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 7862
Author:   jszeto@adobe.com
Date:     2009-06-15T22:06:23.250745Z

Log Message:
-----------
GraphicElement PARB Changes

mx.core.AdvancedLayoutFeatures
•	Rename layer -> depth
•	Rename offsets -> postLayoutTransformOffsets

mx.core.IVisualElement
•	Rename layer -> depth

mx.core.UIComponent
•	Rename offsets -> postLayoutTransformOffsets
•	Rename layer -> depth

mx.graphics.GradientBase
•	Remove scaleX

mx.graphics.GradientStroke
•	Add apply(g:Graphics, bounds:Rectangle)

mx.graphics.IStroke
•	Remove draw
•	Change apply(g:Graphics) -> apply(g:Graphics, bounds:Rectangle)

mx.graphics.LinearGradient
•	Add scaleX

mx.graphics.LinearGradientStroke
•	Add scaleX
•	Remove draw
•	Change apply(g:Graphics) -> apply(g:Graphics, bounds:Rectangle)

mx.graphics.RadialGradient
•	Add scaleX

mx.graphics.RadialGradientStroke
•	Add scaleX
•	Remove draw
•	Change apply(g:Graphics) -> apply(g:Graphics, bounds:Rectangle)

mx.graphics.SolidColorStroke
•	Remove draw
•	Change apply(g:Graphics) -> apply(g:Graphics, bounds:Rectangle)

mx.flash.UIMovieClip
•	Rename offsets -> postLayoutTransformOffsets
•	Rename layer -> depth

spark.components.PopUpAnchor
•	Change popUp type from UIComponent -> IFlexDisplayObject
•	Rename positionPopUp -> calculatePopUpPosition
•	Rename autoSizePopUpWidth -> popUpWidthMatchesAnchorWidth
•	Rename autoSizePopUpHeight -> popUpHeightMatchesAnchorHeight

spark.core.RelativePosition
•	Rename and move spark.core.RelativePosition -> spark.components.PopUpPosition
•	Rename EXACT -> TOP_LEFT (topLeft)

spark.core.SpriteVisualElement
•	Rename layer -> depth
•	Remove computeMatrix

spark.primitives.BitmapImage
•	Change _NORMAL_UINT from protected -> private
•	Change _REPEAT_UINT from protected -> private
•	Change _SCALE_UINT from protected -> private
•	Change resizeModeToUINT from protected -> private
•	Rename drawElement -> draw

spark.primitives.Line
•	Rename skipMeasure -> canSkipMeasurement
•	Rename drawElement -> draw

spark.primitives.Path
•	Change graphicsPath fro protected -> mx_internal
•	Rename skipMeasure -> canSkipMeasurement
•	Rename drawElement -> draw
•	Rename renderGraphicsAtScale -> generateGraphicsPath
•	Change generateGraphicsPath from protected -> mx_internal
•	Rename notifyElementLayerChanged -> invalidateDisplayObjectSharing

spark.primitives.Rect
•	Rename drawElement -> draw

spark.primitives.supportClasses.GraphicElement
•	Rename layer -> depth
•	Rename offsets -> postLayoutTransformOffsets
•	Rename getBitmapData -> captureBitmapData
•	Rename notifyElementLayerChanged -> invalidateDisplayObjectSharing
•	Rename skipMeasure -> canSkipMeasurement
•	Add protected hasComplexLayoutMatrix:Boolean getter
•	Remove target
•	Remove computeMatrix
•	Change DEFAULT_MAX_WIDTH from public -> private
•	Change DEFAULT_MAX_HEIGHT from public -> private
•	Change DEFAULT_MIN_WIDTH from public -> private
•	Change DEFAULT_MIN_HEIGHT from public -> private
•	Change allocateLayoutFeatures from protected -> mx_internal
•	Change invalidateTransform from protected -> private
•	Change captureBitmapData from public -> mx_internal
•	Change applyMaskType from protected -> mx_internal
•	Change dispatchPropertyChangeEvent from protected -> private
•	Change applyComputedTransform from protected -> mx_internal
•	Change filterChangedHandler from protected -> private

spark.supportClasses.StrokedElement
•	Rename drawElement -> draw
•	Remove getStroke()
•	Add getStrokeExtents() override

QE Notes: None
Doc Notes: None
Bugs: N/A
Reviewer: Glenn

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/StrokedElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/BitmapImage.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/TransformOffsets.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/TextGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Line.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Ellipse.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/core/SpriteVisualElement.as</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/flex4/src/spark/primitives/supportClasses/FilledElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransitionShader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/BitmapFill.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/GradientStroke.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/graphics/GradientBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateTransitionShaderInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/IFill.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/SolidColorStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/RadialGradientStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Path.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Rect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/SolidColor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/RadialGradient.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/IStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/LinearGradientStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/GroupBase.as</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/AdvancedLayoutFeatures.as</path>

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

--- frameworks/projects/spark/src/spark/effects/AnimateTransitionShader.as
+++ frameworks/projects/spark/src/spark/effects/AnimateTransitionShader.as
@@ -18,6 +18,7 @@
 import flash.utils.ByteArray;

 import mx.core.IUIComponent;
+import mx.core.mx_internal;
 import mx.effects.IEffectInstance;
 import mx.resources.IResourceManager;
 import mx.resources.ResourceManager;
@@ -25,6 +26,8 @@
 import spark.effects.supportClasses.AnimateTransitionShaderInstance;
 import spark.primitives.supportClasses.GraphicElement;
 import spark.utils.BitmapUtil;
+
+use namespace mx_internal;

 //--------------------------------------
 //  Other metadata
@@ -269,7 +272,7 @@
             return null;

         if (target is GraphicElement)
-            return GraphicElement(target).getBitmapData(true, 0, false);
+            return GraphicElement(target).captureBitmapData(true, 0, false);
         else if (!(target is IUIComponent))
             throw new Error(resourceManager.getString("sparkEffects", "cannotOperateOn"));
         return BitmapUtil.getSnapshot(IUIComponent(target));


Transferred from the Adobe Open Source Subversion Repository

Revision: 11798
Author:   jszeto@adobe.com
Date:     2009-11-13T22:01:46.197040Z

Log Message:
-----------
Border bug fix

http://bugs.adobe.com/jira/browse/SDK-23824 - Border size does not update when a child element is included after a state change

The bug was that we were explicitly setting the width and height of the contentGroup in updateDisplayList. This meant that if content was added later, it was not forcing a resize of the contentGroup and thus the skin did not update. Using setActualSize does not work because it breaks constraints set on children. The solution is to use constraints on the contentGroup.

QE notes: none
Doc notes: none
Bugs: SDK-23824
Reviewer: Kevin
Tests run: Border
Is noteworthy for integration: No

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/BorderSkin.as

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

--- frameworks/projects/spark/src/spark/skins/spark/BorderContainerSkin.as
+++ frameworks/projects/spark/src/spark/skins/spark/BorderContainerSkin.as
@@ -79,7 +79,7 @@
 	private var bgRect:Rect;
     private var insetPath:Path;
     private var rds:RectangularDropShadow;
-
+
     //--------------------------------------------------------------------------
     //
     //  Overridden methods
@@ -103,7 +103,7 @@
         insetPath = new Path();
         addElement(insetPath);
 	}
-
+

     /**
      *  @private
@@ -137,15 +137,15 @@
     {
         graphics.clear();

-        var borderWeight:int = getStyle("borderWeight");
+        var borderWeight:int;
         var borderStyle:String = getStyle("borderStyle");
         var borderVisible:Boolean = getStyle("borderVisible");
         var cornerRadius:Number = getStyle("cornerRadius");
-
+
         if (hostComponent && hostComponent.borderStroke)
-        {
             borderWeight = hostComponent.borderStroke.weight;
-        }
+        else
+            borderWeight = getStyle("borderWeight");

         if (!borderVisible)
             borderWeight = 0;
@@ -153,11 +153,10 @@
         if (isNaN(borderWeight))
             borderWeight = 1;

-
-        // position & size the content group
-        contentGroup.x = contentGroup.y = borderWeight;
-        contentGroup.width = unscaledWidth - borderWeight * 2;
-        contentGroup.height = unscaledHeight - borderWeight * 2;
+        contentGroup.setStyle("left", borderWeight);
+        contentGroup.setStyle("right", borderWeight);
+        contentGroup.setStyle("top", borderWeight);
+        contentGroup.setStyle("bottom", borderWeight);

         // update the bgRect stroke/fill
         if (hostComponent.borderStroke)


Transferred from the Adobe Open Source Subversion Repository

Revision: 3528
Author:   gruehle@adobe.com
Date:     2008-10-09T00:10:59.153602Z

Log Message:
-----------
New Spark skins for Gumbo components. The wireframe skins will be re-packaged into a theme in a future checkin.

The default font for all Gumbo components is Arial 12 normal weight. In order to avoid conflict with the default font for Halo components, the Gumbo text styles are defined on three type selectors: FxButton, FxTextBase, and FxTextBox. If you want to change the default font for Gumbo components, you'll need to change it in all three selectors. This is a temporary solution until we have Spark skins for our Halo components.

This checkin also includes a workaround for SDK-17222. The workaround is to include a reference to FxHScrollBar and FxVScrollBar in FxTextArea, and a reference to FxScroller in FxList. This is a temporary workaround that will be removed when the bug is fixed.

Note: the files in the flex4test project have not been updated for the rename. This checkin does not resolve that issue.

Bugs: SDK-16302, SDK-16297, SDK-16444, SDK-16629, SDK-16779, SDK-16052
QE: These skins are the current definition of the spark look and feel. There are some discrepancies with the XD specs that XD will be resolving (eg all fonts are Arial 12)

Modified Paths:
--------------
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/assets</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxDefaultItemRenderer.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxScrollBarDownButtonSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/assets/SpinnerDownArrow.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxVSliderThumbSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxVSliderSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxVScrollBarSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/assets/ScrollLeftArrow.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxListSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxHSliderTrackSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxScrollBarUpButtonSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/assets/SpinnerUpArrow.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxSpinnerIncrButtonSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/assets/ScrollDownArrow.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxHScrollBarThumbSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/assets/RadioDot.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxTextArea.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/assets/ScrollRightArrow.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxVSliderTrackSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/assets/ScrollUpArrow.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxTextInputSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxNumericStepperSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxSpinnerDecrButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxVScrollBarThumbSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/flex4/flex4test_testScript.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxScrollBarRightButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxTextAreaSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxToggleButtonSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/assets/CheckMark.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxSpinnerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxHScrollBarTrackSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxCheckBoxSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxScrollBarLeftButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxHSliderSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxHSliderThumbSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxRadioButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxHScrollBarSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxVScrollBarTrackSkin.mxml</path>

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

--- frameworks/projects/spark/src/spark/skins/spark/DefaultItemRenderer.as
+++ frameworks/projects/spark/src/spark/skins/spark/DefaultItemRenderer.as
@@ -19,14 +19,13 @@
 		<State name="selected"/>
 	</states>

-    <content>
-		<Rect left="0" right="0" top="0" bottom="0">
-			<fill>
-				<SolidColor color="0x00FFFF"
-                            alpha="0" alpha.hovered="0.2" alpha.selected="0.8" />
-			</fill>
-		</Rect>
-		<TextBox text="{data}" verticalCenter="0" left="2" right="2" top="2" bottom="2" />
-	</content>
+	<Rect left="0" right="0" top="0" bottom="0">
+		<fill>
+			<SolidColor color="0xFFFFFF"
+                        color.hovered="0xCEDBEF"
+                        color.selected="0xA8C6EE" />
+		</fill>
+	</Rect>
+	<TextBox text="{data}" verticalCenter="0" left="3" right="3" top="6" bottom="4" />

 </ItemRenderer>


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

--- frameworks/projects/airframework/src/mx/skins/halo/StatusBarBackgroundSkin.as
+++ frameworks/projects/airframework/src/mx/skins/halo/StatusBarBackgroundSkin.as
@@ -0,0 +1,62 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.skins.halo
+{
+
+import mx.skins.ProgrammaticSkin;
+
+/**
+ *  The skin for the StatusBar of a WindowedApplication or Window.
+ */
+public class StatusBarBackgroundSkin extends ProgrammaticSkin
+{
+    include "../../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Constructor
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Constructor.
+	 */
+	public function StatusBarBackgroundSkin()
+	{
+		super();
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Overridden methods: Programmatic Skin
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private.
+	 */
+	override protected function updateDisplayList(unscaledWidth:Number,
+									  			  unscaledHeight:Number):void
+	{
+		super.updateDisplayList(unscaledWidth, unscaledHeight);
+
+		graphics.clear();
+		drawRoundRect(
+			0, 0, unscaledWidth, unscaledHeight, null,
+			getStyle("statusBarBackgroundColor"), 1.0);
+		graphics.moveTo(0, 0);
+		graphics.lineStyle(1, 0x000000, 0.35);
+		graphics.lineTo(unscaledWidth, 0);
+	}
+}
+
+}


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

--- frameworks/projects/framework/src/mx/effects/effectClasses/PropertyChanges.as
+++ frameworks/projects/framework/src/mx/effects/effectClasses/PropertyChanges.as
@@ -0,0 +1,102 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.effects.effectClasses
+{
+
+import mx.core.IUIComponent;
+
+/**
+ *  The PropertyChanges class defines the start and end values
+ *  for a set of properties of a target component of a transition.
+ *  The start and end fields
+ *  of the PropertyChanges class contain the same set of properties,
+ *  but with different values.
+ *
+ *
Target properties that have the same start and end values
+ *  are not included in the start and end fields.

+ *
+ *  @see mx.states.Transition
+ */
+public class PropertyChanges
+{
+    include "../../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Constructor
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  The PropertyChanges constructor.
+	 *
+	 *  @param target Object that is a target of an effect.
+	 */
+	public function PropertyChanges(target:Object)
+	{
+		super();
+
+		this.target = target;
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Properties
+	//
+	//--------------------------------------------------------------------------
+
+	//----------------------------------
+	//  end
+	//----------------------------------
+
+	/**
+	 *  An Object containing the ending properties of the target
+	 *  component modified by the change in view state.
+	 *
+	 *
For example, for a target component that is both
+	 *  moved and resized by a change to the view state, end
+	 *  contains the ending position and size of the component,
+	 *  as the following example shows:
+	 *
{ x: 100, y: 100, width: 200, height: 200 }

+	 */
+	public var end:Object = {};
+
+	//----------------------------------
+	//  start
+	//----------------------------------
+
+	/**
+	 *  An Object containing the starting properties of the target
+	 *  component modified by the change in view state.
+	 *
+	 *
For example, for a target component that is both
+	 *  moved and resized by a change to the view state, start
+	 *  contains the starting position and size of the component,
+	 *  as the following example shows:
+	 *
{ x: 0, y: 0, width: 100, height: 100}

+	 */
+	public var start:Object = {};
+
+	//----------------------------------
+	//  target
+	//----------------------------------
+
+	/**
+	 *  A target component of a transition.
+	 *  The start and end fields
+	 *  of the PropertyChanges object define how the target component
+	 *  is modified by the change to the view state.
+	 */
+	public var target:Object;
+}
+
+}


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

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

 package mx.effects.effectClasses
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 22416
Author:   tkraikit@adobe.com
Date:     2011-09-06T22:14:53.007831Z

Log Message:
-----------
cleanup TODOs, added ASDoc; added check for invalid input type in YearProvider.getItemIndex(Object)

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/DateSpinner.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/calendarClasses/DateAndTimeProvider.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/calendarClasses/YearProvider.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/calendarClasses/YearProvider.as
+++ frameworks/projects/mobilecomponents/src/spark/components/calendarClasses/YearProvider.as
@@ -131,12 +131,17 @@
      */
     override public function getItemIndex(item:Object):int
     {
-        // TODO: should we also check whether item.data is integer?
-        var year:Number = item.data;
-
-        if (!isNaN(year)){
-            if (year >= startYear && year <= endYear)
-                return Math.floor(year - startYear);
+        try
+        {
+            var year:Number = item.data;
+
+            if (!isNaN(year)){
+                if (year >= startYear && year <= endYear)
+                    return Math.floor(year - startYear);
+            }
+        }
+        catch (e:Error) // in case object is in an incorrect format
+        {
         }

         return -1;


trace must take varargs in order to work with threerings.util.Log

--- tamarin-central/thane/toplevel.as
+++ tamarin-central/thane/toplevel.as
@@ -69,9 +69,14 @@
 	}

 	// nonstandard Flash Player extensions
-	public function trace(s :String) :void
+	public function trace(... s) :void
 	{
-		System.trace([ "Domain[" + Thane.getDomainId() + "]: " + s ]);
+            // TODO: optimize
+            var args :Array = ["Domain[" + Thane.getDomainId() + "]: "];
+            for (var i :int = 0; i < s.length; ++i) {
+                args.push(s[i]);
+            }
+            System.trace(args);
 	}

     public class Tracer


Fixing Cond Syll bug

Fixing Cond Syll bug

--- Arguments/src/Model/SimpleStatementModel.as
+++ Arguments/src/Model/SimpleStatementModel.as
@@ -138,6 +138,15 @@

 					}
 					else{
+							if(parent.argumentTypeModel.claimModel.statements[0].text!=null)
+							{
+								if(parent.argumentTypeModel.claimModel.statements[0].text.indexOf(Language.lookup("ArgNotCase"))!=-1)
+								{
+									parent.argumentTypeModel.claimModel.statements[0].text = parent.argumentTypeModel.claimModel.statements[0].text.split(Language.lookup("ArgNotCase"))[1];
+									parent.argumentTypeModel.claimModel.statements[0].positiveText = parent.argumentTypeModel.claimModel.statements[0].text;
+									return  "If "+parent.argumentTypeModel.claimModel.statements[0].text+" then "+ _text;
+								}
+							}
 							return  "If "+parent.argumentTypeModel.claimModel.statements[0].text+" then "+ _text;
 					}
 				}


Fixed the component title labeling bug when more than one node are selected.

--- Bin/Data/Scripts/Editor/EditorNodeWindow.as
+++ Bin/Data/Scripts/Editor/EditorNodeWindow.as
@@ -119,7 +119,7 @@
                     AddComponentContainer();

                 Text@ componentTitle = GetComponentContainer(j).GetChild("ComponentTitle");
-                componentTitle.text = GetComponentTitle(editComponents[j], 0) + multiplierText;
+                componentTitle.text = GetComponentTitle(editComponents[j * numEditableComponents], 0) + multiplierText;

                 Array<Serializable@> components;
                 for (uint i = 0; i < numEditableComponents; ++i)


Updated Engine with paused property for pausing game loop, and updated and re-organized game loop to work with the Console class.

--- net/flashpunk/Engine.as
+++ net/flashpunk/Engine.as
@@ -21,6 +21,11 @@
 	public class Engine extends MovieClip
 	{
 		/**
+		 * If the game should stop updating/rendering.
+		 */
+		public var paused:Boolean = false;
+
+		/**
 		 * Constructor. Defines startup information about your game.
 		 * @param	width			The width of your game.
 		 * @param	height			The height of your game.
@@ -63,16 +68,25 @@
 		 */
 		public function update():void
 		{
-			if (!frameLast) frameLast = getTimer();
+			// timing stuff
+			var t:Number = getTimer();
+			if (!_frameLast) _frameLast = t;
+
+			// update loop
 			if (FP._world.active)
 			{
 				if (FP._world._tween) FP._world.updateTweens();
 				FP._world.update();
 			}
-			frameListSum += (frameList[frameList.length] = getTimer() - frameLast);
-			if (frameList.length > 10) frameListSum -= frameList.shift();
-			FP.frameRate = 1000 / (frameListSum / frameList.length);
-			frameLast = getTimer();
+			FP._world.updateLists();
+			if (FP._goto) checkWorld();
+
+			// more timing stuff
+			t = getTimer();
+			_frameListSum += (_frameList[_frameList.length] = t - _frameLast);
+			if (_frameList.length > 10) _frameListSum -= _frameList.shift();
+			FP.frameRate = 1000 / (_frameListSum / _frameList.length);
+			_frameLast = t;
 		}

 		/**
@@ -80,8 +94,11 @@
 		 */
 		public function render():void
 		{
+			FP.screen.swap();
+			Draw.resetTarget();
 			FP.screen.refresh();
 			if (FP._world.visible) FP._world.render();
+			FP.screen.redraw();
 		}

 		/**
@@ -110,7 +127,7 @@
 			Input.enable();

 			// switch worlds
-			if (FP._goto) switchWorld();
+			if (FP._goto) checkWorld();

 			// game start
 			init();
@@ -138,37 +155,34 @@
 		private function onEnterFrame(e:Event):void
 		{
 			// update timer
-			_time = getTimer();
+			_time = _gameTime = getTimer();
+			FP._flashTime = _time - _flashTime;
+			_updateTime = _time;
 			FP.elapsed = (_time - _last) / 1000;
-			_last = _time;
-
-			// apply timescale
 			if (FP.elapsed > MAX_ELAPSED) FP.elapsed = MAX_ELAPSED;
 			FP.elapsed *= FP.rate;
+			_last = _time;
+
+			// update console
+			if (FP._console) FP._console.update();

 			// update loop
-			update();
-
-			// update entity lists
-			FP._world.updateLists();
+			if (!paused) update();

 			// update input
 			Input.update();

-			// switch worlds
-			if (FP._goto) switchWorld();
-
-			// swap buffers
-			FP.screen.swap();
-
-			// reset drawing target
-			Draw.resetTarget();
+			// update timer
+			_time = _renderTime = getTimer();
+			FP._updateTime = _time - _updateTime;

 			// render loop
-			render();
-
-			// redraw buffers
-			FP.screen.redraw();
+			if (!paused) render();
+
+			// update timer
+			_time = _flashTime = getTimer();
+			FP._renderTime = _time - _renderTime;
+			FP._gameTime = _time - _gameTime;
 		}

 		/** @private Fixed framerate game loop. */
@@ -182,48 +196,50 @@
 			// quit if a frame hasn't passed
 			if (_delta < _rate) return;

-			// update the game
+			// update timer
+			_gameTime = _time;
+			FP._flashTime = _time - _flashTime;
+
+			// update console
+			if (FP._console) FP._console.update();
+
+			// update loop
 			if (_delta > _skip) _delta = _skip;
 			while (_delta > _rate)
 			{
 				// update timer
+				_updateTime = _time;
 				_delta -= _rate;
-				_time = getTimer();
 				FP.elapsed = (_time - _prev) / 1000;
+				if (FP.elapsed > MAX_ELAPSED) FP.elapsed = MAX_ELAPSED;
+				FP.elapsed *= FP.rate;
 				_prev = _time;

-				// apply timescale
-				if (FP.elapsed > MAX_ELAPSED) FP.elapsed = MAX_ELAPSED;
-				FP.elapsed *= FP.rate;
-
 				// update loop
-				update();
-
-				// update entity lists
-				FP._world.updateLists();
+				if (!paused) update();

 				// update input
 				Input.update();

-				// switch worlds
-				if (FP._goto) switchWorld();
-			}
-
-			// swap buffers
-			FP.screen.swap();
-
-			// reset drawing target
-			Draw.resetTarget();
+				// update timer
+				_time = getTimer();
+				FP._updateTime = _time - _updateTime;
+			}
+
+			// update timer
+			_renderTime = _time;

 			// render loop
-			render();
-
-			// redraw buffers
-			FP.screen.redraw();
+			if (!paused) render();
+
+			// update timer
+			_time = _flashTime = getTimer();
+			FP._renderTime = _time - _renderTime;
+			FP._gameTime =  _time - _gameTime;
 		}

 		/** @private Switch Worlds if they've changed. */
-		private function switchWorld():void
+		private function checkWorld():void
 		{
 			if (!FP._goto) return;
 			FP._world.end();
@@ -244,14 +260,20 @@
 		/** @private */ private var	_skip:Number;
 		/** @private */ private var _prev:Number;

+		// Debug timing information.
+		/** @private */ private var _updateTime:uint;
+		/** @private */ private var _renderTime:uint;
+		/** @private */ private var _gameTime:uint;
+		/** @private */ private var _flashTime:uint;
+
 		// Game constants.
 		/** @private */ private const MAX_ELAPSED:Number = 0.0333;
 		/** @private */ private const MAX_FRAMESKIP:Number = 5;
 		/** @private */ private const TICK_RATE:uint = 4;

 		// FrameRate tracking.
-		/** @private */ private var frameLast:uint = 0;
-		/** @private */ private var frameListSum:uint = 0;
-		/** @private */ private var frameList:Vector.<uint> = new Vector.<uint>;
+		/** @private */ private var _frameLast:uint = 0;
+		/** @private */ private var _frameListSum:uint = 0;
+		/** @private */ private var _frameList:Vector.<uint> = new Vector.<uint>;
 	}
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 18132
Author:   chiedozi@adobe.com
Date:     2010-10-11T22:53:35.893132Z

Log Message:
-----------
View's navigator property is now a read-only getter
ViewNavigator's transitionsEnabled and useDefaultTransitions public vars are now public getters and setters

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

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

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

--- frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewDescriptor.as
+++ frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewDescriptor.as
@@ -41,6 +41,7 @@
      *
      *  @param viewClass The class used to create the View
      *  @param data The data object to pass to the view when created
+     *  @param context The context of the view
      *  @param instance A reference to the instance of the View
      *
      *  @langversion 3.0


Transferred from the Adobe Open Source Subversion Repository

Revision: 11909
Author:   rfrishbe@adobe.com
Date:     2009-11-17T21:38:09.638135Z

Log Message:
-----------
Updating OSMF to new flex4 branch.  We will eventually take a pre-built SWC from them as well, but for now we will continue building it.

With this update, some events that we dispatch change. This update also fixes several bugs for us.

I also got rid of a FIXME in VolumeBar around commitData in closeDropDown().

QE notes: -
Doc notes: -
Bugs: SDK-24192, SDK-24194, SDK-24289
Reviewer: Jason for the VolumeBar changes, Kevin for the rest
Tests run: checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
222 paths were modified

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

--- frameworks/projects/spark/src/spark/components/mediaClasses/DynamicStreamingVideoSource.as
+++ frameworks/projects/spark/src/spark/components/mediaClasses/DynamicStreamingVideoSource.as
@@ -146,7 +146,7 @@
     [Inspectable(category="General", enumeration="any,live,recorded", defaultValue="any")]

     /**
-     *  The type of stream we are trying to connect to.
+     *  The type of stream we are trying to connect to: any, live, or recorded.
      *
      *
If the streamType is any, then we will attempt to
      *  connect to a live stream first.  If no live stream is found, we will
@@ -154,6 +154,8 @@
      *  then a live stream will be created.

      *
      *  @default any
+     *
+     *  @see org.osmf.net.StreamType
      *
      *  @langversion 3.0
      *  @playerversion Flash 10