only trace actual data

only trace actual data

git-svn-id: c197267f952b24206666de142881703007ca05d5@9441 b35dd754-fafc-0310-a699-88a17e54d16e

--- src/org/jivesoftware/xiff/core/XMPPConnection.as
+++ src/org/jivesoftware/xiff/core/XMPPConnection.as
@@ -23,32 +23,28 @@

 package org.jivesoftware.xiff.core
 {
+	import flash.events.DataEvent;
+	import flash.events.Event;
+	import flash.events.EventDispatcher;
+	import flash.events.IOErrorEvent;
+	import flash.events.SecurityErrorEvent;
+	import flash.net.XMLSocket;
+	import flash.xml.XMLDocument;
+	import flash.xml.XMLNode;
+
+	import mx.controls.Alert;
+	import mx.utils.StringUtil;
+
 	import org.jivesoftware.xiff.data.IExtension;
-
-	import org.jivesoftware.xiff.data.XMPPStanza;
 	import org.jivesoftware.xiff.data.IQ;
 	import org.jivesoftware.xiff.data.Message;
 	import org.jivesoftware.xiff.data.Presence;
+	import org.jivesoftware.xiff.data.XMPPStanza;
 	import org.jivesoftware.xiff.data.auth.AuthExtension;
+	import org.jivesoftware.xiff.data.forms.FormExtension;
 	import org.jivesoftware.xiff.data.register.RegisterExtension;
-	import org.jivesoftware.xiff.data.ExtensionClassRegistry;
+	import org.jivesoftware.xiff.events.*;
 	import org.jivesoftware.xiff.exception.SerializationException;
-
-	import flash.xml.XMLNode;
-	import flash.xml.XMLDocument;
-	import flash.net.XMLSocket;
-	import flash.events.Event;
-	import flash.events.ProgressEvent;
-	import flash.events.IOErrorEvent;
-	import flash.events.DataEvent;
-	import flash.events.SecurityErrorEvent;
-
-	import flash.events.EventDispatcher;
-	import flash.events.Event;
-	import org.jivesoftware.xiff.events.*;
-	import org.jivesoftware.xiff.data.im.RosterExtension;
-	import org.jivesoftware.xiff.data.forms.FormExtension;
-	import mx.controls.Alert;

 	/**
 	 * Dispatched when a password change is successful.
@@ -737,7 +733,9 @@
 		 */
 		protected function sendXML( someData:* ):void
 		{
-			trace(someData);
+			if (StringUtil.trim(someData).length > 0) {
+				trace(someData);
+			}
 			// Data is untyped because it could be a string or XML
 			socket.send( someData );
 			var event:OutgoingDataEvent = new OutgoingDataEvent();


LevelController: use startLevel getter directly

--- src/org/mangui/hls/controller/LevelController.as
+++ src/org/mangui/hls/controller/LevelController.as
@@ -73,7 +73,7 @@
         private function _manifestParsedHandler(event : HLSEvent) : void {
             if(HLSSettings.autoStartLoad) {
                 // upon manifest parsed event, trigger a level switch to load startLevel playlist
-                _hls.dispatchEvent(new HLSEvent(HLSEvent.LEVEL_SWITCH, _hls.startLevel));
+                _hls.dispatchEvent(new HLSEvent(HLSEvent.LEVEL_SWITCH, startLevel));
             }
         }


Added check for contentsScaleFactor when calculating stage size

--- src/org/mangui/hls/controller/LevelController.as
+++ src/org/mangui/hls/controller/LevelController.as
@@ -190,7 +190,13 @@
                 var maxLevelsCount : int = _maxUniqueLevels.length;

                 if (_hls.stage && maxLevelsCount) {
-                    var maxLevel : Level = this._maxUniqueLevels[0], maxLevelIdx : int = maxLevel.index, sWidth : Number = this._hls.stage.stageWidth * this._hls.stage.contentsScaleFactor, sHeight : Number = this._hls.stage.stageHeight * this._hls.stage.contentsScaleFactor, lWidth : int, lHeight : int, i : int;
+                    var maxLevel : Level = this._maxUniqueLevels[0],
+                    maxLevelIdx : int = maxLevel.index,
+                    sWidth : Number = this._hls.stage.contentsScaleFactor ? this._hls.stage.stageWidth * this._hls.stage.contentsScaleFactor : this._hls.stage.stageWidth,
+                    sHeight : Number = this._hls.stage.contentsScaleFactor ? this._hls.stage.stageHeight * this._hls.stage.contentsScaleFactor : this._hls.stage.stageHeight,
+                    lWidth : int,
+                    lHeight : int,
+                    i : int;

                     switch (HLSSettings.maxLevelCappingMode) {
                         case HLSMaxLevelCappingMode.UPSCALE:


#SUP-1272 #comment fix image load when referrer is required #time 2h

--- kdp3Lib/src/com/kaltura/kdpfl/model/MediaProxy.as
+++ kdp3Lib/src/com/kaltura/kdpfl/model/MediaProxy.as
@@ -20,19 +20,13 @@
 	import com.kaltura.osmf.kaltura.KalturaBaseEntryResource;
 	import com.kaltura.osmf.proxy.KSwitchingProxyElement;
 	import com.kaltura.types.KalturaMediaType;
-	import com.kaltura.types.KalturaPlaybackProtocol;
 	import com.kaltura.vo.KalturaFlavorAsset;
-	import com.kaltura.vo.KalturaLiveStreamEntry;
 	import com.kaltura.vo.KalturaMediaEntry;
 	import com.kaltura.vo.KalturaMixEntry;

 	import flash.events.Event;
 	import flash.net.URLLoader;
 	import flash.net.URLRequest;
-
-	import flashx.textLayout.formats.Float;
-
-	import mx.utils.ObjectUtil;

 	import org.osmf.elements.F4MElement;
 	import org.osmf.elements.F4MLoader;
@@ -143,7 +137,7 @@
 						{
 							vo.entry.height = (facade.retrieveMediator(KMediaPlayerMediator.NAME) as KMediaPlayerMediator).kMediaPlayer.height;
 						}
-						var imgUrl:String = vo.entry.thumbnailUrl+"/width/" + vo.entry.width + "/height/"+vo.entry.height+ URLUtils.getThumbURLPostfix(_flashvars, _client.ks) +"/.a.jpg";
+						var imgUrl:String = vo.entry.thumbnailUrl+"/width/" + vo.entry.width + "/height/"+vo.entry.height+"/.a.jpg" +  URLUtils.getThumbURLPostfix(_flashvars, _client.ks);
 						resource = new URLResource( imgUrl );
 						addMetadataToResource (resource);
 						if(vo.supportImageDuration)


improved handling of grouped callbacks

improved handling of grouped callbacks

--- WeaveASJS/src/weavejs/core/GroupedCallbackEntry.as
+++ WeaveASJS/src/weavejs/core/GroupedCallbackEntry.as
@@ -83,19 +83,9 @@
 				entry.handleGroupedCallback();
 			}

-			// Make a second pass to handle grouped callbacks that were triggered recursively.
-			// Note that this list does not contain duplicates and we only make two passes, so it may be possible
-			// for an earlier entry to be triggered twice but only handled once.
-			for (i = 0; i < _triggeredEntries.length; i++)
-			{
-				entry = _triggeredEntries[i];
-				if (entry.triggeredAgain)
-					entry.handleGroupedCallback();
-			}
-
 			// reset triggered entries for next frame
 			for each (entry in _triggeredEntries)
-				entry.triggered = entry.triggeredAgain = false;
+				entry.handled = entry.triggered = entry.triggeredAgain = false;
 			_triggeredEntries.length = 0;
 		}

@@ -135,6 +125,11 @@
 		}

 		/**
+		 * If true, the callback was handled this frame.
+		 */
+		public var handled:Boolean = false;
+
+		/**
 		 * If true, the callback was triggered this frame.
 		 */
 		public var triggered:Boolean = false;
@@ -166,8 +161,12 @@
 				_triggeredEntries.push(this);
 				triggered = true;
 			}
-			else
+			else if (handled && !triggeredAgain)
+			{
+				// triggered again after being handled
+				_triggeredEntries.push(this);
 				triggeredAgain = true;
+			}
 		}

 		/**
@@ -204,11 +203,10 @@
 				recursionCount++;

 				callback.apply(context === CONTEXT_PLACEHOLDER ? callback['this'] : context);
+				handled = true;

 				recursionCount--;
 			}
-			// avoid delayed recursion
-			triggeredAgain = false;
 		}

 		override public function dispose():void


fixed bug where all geometries were being treated as polygons.

--- WeaveData/src/weave/utils/GeometryStreamDecoder.as
+++ WeaveData/src/weave/utils/GeometryStreamDecoder.as
@@ -270,11 +270,7 @@
 		 */

 		private var _currentGeometryType:String = GeometryType.POLYGON;
-		private function get currentGeometryType():String
-		{
-			return _currentGeometryType;
-		}
-		private function set currentGeometryType(value:String):void
+		private function setGeometryType(value:String):void
 		{
 			if (_currentGeometryType == value)
 				return;
@@ -355,7 +351,7 @@
 							// initialize geometry at geometryID
 							geometry = geometries[geometryID] as GeneralizedGeometry;
 							if (!geometry)
-								geometries[geometryID] = geometry = new GeneralizedGeometry();
+								geometries[geometryID] = geometry = new GeneralizedGeometry(_currentGeometryType);
 							// save mapping from key to geom
 							var geomsForKey:Array = _keyToGeometryMapping[key] as Array;
 							if (!geomsForKey)
@@ -394,8 +390,6 @@
 								if (vertexID < -2)
 									_projectionWKT = readString(stream);
 							}
