Flash 5 fixes and output cleanup to trace_properties.as

Construct _global variable by hand when in flash 5, base it on values from
flash 6. Make the script output less useless information.

--- test/trace/trace_properties.as
+++ test/trace/trace_properties.as
@@ -1,4 +1,71 @@
-// doesn't work for Flash 5
+#if __SWF_VERSION__ == 5
+// create a _global object, since it doesn't have one, these are ver 6 values
+_global = new_empty_object ();
+_global.ASSetNative = ASSetNative;
+_global.ASSetNativeAccessor = ASSetNativeAccessor;
+_global.ASSetPropFlags = ASSetPropFlags;
+_global.ASconstructor = ASconstructor;
+_global.ASnative = ASnative;
+_global.Accessibility = Accessibility;
+_global.Array = Array;
+_global.AsBroadcaster = AsBroadcaster;
+_global.AsSetupError = AsSetupError;
+_global.Boolean = Boolean;
+_global.Button = Button;
+_global.Camera = Camera;
+_global.Color = Color;
+_global.ContextMenu = ContextMenu;
+_global.ContextMenuItem = ContextMenuItem;
+_global.Date = Date;
+_global.Error = Error;
+_global.Function = Function;
+_global.Infinity = Infinity;
+_global.Key = Key;
+_global.LoadVars = LoadVars;
+_global.LocalConnection = LocalConnection;
+_global.Math = Math;
+_global.Microphone = Microphone;
+_global.Mouse = Mouse;
+_global.MovieClip = MovieClip;
+_global.MovieClipLoader = MovieClipLoader;
+_global.NaN = NaN;
+_global.NetConnection = NetConnection;
+_global.NetStream = NetStream;
+_global.Number = Number;
+_global.Object = Object;
+_global.PrintJob = PrintJob;
+_global.RemoteLSOUsage = RemoteLSOUsage;
+_global.Selection = Selection;
+_global.SharedObject = SharedObject;
+_global.Sound = Sound;
+_global.Stage = Stage;
+_global.String = String;
+_global.System = System;
+_global.TextField = TextField;
+_global.TextFormat = TextFormat;
+_global.TextSnapshot = TextSnapshot;
+_global.Video = Video;
+_global.XML = XML;
+_global.XMLNode = XMLNode;
+_global.XMLSocket = XMLSocket;
+_global.clearInterval = clearInterval;
+_global.clearTimeout = clearTimeout;
+_global.enableDebugConsole = enableDebugConsole;
+_global.escape = escape;
+_global.flash = flash;
+_global.isFinite = isFinite;
+_global.isNaN = isNaN;
+_global.o = o;
+_global.parseFloat = parseFloat;
+_global.parseInt = parseInt;
+_global.setInterval = setInterval;
+_global.setTimeout = setTimeout;
+_global.showRedrawRegions = showRedrawRegions;
+_global.textRenderer = textRenderer;
+_global.trace = trace;
+_global.unescape = unescape;
+_global.updateAfterEvent = updateAfterEvent;
+#endif

 function new_empty_object () {
   var hash = new Object ();
@@ -65,7 +132,8 @@
 	if (o[prop] != o.__proto__[prop]) {
 	  return true;
 	} else {
-	  trace ("ERROR: can't test property '" + prop + "', __proto__ has superconstant version");
+	  trace ("ERROR: can't test property '" + prop +
+	      "', __proto__ has superconstant version");
 	  return false;
 	}
       }
@@ -79,7 +147,8 @@

     o.__proto__[prop] = old;
     if (o.__proto__[prop] != old)
-      trace ("Error: Couldn't set __proto__[\"" + prop + "\"] back to old value");
+      trace ("Error: Couldn't set __proto__[\"" + prop +
+	  "\"] back to old value");
     if (constant)
       ASSetPropFlags (o.__proto__, prop, 4);

@@ -123,11 +192,14 @@
   if (prop == "mySecretId" || prop == "globalSecretId")
     return true;

-#if __SWF_VERSION__ >= 6
   if (o == _global.Camera && prop == "names")
     return true;

   if (o == _global.Microphone && prop == "names")
+    return true;
+
+#if __SWF_VERSION__ < 6
+  if (prop == "__proto__" && o[prop] == undefined)
     return true;
 #endif

@@ -260,71 +332,63 @@
     if (flags != "")
       flags = " (" + flags + ")";

-    var id_string = "";
-    if (typeof (o[prop]) == "object" || typeof (o[prop]) == "function")
-      id_string = "[" + o[prop]["mySecretId"] + "]";
-
-    // put things together
-    var output = prop + flags + " = " + typeof (o[prop]) + id_string;
-
+    var value = "";
     // add value depending on the type
     if (typeof (o[prop]) == "number" || typeof (o[prop]) == "boolean") {
-      output += " : " + o[prop];
+      value += " : " + o[prop];
     } else if (typeof (o[prop]) == "string") {
-      output += " : \"" + o[prop] + "\"";
-    } else if (typeof (o[prop]) == "object") {
-      output += " : toString => \"" + o[prop] + "\"";
-    }
-
-    // print it out
-    trace (indentation + output);
-
-    // recurse if it's object or function that hasn't been seen earlier
-    if ((typeof (o[prop]) == "object" || typeof (o[prop]) == "function") &&
-	prefix + (prefix != "" ? "." : "") + identifier + "." + prop == o[prop]["mySecretId"])
-    {
-      trace_properties_recurse (o[prop], prefix + (prefix != "" ? "." : "") +
-	  identifier, prop, level + 1);
+      value += " : \"" + o[prop] + "\"";
+    }
+
+    // recurse if it's object or function and this is the place it has been
+    // named after
+    if (typeof (o[prop]) == "object" || typeof (o[prop]) == "function")
+    {
+      if (prefix + (prefix != "" ? "." : "") + identifier + "." + prop ==
+	  o[prop]["mySecretId"])
+      {
+	trace (indentation + prop + flags + " = " + typeof (o[prop]));
+	trace_properties_recurse (o[prop], prefix + (prefix != "" ? "." : "") +
+	    identifier, prop, level + 1);
+      }
+      else
+      {
+	trace (indentation + prop + flags + " = " + o[prop]["mySecretId"]);
+      }
+    }
+    else
+    {
+      trace (indentation + prop + flags + " = " + typeof (o[prop]) + value);
     }
   }
 }

 function generate_names (o, prefix, identifier)
 {
-  var info = new_info ();
-
   // mark the ones that are not hidden
-  for (var prop in o)
-  {
-    // only get the ones that are not only in the __proto__
-    if (is_blaclisted (o, prop) == false) {
-      if (hasOwnProperty (o, prop) == true)
-	set_info (info, prop, "hidden", false);
-    }
+  var nothidden = new Array ();
+  for (var prop in o) {
+    nothidden.push (prop);
   }

   // unhide everything
   ASSetPropFlags (o, null, 0, 1);

   var all = new Array ();
-  var hidden = new Array ();
   for (var prop in o)
   {
-    // only get the ones that are not only in the __proto__
     if (is_blaclisted (o, prop) == false) {
+      // only get the ones that are not only in the __proto__
       if (hasOwnProperty (o, prop) == true) {
 	all.push (prop);
-	if (get_info (info, prop, "hidden") != false) {
-	  set_info (info, prop, "hidden", true);
-	  hidden.push (prop);
-	}
       }
     }
   }
   all.sort ();

   // hide the ones that were already hidden
-  ASSetPropFlags (o, hidden, 1, 0);
+  ASSetPropFlags (o, null, 1, 0);
+  ASSetPropFlags (o, nothidden, 0, 1);

   for (var i = 0; i < all.length; i++) {
     var prop = all[i];
@@ -359,12 +423,23 @@

   generate_names (o, prefix, identifier);

-  var output = identifier + " " + typeof (o) + "[" + prefix +
-    (prefix != "" ? "." : "") + identifier + "]";
-  if (typeof (o) == "object")
-    output += " : toString => \"" + o[prop] + "\"";
-  trace (output);
-
   if (typeof (o) == "object" || typeof (o) == "function")
+  {
+    if (prefix + (prefix != "" ? "." : "") + identifier == o["mySecretId"])
+    {
+      trace (prefix + (prefix != "" ? "." : "") + identifier + " = " +
+	  typeof (o));
+    }
+    else
+    {
+      trace (prefix + (prefix != "" ? "." : "") + identifier + " = " +
+	  o["mySecretId"]);
+    }
     trace_properties_recurse (o, prefix, identifier, 1);
-}
+  }
+  else
+  {
+    trace (prefix + (prefix != "" ? "." : "") + identifier + " = " +
+	typeof (o[prop]) + value);
+  }
+}


TestImage now uses local file rather than remote to make sure the test can run off anywhere.

--- examples/OpenPyroExample/src/TestImage.as
+++ examples/OpenPyroExample/src/TestImage.as
@@ -15,7 +15,7 @@
 			addChild(image);
 			image.width = 300
 			image.height = 100
-			image.source = "http://img.villagephotos.com/p/2004-7/785459/calvin.jpg"
+			image.source = "assets/calvin.jpg"

 		}


