Transferred from the Adobe Open Source Subversion Repository

Revision: 2905
Author:   clucier@adobe.com
Date:     2008-08-19T20:45:59.993275Z

Log Message:
-----------
Changes to allow UIComponent to take advantage of the new bindable filters (bindable wrappers around DropShadowFilter, GlowFilter, etc. that will force the filter stack to be re-evaluated when one or more of the filter parameters change). Checkin-tests: PASS
Reviewer: Jason
Bugs: SDK-16311
QA: Yes

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/Parser.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/filters/ConvolutionFilter.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/filters/BaseDimensionFilter.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/flex/filters/BaseDimensionFilter.as" copyfrom-rev="2873" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/filters/BaseDimensionFilter.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/filters/IBitmapFilter.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/flex/filters/IBitmapFilter.as" copyfrom-rev="2873" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/filters/IBitmapFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/filters/GradientGlowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/graphicsClasses/GraphicElement.as</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/filters</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/filters/BevelFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/filters/GradientFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/filters/ColorMatrixFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/filters/BlurFilter.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/filters/DisplacementMapFilter.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/filters/GlowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/flex/tools/dependencychecker/FrameworkSwcDependencyRules.java</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/filters/BaseFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/filters/DropShadowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/FrameworkClasses.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/filters/GradientBevelFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/flex/filters/BaseFilter.as" copyfrom-rev="2873" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/filters/BaseFilter.as</path>

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

--- frameworks/projects/spark/src/spark/filters/DisplacementMapFilter.as
+++ frameworks/projects/spark/src/spark/filters/DisplacementMapFilter.as
@@ -6,6 +6,8 @@
 import flash.filters.DisplacementMapFilterMode;
 import flash.display.BitmapData;
 import flash.geom.Point;