-							// set geometry type
-							geometry.geomType = currentGeometryType;
 						}
 					}
 				}
@@ -435,15 +429,18 @@
 					//MultiPoint
 				case 8:
 				case 28:
-					currentGeometryType = GeometryType.POINT;
+					setGeometryType(GeometryType.POINT);
+					break;
 				//PolyLine
 				case 3:
 				case 23:
-					currentGeometryType = GeometryType.LINE;
+					setGeometryType(GeometryType.LINE);
+					break;
 				//Polygon
 				case 5:
 				case 25:
-					currentGeometryType = GeometryType.POLYGON;
+					setGeometryType(GeometryType.POLYGON);
+					break;
 				default:
 			}
 		}
@@ -575,7 +572,7 @@

 								var geometry:GeneralizedGeometry = geometries[geometryID] as GeneralizedGeometry;
 								if (!geometry)
-									geometries[geometryID] = geometry = new GeneralizedGeometry();
+									geometries[geometryID] = geometry = new GeneralizedGeometry(_currentGeometryType);

 								if (importance < 0) // part marker
 									geometry.addPartMarker(vertexID, vertexIDArray[i + 1]);


Bugfix typo

Bugfix typo

--- flex/AirTestFairy/src/com/testfairy/AirTestFairy.as
+++ flex/AirTestFairy/src/com/testfairy/AirTestFairy.as
@@ -12,7 +12,7 @@

 		public static function begin(appToken:String):void
 		{
-			if (value) {
+			if (appToken) {
 				call("begin", appToken);
 			}
 		}


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

--- frameworks/projects/mx/src/mx/controls/DateField.as
+++ frameworks/projects/mx/src/mx/controls/DateField.as
@@ -1,13 +1,3 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2003-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.controls
 {


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

--- frameworks/projects/mx/src/mx/controls/TextInput.as
+++ frameworks/projects/mx/src/mx/controls/TextInput.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2003-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.controls
 {


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

--- frameworks/projects/spark/src/spark/effects/Fade.as
+++ frameworks/projects/spark/src/spark/effects/Fade.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2008 Adobe Systems Incorporated
-//  All Rights Reserved.
-//
-//  NOTICE: Adobe permits you to use, modify, and distribute this file
-//  in accordance with the terms of the license agreement accompanying it.
+//  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
+//
+//      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.
 //
 ////////////////////////////////////////////////////////////////////////////////


findOutputDirectory: fix result for Royale when js-output is defined

--- src/com/as3mxml/asconfigc/utils/findOutputDirectory.as
+++ src/com/as3mxml/asconfigc/utils/findOutputDirectory.as
@@ -42,6 +42,10 @@
 			}
 			return mainPath;
 		}
+		if (!isSWF)
+		{
+			return outputPath;
+		}
 		return path.resolve(path.dirname(outputPath));
 	}
 }


Add few shortcuts

Add few shortcuts

--- src/com/merlinds/miracle_tool/views/AppMenuMediator.as
+++ src/com/merlinds/miracle_tool/views/AppMenuMediator.as
@@ -4,15 +4,20 @@
  * Time: 21:35
  */
 package com.merlinds.miracle_tool.views {
+	import com.merlinds.miracle_tool.events.ActionEvent;
+	import com.merlinds.miracle_tool.services.ActionService;
 	import com.merlinds.miracle_tool.utils.dispatchAction;
 	import com.merlinds.miracle_tool.views.components.controls.ActionButton;

+	import flash.events.KeyboardEvent;
 	import flash.events.MouseEvent;

 	import org.robotlegs.mvcs.Mediator;

 	public class AppMenuMediator extends Mediator {

+		[Inject]
+		public var actionService:ActionService;
 		//==============================================================================
 		//{region							PUBLIC METHODS
 		public function AppMenuMediator() {
@@ -20,11 +25,13 @@
 		}

 		override public function onRegister():void {
+			this.contextView.stage.addEventListener(KeyboardEvent.KEY_UP, this.keyboardHandler);
 			this.addViewListener(MouseEvent.CLICK, this.mouseClickHandler);
 		}

 		override public function onRemove():void {
 			this.removeViewListener(MouseEvent.CLICK, this.mouseClickHandler);
+			this.contextView.stage.removeEventListener(KeyboardEvent.KEY_UP, this.keyboardHandler);
 		}
 		//} endregion PUBLIC METHODS ===================================================

@@ -40,6 +47,42 @@
 				dispatchAction((target as ActionButton).action, this.dispatch);
 			}
 		}
+
+		private function keyboardHandler(event:KeyboardEvent):void {
+			switch (event.keyCode){
+				case 78: // N
+					if(event.ctrlKey){
+						//new project
+						this.dispatch(new ActionEvent(ActionEvent.NEW_PROJECT));
+					}
+					break;
+				case 83: // S
+					if(event.ctrlKey){
+						//save project
+						this.dispatch(new ActionEvent(ActionEvent.SAVE_PROJECT));
+					}
+					break;
+				case 81: // Q
+					if(event.ctrlKey){
+						//close program
+					}
+					break;
+				case 69: // E
+					if(event.ctrlKey){
+						//close project
+						this.dispatch(new ActionEvent(ActionEvent.CLOSE_PROJECT));
+					}
+					break;
+				case 86: // V
+					break;
+				case 72: // H
+					break;
+				case 119: // F8
+					break;
+				case 120: // F9
+					break;
+			}
+		}
 		//} endregion EVENTS HANDLERS ==================================================

 		//==============================================================================


--- src/org/igniterealtime/xiff/data/ExtensionContainer.as
+++ src/org/igniterealtime/xiff/data/ExtensionContainer.as
@@ -70,7 +70,7 @@
 		{
 			for (var i:String in _exts[ns])
 			{
-				_exts[ns][i].ns();
+				removeExtension( _exts[ns][i] );
 			}
 			_exts[ns] = [];
 		}
@@ -82,8 +82,10 @@

 		public function getExtension( name:String ):Extension
 		{
-			return getAllExtensions().filter(function(obj:IExtension, idx:int, arr:Array):Boolean
-		{ return obj.getElementName() == name; })[0];
+			return getAllExtensions().filter( function(obj:IExtension, idx:int, arr:Array):Boolean
+			{
+				return obj.getElementName() == name;
+			})[0];
 		}

 		public function getAllExtensions():Array


As far as I can figure, ArrayMask objects are used even when
the Array length is 0, so let's make sure we don't cause any
streaming errors here.

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

--- src/as/com/threerings/io/ArrayMask.as
+++ src/as/com/threerings/io/ArrayMask.as
@@ -60,8 +60,11 @@
     // documentation inherited from interface Streamable
     public function readFrom (ins :ObjectInputStream) :void
     {
-        _mask.length = ins.readShort();
-        ins.readBytes(_mask, 0, _mask.length);
+        var len :int = ins.readShort();
+        _mask.length = len;
+        if (len > 0) {
+            ins.readBytes(_mask, 0, len);
+        }
     }

     /** The array mask. */


Allow a preconfigured URLRequest to be passed in.

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

--- src/as/com/threerings/util/NetUtil.as
+++ src/as/com/threerings/util/NetUtil.as
@@ -30,11 +30,15 @@
      * Convenience method to load a web page in the browser window without
      * having to worry about SecurityErrors in various conditions.
      *
+     * @param url a String or a URLRequest.
+     * @param preferredWindow the browser tab/window identifier in which to load. If you
+     * specify a non-null window and it causes a security error, the request is retried with null.
+     *
      * @return true if the url was able to be loaded.
      */
-    public static function navigateToURL (url :String, preferredWindow :String = "_self") :Boolean
+    public static function navigateToURL (url :*, preferredWindow :String = "_self") :Boolean
     {
-        var ureq :URLRequest = new URLRequest(url);
+        var ureq :URLRequest = (url is URLRequest) ? URLRequest(url) : new URLRequest(String(url));
         while (true) {
             try {
                 flash.net.navigateToURL(ureq, preferredWindow);


Changed error code

Changed error code

Fixed wrong error code for NetConnection security errors.

--- src/com/axis/rtspclient/RTSPClient.as
+++ src/com/axis/rtspclient/RTSPClient.as
@@ -507,7 +507,7 @@
     }

     private function onSecurityError(event:SecurityErrorEvent):void {
-      ErrorManager.dispatchError(729, [event.text]);
+      ErrorManager.dispatchError(730, [event.text]);
     }

     private function onNetStatus(event:NetStatusEvent):void {


tabs replaced with doublespaces near new regexp

--- src/com/axis/rtspclient/RTSPClient.as
+++ src/com/axis/rtspclient/RTSPClient.as
@@ -312,8 +312,8 @@
         if (state === STATE_SETUP) {
           /* this is not the case when falling through, e.g. SETUP of first track */
           if (!(/^RTP\/AVP\/TCP;/.test(parsed.headers["transport"]) &&
-        	/unicast/.test(parsed.headers["transport"]) &&
-        	/interleaved=/.test(parsed.headers["transport"]) )){
+	    /unicast/.test(parsed.headers["transport"]) &&
+            /interleaved=/.test(parsed.headers["transport"]) )){
             dispatchEvent(new ClientEvent(ClientEvent.STOPPED));
             connectionBroken = true;
             handle.disconnect();


- bugfix: overflow invalidation checked if intrinsic dimensions have changed instead of checking for changes of the content box dimensions

git-svn-id: e38e7cdd6ace00d8230583a2d3b43e9a55f5c011@647 bc4816be-ef27-423a-9c4d-fc420be121a2

--- src/reprise/ui/UIComponent.as
+++ src/reprise/ui/UIComponent.as
@@ -1501,8 +1501,8 @@
 				return;
 			}

-			var oldIntrinsicHeight : int = m_intrinsicHeight;
-			var oldIntrinsicWidth : int = m_intrinsicWidth;
+			var oldContentBoxHeight : int = m_contentBoxHeight;
+			var oldContentBoxWidth : int = m_contentBoxWidth;

 			applyInFlowChildPositions();

@@ -1585,8 +1585,8 @@
 	//				log("f reason for parentReflow: dims of in-flow changed");
 				}
 			}
-			else if (m_intrinsicHeight != oldIntrinsicHeight ||
-				m_intrinsicWidth != oldIntrinsicWidth)
+			else if (m_intrinsicHeight != oldContentBoxHeight ||
+				m_intrinsicWidth != oldContentBoxWidth)
 			{
 				applyOverflowProperty();
 			}


F MaterialGroup.getDescendantByName and MaterialGroup.getDescendantsByType to search in MaterialGroup.textures

--- src/aerys/minko/scene/node/group/MaterialGroup.as
+++ src/aerys/minko/scene/node/group/MaterialGroup.as
@@ -6,7 +6,8 @@
 	import aerys.minko.scene.action.effect.PushEffectAction;
 	import aerys.minko.scene.action.group.MaterialGroupAction;
 	import aerys.minko.scene.node.IEffectScene;
-
+	import aerys.minko.scene.node.IScene;
+
 	import flash.events.Event;

 	public dynamic class MaterialGroup extends StyleGroup implements IEffectScene
@@ -50,5 +51,27 @@
 							MaterialGroupAction.materialGroupAction);
 			actions.push(new PopEffectAction());
 		}