Update idiomesAnimation.as

Update idiomesAnimation.as


added static variable for findFirstDataSet

--- WeaveJS/src/weavejs/data/ColumnUtils.as
+++ WeaveJS/src/weavejs/data/ColumnUtils.as
@@ -718,11 +718,16 @@
 			StandardLib.sortOn(names, [_preferredMetadataPropertyOrder.indexOf, names]);
 		}

+		public static var firstDataSet:Array/*/<IColumnReference>/*/;
+
 		/**
 		 * Finds a set of columns from available data sources, preferring ones that are already in use.
 		 */
 		public static function findFirstDataSet(root:ILinkableHashMap):Array/*/<IColumnReference>/*/
 		{
+			if (firstDataSet && firstDataSet.length)
+				return firstDataSet;
+
 			var ref:IColumnReference;
 			for each (var column:ReferencedColumn in Weave.getDescendants(root, ReferencedColumn))
 			{


Cleanup

Cleanup

--- sandbox/init.as
+++ sandbox/init.as
@@ -68,59 +68,3 @@

 }
-
-/*
-	default_stage.view_mat = noob::look_at(noob::vec3(0.0, 0.0, -200.0), noob::vec3(0.0, 0.0, 0.0), noob::vec3(0.0, 1.0, 0.0)); //look_at(const vec3& cam_pos, vec3 targ_pos, const vec3& up)
-
-	default_stage.show_origin = false;
-	noob::graphics::load_texture("grad_map", "gradient_map.dds", BGFX_TEXTURE_NONE);
-
-	noob::triplanar_gradient_map_renderer::uniform moon_shader;
-
-	moon_shader.colours[0] = noob::vec4(1.0, 1.0, 1.0, 0.0);
-	moon_shader.colours[1] = noob::vec4(0.0, 0.0, 0.0, 0.0);
-	moon_shader.colours[2] = noob::vec4(0.0, 0.0, 0.0, 0.0);
-	moon_shader.colours[3] = noob::vec4(0.0, 0.0, 0.0, 0.0);
-	moon_shader.blend = noob::vec4(0.0, 0.0, 1.0, 0.0);
-	moon_shader.scales = noob::vec4(1.0/100.0, 1.0/100.0, 1.0/100.0, 0.0);
-	moon_shader.colour_positions = noob::vec4(0.5, 0.8, 0.0, 0.0);
-	moon_shader.texture_map = noob::graphics::get_texture("grad_map");
-
-	default_stage.set_shader(moon_shader, "moon");
-
-	noob::triplanar_gradient_map_renderer::uniform purple_shader;
-	purple_shader.colours[0] = noob::vec4(1.0, 1.0, 1.0, 0.0);
-	purple_shader.colours[1] = noob::vec4(1.0, 0.0, 1.0, 0.0);
-	purple_shader.colours[2] = noob::vec4(1.0, 0.0, 1.0, 0.0);
-	purple_shader.colours[3] = noob::vec4(0.0, 0.0, 1.0, 0.0);
-	purple_shader.blend = noob::vec4(0.2, 0.0, 0.5, 0.0);
-	purple_shader.scales = noob::vec4(1.0/4.0, 1.0/4.0, 1.0/4.0, 0.0);
-	purple_shader.colour_positions = noob::vec4(0.2, 0.7, 0.0, 0.0);
-	purple_shader.texture_map = moon_shader.texture_map;
-
-	default_stage.set_shader(purple_shader, "purple");
-
-	noob::basic_mesh temp = noob::mesh_utils::cone(50.0, 100.0);
-	temp.translate(noob::vec3(0.0, 10.0, 0.0));
-	temp.rotate(noob::versor(0.3333, 0.3333, 0.3333, 0.0));
-	noob::basic_mesh scene_mesh = temp;
-	auto scenery_h = default_stage.scenery(default_stage.add_mesh(scene_mesh), noob::vec3(0.0, 0.0, 0.0), "moon");
-
-	std::random_device rd;
-	std::mt19937 gen(rd());
-	std::uniform_real_distribution<> dis(-10.0, 10.0);
-
-	for (size_t i = 0 ; i < 500; ++i)
-	{
-		auto h = default_stage.box(4.0, 4.0, 4.0);
-		float x_pos = dis(gen) * 10.0;
-		x_pos += std::copysign(1.0, x_pos)*7.0;
-		float z_pos = dis(gen) * 10.0;
-		z_pos += std::copysign(1.0, z_pos)*7.0;
-
-		auto temp_body = default_stage.body(noob::body_type::DYNAMIC, h, 1.0, noob::vec3(x_pos, 250.0, z_pos), noob::versor(0.0, 0.0, 0.0, 1.0)); //, true);
-
-		default_stage.bodies.get(temp_body);
-		default_stage.prop(temp_body, "purple");
-	}
-*/


Transferred from the Adobe Open Source Subversion Repository

Revision: 7765
Author:   rfrishbe@adobe.com
Date:     2009-06-11T22:58:18.082212Z

Log Message:
-----------
Fixing up some copyrights, adding copyrights, and fixing up some legal-eese for the Flash Component Kit For Flex.

Also, updating the MXP to get latest changes to base classes.

QE Notes: -
Doc Notes: -
Bugs: SDK-21670
Reviewer: No one (just header updates)
tests: checkintest (seem to fail due to local changes to ScrollBar, which I'm not checking in here)

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/JSFL/MakeFlexComponent.jsfl</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/readme.txt</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/flash-integration/readme.txt</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/flash-integration/FlexComponentKit.mxp</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/ContainerMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/FlexComponentKit.mxi</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/JSFL/Convert Symbol to Flex Component.jsfl</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/JSFL/Convert Symbol to Flex Container.jsfl</path>

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

--- frameworks/projects/flash-integration/src/mx/flash/ContainerMovieClip.as
+++ frameworks/projects/flash-integration/src/mx/flash/ContainerMovieClip.as
@@ -32,7 +32,7 @@
 [DefaultProperty("content")]

 /**
- *  Container components created in Adobe Flash CS3 Professional for use in Flex
+ *  Container components created in Adobe Flash Professional for use in Flex
  *  are subclasses of the mx.flash.ContainerMovieClip class.
  *  You can use a subclass of ContainerMovieClip
  *  as a Flex container, it can hold children,
@@ -50,14 +50,14 @@
  *  and Rotate effects with Flex components.

  *
  *
The following procedure describes the basic process for creating
- *  a Flex component in Flash CS3:

+ *  a Flex component in Flash Professional:

  *
  *

  *
Install the Adobe Flash Workflow Integration Kit.

  *
Create symbols for your dynamic assets in the FLA file.

  *
Run Commands > Make Flex Container to convert your symbol
  *      to a subclass of the ContainerMovieClip class, to configure
- *      the Flash CS3 publishing settings for use with Flex, and
+ *      the Flash Professional publishing settings for use with Flex, and
  *      add a new symbol named FlexContentHolder to the Library.
  *      This symbol defines the content area of the container in which
  *      you can place child Flex components..


Transferred from the Adobe Open Source Subversion Repository

Revision: 22564
Author:   tkraikit@adobe.com
Date:     2011-09-14T19:50:07.656843Z

Log Message:
-----------
Update ASDoc "@productversion Flex 4.5.2" => "@productversion Flex 4.6"

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/SpinnerListSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/LabelItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/collections/OnDemandDataProvider.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/DateSpinnerSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/framework/src/mx/graphics/BitmapScaleMode.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/ContentBackgroundAppearance.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/framework/src/mx/core/FlexVersion.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/ArrowDirection.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/globalization/supportClasses/FormatPattern.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/DefaultTransparentNavigationButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/supportClasses/DropDownController.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/core/ISoftKeyboardHintClient.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/CalloutArrow.as</path>
<path kind="file" action="M">/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/mobiletheme/src/spark/skins/mobile/CalloutActionBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/calendarClasses/YearProvider.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/calendarClasses/DateSelectorDisplayMode.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/ToggleSwitch.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/DefaultBeveledBackButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/SpinnerListScrollerSkin.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/ScrollSnappingMode.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/StageTextSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/DefaultTransparentActionButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/StageTextAreaSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/SpinnerListContainer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/List.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/ToggleSwitchSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/calendarClasses/DateAndTimeProvider.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/CalloutViewNavigatorSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/SpinnerListContainerSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/CalloutPosition.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/preloaders/SplashScreenImageSource.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/DataGroup.as</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/mobilecomponents/src/spark/components/SplitViewNavigator.as</path>
<path kind="file" action="M">/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/projects/mobiletheme/src/spark/skins/mobile/StageTextInputSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/collections/NumericDataProvider.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableStageText.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/preloaders/SplashScreenImage.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/calendarClasses/DateSpinnerItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/SpinnerList.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/DateSpinner.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/globalization/supportClasses/CalendarDate.as</path>
<path kind="file" action="M">/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/spark/skins/mobile/DefaultBeveledActionButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/SpinnerListItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/globalization/supportClasses/DateTimeFormatterEx.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/SpinnerList.as
+++ frameworks/projects/mobilecomponents/src/spark/components/SpinnerList.as
@@ -58,7 +58,7 @@
  *
  *  @langversion 3.0
  *  @playerversion AIR 3
- *  @productversion Flex 4.5.2
+ *  @productversion Flex 4.6
  */
 public class SpinnerList extends ListBase
 {
@@ -67,7 +67,7 @@
 	 *
 	 *  @langversion 3.0
 	 *  @playerversion AIR 3
-	 *  @productversion Flex 4.5.2
+	 *  @productversion Flex 4.6
 	 */
 	public function SpinnerList()
 	{
@@ -116,7 +116,7 @@
 	 *
 	 *  @langversion 3.0
 	 *  @playerversion AIR 3
-	 *  @productversion Flex 4.5.2
+	 *  @productversion Flex 4.6
 	 */
 	public var scroller:Scroller;

@@ -139,7 +139,7 @@
 	 *
 	 *  @langversion 3.0
 	 *  @playerversion AIR 3
-	 *  @productversion Flex 4.5.2
+	 *  @productversion Flex 4.6
 	 *
 	 *  @default true
 	 */


FLEX-28946 commited patch by Mark Kessler

--- frameworks/projects/mx/src/mx/controls/dataGridClasses/DataGridColumn.as
+++ frameworks/projects/mx/src/mx/controls/dataGridClasses/DataGridColumn.as
@@ -1817,8 +1817,8 @@
         if ( !obj2 )
             return -1;

-        var obj1Data:String = deriveComplexColumnData( obj1 ).toString();
-        var obj2Data:String = deriveComplexColumnData( obj2 ).toString();
+        var obj1Data:String = String(deriveComplexColumnData( obj1 ));
+        var obj2Data:String = String(deriveComplexColumnData( obj2 ));

         if ( obj1Data < obj2Data )
             return -1;


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

--- frameworks/projects/mx/src/mx/styles/metadata/ModalTransparencyStyles.as
+++ frameworks/projects/mx/src/mx/styles/metadata/ModalTransparencyStyles.as
@@ -0,0 +1,52 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+/**
+ *  Modality of components launched by the PopUp Manager is simulated by
+ *  creating a large translucent overlay underneath the component.
+ *  Because of the way translucent objects are rendered, you may notice a slight
+ *  dimming of the objects under the overlay.
+ *  The effective transparency can be set by changing the
+ *  modalTransparency value from 0.0 (fully transparent)
+ *  to 1.0 (fully opaque).
+ *  You can also set the color of the overlay by changing the
+ *  modalTransparencyColor style.
+ *
+ *  @default 0.5
+ */
+[Style(name="modalTransparency", type="Number", inherit="yes")]
+
+/**
+ *  The blur applied to the application while a modal window is open.
+ *  A Blur effect softens the details of an image.
+ *
+ *  @see flash.filters.BlurFilter
+ *
+ *  @default 3
+ */
+[Style(name="modalTransparencyBlur", type="Number", inherit="yes")]
+
+/**
+ *  Color of the modal overlay layer. This style is used in conjunction
+ *  with the modalTransparency style to determine the colorization
+ *  applied to the application when a modal window is open.
+ *
+ *  @default #DDDDDD
+ */
+[Style(name="modalTransparencyColor", type="uint", format="Color", inherit="yes")]
+
+/**
+ *  Duration, in milliseconds, of the modal transparency effect that
+ *  plays when a modal window opens or closes.
+ *
+ *  @default 100
+ */
+[Style(name="modalTransparencyDuration", type="Number", format="Time", inherit="yes")]


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

--- frameworks/projects/rpc/src/mx/messaging/events/MessagePersisterEvent.as
+++ frameworks/projects/rpc/src/mx/messaging/events/MessagePersisterEvent.as
@@ -0,0 +1,173 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2005-2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.messaging.events
+{
+
+import flash.events.Event;
+import mx.messaging.messages.IMessage;
+
+[ExcludeClass]
+
+/**
+ *  Represents events that are dispatched as a result of invoking operations
+ *  on a MessagePersister.
+ *
+ *  @see mx.messaging.MessagePersister
+ * @private
+ */
+public class MessagePersisterEvent extends Event
+{
+    /**
+     *  Normally called internally and not used in application code. This event is
+     *  generated to report a successful result for a load() invocation or succes or fault
+     *  for invoking operations on a MessagePersister.
+     *
+     *  @see mx.messaging.MessagePersister
+     *
+     *  @param The event type of the event.
+     *
+     *  @param bubbles Specifies whether the event can bubble up the display
+     *  list hierarchy.
+     *
+     *  @param cancelable Indicates whether the behavior associated with the
+     *  event can be prevented.
+     *
+     *  @param The Id for the message agent that invoked the operation.
+     *
+     *  @param The operation that the message agent invoked.
+     */
+    public function MessagePersisterEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false,
+            id:String = null, operation:String = null)
+    {
+        super(type, bubbles, cancelable);
+
+        _id = id;
+        _op = operation;
+    }
+
+    /**
+     *  The Id for the message agent that invoked the operation.
+     */
+    public function get id():String
+    {
+        return _id;
+    }
+
+    /**
+     *  The operation that the message agent invoked.
+     */
+    public function get operation():String
+    {
+        return _op;
+    }
+
+    /**
+     *  The messages associated with an event having status RESULT.
+     */
+    public function set messages(value:Array):void
+    {
+        _messages = value;
+    }
+
+    public function get messages():Array
+    {
+        return _messages;
+    }
+
+    /**
+     *  The source message that was passed to save
+     *  that was successfully saved or faulted.
+     */
+    public function set message(value:IMessage):void
+    {
+        _message = message;
+    }
+
+    public function get message():IMessage
+    {
+        return _message;
+    }
+
+    /**
+     * @private
+     */
+    public function get messageId():String
+    {
+        if (_message != null)
+        {
+            return _message.messageId;
+        }
+        return null;
+    }
+
+    /**
+     * @private
+     */
+    public function get messageCount():int
+    {
+        if (_messages != null)
+        {
+            return _messages.count;
+        }
+        return 0;
+    }
+
+    public static function createEvent(type:String, id:String, operation:String):MessagePersisterEvent
+    {
+        return new MessagePersisterEvent(type, false, false, id, operation);
+    }
+
+    /**
+     *  @private
+     */
+    override public function clone():Event
+    {
+        var cloneEvent:MessagePersisterEvent = new MessagePersisterEvent(type, bubbles, cancelable, _id, _op);
+        if (_messages)
+        {
+            cloneEvent.messages = _messages;
+        }
+        return cloneEvent;
+    }
+
+    override public function toString():String
+    {
+        return formatToString("MessagePersisterEvent", "id", "operation", "messageId", "messageCount", "type", "bubbles", "cancelable", "eventPhase");
+    }
+
+    // Status constants.
+    /**
+     *  The SUCCESS status indicates that an operation invoked on a
+     *  message persister completed without errors.
+     */
+    public static const SUCCESS:String = "success";
+
+    /**
+     *  The RESULT status indicates that a load operation
+     *  invoked on a message persister is returning an array of stored messages.
+     */
+    public static const RESULT:String = "result";
+
+    /**
+     *  The FAULT status indicates that an operation invoked on a
+     *  message persister failed.
+     */
+    public static const FAULT:String = "fault";
+
+    // private members
+    private var _id:String;
+    private var _op:String;
+    private var _messages:Array;
+    private var _message:IMessage;
+}
+
+}


Fixed editor warning.

Fixed editor warning.

--- Bin/Data/Scripts/Editor/EditorResourceBrowser.as
+++ Bin/Data/Scripts/Editor/EditorResourceBrowser.as
@@ -527,7 +527,7 @@
     UIElement@ resourceDirs = browserFilterWindow.GetChild("DirFilters", true);
     resourceDirs.RemoveAllChildren();
     activeResourceDirFilters.Clear();
-    for (int i=0; i < cache.resourceDirs.length; ++i)
+    for (uint i=0; i < cache.resourceDirs.length; ++i)
     {
         UIElement@ resourceDirHolder = UIElement();
         resourceDirs.AddChild(resourceDirHolder);


now delaying script execution while vars are busy

Change-Id: Ib33726c9879851c324b298f7a2387ef0b4a98588

--- WeaveUI/src/weave/visualization/tools/CustomGraphicsTool.as
+++ WeaveUI/src/weave/visualization/tools/CustomGraphicsTool.as
@@ -31,6 +31,7 @@
 	import weave.api.data.IKeySet;
 	import weave.api.detectLinkableObjectChange;
 	import weave.api.getCallbackCollection;
+	import weave.api.linkableObjectIsBusy;
 	import weave.api.newLinkableChild;
 	import weave.api.registerLinkableChild;
 	import weave.api.reportError;
@@ -52,11 +53,7 @@

 		public const vars:LinkableHashMap = newLinkableChild(this,LinkableHashMap);
 		public const drawScript:LinkableFunction = registerLinkableChild(this, new LinkableFunction(defaultScript, false, true));
-
-		// for use inside scripts
-		private var _locals:Object = {};
-		public function get locals():Object { return _locals; }
-
+
 		public const dataBounds:Bounds2D = new Bounds2D();
 		public const screenBounds:Bounds2D = new Bounds2D();
 		public const buffer:GraphicsBuffer = new GraphicsBuffer();
@@ -66,6 +63,7 @@
 		public const textGraphics:TextGraphics = new TextGraphics();
 		public const canvas:Canvas = new Canvas();
 		public var keys:Array;
+		public var locals:Object; // for use inside scripts

 		public function getSelectableAttributes():Array
 		{
@@ -130,9 +128,9 @@
 			if (!scriptChanged && !varsChanged && _prevSize.x == unscaledWidth && _prevSize.y == unscaledHeight)
 				return;

-			// reset local variables if script changes
-			if (scriptChanged)
-				_locals = {};
+			// wait until vars are not busy
+			if (linkableObjectIsBusy(vars))
+				return;

 			// remember current size for next time
 			_prevSize.x = unscaledWidth;
@@ -154,6 +152,10 @@
 					PlotterUtils.clearBitmapData(bitmap);
 				}

+				// reset locals when script changes
+				if (!locals || scriptChanged)
+					locals = {};
+
 				// when the vars hash map changes, get the keys from all the columns in it
 				if (varsChanged)
 					keys = ColumnUtils.getAllKeys(vars.getObjects(IKeySet));


correct typo for word "visibility" in a comment

--- activities/module-2/series-measuring/ComponentMultimeter.as
+++ activities/module-2/series-measuring/ComponentMultimeter.as
@@ -37,7 +37,7 @@
 		}

 		//visibility can be set from the javascript as follows:
-		//flash.sendCommand('set_multimeter_visiblity','true');
+		//flash.sendCommand('set_multimeter_visibility','true');
 		//
 		//or in flash with
 		//circuit.getMultimeter().setVisibility('true');


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

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

 package mx.controls.listClasses
 {


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

--- frameworks/projects/automation/src/mx/automation/delegates/containers/FormItemAutomationImpl.as
+++ frameworks/projects/automation/src/mx/automation/delegates/containers/FormItemAutomationImpl.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  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.
+//  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.
 //
 ////////////////////////////////////////////////////////////////////////////////


fixed bug - StandardLib.substitute didn't support passing in a single Array of params

--- WeaveCore/src/weave/compiler/StandardLib.as
+++ WeaveCore/src/weave/compiler/StandardLib.as
@@ -169,6 +169,8 @@
 		 */
 		public static function substitute(format:String, ...args):String
 		{
+			if (args.length == 1 && args[0] is Array)
+				args = args[0] as Array;
 			var split:Array = format.split('{')
 			var output:String = split[0];
 			for (var i:int = 1; i < split.length; i++)


Make URL loading ProgressEvents available.

--- runtime/src/main/as/flump/display/LibraryLoader.as
+++ runtime/src/main/as/flump/display/LibraryLoader.as
@@ -68,7 +68,15 @@
     }

     /**
-     * Dispatched when a file is found in the Zip archive that is not recognized by Flump
+     * Dispatched when a ProgressEvent is received on a URL load of a Zip archive.
+     *
+     * Signal parameters:
+     *  * event :flash.events.ProgressEvent
+     */
+    public const urlLoadProgressed :Signal = new Signal();
+
+    /**
+     * Dispatched when a file is found in the Zip archive that is not recognized by Flump.
      *
      * Signal parameters:
      *  * name :String - the filename in the archive
@@ -216,6 +224,7 @@

 import flash.events.Event;
 import flash.events.IOErrorEvent;
+import flash.events.ProgressEvent;
 import flash.geom.Point;
 import flash.geom.Rectangle;
 import flash.net.URLRequest;
@@ -333,9 +342,14 @@
         _zip.addEventListener(IOErrorEvent.IO_ERROR, _future.fail);
         _zip.addEventListener(FZipErrorEvent.PARSE_ERROR, _future.fail);
         _zip.addEventListener(FZipEvent.FILE_LOADED, _future.monitoredCallback(onFileLoaded));
+        _zip.addEventListener(ProgressEvent.PROGRESS, _future.monitoredCallback(onProgress))

         if (_toLoad is String) _zip.load(new URLRequest(String(_toLoad)));
         else _zip.loadBytes(ByteArray(_toLoad));
+    }
+
+    protected function onProgress (e :ProgressEvent) :void {
+        _libLoader.urlLoadProgressed.dispatch(e);
     }

     protected function onFileLoaded (e :FZipEvent) :void {


Correct live BEF logic to get same segment as liveEdge selects.

--- HLSPlugin/src/com/kaltura/hls/HLSIndexHandler.as
+++ HLSPlugin/src/com/kaltura/hls/HLSIndexHandler.as
@@ -1013,7 +1013,7 @@
 						// Get last item less MAX_SEG_BUFFER
 						if(segments.length > 0 && !manifest.streamEnds)
 						{
-							var bufferSeg:HLSManifestSegment = segments[Math.max(0, segments.length - HLSManifestParser.MAX_SEG_BUFFER)];
+							var bufferSeg:HLSManifestSegment = segments[Math.max(0, segments.length - (1 + HLSManifestParser.MAX_SEG_BUFFER))];
 							return initiateBestEffortRequest(bufferSeg.id, origQuality, segments, manifest);
 						}
 						else


Transferred from the Adobe Open Source Subversion Repository

Revision: 12877
Author:   gruehle@adobe.com
Date:     2009-12-12T02:32:13.399744Z

Log Message:
-----------
Fix measure/layout issues with Alert and graphic skins.

QE notes: No
Doc notes: No
Bugs: SDK-24567
Reviewer: Jason
Tests run: checkintests, mustella Alert
Is noteworthy for integration: No

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Alert.as

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

--- frameworks/projects/mx/src/mx/controls/Alert.as
+++ frameworks/projects/mx/src/mx/controls/Alert.as
@@ -12,26 +12,24 @@
 package mx.controls
 {

-import flash.display.DisplayObject;
-import flash.geom.Rectangle;
 import flash.display.Sprite;
 import flash.events.Event;
 import flash.events.EventPhase;
+
 import mx.containers.Panel;
 import mx.controls.alertClasses.AlertForm;
 import mx.core.EdgeMetrics;
 import mx.core.FlexGlobals;
+import mx.core.FlexVersion;
 import mx.core.IFlexDisplayObject;
 import mx.core.IFlexModule;
 import mx.core.IFlexModuleFactory;
+import mx.core.UIComponent;
 import mx.core.mx_internal;
-import mx.core.UIComponent;
 import mx.events.CloseEvent;
 import mx.events.FlexEvent;
-import mx.graphics.RadialGradient;
 import mx.managers.ISystemManager;
 import mx.managers.PopUpManager;
-import mx.managers.SystemManager;
 import mx.resources.IResourceManager;
 import mx.resources.ResourceManager;

@@ -857,6 +855,16 @@

         measuredHeight = alertForm.getExplicitOrMeasuredHeight() +
                          m.top + m.bottom;
+
+        if (FlexVersion.compatibilityVersion >= FlexVersion.VERSION_4_0)
+        {
+            // Graphic skins don't include border (and header) in viewMetrics
+            // Check for that here by testing the headerHeight style, and
+            // add the headerHeight to the measuredHeight if needed.
+            var headerHeight:Number = getStyle("headerHeight");
+            if (m.top == 0)
+                measuredHeight += headerHeight;
+        }
     }

     /**


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

--- frameworks/projects/mx/src/mx/controls/HRule.as
+++ frameworks/projects/mx/src/mx/controls/HRule.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: 10265
Author:   smgilson@adobe.com
Date:     2009-09-15T15:58:28.936132Z

Log Message:
-----------
ASDoc comments for NavigatorContent.as, INavigatorContent.as, and Container.as

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/INavigatorContent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/NavigatorContent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>

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

--- frameworks/projects/mx/src/mx/core/Container.as
+++ frameworks/projects/mx/src/mx/core/Container.as
@@ -500,14 +500,14 @@
         showInAutomationHierarchy = false;

         // If available, get soft-link to the RichEditableText class
-		// to use in keyDownHandler().
+        // to use in keyDownHandler().
         if (ApplicationDomain.currentDomain.hasDefinition(
-				"spark.components.RichEditableText"))
-		{
+                "spark.components.RichEditableText"))
+        {
             richEditableTextClass =
-				Class(ApplicationDomain.currentDomain.getDefinition(
-					"spark.components.RichEditableText"));
-		}
+                Class(ApplicationDomain.currentDomain.getDefinition(
+                    "spark.components.RichEditableText"));
+        }
     }

     //--------------------------------------------------------------------------
@@ -798,7 +798,7 @@
         invalidateProperties();

         if (border && border is IInvalidating)
-        	IInvalidating(border).invalidateDisplayList();
+            IInvalidating(border).invalidateDisplayList();
     }

     //----------------------------------
@@ -2377,7 +2377,7 @@
         }
     }

-	/**
+    /**
      *  @private
      *  We're doing special behavior on addEventListener to make sure that
      *  we successfully capture mouse events, even when there's no background.
@@ -2430,8 +2430,8 @@
             }
         }
     }
-
-	 /**
+
+     /**
      *  @private
      *  We're doing special behavior on removeEventListener to make sure that
      *  we successfully capture mouse events, even when there's no background.
@@ -3371,9 +3371,9 @@
         {
             vm = viewMetrics;

-			if (FlexVersion.compatibilityVersion >= FlexVersion.VERSION_4_0)
-				vm = EdgeMetrics.EMPTY;
-
+            if (FlexVersion.compatibilityVersion >= FlexVersion.VERSION_4_0)
+                vm = EdgeMetrics.EMPTY;
+
             var bgColor:Object = enabled ?
                                  null :
                                  getStyle("backgroundDisabledColor");
@@ -4133,9 +4133,11 @@
     }

     /**
-     *  IDeferredContentOwner equivalent of createComponentsFromDescriptor(true)
-     *
-     *  @see createComponentsFromDescriptors
+     *  Performs the equivalent action of calling
+     *  the createComponentsFromDescriptors(true) method for containers
+     *  that implement the IDeferredContentOwner interface to support deferred instantiation.
+     *
+     *  @see #createComponentsFromDescriptors()
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -5537,10 +5539,10 @@
         // experience as browser.
         var focusObj:Object = getFocus();
         if ((focusObj is TextField) ||
-			(richEditableTextClass && focusObj is richEditableTextClass))
-		{
+            (richEditableTextClass && focusObj is richEditableTextClass))
+        {
             return;
-		}
+        }

         // If the KeyBoardEvent can be canceled and a descendant has done so,
         // don't process it at all.


Transferred from the Adobe Open Source Subversion Repository

Revision: 9419
Author:   aharui@adobe.com
Date:     2009-08-20T16:19:04.456854Z

Log Message:
-----------
2nd attempt to check in prototypes of ControlBars in Panel and Application, Spark Containers in Halo Navigators, Halo ViewStack in Spark ButtonBar.  APIs should match spec but are subject to change from PARB.  Skins are subject to tweaking after XD review

QE Notes: The following tests will fail and need updating:
gumbo/containers/Panel/Properties/Panel_Properties_position Panel_Properties_rotate
apollo/spark/components/Window/properties/window_properties_titleIcon_tests titleIcon_test8

Doc Notes: None
Bugs: None
Reviewer: Darrell, Glenn, Ryan
API Change: No
Is noteworthy for integration: No
tests: checkintests mustella/gumbo/components/Application, gumbo/components/ButtonBar, gumbo/containers/Panel, apollo/gumbo/spark/Window, containers/ViewStack, containers/Accordion,
states/Integration/TabNavApp, states/Reparent

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" copyfrom-path="/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/NavigatorChild.as" copyfrom-rev="9399" action="A">/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" action="D">/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" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/INavigatable.as" copyfrom-rev="9399" action="A">/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" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/INavigatorContent.as" copyfrom-rev="9399" action="A">/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" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IDeferredContentOwner.as" copyfrom-rev="9399" action="A">/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@1269265 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/mx/src/mx/core/Container.as
+++ frameworks/projects/mx/src/mx/core/Container.as
@@ -389,7 +389,9 @@
 public class Container extends UIComponent
                        implements IContainer, IDataRenderer,
                        IFocusManagerContainer, IListItemRenderer,
-                       IRawChildrenContainer, IChildList, IVisualElementContainer
+                       IRawChildrenContainer, IChildList, IVisualElementContainer,
+                       INavigatorContent
+
 {
     include "../core/Version.as"

@@ -1305,6 +1307,25 @@
     {
         _defaultButton = value;
         ContainerGlobals.focusedContainer = null;
+    }
+
+    //----------------------------------
+    //  deferredContentCreated
+    //----------------------------------
+
+    /**
+     *  IDeferredContentOwner equivalent of processedDescriptors
+     *
+     *  @see UIComponent#processedDescriptors
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function get deferredContentCreated():Boolean
+    {
+        return processedDescriptors;
     }

     //----------------------------------
@@ -4060,6 +4081,7 @@
         }
     }

+
     /**
      *  Iterate through the Array of childDescriptors,
      *  and call the createComponentFromDescriptor() method for each one.
@@ -4111,6 +4133,22 @@
         numChildrenCreated = numChildren - numChildrenBefore;

         processedDescriptors = true;
+    }
+
+    /**
+     *  IDeferredContentOwner equivalent of createComponentsFromDescriptor(true)
+     *
+     *  @see createComponentsFromDescriptors
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function createDeferredContent():void
+    {
+        createComponentsFromDescriptors(true);
+        dispatchEvent(new FlexEvent(FlexEvent.CONTENT_CREATION_COMPLETE));
     }

    /**


add optionnal hitPoint : Vector4 argument to Geometry.cast() to get the actual ray hit point on the geometry

--- src/aerys/minko/render/geometry/Geometry.as
+++ src/aerys/minko/render/geometry/Geometry.as
@@ -940,7 +940,7 @@
 			_changed.execute(this);
 		}

-		public function cast(ray : Ray, transform : Matrix4x4 = null) : int
+		public function cast(ray : Ray, transform : Matrix4x4 = null, hitPoint : Vector4 = null) : int
 		{
 			var numVertices : uint 	= indexStream._data.length / 2;

@@ -979,7 +979,7 @@

 			var indicesData 	: ByteArray 	= _indexStream.lock();
 			var xyzData			: ByteArray		= xyzVertexStream.lock();
-			var maxDistance		: Number 		= Number.POSITIVE_INFINITY;
+			var minDistance		: Number 		= Number.POSITIVE_INFINITY;
 			var triangleIndice	: int 			= -3;

 			for (var verticeIndex : uint = 0; verticeIndex < numVertices; verticeIndex += 3)
@@ -1043,14 +1043,26 @@

 				t =  (edge2X * qvecX + edge2Y * qvecY + edge2Z * qvecZ) * invDet;

-				if (t < maxDistance)
+				if (t < minDistance)
 				{
-					maxDistance = t;
+					minDistance = t;
 					triangleIndice = verticeIndex;
 				}
 			}
+
+			if (triangleIndice > 0 && hitPoint)
+			{
+				var origin 		: Vector4 	= ray.origin;
+				var direction 	: Vector4	= ray.direction;
+
+				hitPoint.x = origin.x + minDistance * direction.x;
+				hitPoint.y = origin.y + minDistance * direction.y;
+				hitPoint.z = origin.z + minDistance * direction.z;
+			}
+
 			_indexStream.unlock(false);
 			xyzVertexStream.unlock(false);
+
 			return triangleIndice / 3;
 		}


fixed error in Location update where new argument was not included

--- flexEditor/src/org/arisgames/editor/services/AppServices.as
+++ flexEditor/src/org/arisgames/editor/services/AppServices.as
@@ -165,7 +165,7 @@
         else
         {
             trace("This Location has an Id (" + loc.locationId + "), so call update Location.");
-            l = AppDAO.getInstance().getLocationServer().updateLocation(gid, loc.locationId, loc.name, loc.iconMediaId, loc.latitude, loc.longitude, loc.error, loc.type, loc.typeId, loc.quantity, loc.hidden, loc.forceView);
+            l = AppDAO.getInstance().getLocationServer().updateLocation(gid, loc.locationId, loc.name, loc.iconMediaId, loc.latitude, loc.longitude, loc.error, loc.type, loc.typeId, loc.quantity, loc.hidden, loc.forceView,0);
         }
         l.addResponder(resp);
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 6209
Author:   dloverin@adobe.com
Date:     2009-04-23T14:54:07.681304Z

Log Message:
-----------
Small AIR Skin changes.

FlexChromeSkin:
•       Add HostComponent metadata and remove fxComponent. This was missed because FlexChromeSkin was not in AIRFrameworkClasses.as.

MacMaximizeButtonSkin:
MacMinimizeButtonSkin:
MaximizeButtonSkin:
MinimizeButtonSkin:
•       Add disabled button image. Needed when the native window is not minimizable or maximizable.

MacTitleBarSkin:
TitleBarSkin:
•       HostComponent was referencing the Halo TitleBar not the Spark TitleBar

AIRFrameworkClasses.as
•       Add FlexChromeSkin

QE Notes: None.
Doc Notes: None.
Bugs: NA
Reviewer: Glenn
tests: checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/default/FlexChromeSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/AIRFrameworkClasses.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/default/MinimizeButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/default/MacMinimizeButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/default/MaximizeButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/default/MacMaximizeButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/default/TitleBarSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/default/MacTitleBarSkin.mxml</path>

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

--- frameworks/projects/airframework/src/AIRFrameworkClasses.as
+++ frameworks/projects/airframework/src/AIRFrameworkClasses.as
@@ -31,6 +31,7 @@
     import mx.skins.halo.WindowMaximizeButtonSkin; WindowMaximizeButtonSkin;
     import mx.skins.halo.WindowRestoreButtonSkin; WindowRestoreButtonSkin;
     import spark.skins.default.CloseButtonSkin; CloseButtonSkin;
+    import spark.skins.default.FlexChromeSkin; FlexChromeSkin;
     import spark.skins.default.GripperSkin; GripperSkin;
     import spark.skins.default.MacCloseButtonSkin; MacCloseButtonSkin;
     import spark.skins.default.MacMaximizeButtonSkin; MacMaximizeButtonSkin;


Transferred from the Adobe Open Source Subversion Repository

Revision: 10376
Author:   rfrishbe@adobe.com
Date:     2009-09-18T02:45:26.180200Z

Log Message:
-----------
Two AIR bug fixes around Window.open().

1.  When open() is called on a closed window, nothing happens.  We decided this is NAB, so I’m just clarifying the docs.
2.  Adding a WINDOW_CREATING event for automation.  The WINDOW_CREATE event happens too late in the game for them (this is thrown in the enterFrameHandler).  They wanted something more synchronous so they could catch what was happening based on the user-interaction more immediately.

QE notes: -
Doc notes: -
Bugs: SDK-23137, SDK-14440
Reviewer: Darrell
Tests run: checkintests, ran a small subset of AIR halo and spark Window tests
Is noteworthy for integration: no

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/events/WindowExistenceEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/Window.as</path>

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

--- frameworks/projects/airspark/src/spark/components/Window.as
+++ frameworks/projects/airspark/src/spark/components/Window.as
@@ -2083,6 +2083,10 @@

     /**
      *  Creates the underlying NativeWindow and opens it.
+     *
+     *  After being closed, the Window object is still a valid reference, but
+     *  accessing most properties and methods will not work.
+     *  Closed windows cannot be reopened.
      *
      *  @param  openWindowActive specifies whether the Window opens
      *  activated (that is, whether it has focus). The default value
@@ -2094,6 +2098,15 @@
      */
     public function open(openWindowActive:Boolean = true):void
     {
+        // Event for Automation so we know when windows
+        // are created or destroyed.
+        if (FlexGlobals.topLevelApplication)
+        {
+            FlexGlobals.topLevelApplication.dispatchEvent(
+                new WindowExistenceEvent(WindowExistenceEvent.WINDOW_CREATING,
+                    false, false, this));
+        }
+
         flagForOpen = true;
         openActive = openWindowActive;
         commitProperties();


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

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

 package mx.core
 {


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

--- frameworks/projects/framework/src/mx/graphics/BitmapFill.as
+++ frameworks/projects/framework/src/mx/graphics/BitmapFill.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2005-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: 5838
Author:   aharui@adobe.com
Date:     2009-04-01T16:38:45.177172Z

Log Message:
-----------
Three button bar bugs

QE Notes: None
Doc Notes: None
Bugs: sdk-20231, sdk-20240, sdk-19694
Reviewer: alex
tests: checkintests, mustella/gumbo/buttonbar

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/ButtonBar.as

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

--- frameworks/projects/spark/src/spark/components/ButtonBar.as
+++ frameworks/projects/spark/src/spark/components/ButtonBar.as
@@ -11,6 +11,7 @@

 package spark.components
 {
+import flash.display.InteractiveObject;
 import flash.events.Event;
 import flash.events.EventPhase;
 import flash.events.IEventDispatcher;
@@ -27,10 +28,27 @@
 import mx.core.mx_internal;
 import mx.events.CollectionEvent;
 import mx.events.CollectionEventKind;
+import mx.events.ItemClickEvent;
 import spark.events.RendererExistenceEvent;
 import mx.managers.IFocusManagerComponent;

 [IconFile("ButtonBar.png")]
+
+//--------------------------------------
+//  Events
+//--------------------------------------
+
+/**
+ *  Dispatched when a navigation item is selected.
+ *
+ *  @eventType mx.events.ItemClickEvent.ITEM_CLICK
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+[Event(name="itemClick", type="mx.events.ItemClickEvent")]

 /**
  *  The ButtonBar control displays a set of Buttons
@@ -76,8 +94,8 @@
         addEventListener(KeyboardEvent.KEY_DOWN, buttonBar_keyDownHandler);
         addEventListener(KeyboardEvent.KEY_UP, buttonBar_keyUpHandler);

-		tabChildren = false;
-		tabEnabled = true;
+        tabChildren = false;
+        tabEnabled = true;
     }

     //--------------------------------------------------------------------------
@@ -92,12 +110,33 @@
      */
     private var focusedIndex:int = 0;

+    /**
+     *  @private
+     */
+    private var inKeyUpHandler:Boolean;
+
     //--------------------------------------------------------------------------
     //
     //  Properties
     //
     //--------------------------------------------------------------------------

+    //----------------------------------
+    //  arrowKeysWrapFocus
+    //----------------------------------
+
+    /**
+     * If true, using arrow keys to navigate within
+     * the ButtonBar will wrap around when it hits
+     * either end.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public var arrowKeysWrapFocus:Boolean;
+
     //----------------------------------
     //  firstButton
     //----------------------------------
@@ -153,22 +192,22 @@
     //
     //--------------------------------------------------------------------------

-	private var requiresSelectionChanging:Boolean;
-
-	//----------------------------------
+    private var requiresSelectionChanging:Boolean;
+
+    //----------------------------------
     //  requiresSelection
     //----------------------------------
-
+
     /**
      *  @private
      */
     override public function set requiresSelection(value:Boolean):void
-	{
-		super.requiresSelection = value;
-		requiresSelectionChanging = true;
-	}
-
-	//----------------------------------
+    {
+        super.requiresSelection = value;
+        requiresSelectionChanging = true;
+    }
+
+    //----------------------------------
     //  dataProvider
     //----------------------------------

@@ -180,7 +219,7 @@
         if (dataProvider)
             dataProvider.removeEventListener(CollectionEvent.COLLECTION_CHANGE, resetCollectionChangeHandler);

-		// not really a default handler, we just want it to run after the datagroup
+        // not really a default handler, we just want it to run after the datagroup
         if (value)
             value.addEventListener(CollectionEvent.COLLECTION_CHANGE, resetCollectionChangeHandler, false, EventPriority.DEFAULT_HANDLER);

@@ -191,42 +230,42 @@
      *  @private
      */
     private function resetCollectionChangeHandler(event:Event):void
-	{
+    {
         if (event is CollectionEvent)
         {
             var ce:CollectionEvent = CollectionEvent(event);

             if (ce.kind == CollectionEventKind.ADD ||
-				ce.kind == CollectionEventKind.REMOVE)
-			{
-				// force reset here so first/middle/last skins
-				// get reassigned
-				ce = new CollectionEvent(CollectionEvent.COLLECTION_CHANGE);
-				ce.kind = CollectionEventKind.RESET;
-				dataProvider.dispatchEvent(ce);
-			}
-		}
-	}
+                ce.kind == CollectionEventKind.REMOVE)
+            {
+                // force reset here so first/middle/last skins
+                // get reassigned
+                ce = new CollectionEvent(CollectionEvent.COLLECTION_CHANGE);
+                ce.kind = CollectionEventKind.RESET;
+                dataProvider.dispatchEvent(ce);
+            }
+        }
+    }

     /**
      *  @private
      */
     override protected function commitProperties():void
     {
-		super.commitProperties();
+        super.commitProperties();

         if (requiresSelectionChanging && dataProvider)
-		{
-			requiresSelectionChanging = false;
-			var n:int = dataProvider.length;
-			for (var i:int = 0; i < n; i++)
-			{
-				var renderer:IItemRenderer =
-					dataGroup.getElementAt(i) as IItemRenderer;
-				if (renderer)
-					renderer.allowDeselection = !requiresSelection;
-			}
-		}
+        {
+            requiresSelectionChanging = false;
+            var n:int = dataProvider.length;
+            for (var i:int = 0; i < n; i++)
+            {
+                var renderer:IItemRenderer =
+                    dataGroup.getElementAt(i) as IItemRenderer;
+                if (renderer)
+                    renderer.allowDeselection = !requiresSelection;
+            }
+        }
     }

     /**
@@ -234,7 +273,7 @@
      */
     override public function drawFocus(isFocused:Boolean):void
     {
-		adjustLayering(focusedIndex);
+        adjustLayering(focusedIndex);
         drawButtonFocus(focusedIndex, isFocused);
     }

@@ -247,11 +286,11 @@
         super.itemSelected(index, selected);

         var renderer:IItemRenderer =
-			dataGroup.getElementAt(index) as IItemRenderer;
+            dataGroup.getElementAt(index) as IItemRenderer;

         if (renderer)
         {
-			focusedIndex = index;
+            focusedIndex = index;
             renderer.selected = selected;
         }
     }
@@ -304,17 +343,17 @@
     //--------------------------------------------------------------------------

     private function defaultButtonBarItemRendererFunction(data:Object):IFactory
-	{
-		var i:int = dataProvider.getItemIndex(data);
-		if (i == 0)
-			return firstButton ? firstButton : middleButton;
-
-		var n:int = dataProvider.length - 1;
-		if (i == n)
-			return lastButton ? lastButton : middleButton;
-
-		return middleButton;
-	}
+    {
+        var i:int = dataProvider.getItemIndex(data);
+        if (i == 0)
+            return firstButton ? firstButton : middleButton;
+
+        var n:int = dataProvider.length - 1;
+        if (i == n)
+            return lastButton ? lastButton : middleButton;
+
+        return middleButton;
+    }

     //--------------------------------------------------------------------------
@@ -333,15 +372,15 @@
         var index:int = event.index;

         if (renderer)
-		{
+        {
             renderer.addEventListener("click", item_clickHandler);
-			if (renderer is IFocusManagerComponent)
-				IFocusManagerComponent(renderer).focusEnabled = false;
-			if (renderer is IVisualElement)
-				IVisualElement(renderer).owner = this;
-			if (renderer is IItemRenderer)
-				IItemRenderer(renderer).allowDeselection = !requiresSelection;
-		}
+            if (renderer is IFocusManagerComponent)
+                IFocusManagerComponent(renderer).focusEnabled = false;
+            if (renderer is IVisualElement)
+                IVisualElement(renderer).owner = this;
+            if (renderer is IItemRenderer)
+                IItemRenderer(renderer).allowDeselection = !requiresSelection;
+        }

         if (isItemIndexSelected(index))
             itemSelected(index, true);
@@ -368,65 +407,84 @@
         var index:int = dataGroup.getElementIndex(
                             event.currentTarget as IVisualElement);

-		if (index == selectedIndex)
-		{
-			if (!requiresSelection)
-				selectedIndex = -1;
-		}
-		else
-		{
-			focusedIndex = selectedIndex = index;
-		}
-    }
-
-    /**
-     *  @private
-	 *  Attempt to lift the focused button above the others
-	 *  so that the focus ring can show.
+        var currentRenderer:IItemRenderer;
+        if (focusedIndex >= 0  && !inKeyUpHandler)
+        {
+            currentRenderer = dataGroup.getElementAt(focusedIndex) as IItemRenderer;
+            currentRenderer.showFocusIndicator = false;
+        }
+
+        if (index == selectedIndex)
+        {
+            if (!requiresSelection)
+                selectedIndex = -1;
+        }
+        else
+        {
+            focusedIndex = selectedIndex = index;
+        }
+
+        var newEvent:ItemClickEvent =
+            new ItemClickEvent(ItemClickEvent.ITEM_CLICK);
+        if ("label" in event.currentTarget)
+            newEvent.label = event.currentTarget.label;
+        newEvent.index = index;
+        newEvent.relatedObject = InteractiveObject(event.currentTarget);
+        newEvent.item = dataProvider ?
+                        dataProvider.getItemAt(index) :
+                        null;
+        dispatchEvent(newEvent);
+    }
+
+    /**
+     *  @private
+     *  Attempt to lift the focused button above the others
+     *  so that the focus ring can show.
      */
     private function adjustLayering(focusedIndex:int):void
     {
-		var n:int = dataProvider.length;
-		for (var i:int = 0; i < n; i++)
-		{
-			var renderer:IVisualElement = IVisualElement(dataGroup.getElementAt(i));
-			if (i == focusedIndex)
-				renderer.layer = 1;
-			else
-				renderer.layer = 0;
-		}
-	}
+        var n:int = dataProvider.length;
+        for (var i:int = 0; i < n; i++)
+        {
+            var renderer:IVisualElement = IVisualElement(dataGroup.getElementAt(i));
+            if (i == focusedIndex)
+                renderer.layer = 1;
+            else
+                renderer.layer = 0;
+        }
+    }

     /**
      *  @private
      */
     private function buttonBar_keyDownHandler(event:KeyboardEvent):void
     {
-		var currentRenderer:IItemRenderer;
-		var renderer:IItemRenderer;
-
-		if (event.eventPhase == EventPhase.BUBBLING_PHASE)
-			return;
-
-		if (!enabled)
-			return;
-
+        var currentRenderer:IItemRenderer;
+        var renderer:IItemRenderer;
+
+        if (event.eventPhase == EventPhase.BUBBLING_PHASE)
+            return;
+
+        if (!enabled)
+            return;
+
+        var length:int = dataProvider.length;
         switch (event.keyCode)
         {
             case Keyboard.UP:
             case Keyboard.LEFT:
             {
-				currentRenderer = dataGroup.getElementAt(focusedIndex) as IItemRenderer;
-				if (focusedIndex > 0)
-				{
-					if (currentRenderer)
-						currentRenderer.showFocusIndicator = false;
-					--focusedIndex;
-					adjustLayering(focusedIndex);
-					renderer = dataGroup.getElementAt(focusedIndex) as IItemRenderer;
-					if (renderer)
-						renderer.showFocusIndicator = true;
-				}
+                currentRenderer = dataGroup.getElementAt(focusedIndex) as IItemRenderer;
+                if (focusedIndex > 0 || arrowKeysWrapFocus)
+                {
+                    if (currentRenderer)
+                        currentRenderer.showFocusIndicator = false;
+                    focusedIndex = (focusedIndex - 1 + length) % length;
+                    adjustLayering(focusedIndex);
+                    renderer = dataGroup.getElementAt(focusedIndex) as IItemRenderer;
+                    if (renderer)
+                        renderer.showFocusIndicator = true;
+                }

                 event.stopPropagation();
                 break;
@@ -434,27 +492,27 @@
             case Keyboard.DOWN:
             case Keyboard.RIGHT:
             {
-				currentRenderer = dataGroup.getElementAt(focusedIndex) as IItemRenderer;
-				if (focusedIndex < dataProvider.length - 1)
-				{
-					if (currentRenderer)
-						currentRenderer.showFocusIndicator = false;
-					++focusedIndex;
-					adjustLayering(focusedIndex);
-					renderer = dataGroup.getElementAt(focusedIndex) as IItemRenderer;
-					if (renderer)
-						renderer.showFocusIndicator = true;
-				}
+                currentRenderer = dataGroup.getElementAt(focusedIndex) as IItemRenderer;
+                if (focusedIndex < dataProvider.length - 1 || arrowKeysWrapFocus)
+                {
+                    if (currentRenderer)
+                        currentRenderer.showFocusIndicator = false;
+                    focusedIndex = (focusedIndex + 1) % length;
+                    adjustLayering(focusedIndex);
+                    renderer = dataGroup.getElementAt(focusedIndex) as IItemRenderer;
+                    if (renderer)
+                        renderer.showFocusIndicator = true;
+                }

                 event.stopPropagation();
                 break;
             }
             case Keyboard.SPACE:
             {
-				currentRenderer = dataGroup.getElementAt(focusedIndex) as IItemRenderer;
-				if (!currentRenderer || (currentRenderer.selected && requiresSelection))
-					return;
-				currentRenderer.dispatchEvent(event);
+                currentRenderer = dataGroup.getElementAt(focusedIndex) as IItemRenderer;
+                if (!currentRenderer || (currentRenderer.selected && requiresSelection))
+                    return;
+                currentRenderer.dispatchEvent(event);
                 break;
             }
         }
@@ -465,40 +523,44 @@
      */
     private function buttonBar_keyUpHandler(event:KeyboardEvent):void
     {
-		var currentRenderer:IItemRenderer;
-		var renderer:IItemRenderer;
-
-		if (event.eventPhase == EventPhase.BUBBLING_PHASE)
-			return;
-
-		if (!enabled)
-			return;
+        var currentRenderer:IItemRenderer;
+        var renderer:IItemRenderer;
+
+        if (event.eventPhase == EventPhase.BUBBLING_PHASE)
+            return;
+
+        if (!enabled)
+            return;
+
+        inKeyUpHandler = true;

         switch (event.keyCode)
         {
             case Keyboard.SPACE:
             {
-				currentRenderer = dataGroup.getElementAt(focusedIndex) as IItemRenderer;
-				if (!currentRenderer || (currentRenderer.selected && requiresSelection))
-					return;
-				currentRenderer.dispatchEvent(event);
+                  currentRenderer = dataGroup.getElementAt(focusedIndex) as IItemRenderer;
+                if (!currentRenderer || (currentRenderer.selected && requiresSelection))
+                    return;
+                currentRenderer.dispatchEvent(event);
                 break;
             }
         }
-	}
+
+        inKeyUpHandler = false;
+    }

     /**
      *  @private
      */
     private function drawButtonFocus(index:int, focused:Boolean):void
     {
-		var n:int = dataProvider.length;
+        var n:int = dataProvider.length;
         if (n > 0 && index < n)
         {
-			var renderer:IItemRenderer =
-				dataGroup.getElementAt(index) as IItemRenderer;
-			if (renderer)
-				renderer.showFocusIndicator = focused;
+            var renderer:IItemRenderer =
+                dataGroup.getElementAt(index) as IItemRenderer;
+            if (renderer)
+                renderer.showFocusIndicator = focused;
         }
     }
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 8481
Author:   smgilson@adobe.com
Date:     2009-07-09T17:28:31.741329Z

Log Message:
-----------
First of several checkins to update the namespace in ASDoc MXML syntax descriptions for Spark components

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/PopUpAnchor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DataRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ToggleButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Spinner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VideoPlayer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/CheckBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/TrackBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HScrollBar.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/spark/src/spark/components/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.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/spark/src/spark/components/SkinnableDataContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VSlider.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/frameworks/projects/spark/src/spark/components/VScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Range.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DataGroup.as</path>

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

--- frameworks/projects/spark/src/spark/components/ButtonBar.as
+++ frameworks/projects/spark/src/spark/components/ButtonBar.as
@@ -59,7 +59,7 @@
  *  attributes of its superclass and adds the following tag attributes:

  *
  *

- *  <ButtonBar
+ *  <s:ButtonBar
  *
  *  />
  *


Transferred from the Adobe Open Source Subversion Repository

Revision: 7445
Author:   gruehle@adobe.com
Date:     2009-05-29T20:51:55.035384Z

Log Message:
-----------
Replace a bunch of event name literals with constants.

Bug: SDK-21271
QA Notes:
Doc Notes:
Reviewer: Chet

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/flex4/src/spark/components/supportClasses/TextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/FocusSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/SoundEffectInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ToolTipManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.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/flex4/src/spark/skins/default/ErrorSkin.as</path>

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

--- frameworks/projects/spark/src/spark/components/ButtonBar.as
+++ frameworks/projects/spark/src/spark/components/ButtonBar.as
@@ -408,7 +408,7 @@

         if (renderer)
         {
-            renderer.addEventListener("click", item_clickHandler);
+            renderer.addEventListener(MouseEvent.CLICK, item_clickHandler);
             if (renderer is IFocusManagerComponent)
                 IFocusManagerComponent(renderer).focusEnabled = false;
             if (renderer is IItemRenderer)
@@ -426,7 +426,7 @@
         var renderer:IVisualElement = event.renderer;

         if (renderer)
-            renderer.removeEventListener("click", item_clickHandler);
+            renderer.removeEventListener(MouseEvent.CLICK, item_clickHandler);
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 10957
Author:   aharui@adobe.com
Date:     2009-10-09T20:13:52.472064Z

Log Message:
-----------
Sync up the Viewstack's selectedIndex when set as a dataprovider

QE Notes: None
Doc Notes: None
Bugs: SDK-23528
Reviewer: Ryan
API Change: no
Is noteworthy for integration: No
tests: checkintests mustella/gumbo/components/ButtonBar

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ButtonBar.as

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

--- frameworks/projects/spark/src/spark/components/ButtonBar.as
+++ frameworks/projects/spark/src/spark/components/ButtonBar.as
@@ -248,6 +248,10 @@
         }

         super.dataProvider = value;
+
+        if (value is ISelectableList)
+            if (ISelectableList(dataProvider).selectedIndex != selectedIndex)
+                selectedIndex = ISelectableList(dataProvider).selectedIndex;
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 3892
Author:   egeorgie@adobe.com
Date:     2008-10-24T23:33:52.238868Z

Log Message:
-----------
Add constraint properties and unify IVisualItem, UIComponent, GraphicElement, change percentSize to percentWidth, percentHeight in ILayoutItem. Remove IGraphicElementHost and GraphicElementHostImpl. Change GraphicElement constraint properties to take in Object instead of Number to enable advanced constraints later on.

QE Notes: None
Doc Notes: None
Bugs: None
Reviewer: Ryan
tests: checkintests, Mustella (canvas, gumbo layout)

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/LayoutItemHelper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/LayoutItemUIC.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/BitmapGraphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxResizeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/frameworkSwcExceptionsList.txt</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/FxAnimate3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxMoveInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/ILayoutItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/StrokedElement.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/GraphicElementHostImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/LayoutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/BasicLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualItem.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/IGraphicElementHost.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/IGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/LayoutItemFDO.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/AdvancedLayoutFeatures.as</path>

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

--- frameworks/projects/spark/src/spark/components/DataGroup.as
+++ frameworks/projects/spark/src/spark/components/DataGroup.as
@@ -12,7 +12,6 @@
 import mx.events.ItemExistenceChangedEvent;
 import mx.graphics.Graphic;
 import mx.graphics.IGraphicElement;
-import mx.graphics.IGraphicElementHost;
 import mx.graphics.MaskType;
 import mx.utils.MatrixUtil;
 import mx.graphics.graphicsClasses.GraphicElement;


Transferred from the Adobe Open Source Subversion Repository

Revision: 3789
Author:   gosmith@adobe.com
Date:     2008-10-21T19:55:26.771480Z

Log Message:
-----------
Integrated Build 192 of what used to be called TCAL (and, before that, Vellum).

The Text Component ActionScript Library (TCAL) has been renamed to the Text Layout Framework. Its classes are now in the package flashx.textLayout rather than in flashx.tcal, and they are packaged into SWCs named textLayout_xxx.swc rather than tcal_xxx.swc. The XML namespace for importable markup is now "http://ns.adobe.com/textLayout/2008" rather than "http://ns.adobe.com/tcal/2008".

QE Notes: Please update package names (and XML namespaces, if necessary) in all test files.
Doc Notes: Please eliminate all references to "Text Component ActionScript Library" or "TCAL" and use "Text Layout Framework" instead.
Bugs: -
Reviewer: -

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/events/TextOperationEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/build.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/mxml-2009-manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/build.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/utils/TextUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextGraphic.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/libs/textLayout_conversion.swc</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/libs/textLayout_edit.swc</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/libs/tcal_conversion.swc</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/libs/tcal_edit.swc</path>
<path kind="file" action="M">/flex/sdk/trunk/build.xml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/libs/textLayout_core.swc</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/libs/tcal_core.swc</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxTextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxTextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/Parser.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/fxg-manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/TextFlowComposer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/TextView.as</path>

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

--- frameworks/projects/spark/src/spark/components/TextInput.as
+++ frameworks/projects/spark/src/spark/components/TextInput.as
@@ -20,7 +20,7 @@
 import mx.components.baseClasses.FxComponent;
 import mx.events.TextOperationEvent;

-import flashx.tcal.formats.LineBreak;
+import flashx.textLayout.formats.LineBreak;

 //--------------------------------------
 //  Events