+import mx.filters.BaseFilter;
+import mx.filters.IBitmapFilter;

 public class DisplacementMapFilter extends BaseFilter implements IBitmapFilter
 {


added try/catch

added try/catch

--- WeaveUISpark/src/weave/Weave.as
+++ WeaveUISpark/src/weave/Weave.as
@@ -30,6 +30,7 @@
 	import mx.graphics.codec.PNGEncoder;
 	import mx.rpc.events.FaultEvent;
 	import mx.rpc.events.ResultEvent;
+	import mx.utils.StringUtil;
 	import mx.utils.UIDUtil;

 	import weave.api.WeaveAPI;
@@ -439,18 +440,27 @@
 			var obj:SharedObject = SharedObject.getLocal(WEAVE_RELOAD_SHARED_OBJECT);
 			var flush:Boolean = false;
 			var uid:String = WEAVE_RELOAD_SHARED_OBJECT;
-			if (ExternalInterface.objectID)
-			{
-				// get uid that was previously saved in parent node
-				uid = ExternalInterface.call(
-					"function(objectID) {" +
-					"  var p = document.getElementById(objectID).parentNode;" +
-					"  var reloadID = p.weaveReloadID;" +
-					"  p.weaveReloadID = undefined;" +
-					"  return reloadID;" +
-					"}",
-					ExternalInterface.objectID
-				);
+			if (ExternalInterface.available && ExternalInterface.objectID)
+			{
+				try
+				{
+					// get uid that was previously saved in parent node
+					uid = ExternalInterface.call(
+						"function(objectID) {" +
+						"  var p = document.getElementById(objectID).parentNode;" +
+						"  var reloadID = p.weaveReloadID;" +
+						"  p.weaveReloadID = undefined;" +
+						"  return reloadID;" +
+						"}",
+						ExternalInterface.objectID
+					);
+				}
+				catch (e:Error)
+				{
+					if (e.errorID == 2060 && e.getStackTrace() == null)
+						e.message = StringUtil.substitute("ExternalInterface caller {0} cannot access the current JavaScript security domain.", WeaveAPI.topLevelApplication.url);
+					reportError(e);
+				}
 			}

 			// get session history from shared object


Switched to pixel-perfect webfont

Switched to pixel-perfect webfont

--- src/U.as
+++ src/U.as
@@ -30,12 +30,14 @@
 		public static const MUNRO_NARROW:String = "MUNRO_N";
 		[Embed(source = "../lib/fonts/munro_small.ttf", fontFamily = "MUNRO_S")] private const _3:String;
 		public static const MUNRO_SMALL:String = "MUNRO_S";
+		[Embed(source = "../lib/fonts/munro-webfont.ttf", fontFamily = "MUNRO_W")] private const _4:String;
+		public static const MUNRO_WEB:String = "MUNRO_W";
 		public static const SYSTEM:String = "system";

 		public static const LABEL_FONT:FontTuple = new FontTuple(SYSTEM, 16);
 		public static const BODY_FONT:FontTuple = new FontTuple(SYSTEM, 16);
 		public static const TITLE_FONT:FontTuple = new FontTuple(SYSTEM, 32);
-		public static const NODE_FONT:FontTuple = new FontTuple(MUNRO_NARROW, 20);
+		public static const NODE_FONT:FontTuple = new FontTuple(MUNRO_WEB, 32);
 		public static const MODULE_FONT_CLOSE:FontTuple = new FontTuple(SYSTEM, 16);
 		public static const MODULE_FONT_FAR:FontTuple = new FontTuple(SYSTEM, 32);


Convert Behaviour Arrays to Vectors in Emitter

--- src/org/flintparticles/common/emitters/Emitter.as
+++ src/org/flintparticles/common/emitters/Emitter.as
@@ -29,9 +29,9 @@
  */

 package org.flintparticles.common.emitters {
+	import org.flintparticles.common.behaviours.Behaviour;
 	import org.flintparticles.common.actions.Action;
 	import org.flintparticles.common.activities.Activity;
-	import org.flintparticles.common.behaviours.BehaviourArrayUtils;
 	import org.flintparticles.common.counters.Counter;
 	import org.flintparticles.common.counters.ZeroCounter;
 	import org.flintparticles.common.events.EmitterEvent;
@@ -142,15 +142,15 @@
 		/**
 		 * @private
 		 */
-		protected var _initializers:Array;
-		/**
-		 * @private
-		 */
-		protected var _actions:Array;
-		/**
-		 * @private
-		 */
-		protected var _activities:Array;
+		protected var _initializers:Vector.<Initializer>;
+		/**
+		 * @private
+		 */
+		protected var _actions:Vector.<Action>;
+		/**
+		 * @private
+		 */
+		protected var _activities:Vector.<Activity>;
 		/**
 		 * @private
 		 */
@@ -196,9 +196,9 @@
 		public function Emitter()
 		{
 			_particles = new Vector.<Particle>();
-			_actions = new Array();
-			_initializers = new Array();
-			_activities = new Array();
+			_actions = new Vector.<Action>();
+			_initializers = new Vector.<Initializer>();
+			_activities = new Vector.<Activity>();
 			_counter = new ZeroCounter();
 		}

@@ -229,11 +229,11 @@
 		/**
 		 * The array of all initializers being used by this emitter.
 		 */
-		public function get initializers():Array
+		public function get initializers():Vector.<Initializer>
 		{
 			return _initializers;
 		}
-		public function set initializers( value:Array ):void
+		public function set initializers( value:Vector.<Initializer> ):void
 		{
 			var initializer:Initializer;
 			for each( initializer in _initializers )
@@ -241,7 +241,7 @@
 				initializer.removedFromEmitter( this );
 			}
 			_initializers = value.slice();
-			BehaviourArrayUtils.sortArray( _initializers );
+			_initializers.sort( prioritySort );
 			for each( initializer in value )
 			{
 				initializer.addedToEmitter( this );
@@ -259,7 +259,15 @@
 		 */
 		public function addInitializer( initializer:Initializer ):void
 		{
-			BehaviourArrayUtils.add( _initializers, initializer );
+			var len:uint = _initializers.length;
+			for( var i:uint = 0; i < len; ++i )
+			{
+				if( Behaviour( _initializers[i] ).priority < initializer.priority )
+				{
+					break;
+				}
+			}
+			_initializers.splice( i, 0, initializer );
 			initializer.addedToEmitter( this );
 		}

@@ -272,8 +280,10 @@
 		 */
 		public function removeInitializer( initializer:Initializer ):void
 		{
-			if( BehaviourArrayUtils.remove( _initializers, initializer ) )
-			{
+			var index:int = _initializers.indexOf( initializer );
+			if( index != -1 )
+			{
+				_initializers.splice( index, 1 );
 				initializer.removedFromEmitter( this );
 			}
 		}
@@ -288,7 +298,7 @@
 		 */
 		public function hasInitializer( initializer:Initializer ):Boolean
 		{
-			return BehaviourArrayUtils.contains( _initializers, initializer );
+			return _initializers.indexOf( initializer ) != -1;
 		}

 		/**
@@ -301,17 +311,25 @@
 		 */
 		public function hasInitializerOfType( initializerClass:Class ):Boolean
 		{
-			return BehaviourArrayUtils.containsType( _initializers, initializerClass );
+			var len:uint = _initializers.length;
+			for( var i:uint = 0; i < len; ++i )
+			{
+				if( _initializers[i] is initializerClass )
+				{
+					return true;
+				}
+			}
+			return false;
 		}

 		/**
 		 * The array of all actions being used by this emitter.
 		 */
-		public function get actions():Array
+		public function get actions():Vector.<Action>
 		{
 			return _actions;
 		}
-		public function set actions( value:Array ):void
+		public function set actions( value:Vector.<Action> ):void
 		{
 			var action:Action;
 			for each( action in _actions )
@@ -319,7 +337,7 @@
 				action.removedFromEmitter( this );
 			}
 			_actions = value.slice();
-			BehaviourArrayUtils.sortArray( _actions );
+			_actions.sort( prioritySort );
 			for each( action in value )
 			{
 				action.addedToEmitter( this );
@@ -337,7 +355,15 @@
 		 */
 		public function addAction( action:Action ):void
 		{
-			BehaviourArrayUtils.add( _actions, action );
+			var len:uint = _actions.length;
+			for( var i:uint = 0; i < len; ++i )
+			{
+				if( Behaviour( _actions[i] ).priority < action.priority )
+				{
+					break;
+				}
+			}
+			_actions.splice( i, 0, action );
 			action.addedToEmitter( this );
 		}

@@ -350,8 +376,10 @@
 		 */
 		public function removeAction( action:Action ):void
 		{
-			if( BehaviourArrayUtils.remove( _actions, action ) )
-			{
+			var index:int = _actions.indexOf( action );
+			if( index != -1 )
+			{
+				_actions.splice( index, 1 );
 				action.removedFromEmitter( this );
 			}
 		}
@@ -366,7 +394,7 @@
 		 */
 		public function hasAction( action:Action ):Boolean
 		{
-			return BehaviourArrayUtils.contains( _actions, action );
+			return _actions.indexOf( action ) != -1;
 		}

 		/**
@@ -379,17 +407,25 @@
 		 */
 		public function hasActionOfType( actionClass:Class ):Boolean
 		{
-			return BehaviourArrayUtils.containsType( _actions, actionClass );
+			var len:uint = _actions.length;
+			for( var i:uint = 0; i < len; ++i )
+			{
+				if( _actions[i] is actionClass )
+				{
+					return true;
+				}
+			}
+			return false;
 		}

 		/**
 		 * The array of all actions being used by this emitter.
 		 */
-		public function get activities():Array
+		public function get activities():Vector.<Activity>
 		{
 			return _activities;
 		}
-		public function set activities( value:Array ):void
+		public function set activities( value:Vector.<Activity> ):void
 		{
 			var activity:Activity;
 			for each( activity in _activities )
@@ -397,7 +433,7 @@
 				activity.removedFromEmitter( this );
 			}
 			_activities = value.slice();
-			BehaviourArrayUtils.sortArray( _activities );
+			_activities.sort( prioritySort );
 			for each( activity in _activities )
 			{
 				activity.addedToEmitter( this );
@@ -415,7 +451,15 @@
 		 */
 		public function addActivity( activity:Activity ):void
 		{
-			BehaviourArrayUtils.add( _activities, activity );
+			var len:uint = _activities.length;
+			for( var i:uint = 0; i < len; ++i )
+			{
+				if( Behaviour( _activities[i] ).priority < activity.priority )
+				{
+					break;
+				}
+			}
+			_activities.splice( i, 0, activity );
 			activity.addedToEmitter( this );
 		}

@@ -428,8 +472,10 @@
 		 */
 		public function removeActivity( activity:Activity ):void
 		{
-			if( BehaviourArrayUtils.remove( _activities, activity ) )
-			{
+			var index:int = _activities.indexOf( activity );
+			if( index != -1 )
+			{
+				_activities.splice( index, 1 );
 				activity.removedFromEmitter( this );
 			}
 		}
@@ -444,7 +490,7 @@
 		 */
 		public function hasActivity( activity:Activity ):Boolean
 		{
-			return BehaviourArrayUtils.contains( _activities, activity );
+			return _activities.indexOf( activity ) != -1;
 		}

 		/**
@@ -457,7 +503,15 @@
 		 */
 		public function hasActivityOfType( activityClass:Class ):Boolean
 		{
-			return BehaviourArrayUtils.containsType( _activities, activityClass );
+			var len:uint = _activities.length;
+			for( var i:uint = 0; i < len; ++i )
+			{
+				if( _activities[i] is activityClass )
+				{
+					return true;
+				}
+			}
+			return false;
 		}

 		/**
@@ -831,5 +885,10 @@
 			}
 			_maximumFrameTime = maxTime;
 		}
+
+		private function prioritySort( b1:Behaviour, b2:Behaviour ):Number
+		{
+			return b1.priority - b2.priority;
+		}
 	}
 }


graphics updates for distinctiveness display

--- src/eu/stefaner/elasticlists/ui/DefaultGraphicsFactory.as
+++ src/eu/stefaner/elasticlists/ui/DefaultGraphicsFactory.as
@@ -58,7 +58,10 @@
 		}

 		public static function getFacetBoxBackground() : Sprite {
-			return getPanelBackground();
+			var s : Sprite = new Sprite();
+			s.graphics.beginFill(0xDDDDDD, 1);
+			s.graphics.drawRect(0, 0, 100, 100);
+			return s;
 		}

 		public static function getContentItemBackground() : Sprite {
@@ -90,7 +93,7 @@

 		public static function getPanelBackground() : Sprite {
 			var s : Sprite = new Sprite();
-			s.graphics.beginFill(0xFFFFFF, 1);
+			s.graphics.beginFill(0xF0F0F0, 1);
 			s.graphics.drawRect(0, 0, 100, 100);
 			return s;
 		}
@@ -141,7 +144,7 @@

 		public static function getSliderFacetBoxElementLocalBar() : Sprite {
 			var s : Sprite = new Sprite();
-			s.graphics.beginFill(0xF0F0F0);
+			s.graphics.beginFill(0xFFFFFF);
 			s.graphics.lineStyle(0, 0xCCCCCC, 1);
 			s.graphics.drawRect(-1, -2, 2, 2);
 			s.filters = [new DropShadowFilter(0, 45, 0, .2)];


spring injector

spring injector

--- src/net/boyblack/robotlegs/adapters/SpringInjector.as
+++ src/net/boyblack/robotlegs/adapters/SpringInjector.as
@@ -1,7 +1,7 @@
 package net.boyblack.robotlegs.adapters
 {
     import net.boyblack.robotlegs.core.IInjector;
-
+
     import org.as3commons.lang.ClassUtils;
     import org.as3commons.lang.ObjectUtils;
     import org.as3commons.reflect.Field;
@@ -34,27 +34,24 @@
         {
             var whenAskedForClassName:String = ClassUtils.getFullyQualifiedName(whenAskedFor);
             var useClassName:String = ClassUtils.getFullyQualifiedName(instantiateClass);
-            var dependencies:Array = findDependencies(instantiateClass);
             var properties:Object = findProperties(instantiateClass);
-            registerObjectDefinition(whenAskedForClassName, useClassName, named, ObjectDefinitionScope.PROTOTYPE, dependencies, properties);
+            registerObjectDefinition(whenAskedForClassName, useClassName, named, ObjectDefinitionScope.PROTOTYPE, properties);
         }

         public function bindSingleton(whenAskedFor:Class, named:String = null):void
         {
             var whenAskedForClassName:String = ClassUtils.getFullyQualifiedName(whenAskedFor);
             var useClassName:String = whenAskedForClassName;
-            var dependencies:Array = findDependencies(whenAskedFor);
             var properties:Object = findProperties(whenAskedFor);
-            registerObjectDefinition(whenAskedForClassName, useClassName, named, ObjectDefinitionScope.SINGLETON, dependencies, properties);
+            registerObjectDefinition(whenAskedForClassName, useClassName, named, ObjectDefinitionScope.SINGLETON, properties);
         }

         public function bindSingletonOf(whenAskedFor:Class, useSingletonOf:Class, named:String = null):void
         {
             var whenAskedForClassName:String = ClassUtils.getFullyQualifiedName(whenAskedFor);
             var useClassName:String = ClassUtils.getFullyQualifiedName(useSingletonOf);
-            var dependencies:Array = findDependencies(useSingletonOf);
             var properties:Object = findProperties(useSingletonOf);
-            registerObjectDefinition(whenAskedForClassName, useClassName, named, ObjectDefinitionScope.SINGLETON, dependencies, properties);
+            registerObjectDefinition(whenAskedForClassName, useClassName, named, ObjectDefinitionScope.SINGLETON, properties);
         }

         public function injectInto(target:Object):void
@@ -92,45 +89,13 @@
             factory.removeObjectDefinition(named);
         }

-        protected function registerObjectDefinition(whenAskedForClassName:String, useClassName:String, named:String, scope:ObjectDefinitionScope, dependencies:Array = null, properties:Object = null):void
+        protected function registerObjectDefinition(whenAskedForClassName:String, useClassName:String, named:String, scope:ObjectDefinitionScope, properties:Object = null):void
         {
             var objdef:ObjectDefinition = new ObjectDefinition(useClassName);
             var key:String = named ? named : whenAskedForClassName;
-            objdef.dependsOn = dependencies ? dependencies : objdef.dependsOn;
             objdef.properties = properties ? properties : objdef.properties;
             objdef.scope = scope;
             factory.registerObjectDefinition(key, objdef);
-        }
-
-        protected function findDependencies(clazz:Class):Array
-        {
-            var type:Type = Type.forClass(clazz);
-            var fields:Array = type.fields;
-            var dependencies:Array = new Array();
-            for each (var field:Field in fields)
-            {
-                if (field.hasMetaData('Inject'))
-                {
-                    var named:String = null;
-                    var mds:Array = field.getMetaData('Inject');
-                    for each (var md:MetaData in mds)
-                    {
-                        if (md.hasArgumentWithKey('name'))
-                        {
-                            named = md.getArgument('name').value;
-                            break;
-                        }
-                        else if (md.hasArgumentWithKey('id'))
-                        {
-                            named = md.getArgument('id').value;
-                            break;
-                        }
-                    }
-                    named = named ? named : field.type.fullName;
-                    dependencies.push(named);
-                }
-            }
-            return dependencies;
         }

         protected function findProperties(clazz:Class):Object


Transferred from the Adobe Open Source Subversion Repository

Revision: 23247
Author:   cframpto@adobe.com
Date:     2011-12-20T19:21:13.134833Z

Log Message:
-----------
Remove ADOBE SYSTEMS license and replace with Apache license in headers - frameworks.  A 2nd pass will be needed to get the files not handled up by the scripts.

Modified Paths:
--------------
4959 paths were modified

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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 23247
Author:   cframpto@adobe.com
Date:     2011-12-20T19:21:13.134833Z

Log Message:
-----------
Remove ADOBE SYSTEMS license and replace with Apache license in headers - frameworks.  A 2nd pass will be needed to get the files not handled up by the scripts.

Modified Paths:
--------------
4959 paths were modified

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

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


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/framework/src/mx/core/SoundAsset.as
+++ frameworks/projects/framework/src/mx/core/SoundAsset.as
@@ -68,6 +68,11 @@
  *
  *

  *  <mx:SoundEffect id="beepEffect" source="{beepClass}"/>

+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class SoundAsset extends Sound implements IFlexAsset
 {
@@ -81,6 +86,11 @@

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


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

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

 package mx.core
 {


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

--- frameworks/projects/framework/src/mx/graphics/Stroke.as
+++ frameworks/projects/framework/src/mx/graphics/Stroke.as
@@ -0,0 +1,406 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2004-2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.graphics
+{
+
+import flash.display.Graphics;
+import flash.events.EventDispatcher;
+import flash.events.Event;
+import mx.events.PropertyChangeEvent;
+
+/**
+ *  The Stroke class defines the properties for a line.
+ *
+ *  You can define a Stroke object in MXML, but you must attach that Stroke to
+ *  another object for it to appear in your application. The following example
+ *  defines two Stroke objects and then uses them in the horizontalAxisRenderer
+ *  of a LineChart control:
+ *
+ *

+ *  ...
+ *  <mx:Stroke id="ticks" color="0xFF0000" weight="1"/>
+ *  <mx:Stroke id="mticks" color="0x0000FF" weight="1"/>
+ *
+ *  <mx:LineChart id="mychart" dataProvider="{ndxa}">
+ *  	<mx:horizontalAxisRenderer>
+ *  		<mx:AxisRenderer placement="bottom" canDropLabels="true">
+ *  			<mx:tickStroke>{ticks}</mx:tickStroke>
+ *  			<mx:minorTickStroke>{mticks}</mx:minorTickStroke>
+ *  		</mx:AxisRenderer>
+ *  	</mx:horizontalAxisRenderer>
+ *  </LineChart>
+ *  ...
+ *

+ *
+ *  @mxml
+ *
+ *
The <mx:Stroke> tag inherits all the tag attributes
+ *  of its superclass, and adds the following tag attributes:

+ *
+ *

+ *  <mx:Stroke
+ *    Properties
+ *    alpha="1.0"
+ *    caps="null|none|round|square"
+ *    color="0x000000"
+ *    joints="null|bevel|miter|round"
+ *    miterLimit="0"
+ *    pixelHinting="false|true"
+ *    scaleMode="normal|none|noScale|vertical"
+ *    weight="1 (in most cases)"
+ *  />
+ *

+ *
+ *  @see flash.display.Graphics
+ */
+public class Stroke extends EventDispatcher implements IStroke
+{
+	include "../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Constructor
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Constructor.
+	 *
+	 *  @param color Specifies the line color.
+	 *  The default value is 0x000000 (black).
+	 *
+	 *  @param weight Specifies the line weight, in pixels.
+	 *  The default value is 0.
+	 *
+	 *  @param alpha Specifies the alpha value in the range 0.0 to 1.0.
+	 *  The default value is 1.0 (opaque).
+	 *
+	 *  @param pixelHinting Specifies whether to hint strokes to full pixels.
+	 *  This value affects both the position of anchors of a curve
+	 *  and the line stroke size itself.
+	 *  The default value is false.
+	 *
+	 *  @param scaleMode Specifies how to scale a stroke.
+	 *  Valid values are "normal", "none",
+	 *  "vertical", and "noScale".
+	 *  The default value is "normal".
+	 *
+	 *  @param caps Specifies the type of caps at the end of lines.
+	 *  Valid values are "round", "square",
+	 *  and "none".
+	 *  The default value is null.
+	 *
+	 *  @param joints Specifies the type of joint appearance used at angles.
+	 *  Valid values are "round", "miter",
+	 *  and "bevel".
+	 *  The default value is null.
+	 *
+	 *  @param miterLimit Indicates the limit at which a miter is cut off.
+	 *  Valid values range from 0 to 255.
+	 *  The default value is 0.
+	 */
+	public function Stroke(color:uint = 0x000000, weight:Number = 0,
+						   alpha:Number = 1.0, pixelHinting:Boolean = false,
+						   scaleMode:String = "normal", caps:String = null,
+						   joints:String = null, miterLimit:Number = 0)
+	{
+		super();
+
+		this.color = color;
+		this._weight = weight;
+		this.alpha = alpha;
+		this.pixelHinting = pixelHinting;
+		this.scaleMode = scaleMode;
+		this.caps = caps;
+		this.joints = joints;
+		this.miterLimit = miterLimit;
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Properties
+	//
+	//--------------------------------------------------------------------------
+
+	//----------------------------------
+	//  alpha
+	//----------------------------------
+
+	private var _alpha:Number = 0.0;
+
+	[Bindable("propertyChange")]
+    [Inspectable(category="General")]
+
+	/**
+	 *  The transparency of a line.
+	 *  Possible values are 0.0 (invisible) through 1.0 (opaque).
+	 *
+	 *  @default 1.0.
+	 */
+	public function get alpha():Number
+	{
+		return _alpha;
+	}
+
+	public function set alpha(value:Number):void
+	{
+		var oldValue:Number = _alpha;
+		if (value != oldValue)
+		{
+			_alpha = value;
+			dispatchStrokeChangedEvent("alpha", oldValue, value);
+		}
+	}
+
+	//----------------------------------
+	//  caps
+	//----------------------------------
+
+	private var _caps:String = null;
+
+	[Bindable("propertyChange")]
+	[Inspectable(category="General", enumeration="round,square,none", defaultValue="round")]
+
+	/**
+	 *  Specifies the type of caps at the end of lines.
+	 *  Valid values are: "round", "square",
+	 *  and "none".
+	 */
+	public function get caps():String
+	{
+		return _caps;
+	}
+
+	public function set caps(value:String):void
+	{
+		var oldValue:String = _caps;
+		if (value != oldValue)
+		{
+			_caps = value;
+			dispatchStrokeChangedEvent("caps", oldValue, value);
+		}
+	}
+
+	//----------------------------------
+	//  color
+	//----------------------------------
+
+	private var _color:uint = 0x000000;
+
+	[Bindable("propertyChange")]
+    [Inspectable(category="General", format="Color")]
+
+	/**
+	 *  The line color.
+	 *
+	 *  @default 0x000000 (black).
+	 */
+	public function get color():uint
+	{
+		return _color;
+	}
+
+	public function set color(value:uint):void
+	{
+		var oldValue:uint = _color;
+		if (value != oldValue)
+		{
+			_color = value;
+			dispatchStrokeChangedEvent("color", oldValue, value);
+		}
+	}
+
+	//----------------------------------
+	//  joints
+	//----------------------------------
+
+	private var _joints:String = null;
+
+	[Bindable("propertyChange")]
+	[Inspectable(category="General", enumeration="round,bevel,miter", defaultValue="round")]
+
+	/**
+	 *  Specifies the type of joint appearance used at angles.
+	 *  Valid values are "round", "miter",
+	 *  and "bevel".
+	 */
+	public function get joints():String
+	{
+		return _joints;
+	}
+
+	public function set joints(value:String):void
+	{
+		var oldValue:String = _joints;
+		if (value != oldValue)
+		{
+			_joints = value;
+			dispatchStrokeChangedEvent("joints", oldValue, value);
+		}
+	}
+
+	//----------------------------------
+	//  miterLimit
+	//----------------------------------
+
+	private var _miterLimit:Number = 0;
+
+	[Bindable("propertyChange")]
+	[Inspectable(category="General")]
+
+	/**
+	 *  Indicates the limit at which a miter is cut off.
+	 *  Valid values range from 0 to 255.
+	 *
+	 *  @default 0
+	 */
+	public function get miterLimit():Number
+	{
+		return _miterLimit;
+	}
+
+	public function set miterLimit(value:Number):void
+	{
+		var oldValue:Number = _miterLimit;
+		if (value != oldValue)
+		{
+			_miterLimit = value;
+			dispatchStrokeChangedEvent("miterLimit", oldValue, value);
+		}
+	}
+
+	//----------------------------------
+	//  pixelHinting
+	//----------------------------------
+
+	private var _pixelHinting:Boolean = false;
+
+	[Bindable("propertyChange")]
+    [Inspectable(category="General")]
+
+	/**
+	 *  Specifies whether to hint strokes to full pixels.
+	 *  This value affects both the position of anchors of a curve
+	 *  and the line stroke size itself.
+	 *
+	 *  @default false
+	 */
+	public function get pixelHinting():Boolean
+	{
+		return _pixelHinting;
+	}
+
+	public function set pixelHinting(value:Boolean):void
+	{
+		var oldValue:Boolean = _pixelHinting;
+		if (value != oldValue)
+		{
+			_pixelHinting = value;
+			dispatchStrokeChangedEvent("pixelHinting", oldValue, value);
+		}
+	}
+
+	//----------------------------------
+	//  scaleMode
+	//----------------------------------
+
+	private var _scaleMode:String = "normal";
+
+	[Bindable("propertyChange")]
+	[Inspectable(category="General", enumeration="normal,vertical,horizontal,none", defaultValue="normal")]
+
+	/**
+	 *  Specifies how to scale a stroke.
+	 *  Valid values are "normal", "none",
+	 *  "vertical", and "noScale".
+	 *
+	 *  @default "normal"
+	 */
+	public function get scaleMode():String
+	{
+		return _scaleMode;
+	}
+
+	public function set scaleMode(value:String):void
+	{
+		var oldValue:String = _scaleMode;
+		if (value != oldValue)
+		{
+			_scaleMode = value;
+			dispatchStrokeChangedEvent("scaleMode", oldValue, value);
+		}
+	}
+
+	//----------------------------------
+	//  weight
+	//----------------------------------
+
+	/**
+	 *  @private
+	 *  Storage for the weight property.
+	 */
+	private var _weight:Number;
+
+	[Bindable("propertyChange")]
+    [Inspectable(category="General")]
+
+	/**
+	 *  The line weight, in pixels.
+	 *  For many charts, the default value is 1 pixel.
+	 */
+	public function get weight():Number
+	{
+		return _weight;
+	}
+
+	/**
+	 *  @private
+	 */
+	public function set weight(value:Number):void
+	{
+		var oldValue:Number = _weight;
+		if (value != oldValue)
+		{
+			_weight = value;
+			dispatchStrokeChangedEvent("weight", oldValue, value);
+		}
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Methods
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Applies the properties to the specified Graphics object.
+	 *
+	 *  @param g The Graphics object to which the Stroke's styles are applied.
+	 */
+	public function apply(g:Graphics):void
+	{
+		g.lineStyle(weight, color, alpha, pixelHinting,
+					scaleMode, caps, joints, miterLimit);
+	}
+
+	/**
+	 *  @private
+	 */
+	private function dispatchStrokeChangedEvent(prop:String, oldValue:*,
+												value:*):void
+	{
+        dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, prop,
+															oldValue, value));
+	}
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 4106
Author:   rfrishbe@adobe.com
Date:     2008-11-14T01:56:47.949068Z

Log Message:
-----------
Mostly rename changes.  IVisualItem -> IVisualElement.  IVisualContainer -> IVisualElementContainer.  Also changed the APIs so that it's addElement, removeElement, etc.. instead of addItem, removeItem, etc...  Moreover, all of these APIs have been added to IVisualElementContainer (not just the read-only ones).  Now there's a common interface for all containers (even Halo's Container class implements it).  There's no more need to do:

if (x is Group || x is FxContainer)

Just use the IVisualElementContainer interface.

Some classes, like FxScroller (and perhaps DataGroup/FxDataContainer), will only implement the "getter" part of the API.  For now, if you call the mutation methods, we will throw an exception.  Perhaps later we'll add a separate interface for the read-only portion and the mutator interface will extend that one.

There might be a few more places in the code that need to be updated to use the new names for the methods.  I know Mustella needs cleaning up so it doesn't use getItem and uses getElement instead.  I've left the old APIs in there exactly for this purpose, so we can gradually move over to the new names (esp. QA).

At some point soon, we will remove the old methods as well as type them more strictly to only accept IVisualElements, for example addElement(element:IVisualElement).  Part of this work is dependent on updating the Flash Component Kit so that it implements IVisualElement (and perhaps IVisualElementContainer for containers).

Ran checkintests and all gumbo mustella tests.

QE Notes: Please update your tests to use addElement, removeElement, etc... along with the new IVisualElementContainer interface.  The old APIs (addItem, removeItem, etc...) will be removed soon.
Doc Notes: None
Bugs: -
Reviewer: Hans (he patiently sat through all these files...)

Modified Paths:
--------------
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/core/IVisualContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxScroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/RemoveActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/LayoutItemHelper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/LayoutItemUIC.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/RemoveAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxFadeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IUIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxAnimate3DInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/ILayoutItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualItem.as" copyfrom-rev="4083" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxAnimateInstance.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/mx/core/IVisualContainer.as" copyfrom-rev="4083" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElementContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/states/AddItems.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxList.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/flex/tools/dependencychecker/FrameworkSwcDependencyRules.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/AddActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/AddAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxContainer.as</path>

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

--- frameworks/projects/framework/src/mx/states/AddItems.as
+++ frameworks/projects/framework/src/mx/states/AddItems.as
@@ -20,6 +20,7 @@
 import mx.core.IChildList;
 import mx.core.IDeferredInstance;
 import mx.core.UIComponent;
+import mx.core.IVisualElementContainer;

 [DefaultProperty("itemsFactory")]

@@ -379,9 +380,9 @@
                 break;
         }

-        if ( (propertyName == null || propertyName == "content") && (dest is Group || dest is FxContainer))
-        {
-            addItemsToContentHolder(dest, localItems);
+        if ( (propertyName == null || propertyName == "content") && (dest is IVisualElementContainer))
+        {
+            addItemsToContentHolder(dest as IVisualElementContainer, localItems);
         }
         else if (propertyName == null && dest is IChildList)
         {
@@ -419,10 +420,10 @@
         else
             localItems = [items];

-        if ((propertyName == null || propertyName == "content") && (dest is Group || dest is FxContainer))
+        if ((propertyName == null || propertyName == "content") && (dest is IVisualElementContainer))
         {
             for (i = 0; i < numAdded; i++)
-                dest.removeItemAt(startIndex);
+                IVisualElementContainer(dest).removeElementAt(startIndex);
         }
         else if (propertyName == null && dest is IChildList)
         {
@@ -460,8 +461,8 @@
     {
         try
         {
-            if (propertyName == null && (dest is Group || dest is FxContainer))
-                return dest.getItemIndex(object);
+            if (propertyName == null && (dest is IVisualElementContainer))
+                return IVisualElementContainer(dest).getElementIndex(object);

             if (propertyName == null && dest is IChildList)
                 return IChildList(dest).getChildIndex(DisplayObject(object));
@@ -507,13 +508,13 @@
     /**
      *  @private
      */
-    protected function addItemsToContentHolder(dest:Object, items:Array):void
+    protected function addItemsToContentHolder(dest:IVisualElementContainer, items:Array):void
     {
         if (startIndex == -1)
-            startIndex = dest.numItems;
+            startIndex = dest.numElements;

         for (var i:int = 0; i < items.length; i++)
-            dest.addItemAt(items[i], startIndex + i);
+            dest.addElementAt(items[i], startIndex + i);
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 4635
Author:   gosmith@adobe.com
Date:     2009-01-23T07:14:13.280801Z

Log Message:
-----------
Temporarily reverting revision 4631 to fix Mustella failures. New baseline bitmaps need to be generated to reflect the latest clipping logic for TextBox and TextGraphic.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/TextGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextGraphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/TextFlowComposer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/TextBlockComposer.as</path>

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

--- frameworks/projects/spark/src/spark/components/Label.as
+++ frameworks/projects/spark/src/spark/components/Label.as
@@ -179,7 +179,20 @@

         var overset:Boolean = compose(unscaledWidth, unscaledHeight);

-        mx_internal::clip(overset, unscaledWidth, unscaledHeight);
+        // Use scrollRect to clip overset lines.
+        // But don't read or write scrollRect if you can avoid it,
+        // because this causes Player 10.0 to allocate memory.
+        if (overset)
+        {
+            displayObject.scrollRect =
+                new Rectangle(0, 0, unscaledWidth, unscaledHeight);
+            mx_internal::hasScrollRect = true;
+        }
+        else if (mx_internal::hasScrollRect)
+        {
+            displayObject.scrollRect = null;
+            mx_internal::hasScrollRect = false;
+        }
     }

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 6127
Author:   aharui@adobe.com
Date:     2009-04-10T15:24:44.711126Z

Log Message:
-----------
EmbeddedFonts in Modules for TLF.

Requires build 411 of TLF (to be checked in next)

QE Notes: None
Doc Notes: Yes.  New API on DownloadProgressBar
Bugs:
Reviewer: gordon
tests: checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/utilities/build.xml</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/flex4/src/spark/primitives/RichText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/halo/build.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/build.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/haloclassic/build.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/SimpleText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/build.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/RichEditableText2.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/build.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/build.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex/build.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/FlexModuleFactory.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/styles/metadata/BasicTextLayoutFormatStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework_textLayout/src/mx/core/UITLFTextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/RichEditableText.as</path>

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

--- frameworks/projects/spark/src/spark/components/Label.as
+++ frameworks/projects/spark/src/spark/components/Label.as
@@ -16,9 +16,11 @@
 import flash.display.Graphics;
 import flash.display.Shape;
 import flash.geom.Rectangle;
+import flash.text.TextFormat;
 import flash.text.engine.EastAsianJustifier;
 import flash.text.engine.ElementFormat;
 import flash.text.engine.FontDescription;
+import flash.text.engine.FontLookup;
 import flash.text.engine.FontMetrics;
 import flash.text.engine.Kerning;
 import flash.text.engine.LineJustification;
@@ -27,8 +29,17 @@
 import flash.text.engine.TextElement;
 import flash.text.engine.TextLine;
 import flash.text.engine.TextLineValidity;
+import flashx.textLayout.elements.ITextLineCreator;

 import mx.core.mx_internal;
+import mx.core.EmbeddedFont;
+import mx.core.EmbeddedFontRegistry;
+import mx.core.IEmbeddedFontRegistry;
+import mx.core.IFlexModuleFactory;
+import mx.core.IFontContextComponent;
+import mx.core.IUIComponent;
+import mx.core.Singleton;
+import mx.managers.ISystemManager;
 import spark.primitives.supportClasses.TextGraphicElement;

 [DefaultProperty("text")]
@@ -64,7 +75,7 @@
  *  @playerversion AIR 1.5
  *  @productversion Flex 4
  */
-public class SimpleText extends TextGraphicElement
+public class SimpleText extends TextGraphicElement implements IFontContextComponent
 {
     include "../core/Version.as";

@@ -99,6 +110,36 @@
     private static var staticEastAsianJustifier:EastAsianJustifier =
         new EastAsianJustifier();

+    //----------------------------------
+    //  embeddedFontRegistry
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for the _embeddedFontRegistry property.
+     *  Note: This gets initialized on first access,
+     *  not when this class is initialized, in order to ensure
+     *  that the Singleton registry has already been initialized.
+     */
+    private static var _embeddedFontRegistry:IEmbeddedFontRegistry;
+
+    /**
+     *  @private
+     *  A reference to the embedded font registry.
+     *  Single registry in the system.
+     *  Used to look up the moduleFactory of a font.
+     */
+    private static function get embeddedFontRegistry():IEmbeddedFontRegistry
+    {
+        if (!_embeddedFontRegistry)
+        {
+            _embeddedFontRegistry = IEmbeddedFontRegistry(
+                Singleton.getInstance("mx.core::IEmbeddedFontRegistry"));
+        }
+
+        return _embeddedFontRegistry;
+    }
+
     //--------------------------------------------------------------------------
     //
     //  Class methods
@@ -152,10 +193,57 @@

     //--------------------------------------------------------------------------
     //
+    //  Variables
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     * @private
+     *
+     * Cache last value of embedded font.
+     */
+    private var cachedEmbeddedFont:EmbeddedFont = null;
+
+    /**
+     *  @private
+     * Holds the last recorded value of the module factory used to create the font.
+     */
+    private var embeddedFontContext:IFlexModuleFactory = null;
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  fontContext
+    //----------------------------------
+
+    private var _fontContext:IFlexModuleFactory;
+
+    /**
+     *  @private
+     */
+    public function get fontContext():IFlexModuleFactory
+    {
+        return _fontContext;
+    }
+
+    /**
+     *  @private
+     */
+    public function set fontContext(value:IFlexModuleFactory):void
+    {
+        _fontContext = value;
+    }
+
+    //--------------------------------------------------------------------------
+    //
     //  Methods
     //
     //--------------------------------------------------------------------------
-
+
     /**
      *  @private
      */
@@ -183,7 +271,7 @@
         mx_internal::removeTextLines();
         if (!recycleTextLines)
             mx_internal::textLines.length = 0;
-
+
 		var createdAllLines:Boolean = createTextLines(elementFormat);

         // Need truncation if all the following are true
@@ -219,9 +307,9 @@
         // Just recomposed so reset.
         mx_internal::invalidateCompose = false;
     }
-
-    /**
-     *  @private
+
+	/**
+	 *  @private
      *  Cleans up and sets the validity of the lines disassociated with the
      *  TextBlock to TextLineValidity.INVALID.
      */
@@ -260,6 +348,8 @@
 		// or ElementFormat throw an error, so the following code does
 		// null-checking on the problematic properties.

+        var checkForEmbed:Boolean = false;
+
         var s:String;

         var fontDescription:FontDescription = new FontDescription();
@@ -269,8 +359,10 @@
         	fontDescription.cffHinting = s;

         s = getStyle("fontLookup");
-        if (s != null)
+        if (s != null && s != "auto")
         	fontDescription.fontLookup = s;
+        else
+            checkForEmbed = true;

         s = getStyle("fontFamily");
         if (s != null)
@@ -283,7 +375,46 @@
         s = getStyle("fontWeight");
         if (s != null)
         	fontDescription.fontWeight = s;
-
+
+        if (checkForEmbed)
+        {
+            var embeddedFont:EmbeddedFont = getEmbeddedFont(
+                fontDescription.fontName,
+                fontDescription.fontWeight == "bold",
+                fontDescription.fontPosture == "italic");
+
+            embeddedFontContext =
+                embeddedFontRegistry.getAssociatedModuleFactory(
+                    embeddedFont, fontContext);
+
+            // if we found the font, then it is embedded.
+            // Some fonts are not listed in info(), so are not in the above registry.
+            // Call isFontFaceEmbedded() which get the list of embedded fonts from the player.
+            if (embeddedFontContext != null)
+            {
+                fontDescription.fontLookup = FontLookup.EMBEDDED_CFF;
+            }
+            else
+            {
+                var sm:ISystemManager = creatingSystemManager();
+                var textFormat:TextFormat = new TextFormat();
+                textFormat.font = fontDescription.fontName;
+                textFormat.bold = fontDescription.fontWeight == "bold";
+                textFormat.italic = fontDescription.fontPosture == "italic";
+                if (sm != null && sm.isFontFaceEmbedded(textFormat))
+                {
+                    fontDescription.fontLookup = FontLookup.EMBEDDED_CFF;
+                }
+            }
+        }
+        else
+        {
+            if (fontDescription.fontLookup == FontLookup.EMBEDDED_CFF)
+                embeddedFontContext = fontContext;
+            else
+                embeddedFontContext = null;
+        }
+
         s = getStyle("renderingMode");
         if (s != null)
         	fontDescription.renderingMode = s;
@@ -508,7 +639,7 @@
 		var textLine:TextLine;

 		// For truncation, need to know if all lines have been composed.
-		var createdAllLines:Boolean = false;
+        var createdAllLines:Boolean = false;

 		// Generate TextLines, stopping when we run out of text
 		// or reach the bottom of the requested bounds.
@@ -520,13 +651,21 @@
 		    {
 		        //trace("recreateTextLine", n);
 		        var recycleLine:TextLine = textLines[n];
-                nextTextLine = textBlock["recreateTextLine"]
+                if (embeddedFontContext)
+                    nextTextLine = TextLine(ITextLineCreator(embeddedFontContext).recreateTextLine
+                                    (textBlock, recycleLine, textLine, maxLineWidth));
+                else
+                    nextTextLine = textBlock["recreateTextLine"]
                                     (recycleLine, textLine, maxLineWidth);
                 nRecycleLines--;
 		    }
 		    else
 		    {
-                nextTextLine = textBlock.createTextLine(textLine, maxLineWidth);
+                if (embeddedFontContext)
+                    nextTextLine = TextLine(ITextLineCreator(embeddedFontContext).createTextLine
+                                    (textBlock, textLine, maxLineWidth));
+                else
+    			    nextTextLine = textBlock.createTextLine(textLine, maxLineWidth);
             }

 			if (!nextTextLine)
@@ -604,9 +743,9 @@

         // innerWidth remains the same.  alignment is done over the innerWidth
         // not over the width of the text that was just composed.
-		if (isNaN(bounds.height))
+        if (isNaN(bounds.height))
             innerHeight = textLine.y + textLine.descent;
-
+
         var leftAligned:Boolean =
             textAlign == "start" && direction == "ltr" ||
             textAlign == "end" && direction == "rtl" ||
@@ -820,7 +959,7 @@
                 } while (true);
             }
         }
-
+
         // If nothing fit, return no lines and bounds that just contains
         // padding.
         if (!somethingFit)
@@ -984,6 +1123,34 @@
         return nextTruncationPosition;
     }

+    private function creatingSystemManager():ISystemManager
+    {
+        return ((fontContext != null) && (fontContext is ISystemManager))
+                ? ISystemManager(fontContext)
+                : IUIComponent(parent).systemManager;
+    }
+
+    /**
+     * @private
+     *
+     * Get the embedded font for a set of font attributes.
+     */
+    private function getEmbeddedFont(fontName:String, bold:Boolean, italic:Boolean):EmbeddedFont
+    {
+        // Check if we can reuse a cached value.
+        if (cachedEmbeddedFont)
+        {
+            if (cachedEmbeddedFont.fontName == fontName &&
+                cachedEmbeddedFont.fontStyle == EmbeddedFontRegistry.getFontStyle(bold, italic))
+            {
+                return cachedEmbeddedFont;
+            }
+        }
+
+        cachedEmbeddedFont = new EmbeddedFont(fontName, bold, italic);
+
+        return cachedEmbeddedFont;
+    }
 }

 }


improved auto-generated description

improved auto-generated description

--- WeaveUISpark/src/weave/visualization/plotters/AbstractGlyphPlotter.as
+++ WeaveUISpark/src/weave/visualization/plotters/AbstractGlyphPlotter.as
@@ -35,6 +35,7 @@
 	import weave.core.LinkableString;
 	import weave.data.AttributeColumns.DynamicColumn;
 	import weave.data.AttributeColumns.FilteredColumn;
+	import weave.data.AttributeColumns.ProxyColumn;
 	import weave.data.KeySets.FilteredKeySet;
 	import weave.primitives.GeneralizedGeometry;
 	import weave.utils.ColumnUtils;
@@ -75,7 +76,7 @@
 				return titleX;
 			}
 			var titleY:String = dataY.getMetadata(ColumnMetadata.TITLE);
-			return lang('{0} vs. {1}', titleX, titleY);
+			return lang('{0} vs. {1}', titleX || ProxyColumn.DATA_UNAVAILABLE, titleY || ProxyColumn.DATA_UNAVAILABLE);
 		}

 		protected const filteredDataX:FilteredColumn = newDisposableChild(this, FilteredColumn);


Transferred from the Adobe Open Source Subversion Repository

Revision: 18290
Author:   smgilson@adobe.com
Date:     2010-10-22T19:04:20.209908Z

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

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/layouts/ViewMenuLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ViewMenuItem.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ViewMenu.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/ViewMenu.as
+++ frameworks/projects/mobilecomponents/src/spark/components/ViewMenu.as
@@ -28,17 +28,67 @@

 [DefaultProperty("items")]

+/**
+ *  Normal and landscape state.
+ *
+ *  @langversion 3.0
+ *  @playerversion AIR 2.5
+ *  @productversion Flex 4.5
+ */
 [SkinState("normalAndLandscape")]
+
+/**
+ *  Disabled and landscape state.
+ *
+ *  @langversion 3.0
+ *  @playerversion AIR 2.5
+ *  @productversion Flex 4.5
+ */
 [SkinState("disabledAndLandscape")]

 /**
- *  The ViewMenu class display a set of ViewMenuItems. MobileApplication
- *  will automatically create and display an ViewMenu when the user has
- *  pressed the device's Menu button.
- *
- *  ViewMenu's default layout is ViewMenuLayout
- *
- *  Set the items property to a Vector of ViewMenuItems.
+ *  The ViewMenu container defines a menu in a View container.
+ *  Each menu item is defined by using the ViewMenuItem control.
+ *  The application container automatically creates and displays a
+ *  ViewMenu container when the user presses the device's menu button.
+ *  You can also use the MobileApplicationBase.viewMenuOpen property
+ *  to open the menu programmatically.
+ *
+ *
The ViewMenuLayout class define the layout of the menu.
+ *  Alternatively, you can create your own custom layout class.

+ *
+ *
Define the menu items by using the View.viewMenuItems property,
+ *  as the following example shows:

+ *
+ *

+ *  <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
+ *      xmlns:s="library://ns.adobe.com/flex/spark"
+ *      title="Home">
+ *
+ *    ...
+ *
+ *    <s:viewMenuItems>
+ *        <s:ViewMenuItem label="Add" click="itemClickInfo(event);"/>
+ *        <s:ViewMenuItem label="Cancel" click="itemClickInfo(event);"/>
+ *        <s:ViewMenuItem label="Delete" click="itemClickInfo(event);"/>
+ *        <s:ViewMenuItem label="Edit" click="itemClickInfo(event);"/>
+ *        <s:ViewMenuItem label="Search" click="itemClickInfo(event);"/>
+ *    </s:viewMenuItems>
+ *
+ *  </s:View>
+ *

+ *
+ *
Notice that you do not explicitly define the ViewMenu container.
+ *  The ViewMenu container is created automatically
+ *  to hold the ViewMenuItem controls.

+ *
+ *  @see spark.components.ViewMenuItem
+ *  @see spark.layouts.ViewMenuLayout
+ *  @see spark.components.supportClasses.MobileApplicationBase
+ *
+ *  @langversion 3.0
+ *  @playerversion AIR 2.5
+ *  @productversion Flex 4.5
  */

 /*
@@ -63,8 +113,13 @@
     //  Constructor
     //
     //--------------------------------------------------------------------------
-    /**
-     *  Constructor
+
+    /**
+     *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
      */
     public function ViewMenu()
     {
@@ -88,16 +143,23 @@
     private var caretIndexChanged:Boolean = false;

     /**
-     *  The item that is currently in the caret state. A value of -1 means that
-     *  no item is in the caret state.
+     *  The menu item that is currently in the caret state.
+     *  A value of -1 means that no item is in the caret state.
      *
      *  @default -1
+     *
+     *  @langversion 3.0
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
      */
     public function get caretIndex():int
     {
         return _caretIndex;
     }

+    /**
+     *  @private
+     */
     public function set caretIndex(value:int):void
     {
         if (_caretIndex == value)
@@ -117,13 +179,21 @@
     private var _items:Vector.<ViewMenuItem>;

     /**
-     *  The Vector of ViewMenuItems to display in the ViewMenu
+     *  The Vector of ViewMenuItem controls to display
+     *  in the ViewMenu container.
+     *
+     *  @langversion 3.0
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
      */
     public function get items():Vector.<ViewMenuItem>
     {
         return _items;
     }

+    /**
+     *  @private
+     */
     public function set items(value:Vector.<ViewMenuItem>):void
     {
         _items = value;
@@ -148,6 +218,9 @@
     //
     //--------------------------------------------------------------------------

+    /**
+     *  @private
+     */
     override protected function commitProperties():void
     {
         super.commitProperties();
@@ -200,9 +273,12 @@
         adjustSelectionAndCaretUponNavigation(event);
     }

-    override protected function getCurrentSkinState():String
-    {
-    	// TODO (jszeto): Just concat "AndLandscape" with super call if in landscape orientation
+     /**
+     *  @private
+     */
+   override protected function getCurrentSkinState():String
+    {
+        // TODO (jszeto): Just concat "AndLandscape" with super call if in landscape orientation
         if (FlexGlobals.topLevelApplication.aspectRatio == "portrait")
             return super.getCurrentSkinState();
         else


Transferred from the Adobe Open Source Subversion Repository

Revision: 2509
Author:   chaase@adobe.com
Date:     2008-07-16T17:27:37.792321Z

Log Message:
-----------
New Resize effect that works with Flex4 components as well as GraphicElement objects. Minor fixes to infrastructure classes (mostly the new effects classes, but also SetProperty) as necessary, plus a minor bugfix for the old Resize effect.
As with the other 'new effects', triggers are non-functional for now, but manual playing and transitions using the effects should work.
checkintests: passed
reviewer: Jason S.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Effect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/manifest.xml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/effectClasses/ResizeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/NewEffects.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/Resize.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/ResizeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/effectClasses/AddActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/states/SetProperty.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/AddAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/mxml-2009-manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/effectClasses/AnimatePropertiesInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/effectClasses/RemoveActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/gumbo-manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/AnimateProperties.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/RemoveAction.as</path>

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

--- frameworks/projects/mx/src/mx/effects/effectClasses/ResizeInstance.as
+++ frameworks/projects/mx/src/mx/effects/effectClasses/ResizeInstance.as
@@ -744,9 +744,12 @@
 		// other two values.
 		if (isNaN(widthFrom))
 		{
-			widthFrom = (!isNaN(widthTo) && !isNaN(widthBy)) ?
-						widthTo - widthBy :
-						target.width;
+            if (!isNaN(widthTo) && !isNaN(widthBy))
+                widthFrom = widthTo - widthBy;
+            else if (propertyChanges && propertyChanges.start["width"] != undefined)
+                widthFrom = propertyChanges.start["width"];
+            else
+				widthFrom = target.width;
 		}
 		if (isNaN(widthTo))
 		{
@@ -776,9 +779,12 @@
 		// Ditto for heightFrom, heightTo, and heightBy.
 		if (isNaN(heightFrom))
 		{
-			heightFrom = (!isNaN(heightTo) && !isNaN(heightBy)) ?
-						 heightTo - heightBy :
-						 target.height;
+            if (!isNaN(heightTo) && !isNaN(heightBy))
+                heightFrom = heightTo - heightBy;
+            else if (propertyChanges && propertyChanges.start["height"] != undefined)
+                heightFrom = propertyChanges.start["height"];
+            else
+                heightFrom = target.height;
 		}
 		if (isNaN(heightTo))
 		{


Transferred from the Adobe Open Source Subversion Repository

Revision: 18259
Author:   deeptika@adobe.com
Date:     2010-10-21T09:02:19.811454Z

Log Message:
-----------
Automation support for item-editing, column resize and header clicks in spark DG
(New xml should be taken from changelist 290001 in perforce)

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/tabularData/SparkDataGridTabularData.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/delegates/skins/spark/SparkUITextFieldGridItemRendererAutomationImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/manifest_automation_spark.xml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkComboBoxAutomationImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/AutomationSparkClasses.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/delegates/skins/spark/SparkDefaultGridHeaderRendererAutomationImpl.as</path>
<path kind="dir" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/delegates/components/gridClasses</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/delegates/SparkRichEditableTextAutomationHelper.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkDropDownListBaseAutomationImpl.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/delegates/components/gridClasses/SparkGridItemRendererAutomationImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkDataGridAutomationImpl.as</path>

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

--- frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkComboBoxAutomationImpl.as
+++ frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkComboBoxAutomationImpl.as
@@ -84,9 +84,14 @@
 		public function SparkComboBoxAutomationImpl(obj:spark.components.ComboBox)
 		{
 			super(obj);
-			obj.textInput.addEventListener(KeyboardEvent.KEY_DOWN, textKeyDownHandler, false, 0 , true);
-			obj.textInput.addEventListener(AutomationRecordEvent.RECORD,
-				textInput_recordHandler, false, 0, true)
+
+		}
+
+		override protected function componentInitialized():void
+		{
+			sparkComboBox.textInput.addEventListener(KeyboardEvent.KEY_DOWN, textKeyDownHandler, false, 0 , true);
+			sparkComboBox.textInput.addEventListener(AutomationRecordEvent.RECORD,
+				textInput_recordHandler, false, 0, true);
 		}

 		/**


Added toHex(uint).

Added toHex(uint).

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

--- src/as/com/threerings/util/Util.as
+++ src/as/com/threerings/util/Util.as
@@ -16,6 +16,15 @@
         return buf.toString();
     }

+    public static function toHex (value :uint) :String
+    {
+        var buf :StringBuilder = new StringBuilder("0x");
+        for (var ii :int = 7; ii >= 0; ii--) {
+            buf.append(HEX[(value >> (ii * 4)) & 0xF]);
+        }
+        return buf.toString();
+    }
+
     public static function cast (obj :Object, clazz :Class) :Object
     {
         if (obj == null || obj is clazz) {


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/framework/src/mx/formatters/StringFormatter.as
+++ frameworks/projects/framework/src/mx/formatters/StringFormatter.as
@@ -52,6 +52,11 @@
 	 *  value: anything, tokenInfo: {token: id, begin: start, end: finish}.
 	 *  This method must return a String representation of value
 	 *  for the specified tokenInfo.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function StringFormatter(format:String, tokens:String,
 									extractTokenFunc:Function)
@@ -96,6 +101,11 @@
 	 *  @param value String to be formatted.
 	 *
 	 *  @return Formatted String.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function formatValue(value:Object):String
 	{


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

--- frameworks/projects/framework/src/mx/styles/AdvancedStyleClient.as
+++ frameworks/projects/framework/src/mx/styles/AdvancedStyleClient.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2010 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.styles
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 5119
Author:   smgilson@adobe.com
Date:     2009-03-01T15:19:39.936226Z

Log Message:
-----------
Clean up some ASDoc tags from the addition of the @productversion/@playerversion tags

QE Notes: None
Doc Notes: None
Bugs: -

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/HaloBorder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ToolTip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/events/ResultEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/remoting/Operation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/HTML.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/config/ServerConfig.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/EffectManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/HTTPChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/messages/HTTPRequestMessage.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/CalendarLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/halo/src/mx/skins/halo/HaloBorder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/videoClasses/NCManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/AbstractConsumer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/Base64Encoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/validators/StringValidator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/SchemaMarshaller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework_textLayout/src/mx/core/UITLFTextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IInteractiveObjectInterface.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/TextView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ContainerRawChildrenList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/AMFChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/events/FaultEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/wsdl/WSDL.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AbstractOperation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/SparkSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Tween.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxResizeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Accordion.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/videoClasses/VideoPlayer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/HistoryManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/Schema.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/utils/HexEncoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/Operation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IDisplayObjectInterface.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/AbstractOperation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IDisplayObjectContainerInterface.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Label.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/SoundEffectInstance.as</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/framework/src/mx/controls/dataGridClasses/DataGridItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/SequenceInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Text.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ISpriteInterface.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/haloclassic/src/haloclassic/HaloRectBorder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/mxml/Operation.as</path>

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

--- frameworks/projects/mx/src/mx/controls/videoClasses/VideoPlayer.as
+++ frameworks/projects/mx/src/mx/controls/videoClasses/VideoPlayer.as
@@ -2379,7 +2379,7 @@
     //  Private Methods
     //----------------------------------

-    /*
+    /**
      *  @private
      *  does loading work for play and load
      */


Transferred from the Adobe Open Source Subversion Repository

Revision: 12823
Author:   hhillen@paciellogroup.com
Date:     2009-12-11T02:01:40.548617Z

Log Message:
-----------
Added TabBarAccImpl, Moved ButtonBarAccImpl to ButtonBarBaseAccImpl
QE notes: none
Doc notes: none
Bugs: n/a
Reviewer: Gordon
Tests run: checkintests
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TabBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBarBase.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ButtonBarBaseAccImpl.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/TabBarAccImpl.as</path>

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

--- frameworks/projects/spark/src/spark/accessibility/TabBarAccImpl.as
+++ frameworks/projects/spark/src/spark/accessibility/TabBarAccImpl.as
@@ -0,0 +1,135 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2009 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package spark.accessibility
+{
+
+import flash.accessibility.Accessibility;
+import flash.events.Event;
+
+import mx.accessibility.AccConst;
+import mx.core.UIComponent;
+import mx.core.mx_internal;
+
+import spark.components.TabBar;
+
+use namespace mx_internal;
+
+/**
+ *  TabBarAccImpl is a subclass of AccessibilityImplementation
+ *  which implements accessibility for the TabBar class.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+public class TabBarAccImpl extends ButtonBarBaseAccImpl
+{
+    include "../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Class methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Enables accessibility in the TabBar class.
+     *
+     *
This method is called by application startup code
+     *  that is autogenerated by the MXML compiler.
+     *  Afterwards, when instances of TabBar are initialized,
+     *  their accessibilityImplementation property
+     *  will be set to an instance of this class.

+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public static function enableAccessibility():void
+    {
+        TabBar.createAccessibilityImplementation =
+            createAccessibilityImplementation;
+    }
+
+    /**
+     *  @private
+     *  Creates a TabBar's AccessibilityImplementation object.
+     *  This method is called from UIComponent's
+     *  initializeAccessibility() method.
+     */
+    mx_internal static function createAccessibilityImplementation(
+        component:UIComponent):void
+    {
+        component.accessibilityImplementation =
+            new TabBarAccImpl(component);
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     *
+     *  @param master The UIComponent instance that this AccImpl instance
+     *  is making accessible.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function TabBarAccImpl(master:UIComponent)
+    {
+        super(master);
+        role = AccConst.ROLE_SYSTEM_PAGETABLIST;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden methods: AccessibilityImplementation
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     *  Gets the role for the component.
+     *
+     *  @param childID children of the component
+     */
+    override public function get_accRole(childID:uint):uint
+    {
+        return childID == 0 ? role : AccConst.ROLE_SYSTEM_PAGETAB;
+    }
+
+    /**
+     *  @private
+     *  IAccessible method for returning the Default Action.
+     *
+     *  @param childID uint
+     *
+     *  @return DefaultAction String
+     */
+    override public function get_accDefaultAction(childID:uint):String
+    {
+        if (childID == 0)
+            return null;
+
+        return "Switch";
+    }
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 20557
Author:   cframpto@adobe.com
Date:     2011-03-02T22:06:22.659470Z

Log Message:
-----------
Revert change to adjustContentBoundsForScroller() made in 18855.  The change caused this issue and because of other changes it is not needed anymore for the bug fixed by 18855.  In textContainerManager_compositionCompleteHandler(), the reported content width/height need to be adjusted if the content x/y are not 0.

QE notes: retest SDK-28592 from rev 18855 as well as this bug
Doc notes:
Bugs: SDK-29603
Reviewer: Alex
Tests run: cyclone, some manual testing
Is noteworthy for integration: yes, in some cases unnecessary scrollbars are no longer present

Modified Paths:
--------------
/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/RichEditableText.as

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

--- frameworks/projects/spark/src/spark/components/RichEditableText.as
+++ frameworks/projects/spark/src/spark/components/RichEditableText.as
@@ -4387,15 +4387,13 @@
          *  toFit
          *      width       height
          *
-         *      smaller     smaller     width pinned to old width and
-         *                              height pinned to old height
+         *      smaller     smaller     height pinned to old height
          *      smaller     larger      ok
          *      larger      larger      ok
          *      larger      smaller     ok
          *
          *  explicit
          *      width       height
-         *
          *      smaller     smaller     width pinned to old width
          *      smaller     larger      width pinned to old width
          *      larger      larger      ok
@@ -4405,22 +4403,23 @@
         {
             // Already reported bounds at least once for this generation of
             // the text flow so we have to be careful to mantain consistency
-            // for the scroller.  Otherwise scrollbars can come and go which
-            // causes recomposition and increases the likelihood of looping.
+            // for the scroller.
             if (_textFlow.generation == lastContentBoundsGeneration)
             {
                 if (bounds.width <= _contentWidth)
                 {
-                    // The width may get smaller if the compose height is
-                    // reduced and fewer lines are composed.  Use the old
-                    // content width which is more accurate.
-                    bounds.width = _contentWidth;
-
                     if (_textContainerManager.hostFormat.lineBreak == "toFit")
                     {
                         if (bounds.height < _contentHeight)
                             bounds.height = _contentHeight;
                     }
+                    else
+                    {
+                        // The width may get smaller if the compose height is
+                        // reduced and fewer lines are composed.  Use the old
+                        // content width which is more accurate.
+                        bounds.width = _contentWidth;
+                    }
                 }
             }

@@ -4442,6 +4441,14 @@

             var newContentBounds:Rectangle =
                 _textContainerManager.getContentBounds();
+
+            // If x and/or y are not 0, adjust for what is visible.  For example, if there is an
+            // image which is wider than the composeWidth and float="right", x will be negative
+            // and the part of the image between x and 0 will not be visible so it should
+            // not be included in the reported width.  This will avoid a scrollbar that does
+            // nothing.
+            newContentBounds.width += newContentBounds.x;
+            newContentBounds.height += newContentBounds.y;

             // Try to prevent the scroller from getting into a loop while
             // adding/removing scroll bars.


update style

update style

--- project/PinkPlayer/src/com/fenhongxiang/cue/CuePoint.as
+++ project/PinkPlayer/src/com/fenhongxiang/cue/CuePoint.as
@@ -21,7 +21,7 @@
 			this.useHandCursor = true;

 			border = false;
-			backgroudColor = 0xA6A6A6;
+			backgroudColor = 0xffb81d;
 			resize(3, 10);
 			addEventListeners();
 		}
@@ -77,7 +77,7 @@

 		private function hideTip(e:MouseEvent):void
 		{
-			backgroudColor = 0xA6A6A6;
+			backgroudColor = 0xffb81d;

 			if(_toogleTip != null)
 			{
@@ -87,7 +87,7 @@

 		private function showTip(e:MouseEvent):void
 		{
-			backgroudColor = 0xFF0000;
+			backgroudColor = 0xffaf00;

 			if(_toogleTip != null)
 			{


Re-removed sprite clone matrix

Re-removed sprite clone matrix

--- src/flash/display/Sprite.as
+++ src/flash/display/Sprite.as
@@ -142,15 +142,13 @@
 			{
 				if (filters.length && !cacheAsBitmap && !parent.cacheAsBitmap) cacheAsBitmap = true;

-				var mat:Matrix = transform.concatenatedMatrix.clone();
 				if (cacheAsBitmap && !parent.cacheAsBitmap)
 				{
-					SpriteFlexjs.renderer.renderImage(ctx, _cacheImage, mat, blendMode, transform.concatenatedColorTransform, -this.x - _cacheOffsetX, -this.y - _cacheOffsetY);
-					//SpriteFlexjs.renderer.renderImage(ctx, _cacheImage, mat, blendMode, transform.concatenatedColorTransform);
+					SpriteFlexjs.renderer.renderImage(ctx, _cacheImage, transform.concatenatedMatrix, blendMode, transform.concatenatedColorTransform, -this.x - _cacheOffsetX, -this.y - _cacheOffsetY);
 				}
 				else
 				{
-					graphics.draw(ctx, mat, blendMode, transform.concatenatedColorTransform, cacheAsBitmap, _cacheImage);
+					graphics.draw(ctx, transform.concatenatedMatrix, blendMode, transform.concatenatedColorTransform, cacheAsBitmap, _cacheImage);
 					ApplyFilters(ctx);
 				}
 			}


Fixed the NinjaSnowWar demo to 'attach' the BGM SourceSource component to the main scene node to make it (effectively) enabled.

--- Bin/Data/Scripts/NinjaSnowWar.as
+++ Bin/Data/Scripts/NinjaSnowWar.as
@@ -70,9 +70,9 @@
     if (runServer || runClient)
         singlePlayer = false;

-    InitAudio();
     InitConsole();
     InitScene();
+    InitAudio();
     InitNetworking();
     CreateCamera();
     CreateOverlays();
@@ -114,7 +114,7 @@
         // Note: the non-positional sound source component does not need to be in the scene
         Sound@ musicFile = cache.GetResource("Sound", "Music/Ninja Gods.ogg");
         musicFile.looped = true;
-        musicSource = SoundSource();
+        musicSource = scene.CreateComponent("SoundSource");
         musicSource.Play(musicFile);
     }
 }


Use playerInRoom() to let the game manager know we've arrived but aren't ready
to start the game yet.

git-svn-id: a3e1eb16dde062992de22c830ed8045c8013209a@419 c613c5cb-e716-0410-b11b-feb51c14d237

--- src/as/com/threerings/ezgame/client/EZGameController.as
+++ src/as/com/threerings/ezgame/client/EZGameController.as
@@ -59,7 +59,12 @@
     public function userCodeIsConnected (autoReady :Boolean) :void
     {
         if (autoReady) {
+            // let the game manager know that we're here and we want to start the game now
             playerIsReady();
+        } else {
+            // let the game manager know that we're here even though we don't want the game to
+            // start yet
+            _gobj.manager.invoke("playerInRoom");
         }
     }


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

--- frameworks/projects/automation_dmv/src/mx/automation/delegates/advancedDataGrid/AdvancedDataGridItemRendererAutomationImpl.as
+++ frameworks/projects/automation_dmv/src/mx/automation/delegates/advancedDataGrid/AdvancedDataGridItemRendererAutomationImpl.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.advancedDataGrid
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 23247
Author:   cframpto@adobe.com
Date:     2011-12-20T19:21:13.134833Z

Log Message:
-----------
Remove ADOBE SYSTEMS license and replace with Apache license in headers - frameworks.  A 2nd pass will be needed to get the files not handled up by the scripts.

Modified Paths:
--------------
4959 paths were modified

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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 5099
Author:   gauravj@adobe.com
Date:     2009-02-27T03:43:02.639229Z

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

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

Modified Paths:
--------------
147 paths were modified

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

--- frameworks/projects/rpc/src/mx/rpc/wsdl/WSDLMessagePart.as
+++ frameworks/projects/rpc/src/mx/rpc/wsdl/WSDLMessagePart.as
@@ -53,6 +53,11 @@

     /**
      * The unique name of this message part.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get name():QName
     {