+
+		override public function getDescendantByName(name : String) : IScene
+		{
+			var descendant 	: IScene	= null;
+
+			if (_textures)
+				descendant = _textures.getDescendantByName(name);
+
+			if (!descendant)
+				descendant = super.getDescendantByName(name);
+
+			return descendant;
+		}
+
+		override public function getDescendantsByType(type 			: Class,
+													  descendants 	: Vector.<IScene> = null) : Vector.<IScene>
+		{
+			if (_textures)
+				_textures.getDescendantsByType(type, descendants);
+
+			return super.getDescendantsByType(type, descendants);
+		}
 	}
 }


Fix error in particles property getter

Fix error in particles property getter

--- src/org/flintparticles/common/emitters/Emitter.as
+++ src/org/flintparticles/common/emitters/Emitter.as
@@ -623,7 +623,7 @@
 		 */
 		public function get particles():Vector.<Particle>
 		{
-			return new Vector.<Particle>( _particles );
+			return Vector.<Particle>( _particles );
 		}
 		public function set particles( value:Vector.<Particle> ):void
 		{


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

--- frameworks/projects/framework/src/mx/formatters/CurrencyFormatter.as
+++ frameworks/projects/framework/src/mx/formatters/CurrencyFormatter.as
@@ -0,0 +1,691 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2003-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.formatters
+{
+
+import mx.managers.ISystemManager;
+import mx.managers.SystemManager;
+
+[ResourceBundle("formatters")]
+[ResourceBundle("SharedResources")]
+
+/**
+ *  The CurrencyFormatter class formats a valid number as a currency value.
+ *  It adjusts the decimal rounding and precision, the thousands separator,
+ *  and the negative sign; it also adds a currency symbol.
+ *  You place the currency symbol on either the left or the right side
+ *  of the value with the alignSymbol property.
+ *  The currency symbol can contain multiple characters,
+ *  including blank spaces.
+ *
+ *
If an error occurs, an empty String is returned and a String that describes
+ *  the error is saved to the error property. The error
+ *  property can have one of the following values:

+ *
+ *

+ *
"Invalid value" means an invalid numeric value is passed to
+ *    the format() method. The value should be a valid number in the
+ *    form of a Number or a String.

+ *
"Invalid format" means one of the parameters contains an unusable setting.

+ *

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

+ *
+ *

+ *  <mx:CurrencyFormatter
+ *    alignSymbol="left|right"
+ *    currencySymbol="$"
+ *    decimalSeparatorFrom="."
+ *    decimalSeparatorTo="."
+ *    precision="-1"
+ *    rounding="none|up|down|nearest"
+ *    thousandsSeparatorFrom=","
+ *    thousandsSeparatorTo=","
+ *    useNegativeSign="true|false"
+ *    useThousandsSeparator="true|false"
+ *	/>
+ *

+ *
+ *  @includeExample examples/CurrencyFormatterExample.mxml
+ *
+ *  @see mx.formatters.NumberBase
+ *  @see mx.formatters.NumberBaseRoundType
+ */
+public class CurrencyFormatter extends Formatter
+{
+    include "../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Constructor
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Constructor.
+	 */
+	public function CurrencyFormatter()
+	{
+		super();
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Properties
+	//
+	//--------------------------------------------------------------------------
+
+	//----------------------------------
+	//  alignSymbol
+	//----------------------------------
+
+    /**
+	 *  @private
+	 *  Storage for the alignSymbol property.
+	 */
+	private var _alignSymbol:String;
+
+    /**
+	 *  @private
+	 */
+	private var alignSymbolOverride:String;
+
+    [Inspectable(category="General", defaultValue="null")]
+
+    /**
+     *  Aligns currency symbol to the left side or the right side
+	 *  of the formatted number.
+     *  Permitted values are "left" and "right".
+	 *
+     *  @default "left"
+     */
+	public function get alignSymbol():String
+	{
+		return _alignSymbol;
+	}
+
+	/**
+	 *  @private
+	 */
+	public function set alignSymbol(value:String):void
+	{
+		alignSymbolOverride = value;
+
+		_alignSymbol = value != null ?
+					   value :
+					   resourceManager.getString(
+					       "SharedResources", "alignSymbol");
+	}
+
+	//----------------------------------
+	//  currencySymbol
+	//----------------------------------
+
+    /**
+	 *  @private
+	 *  Storage for the currencySymbol property.
+	 */
+	private var _currencySymbol:String;
+
+    /**
+	 *  @private
+	 */
+	private var currencySymbolOverride:String;
+
+    [Inspectable(category="General", defaultValue="null")]
+
+    /**
+     *  Character to use as a currency symbol for a formatted number.
+     *  You can use one or more characters to represent the currency
+	 *  symbol; for example, "$" or "YEN".
+	 *  You can also use empty spaces to add space between the
+	 *  currency character and the formatted number.
+	 *  When the number is a negative value, the currency symbol
+	 *  appears between the number and the minus sign or parentheses.
+	 *
+     *  @default "$"
+     */
+	public function get currencySymbol():String
+	{
+		return _currencySymbol;
+	}
+
+	/**
+	 *  @private
+	 */
+	public function set currencySymbol(value:String):void
+	{
+		currencySymbolOverride = value;
+
+		_currencySymbol = value != null ?
+						  value :
+						  resourceManager.getString(
+					          "SharedResources", "currencySymbol");
+	}
+
+	//----------------------------------
+	//  decimalSeparatorFrom
+	//----------------------------------
+
+    /**
+	 *  @private
+	 *  Storage for the decimalSeparatorFrom property.
+	 */
+	private var _decimalSeparatorFrom:String;
+
+    /**
+	 *  @private
+	 */
+	private var decimalSeparatorFromOverride:String;
+
+    [Inspectable(category="General", defaultValue="null")]
+
+    /**
+     *  Decimal separator character to use
+	 *  when parsing an input string.
+	 *
+     *  @default "."
+     */
+	public function get decimalSeparatorFrom():String
+	{
+		return _decimalSeparatorFrom;
+	}
+
+	/**
+	 *  @private
+	 */
+	public function set decimalSeparatorFrom(value:String):void
+	{
+		decimalSeparatorFromOverride = value;
+
+		_decimalSeparatorFrom = value != null ?
+								value :
+								resourceManager.getString(
+								    "SharedResources", "decimalSeparatorFrom");
+	}
+
+	//----------------------------------
+	//  decimalSeparatorTo
+	//----------------------------------
+
+    /**
+	 *  @private
+	 *  Storage for the decimalSeparatorTo property.
+	 */
+	private var _decimalSeparatorTo:String;
+
+    /**
+	 *  @private
+	 */
+	private var decimalSeparatorToOverride:String;
+
+    [Inspectable(category="General", defaultValue="null")]
+
+    /**
+     *  Decimal separator character to use
+	 *  when outputting formatted decimal numbers.
+	 *
+     *  @default "."
+     */
+	public function get decimalSeparatorTo():String
+	{
+		return _decimalSeparatorTo;
+	}
+
+	/**
+	 *  @private
+	 */
+	public function set decimalSeparatorTo(value:String):void
+	{
+		decimalSeparatorToOverride = value;
+
+		_decimalSeparatorTo = value != null ?
+							  value :
+							  resourceManager.getString(
+							      "SharedResources", "decimalSeparatorTo");
+	}
+
+	//----------------------------------
+	//  precision
+	//----------------------------------
+
+    /**
+	 *  @private
+	 *  Storage for the precision property.
+	 */
+	private var _precision:Object;
+
+    /**
+	 *  @private
+	 */
+	private var precisionOverride:Object;
+
+    [Inspectable(category="General", defaultValue="null")]
+
+    /**
+     *  Number of decimal places to include in the output String.
+	 *  You can disable precision by setting it to -1.
+	 *  A value of -1 means do not change the precision. For example,
+	 *  if the input value is 1.453 and rounding
+	 *  is set to NumberBaseRoundType.NONE, return 1.453.
+	 *  If precision is -1 and you set some form of
+	 *  rounding, return a value based on that rounding type.
+	 *
+     *  @default -1
+     */
+	public function get precision():Object
+	{
+		return _precision;
+	}
+
+	/**
+	 *  @private
+	 */
+	public function set precision(value:Object):void
+	{
+		precisionOverride = value;
+
+		_precision = value != null ?
+					 int(value) :
+					 resourceManager.getInt(
+					     "formatters", "currencyFormatterPrecision");
+	}
+
+	//----------------------------------
+	//  rounding
+	//----------------------------------
+
+    /**
+	 *  @private
+	 *  Storage for the rounding property.
+	 */
+	private var _rounding:String;
+
+    /**
+	 *  @private
+	 */
+	private var roundingOverride:String;
+
+    [Inspectable(category="General", enumeration="none,up,down,nearest", defaultValue="null")]
+
+    /**
+     *  How to round the number.
+	 *  In ActionScript, the value can be NumberBaseRoundType.NONE,
+	 *  NumberBaseRoundType.UP,
+	 *  NumberBaseRoundType.DOWN, or NumberBaseRoundType.NEAREST.
+	 *  In MXML, the value can be "none",
+	 *  "up", "down", or "nearest".
+	 *
+	 *  @default NumberBaseRoundType.NONE
+ 	 *
+	 *  @see mx.formatters.NumberBaseRoundType
+     */
+	public function get rounding():String
+	{
+		return _rounding;
+	}
+
+	/**
+	 *  @private
+	 */
+	public function set rounding(value:String):void
+	{
+		roundingOverride = value;
+
+		_rounding = value != null ?
+					value :
+					resourceManager.getString(
+					    "formatters", "rounding");
+	}
+
+	//----------------------------------
+	//  thousandsSeparatorFrom
+	//----------------------------------
+
+    /**
+	 *  @private
+	 *  Storage for the thousandsSeparatorFrom property.
+	 */
+	private var _thousandsSeparatorFrom:String;
+
+    /**
+	 *  @private
+	 */
+	private var thousandsSeparatorFromOverride:String;
+
+    [Inspectable(category="General", defaultValue="null")]
+
+    /**
+     *  Character to use as the thousands separator
+	 *  in the input String.
+	 *
+     *  @default ","
+     */
+	public function get thousandsSeparatorFrom():String
+	{
+		return _thousandsSeparatorFrom;
+	}
+
+	/**
+	 *  @private
+	 */
+	public function set thousandsSeparatorFrom(value:String):void
+	{
+		thousandsSeparatorFromOverride = value;
+
+		_thousandsSeparatorFrom = value != null ?
+								  value :
+								  resourceManager.getString(
+								      "SharedResources", "thousandsSeparatorFrom");
+	}
+
+	//----------------------------------
+	//  thousandsSeparatorTo
+	//----------------------------------
+
+    /**
+	 *  @private
+	 *  Storage for the thousandsSeparatorTo property.
+	 */
+	private var _thousandsSeparatorTo:String;
+
+    /**
+	 *  @private
+	 */
+	private var thousandsSeparatorToOverride:String;
+
+    [Inspectable(category="General", defaultValue="null")]
+
+    /**
+     *  Character to use as the thousands separator
+	 *  in the output string.
+	 *
+     *  @default ","
+     */
+	public function get thousandsSeparatorTo():String
+	{
+		return _thousandsSeparatorTo;
+	}
+
+	/**
+	 *  @private
+	 */
+	public function set thousandsSeparatorTo(value:String):void
+	{
+		thousandsSeparatorToOverride = value;
+
+		_thousandsSeparatorTo = value != null ?
+								value :
+								resourceManager.getString(
+								    "SharedResources", "thousandsSeparatorTo");
+	}
+
+	//----------------------------------
+	//  useNegativeSign
+	//----------------------------------
+
+    /**
+	 *  @private
+	 *  Storage for the useNegativeSign property.
+	 */
+	private var _useNegativeSign:Object;
+
+    /**
+	 *  @private
+	 */
+	private var useNegativeSignOverride:Object;
+
+    [Inspectable(category="General", defaultValue="null")]
+
+    /**
+     *  If true, format a negative number
+	 *  by preceding it with a minus "-" sign.
+	 *  If false, format the number
+	 *  surrounded by parentheses, for example (400).
+	 *
+     *  @default true
+     */
+	public function get useNegativeSign():Object
+	{
+		return _useNegativeSign;
+	}
+
+	/**
+	 *  @private
+	 */
+	public function set useNegativeSign(value:Object):void
+	{
+		useNegativeSignOverride = value;
+
+		_useNegativeSign = value != null ?
+						   Boolean(value) :
+						   resourceManager.getBoolean(
+						       "formatters", "useNegativeSign");
+	}
+
+	//----------------------------------
+	//  useThousandsSeparator
+	//----------------------------------
+
+    /**
+	 *  @private
+	 *  Storage for the useThousandsSeparator property.
+	 */
+	private var _useThousandsSeparator:Object;
+
+    /**
+	 *  @private
+	 */
+	private var useThousandsSeparatorOverride:Object;
+
+    [Inspectable(category="General", defaultValue="null")]
+
+    /**
+     *  If true, split the number into thousands increments
+	 *  by using a separator character.
+	 *
+     *  @default true
+     */
+	public function get useThousandsSeparator():Object
+	{
+		return _useThousandsSeparator;
+	}
+
+	/**
+	 *  @private
+	 */
+	public function set useThousandsSeparator(value:Object):void
+	{
+		useThousandsSeparatorOverride = value;
+
+		_useThousandsSeparator = value != null ?
+								 Boolean(value) :
+								 resourceManager.getBoolean(
+								     "formatters", "useThousandsSeparator");
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Overridden methods
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	override protected function resourcesChanged():void
+	{
+		super.resourcesChanged();
+
+		alignSymbol = alignSymbolOverride;
+		currencySymbol = currencySymbolOverride;
+		decimalSeparatorFrom = decimalSeparatorFromOverride;
+		decimalSeparatorTo = decimalSeparatorToOverride;
+		precision = precisionOverride;
+		rounding = roundingOverride;
+		thousandsSeparatorFrom = thousandsSeparatorFromOverride;
+		thousandsSeparatorTo = thousandsSeparatorToOverride;
+		useNegativeSign = useNegativeSignOverride;
+		useThousandsSeparator = useThousandsSeparatorOverride;
+	}
+
+    /**
+     *  Formats value as currency.
+	 *  If value cannot be formatted, return an empty String
+	 *  and write a description of the error to the error property.
+	 *
+     *  @param value Value to format.
+	 *
+     *  @return Formatted string. Empty if an error occurs.
+     */
+    override public function format(value:Object):String
+    {
+        // Reset any previous errors.
+        if (error)
+			error = null;
+
+        if (useThousandsSeparator &&
+			(decimalSeparatorFrom == thousandsSeparatorFrom ||
+			 decimalSeparatorTo == thousandsSeparatorTo))
+        {
+            error = defaultInvalidFormatError;
+            return "";
+        }
+
+        if (decimalSeparatorTo == "")
+        {
+            error = defaultInvalidFormatError;
+            return "";
+        }
+
+        var dataFormatter:NumberBase = new NumberBase(decimalSeparatorFrom,
+													  thousandsSeparatorFrom,
+													  decimalSeparatorTo,
+													  thousandsSeparatorTo);
+
+        // -- value --
+
+        if (value is String)
+            value = dataFormatter.parseNumberString(String(value));
+
+        if (value === null || isNaN(Number(value)))
+        {
+            error = defaultInvalidValueError;
+            return "";
+        }
+
+        // -- format --
+
+		var isNegative:Boolean = (Number(value) < 0);
+
+        var numStr:String = value.toString();
+        var numArrTemp:Array = numStr.split(".");
+        var numFraction:int = numArrTemp[1] ? String(numArrTemp[1]).length : 0;
+
+        if (precision <= numFraction)
+		{
+            if (rounding != NumberBaseRoundType.NONE)
+			{
+                numStr = dataFormatter.formatRoundingWithPrecision(
+					numStr, rounding, int(precision));
+			}
+		}
+
+        var numValue:Number = Number(numStr);
+        if (Math.abs(numValue) >= 1)
+        {
+            numArrTemp = numStr.split(".");
+            var front:String =
+				useThousandsSeparator ?
+				dataFormatter.formatThousands(String(numArrTemp[0])) :
+				String(numArrTemp[0]);
+            if (numArrTemp[1] != null && numArrTemp[1] != "")
+                numStr = front + decimalSeparatorTo + numArrTemp[1];
+            else
+                numStr = front;
+        }
+        else if (Math.abs(numValue) > 0)
+        {
+        	// if the value is in scientefic notation then the search for '.'
+        	// doesnot give the correct result. Adding one to the value forces
+        	// the value to normal decimal notation.
+        	// As we are dealing with only the decimal portion we need not
+        	// worry about reverting the addition
+        	if (numStr.indexOf("e") != -1)
+        	{
+	        	var temp:Number = Math.abs(numValue) + 1;
+	        	numStr = temp.toString();
+        	}
+            numStr = decimalSeparatorTo +
+					 numStr.substring(numStr.indexOf(".") + 1);
+        }
+
+        numStr = dataFormatter.formatPrecision(numStr, int(precision));
+
+		// If our value is 0, then don't show -0
+		if (Number(numStr) == 0)
+		{
+			isNegative = false;
+		}
+
+        if (isNegative)
+            numStr = dataFormatter.formatNegative(numStr, useNegativeSign);
+
+        if (!dataFormatter.isValid)
+        {
+            error = defaultInvalidFormatError;
+            return "";
+        }
+
+        // -- currency --
+
+        if (alignSymbol == "left")
+		{
+            if (isNegative)
+			{
+                var nSign:String = numStr.charAt(0);
+                var baseVal:String = numStr.substr(1, numStr.length - 1);
+                numStr = nSign + currencySymbol + baseVal;
+            }
+			else
+			{
+                numStr = currencySymbol + numStr;
+            }
+        }
+		else if (alignSymbol == "right")
+		{
+            var lastChar:String = numStr.charAt(numStr.length - 1);
+            if (isNegative && lastChar == ")")
+			{
+                baseVal = numStr.substr(0, numStr.length - 1);
+                numStr = baseVal + currencySymbol + lastChar;
+            }
+			else
+			{
+                numStr = numStr + currencySymbol;
+            }
+        }
+		else
+		{
+            error = defaultInvalidFormatError;
+            return "";
+        }
+
+        return numStr;
+    }
+}
+
+}


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

--- frameworks/projects/framework/src/mx/modules/ModuleManagerGlobals.as
+++ frameworks/projects/framework/src/mx/modules/ModuleManagerGlobals.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2006-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: 21557
Author:   jasonsj@adobe.com
Date:     2011-07-12T22:11:43.595367Z

Log Message:
-----------
Initial checkin for Callout/CalloutButton and mobile check-in tests. (Attempt #2 to address dependency checker issue from 21536)

* Refactored pop up transformations from PopUpAnchor.applyPopUpTransform() to mx.utils.PopUpUtil.applyPopUpTransform()
* CalloutPosition.AUTO not yet implemented
* Visuals are not the final XD design.

QE notes:
Doc notes:
Bugs:
Reviewer: chiedozi, jszeto
Tests run: checkintests, checkintests-mobile
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/.flexLibProperties</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/CalloutPosition.as" copyfrom-rev="21541" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/CalloutPosition.as</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/ArrowDirection.as" copyfrom-rev="21541" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/ArrowDirection.as</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/4.y/frameworks/tests/airMobileBasicTests/src/mobile/views/TestCalloutButton.mxml" copyfrom-rev="21541" action="A">/private/flex/sdk/branches/4.y/frameworks/tests/airMobileBasicTests/src/mobile/views/TestCalloutButton.mxml</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/CalloutButton.as" copyfrom-rev="21541" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/CalloutButton.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/.actionScriptProperties</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/.flexLibProperties</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/SkinnablePopUpContainer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/framework/src/mx/utils/PopUpUtil.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/PopUpAnchor.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/.actionScriptProperties</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/Callout.as" copyfrom-rev="21541" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/Callout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/tests/airMobileBasicTests/src/airMobileBasicTests-config.xml</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/manifest.xml</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/CalloutButtonSkin.as" copyfrom-rev="21541" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/CalloutButtonSkin.as</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/4.y/frameworks/tests/airMobileBasicTests/src/mobile/scripts/CalloutButtonTestScript.mxml" copyfrom-rev="21541" action="A">/private/flex/sdk/branches/4.y/frameworks/tests/airMobileBasicTests/src/mobile/scripts/CalloutButtonTestScript.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/.actionScriptProperties</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/defaults.css</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/CalloutSkin.as" copyfrom-rev="21541" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/CalloutSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/MobileThemeClasses.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/.flexLibProperties</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/tests/airMobileBasicTests/src/airMobileBasicTests-app.xml</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/Callout.as
+++ frameworks/projects/mobilecomponents/src/spark/components/Callout.as
@@ -23,6 +23,7 @@
 import mx.core.IVisualElement;
 import mx.core.IVisualElementContainer;
 import mx.core.LayoutDirection;
+import mx.core.UIComponent;
 import mx.core.mx_internal;
 import mx.events.FlexEvent;
 import mx.events.ResizeEvent;
@@ -318,7 +319,11 @@
     override protected function positionPopUp():void
     {
         var popUpPoint:Point = calculatePopUpPosition();
-        PopUpUtil.applyPopUpTransform(owner, systemManager, this, popUpPoint);
+        var ownerComponent:UIComponent = owner as UIComponent;
+        var concatenatedColorTransform:ColorTransform = ownerComponent.$transform.concatenatedColorTransform;
+
+        PopUpUtil.applyPopUpTransform(owner, concatenatedColorTransform,
+                                      systemManager, this, popUpPoint);
     }

     /**
@@ -428,25 +433,8 @@
             }
             else // if (calloutWidth > ownerWidth)
             {
-                if ((arrowWidth >= ownerWidth) && !isMiddlePosition)
-                {
-                    arrowX = (isStartPosition) ? 0 : calloutWidth - arrowWidth;
-                }
-                else
-                {
-                    if (isMiddlePosition)
-                    {
-                        // center on the callout
-                        arrowX = (calloutWidth - arrowWidth) / 2;
-                    }
-                    else
-                    {
-                        arrowX = (ownerWidth - arrowWidth) / 2;
-
-                        if (isEndPosition)
-                            arrowX += (calloutWidth - ownerWidth);
-                    }
-                }
+                // center the arrow on the owner
+                arrowX = Math.max((ownerWidth - arrowWidth) / 2, 0);
             }

             // move the arrow to the end of the callout


Transferred from the Adobe Open Source Subversion Repository

Revision: 9416
Author:   aharui@adobe.com
Date:     2009-08-20T02:15:38.365755Z

Log Message:
-----------
Revert 9399.  The prototypes broke mustella states tests.  Will try again later.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/ComponentBuilder.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/SparkChromeWindowedApplicationSkin.mxml</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/NavigatorChild.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/FlexEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ViewStack.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/IDeferredContentOwner.as" copyfrom-rev="9398" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/IDeferredContentOwner.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/managers/FocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/NavBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler_en.properties</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/INavigatable.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/spark-manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/PanelSkin.mxml</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/INavigatorContent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/TabNavigator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/PanelSkin.mxml</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IDeferredContentOwner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ApplicationSkin.mxml</path>

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

--- frameworks/projects/spark/src/spark/components/SkinnableContainer.as
+++ frameworks/projects/spark/src/spark/components/SkinnableContainer.as
@@ -11,16 +11,16 @@

 package spark.components
 {
+
 import mx.collections.IList;
 import spark.components.Group;
 import mx.core.mx_internal;
 import spark.components.supportClasses.SkinnableComponent;
 import spark.components.supportClasses.SkinnableContainerBase;
 import mx.core.ContainerCreationPolicy;
-import mx.core.IDeferredContentOwner;
+import spark.core.IDeferredContentOwner;
 import mx.core.IDeferredInstance;
 import mx.core.IFactory;
-import mx.core.INavigatorContent;
 import mx.core.IVisualElement;
 import mx.core.IVisualElementContainer;
 import mx.core.IUIComponent;
@@ -1123,27 +1123,11 @@
                     mxmlContent = deferredContent as Array;
                 else
                     mxmlContent = [deferredContent];
-                _deferredContentCreated = true;
                 dispatchEvent(new FlexEvent(FlexEvent.CONTENT_CREATION_COMPLETE));
             }
         }
     }
-
-    private var _deferredContentCreated:Boolean;
-
-    /**
-     *  True if deferred content has been created
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
-     */
-    public function get deferredContentCreated():Boolean
-    {
-        return _deferredContentCreated;
-    }
-
+
     /**
      *  @private
      */


fixed null pointer error

fixed null pointer error

Change-Id: I3a613777d534af5ed7862cde3e043c633ea572eb

--- WeaveData/src/weave/data/DataSources/CSVDataSource.as
+++ WeaveData/src/weave/data/DataSources/CSVDataSource.as
@@ -364,6 +364,8 @@
 				//check if it is a numeric column.
 				for each (var columnValue:String in csvDataColumn)
 				{
+					if (columnValue == null) // this is possible if rows have missing values
+						continue;
 					// if a string is 2 characters or more and begins with a '0', treat it as a string.
 					if (columnValue.length > 1 && columnValue.charAt(0) == '0' && columnValue.charAt(1) != '.')
 					{
@@ -433,6 +435,7 @@
 				for (i = 1; i < rows.length; i++)
 					outputArrayOrVector[i-1] = rows[i][columnIndex];
 			}
+			outputArrayOrVector.length = rows.length;
 		}

 		private function getNumberFromString(value:String):Number


Fixed typo

Fixed typo

Change-Id: Ibef031ce435f9c66f5a3e5b468bb288b9dffd891

--- WeaveCore/src/weave/core/ExternalSessionStateInterface.as
+++ WeaveCore/src/weave/core/ExternalSessionStateInterface.as
@@ -146,7 +146,7 @@
 			if (!objectPath || !objectPath.length)
 				return false;

-			// Fet parent object first in case there is some backwards compatibility code that gets
+			// Get parent object first in case there is some backwards compatibility code that gets
 			// executed when it is accessed (registering deprecated class definitions, for example).
 			var parentPath:Array = objectPath.concat();
 			var childName:Object = parentPath.pop();


GeoJSONDataSource works now. Needs editor GUI.

Change-Id: I287fe1bf9a91951e5c838a66bf7112f0430764b4

--- WeaveData/src/weave/data/DataSources/GeoJSONDataSource.as
+++ WeaveData/src/weave/data/DataSources/GeoJSONDataSource.as
@@ -23,6 +23,7 @@
 	import flash.net.URLRequest;
 	import flash.system.Capabilities;
 	import flash.utils.getDefinitionByName;
+	import flash.utils.getTimer;

 	import mx.rpc.events.FaultEvent;
 	import mx.rpc.events.ResultEvent;
@@ -30,6 +31,7 @@
 	import weave.api.data.ColumnMetadata;
 	import weave.api.data.DataTypes;
 	import weave.api.data.IDataSource;
+	import weave.api.data.IQualifiedKey;
 	import weave.api.data.IWeaveTreeNode;
 	import weave.api.detectLinkableObjectChange;
 	import weave.api.getCallbackCollection;
@@ -70,9 +72,28 @@

 		private var rootChildren:Array = null;

-		private function getProjection():String
-		{
-			return projection.value || (jsonData ? jsonData.projection : null);
+		/**
+		 * Gets the projection metadata used in the geometry column.
+		 */
+		public function getProjection():String
+		{
+			return projection.value
+				|| (jsonData ? jsonData.projection : null)
+				|| "EPSG:4326";
+		}
+		/**
+		 * Gets the keyType metadata used in the columns.
+		 */
+		public function getKeyType():String
+		{
+			var kt:String = keyType.value;
+			if (!kt)
+			{
+				kt = url.value;
+				if (keyProperty.value)
+					kt += "#" + keyProperty.value;
+			}
+			return kt;
 		}

 		override protected function get initializationComplete():Boolean
@@ -95,7 +116,7 @@
 			if (detectLinkableObjectChange(initialize, keyType, keyProperty))
 			{
 				if (jsonData)
-					jsonData.resetQKeys(keyType.value, keyProperty.value);
+					jsonData.resetQKeys(getKeyType(), keyProperty.value);
 			}

 			// recalculate all columns previously requested because data may have changed.
@@ -133,15 +154,15 @@
 					throw new Error("Invalid GeoJSON file: " + url);

 				// parse data
-				jsonData = new GeoJSONData(obj, keyType.value, keyProperty.value);
+				jsonData = new GeoJSONData(obj, getKeyType(), keyProperty.value);

 				// set up hierarchy
-				rootChildren = jsonData.propertyNames.map(function(n:String, i:*, a:*):*{
-					var m:Object = {"title": n, "dataType": jsonData.propertyTypes[n]};
-					m[GEOJSON_PROPERTY_NAME] = n;
-					return new DataSourceNode(this, m);
-				}, this);
-				rootChildren.unshift(new DataSourceNode(this, {"title": "the_geom", "dataType": DataTypes.GEOMETRY}));
+
+				rootChildren = jsonData.propertyNames
+					.map(function(n:String, i:*, a:*):*{ return getMetadataForProperty(n); })
+					.filter(function(m:Object, ..._):Boolean{ return m != null; })
+					.map(function(m:Object, ..._):*{ return new DataSourceNode(this, m); }, this);
+				rootChildren.unshift(new DataSourceNode(this, getMetadataForProperty(null)));
 				_rootNode = null;

 				getCallbackCollection(this).triggerCallbacks();
@@ -201,13 +222,31 @@

 			if (dataType == DataTypes.GEOMETRY)
 			{
-				//TODO - make this async
-				for (var i:int = 0; i < jsonData.qkeys.length; i++)
-					jsonData.convertToGeneralizedGeometry(i);
-
-				var gc:GeometryColumn = new GeometryColumn(metadata);
-				gc.setGeometries(jsonData.qkeys, Vector.<GeneralizedGeometry>(jsonData.geometries));
-				proxyColumn.setInternalColumn(gc);
+				var keys:Vector.<IQualifiedKey> = new Vector.<IQualifiedKey>();
+				var geoms:Vector.<GeneralizedGeometry> = new Vector.<GeneralizedGeometry>();
+				var i:int = 0;
+				function initGeoms(stopTime:int):Number
+				{
+					for (; i < jsonData.qkeys.length; i++)
+					{
+						if (getTimer() > stopTime)
+							return i / jsonData.qkeys.length;
+
+						for each (var geom:GeneralizedGeometry in jsonData.convertToGeneralizedGeometries(i))
+						{
+							keys.push(jsonData.qkeys[i]);
+							geoms.push(geom);
+						}
+					}
+					return 1;
+				}
+				function setGeoms():void
+				{
+					var gc:GeometryColumn = new GeometryColumn(metadata);
+					gc.setGeometries(keys, geoms);
+					proxyColumn.setInternalColumn(gc);
+				}
+				WeaveAPI.StageUtils.startTask(proxyColumn, initGeoms, WeaveAPI.TASK_PRIORITY_2_BUILDING, setGeoms);
 			}
 			else
 			{
@@ -228,6 +267,35 @@
 			}
 		}

+		private function getMetadataForProperty(propertyName:String):Object
+		{
+			if (!jsonData)
+				return null;
+
+			var meta:Object;
+			if (!propertyName)
+			{
+				meta = {};
+				meta[GEOJSON_PROPERTY_NAME] = propertyName || '';
+				meta[ColumnMetadata.TITLE] = propertyName;
+				meta[ColumnMetadata.KEY_TYPE] = getKeyType();
+				meta[ColumnMetadata.DATA_TYPE] = DataTypes.GEOMETRY;
+				meta[ColumnMetadata.PROJECTION] = getProjection();
+			}
+			else if (jsonData.propertyNames.indexOf(propertyName) >= 0)
+			{
+				meta = {};
+				meta[GEOJSON_PROPERTY_NAME] = propertyName;
+				meta[ColumnMetadata.TITLE] = propertyName;
+				meta[ColumnMetadata.KEY_TYPE] = getKeyType();
+
+				if (propertyName == keyProperty.value)
+					meta[ColumnMetadata.DATA_TYPE] = getKeyType();
+				else
+					meta[ColumnMetadata.DATA_TYPE] = jsonData.propertyTypes[propertyName];
+			}
+			return meta;
+		}
 		private static const GEOJSON_PROPERTY_NAME:String = 'geoJsonPropertyName';
 	}
 }
@@ -265,7 +333,7 @@
 		var that:DataSourceNode = other as DataSourceNode;
 		return that
 			&& this.source == that.source
-			&& StandardLib.compareDynamicObjects(this.metadata, that.metadata);
+			&& StandardLib.compareDynamicObjects(this.metadata, that.metadata) == 0;
 	}
 	public function getLabel():String
 	{
@@ -392,48 +460,47 @@
 	}

 	/**
-	 * Derives a GeneralizedGeometry from the GeoJSON data and overwrites the existing GeoJSON Geometry object.
+	 * Derives GeneralizedGeometry objects from the GeoJSON data and overwrites the existing GeoJSON Geometry object.
 	 * @param index Index in the geometries Array.
-	 */
-	public function convertToGeneralizedGeometry(index:int):void
+	 * @return An Array of GeneralizedGeometry objects
+	 */
+	public function convertToGeneralizedGeometries(index:int):Array
 	{
 		var obj:Object = geometries[index];
-		if (obj is GeneralizedGeometry)
-			return;
-
 		var type:String = obj[GeoJSON.P_TYPE];
 		var coords:Array = obj[GeoJSON.G_P_COORDINATES];

-		// convert coords to Multi format
+		// convert coords to MultiPolygon format: multi[ poly[ line[ point[] ] ] ]
 		if (type == GeoJSON.T_POINT)
-			type = GeoJSON.T_MULTI_POINT, coords = [coords];
+			type = GeometryType.POINT, coords = /*multi*/[/*poly*/[/*line*/[/*point*/coords]]];
+		else if (type == GeoJSON.T_MULTI_POINT)
+			type = GeometryType.POINT, coords = /*multi*/[/*poly*/[/*line*/coords]];
 		else if (type == GeoJSON.T_LINE_STRING)
-			type = GeoJSON.T_MULTI_LINE_STRING, coords = [coords];
+			type = GeometryType.LINE, coords = /*multi*/[/*poly*/[/*line*/coords]];
+		else if (type == GeoJSON.T_MULTI_LINE_STRING)
+			type = GeometryType.LINE, coords = /*multi*/[/*poly line*/coords];
 		else if (type == GeoJSON.T_POLYGON)
-			type = GeoJSON.T_MULTI_POLYGON, coords = [coords];
-
-		// use GeometryType constants
-		if (type == GeoJSON.T_MULTI_POINT)
-			type = GeometryType.POINT;
-		else if (type == GeoJSON.T_MULTI_LINE_STRING)
-			type = GeometryType.LINE;
+			type = GeometryType.POLYGON, coords = /*multi*/[/*poly*/coords];
 		else if (type == GeoJSON.T_MULTI_POLYGON)
 			type = GeometryType.POLYGON;

-		var geom:GeneralizedGeometry = new GeneralizedGeometry(type);
-		var xyCoords:Array = [];
-		for each (var part:Array in coords)
-		{
-			// add part marker if this is not the first part
-			if (xyCoords.length == 0)
-				xyCoords.push(NaN, NaN);
-			// push x,y coords
-			for each (var coord:Array in part)
-			xyCoords.push(coord[0], coord[1]);
-		}
-		geom.setCoordinates(xyCoords, BLGTreeUtils.METHOD_SAMPLE);
-
-		// overwrite the GeoJSON Geometry object
-		geometries[index] = geom;
+		var result:Array = [];
+		for each (var poly:Array in coords)
+		{
+			var geom:GeneralizedGeometry = new GeneralizedGeometry(type);
+			var xyCoords:Array = [];
+			for each (var part:Array in poly)
+			{
+				// add part marker if this is not the first part
+				if (xyCoords.length == 0)
+					xyCoords.push(NaN, NaN);
+				// push x,y coords
+				for each (var point:Array in part)
+					xyCoords.push(point[0], point[1]);
+			}
+			geom.setCoordinates(xyCoords, BLGTreeUtils.METHOD_SAMPLE);
+			result.push(geom);
+		}
+		return result;
 	}
 }


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

--- frameworks/projects/automation/src/mx/automation/delegates/controls/LinkBarAutomationImpl.as
+++ frameworks/projects/automation/src/mx/automation/delegates/controls/LinkBarAutomationImpl.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.
 //
 ////////////////////////////////////////////////////////////////////////////////
 package mx.automation.delegates.controls


Transferred from the Adobe Open Source Subversion Repository

Revision: 12850
Author:   jimurphy@adobe.com
Date:     2009-12-11T14:57:14.623098Z

Log Message:
-----------
add 6 new DMV projects to the SDK:
automation
automation_air
automation_dmv
automation_flashflexkit
automation_spark
datavisualization

These projects are setup to build in an ant main call.  There are currently several warnings in the datavisualization project that will be cleaned up.  No checkintests exist for these projects as of yet.

I also modified the exisitng projects build files for easier management of the localization targets, bundle and fat-swc. If the projects that I updated:airframework,airspark,framework,playerglobal,rpc,and spark.  All the new projects have been implemented this same way.

QE notes: DMV folks should run through their tests
Doc notes: probably
Bugs: nope
Reviewer:
Tests run: ran the following targets: compile,checkintests,other.locales and doc
Is noteworthy for integration: no

Modified Paths:
--------------
1404 paths were modified

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

--- frameworks/projects/automation/src/mx/automation/delegates/controls/ToolTipAutomationImpl.as
+++ frameworks/projects/automation/src/mx/automation/delegates/controls/ToolTipAutomationImpl.as
@@ -0,0 +1,104 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2009 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.automation.delegates.controls
+{
+	import flash.display.DisplayObject;
+
+	import mx.automation.Automation;
+	import mx.automation.delegates.core.UIComponentAutomationImpl;
+	import mx.core.mx_internal;
+	import mx.controls.ToolTip;
+
+	use namespace mx_internal;
+
+	[Mixin]
+	/**
+	 *
+	 *  Defines methods and properties required to perform instrumentation for the
+	 *  ToolTip control.
+	 *
+	 *  @see mx.controls.ToolTip
+	 *
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public class ToolTipAutomationImpl extends UIComponentAutomationImpl
+	{
+		include "../../../core/Version.as";
+
+		//--------------------------------------------------------------------------
+		//
+		//  Class methods
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  Registers the delegate class for a component class with automation manager.
+		 *
+		 *  @param root The SystemManger of the application.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public static function init(root:DisplayObject):void
+		{
+			Automation.registerDelegateClass(ToolTip, ToolTipAutomationImpl);
+		}
+
+		//--------------------------------------------------------------------------
+		//
+		//  Constructor
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  Constructor.
+		 * @param obj ToolTip object to be automated.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public function ToolTipAutomationImpl(obj:ToolTip)
+		{
+			super(obj);
+		}
+
+		/**
+		 *  @private
+		 *  storage for the owner component
+		 */
+		protected function get toolTip():ToolTip
+		{
+			return uiComponent as ToolTip;
+		}
+
+		//----------------------------------
+		//  automationValue
+		//----------------------------------
+
+		/**
+		 *  @private
+		 */
+		override public function get automationValue():Array
+		{
+			return [ toolTip.getTextField().text ];
+		}
+
+	}
+}


Initial work on handling errors in loading

--- src/LevelStates/LevelState.as
+++ src/LevelStates/LevelState.as
@@ -1202,10 +1202,26 @@
 			if (saveString == null)
 				saveString = findSuccessSave();
 			if (saveString) {
-				if (U.BINARY_SAVES && saveString.indexOf(U.MAJOR_SAVE_DELIM) == -1)
-					savedString = loadBinary(saveString);
-				else
-					savedString = loadOldFormat(saveString);
+				try {
+					if (U.BINARY_SAVES && saveString.indexOf(U.MAJOR_SAVE_DELIM) == -1)
+						savedString = loadBinary(saveString);
+					else
+						savedString = loadOldFormat(saveString);
+				} catch (error:Error) {
+					C.log("Error in loading!");
+					C.log(error);
+					C.sendRequest(
+						"http://pleasingfungus.com/mde2/insert.php",
+						{'lvl' : U.save.data[level.name]}
+					);
+
+					saveString = null;
+				}
+
+			C.sendRequest(
+				"http://pleasingfungus.com/mde2/insert.php",
+				{'lvl' : U.save.data[level.name]}
+			);
 			}

 			level.loadIntoState(this, saveString == RESET_SAVE || !saveString);


Transferred from the Adobe Open Source Subversion Repository

Revision: 14354
Author:   jimurphy@adobe.com
Date:     2010-02-23T15:05:48.761194Z

Log Message:
-----------
resetting the build number in version.as
The build automated process checked it in as 4.5.0.13964 when it should have been 4.5.0.0

QE notes: no
Doc notes: no
Bugs: https://bugs.adobe.com/jira/browse/SDK-25489
Reviewer: no
Tests run: ran version test included in the bug
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_air/src/mx/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/datavisualization/src/mx/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation/src/mx/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/mx/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_flashflexkit/src/mx/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_dmv/src/mx/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airspark/src/spark/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Version.as</path>

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

--- frameworks/projects/framework/src/mx/core/Version.as
+++ frameworks/projects/framework/src/mx/core/Version.as
@@ -15,4 +15,4 @@
  *  @private
  *  Version string for this class.
  */
-mx_internal static const VERSION:String = "4.5.0.13964";
+mx_internal static const VERSION:String = "4.5.0.0";


Transferred from the Adobe Open Source Subversion Repository

Revision: 8679
Author:   jimurphy@adobe.com
Date:     2009-07-20T13:23:31.007823Z

Log Message:
-----------
These are Asdoc edit from 3.x rev 8623.  I somehow missed committing these when they were supposed to be committed during my previous merge.

bug: no
qa: no
doc: no
checkintests: pass

Modified Paths:
--------------
<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/rpc/src/mx/messaging/channels/PollingChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AbstractService.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/rpc/src/mx/messaging/Consumer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/MultiTopicProducer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/SecureAMFChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/StreamingAMFChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/StreamingConnectionHandler.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/rpc/CallResponder.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/rpc/src/mx/messaging/MultiTopicConsumer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AsyncResponder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/MessageResponder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/SecureStreamingAMFChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/config/ConfigMap.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AbstractInvoker.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/Responder.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/SecureHTTPChannel.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/rpc/src/mx/messaging/channels/StreamingHTTPChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/events/XMLLoadEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/IResponder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/Producer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/SecureStreamingHTTPChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AsyncToken.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/events/WSDLLoadEvent.as</path>

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

--- frameworks/projects/rpc/src/mx/rpc/AsyncResponder.as
+++ frameworks/projects/rpc/src/mx/rpc/AsyncResponder.as
@@ -48,19 +48,17 @@
      *  Constructs an instance of the responder with the specified data and
      *  handlers.
      *
-     *  @param  result Function that should be called when the request has
+     *  @param result Function that should be called when the request has
      *          completed successfully.
      *          Must have the following signature:
-     *

-     *              public function (result:Object, token:Object = null):void;
-     *

-     *  @param  fault Function that should be called when the request has
+     *

+     *          public function (result:Object, token:Object = null):void;

+     *  @param fault Function that should be called when the request has
      *          completed with errors.
      *          Must have the following signature:
-     *

-     *              public function (error:ErrorMessage, token:Object = null):void;
-     *

-     *  @param  token Object [optional] additional information to associate with
+     *

+     *          public function (error:ErrorMessage, token:Object = null):void;

+     *  @param token Additional information to associate with
      *          this request.
      *
      *  @langversion 3.0
@@ -87,7 +85,7 @@
      *  This method is called by a service when the return value has been
      *  received.
      *
-     *  @param  data Object containing the information returned from the request.
+     *  @param data Object containing the information returned from the request.
      *
      *  @langversion 3.0
      *  @playerversion Flash 9
@@ -102,7 +100,7 @@
     /**
      *  This method is called by a service when an error has been received.
      *
-     *  @param  info Object containing the information about the error that
+     *  @param info Object containing the information about the error that
      *          occured.
      *
      *  @langversion 3.0


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

 package mx.rpc.xml
 {


added back support for time slider

added back support for time slider

--- WeaveData/src/weave/data/DataSources/CSVDataSource.as
+++ WeaveData/src/weave/data/DataSources/CSVDataSource.as
@@ -497,10 +497,36 @@
 			else
 			{
 				columnId = metadata[METADATA_COLUMN_NAME];
-
-				// backwards compatibility
 				if (!columnId)
-					columnId = metadata["name"];
+				{
+					// support for time slider
+					var metaArray:Array = this.metadata.getSessionState() as Array;
+					if (metaArray)
+					{
+						for (var i:int = 0; i < metaArray.length; i++)
+						{
+							var found:int = 0;
+							for (var key:String in metaArray[i])
+							{
+								if (metaArray[i][key] != metadata[key])
+								{
+									found = 0;
+									break;
+								}
+								found++;
+							}
+							if (found)
+							{
+								columnId = i;
+								break;
+							}
+						}
+					}
+
+					// backwards compatibility
+					if (!columnId)
+						columnId = metadata["name"];
+				}
 			}

 			// get column name and index from id


tests

tests

--- src/com/kemsky/impl/Stream.as
+++ src/com/kemsky/impl/Stream.as
@@ -71,25 +71,217 @@
             return this.slice(count);
         }

-//        public function get first():*
-//        {
-//            return source.length > 0 ? source[0] : null;
-//        }
-//
-//        public function set first(item:*):void
-//        {
-//            source[0] = item;
-//        }
-//
-//        public function get last():*
-//        {
-//            return source.length > 0 ? source[source.length - 1] : null;
-//        }
-//
-//        public function set last(item:*):void
-//        {
-//            source[source.length - 1] = item;
-//        }
+        //ordinals
+
+        public function get first():*
+        {
+            return source[0];
+        }
+
+        public function set first(item:*):void
+        {
+            source[0] = item;
+        }
+
+        public function get second():*
+        {
+            return source[1];
+        }
+
+        public function set second(item:*):void
+        {
+            source[1] = item;
+        }
+
+        public function get third():*
+        {
+            return source[2];
+        }
+
+        public function set third(item:*):void
+        {
+            source[2] = item;
+        }
+
+        public function get fourth():*
+        {
+            return source[3];
+        }
+
+        public function set fourth(item:*):void
+        {
+            source[3] = item;
+        }
+
+        public function get fifth():*
+        {
+            return source[4];
+        }
+
+        public function set fifth(item:*):void
+        {
+            source[4] = item;
+        }
+
+        public function get sixth():*
+        {
+            return source[5];
+        }
+
+        public function set sixth(item:*):void
+        {
+            source[5] = item;
+        }
+
+        public function get seventh():*
+        {
+            return source[6];
+        }
+
+        public function set seventh(item:*):void
+        {
+            source[6] = item;
+        }
+
+        public function get eighth():*
+        {
+            return source[7];
+        }
+
+        public function set eighth(item:*):void
+        {
+            source[7] = item;
+        }
+
+        public function get ninth():*
+        {
+            return source[8];
+        }
+
+        public function set ninth(item:*):void
+        {
+            source[8] = item;
+        }
+
+        public function get tenth():*
+        {
+            return source[9];
+        }
+
+        public function set tenth(item:*):void
+        {
+            source[9] = item;
+        }
+
+        public function get eleventh():*
+        {
+            return source[10];
+        }
+
+        public function set eleventh(item:*):void
+        {
+            source[10] = item;
+        }
+
+        public function get twelfth():*
+        {
+            return source[11];
+        }
+
+        public function set twelfth(item:*):void
+        {
+            source[11] = item;
+        }
+
+        public function get thirteenth():*
+        {
+            return source[12];
+        }
+
+        public function set thirteenth(item:*):void
+        {
+            source[12] = item;
+        }
+
+        public function get fourteenth():*
+        {
+            return source[13];
+        }
+
+        public function set fourteenth(item:*):void
+        {
+            source[13] = item;
+        }
+
+        public function get fifteenth():*
+        {
+            return source[14];
+        }
+
+        public function set fifteenth(item:*):void
+        {
+            source[14] = item;
+        }
+
+        public function get sixteenth():*
+        {
+            return source[15];
+        }
+
+        public function set sixteenth(item:*):void
+        {
+            source[15] = item;
+        }
+
+        public function get seventeenth():*
+        {
+            return source[16];
+        }
+
+        public function set seventeenth(item:*):void
+        {
+            source[16] = item;
+        }
+
+        public function get eighteenth():*
+        {
+            return source[17];
+        }
+
+        public function set eighteenth(item:*):void
+        {
+            source[17] = item;
+        }
+
+        public function get nineteenth():*
+        {
+            return source[18];
+        }
+
+        public function set nineteenth(item:*):void
+        {
+            source[18] = item;
+        }
+
+        public function get twentieth():*
+        {
+            return source[19];
+        }
+
+        public function set twentieth(item:*):void
+        {
+            source[19] = item;
+        }
+
+        public function get last():*
+        {
+            return source[source.length - 1];
+        }
+
+        public function set last(item:*):void
+        {
+            source[source.length - 1] = item;
+        }

         public function fold(...rest):*
         {
@@ -472,11 +664,6 @@
             {
             }

-            if (index == -1)
-            {
-                index = propertyToNumber(name);
-            }
-
             if (index == -1 || index > source.length)
             {
                 throw new Error();
@@ -510,67 +697,12 @@

             if (index == -1)
             {
-                index = propertyToNumber(name);
-            }
-
-            if (index == -1)
-            {
                 throw new Error();
             }
             else
             {
                 source[index] = value;
             }
-        }
-
-        private function propertyToNumber(name:String):int
-        {
-            switch(name)
-            {
-                case "first":
-                    return 0;
-                case "second":
-                    return 1;
-                case "third":
-                    return 2;
-                case "fourth":
-                    return 3;
-                case "fifth":
-                    return 4;
-                case "sixth":
-                    return 5;
-                case "seventh":
-                    return 6;
-                case "eighth":
-                    return 7;
-                case "ninth":
-                    return 8;
-                case "tenth":
-                    return 9;
-                case "eleventh":
-                    return 10;
-                case "twelfth":
-                    return 11;
-                case "thirteenth":
-                    return 12;
-                case "fourteenth":
-                    return 13;
-                case "fifteenth":
-                    return 14;
-                case "sixteenth":
-                    return 15;
-                case "seventeenth":
-                    return 16;
-                case "eighteenth":
-                    return 17;
-                case "nineteenth":
-                    return 18;
-                case "twentieth":
-                    return 19;
-                case "last":
-                    return length - 1;
-            }
-            return -1;
         }

         override flash_proxy function hasProperty(name:*):Boolean


Transferred from the Adobe Open Source Subversion Repository

Revision: 1968
Author:   jimurphy@adobe.com
Date:     2008-06-05T15:31:56.961691Z

Log Message:
-----------
Merge 3.0.x revisions [1940,1954] -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/FlexHTMLLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemEnumerationMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemHistoryButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemTree.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/HTML.as</path>
<path kind="file" action="M">/flex/sdk/trunk/in/air/mac/AIR Integration Kit.tbz2</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/utils/DirectoryEnumeration.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/utils/DirectoryEnumerationMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/AIREvent.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FileEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/windowClasses/StatusBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/in/air/win/AIR Integration Kit.zip</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemDataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/ApplicationTitleBarBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/NativeDragManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FlexNativeMenuEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowMinimizeButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowMaximizeButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowRestoreButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/StatusBarBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/IWindow.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemSizeDisplayMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FlexNativeWindowBoundsEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowBackground.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/windowClasses/TitleBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowCloseButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FlexNativeMenu.as</path>

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

--- frameworks/projects/airframework/src/mx/utils/DirectoryEnumeration.as
+++ frameworks/projects/airframework/src/mx/utils/DirectoryEnumeration.as
@@ -25,7 +25,7 @@
  *  a list of File instances representing the files and directories
  *  in a file system directory.
  *
- *  @productversion Apollo 1.0
+ *  @playerversion AIR 1.1
  */
 public class DirectoryEnumeration
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 2906
Author:   gcomnino@adobe.com
Date:     2008-08-19T20:57:18.407001Z

Log Message:
-----------
Added flash component templates for flex builder. Checkin tests pass. Reviewed by Pete. QA: No. Docs: No. Bugs: SDK-16449

Modified Paths:
--------------
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/utilities/libs/FlexContentHolder.swc</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/utilities/src/FlashComponentPlaceholder.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/utilities/src/FlashContainerPlaceholder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/utilities/build.xml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/utilities/src/flash_component_icon.png</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/utilities/src/flash_container_icon.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/utilities/src/UtilitiesClasses.as</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/utilities/libs</path>

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

--- frameworks/projects/authoringsupport/src/FlashContainerPlaceholder.as
+++ frameworks/projects/authoringsupport/src/FlashContainerPlaceholder.as
@@ -0,0 +1,74 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2008 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package
+{
+	import mx.containers.Canvas;
+	import mx.controls.Image;
+	import mx.flash.ContainerMovieClip;
+
+	public class FlashContainerPlaceholder extends ContainerMovieClip
+	{
+		protected var image1:Image;
+
+		public function FlashContainerPlaceholder()
+		{
+			super();
+
+			var fch:FlexContentHolder = new FlexContentHolder();
+			fch.percentHeight = 100;
+			fch.percentWidth = 100;
+
+	       	var canvas1:Canvas = new Canvas();
+	       	canvas1.horizontalScrollPolicy = "off";
+	       	canvas1.verticalScrollPolicy = "off";
+	       	canvas1.setStyle('borderStyle', 'solid');
+	       	canvas1.setStyle('borderThickness', '2');
+	       	canvas1.setStyle('borderColor', '0xCCCCCC');
+	       	canvas1.percentHeight = 100;
+	       	canvas1.percentWidth = 100;
+	    	canvas1.addChild(createImage());
+
+			this.addChild(fch);
+
+			this.content = canvas1;
+		}
+
+		protected function createImage():Image
+		{
+	       	image1 = new Image();
+	       	image1.source = _embed_mxml_flash_container_icon_png;
+	       	image1.scaleContent = false;
+	       	image1.percentHeight = 100;
+	       	image1.percentWidth = 100;
+	       	image1.setStyle('horizontalAlign' , 'center');
+	       	image1.setStyle('verticalAlign' , 'middle');
+	       	return image1;
+		}
+
+		override public function setActualSize(newWidth:Number, newHeight:Number):void
+		{
+			if (image1 != null) {
+				if (newWidth < 128 || newHeight < 128)
+					image1.scaleContent = true;
+				else
+					image1.scaleContent = false;
+			}
+
+			contentHolderObj.setActualSize(newWidth, newHeight);
+			_width = newWidth;
+			_height = newHeight;
+		}
+
+		[Embed(source='flash_container_icon.png')]
+		private var _embed_mxml_flash_container_icon_png:Class;
+	}
+}


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

 package mx.effects.effectClasses
 {