Transferred from the Adobe Open Source Subversion Repository

Revision: 4889
Author:   jszeto@adobe.com
Date:     2009-02-07T01:21:29.010759Z

Log Message:
-----------
Reverting revision 4885

Something in this checkin is causing an ASDoc compile failure. I will track this down later and resubmit the changes.

Modified Paths:
--------------
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/src/mx/filters/BaseDimensionFilter.as" copyfrom-rev="4884" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/filters/BaseDimensionFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/BevelFilter.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/GradientFilter.as" copyfrom-rev="4884" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/GradientFilter.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/src/mx/filters/IBitmapFilter.as" copyfrom-rev="4884" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/filters/IBitmapFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/ColorMatrixFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/BlurFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/DisplacementMapFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/ShaderFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/StrokedElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/GlowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/DropShadowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/GradientBevelFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/Parser.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/filters/IFlexBitmapFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/ConvolutionFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxAnimateFilterInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/FxAnimateFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/FrameworkClasses.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/src/mx/filters/BaseFilter.as" copyfrom-rev="4884" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/filters/BaseFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/GradientGlowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/GraphicElement.as</path>

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

--- frameworks/projects/spark/src/spark/effects/supportClasses/AnimateFilterInstance.as
+++ frameworks/projects/spark/src/spark/effects/supportClasses/AnimateFilterInstance.as
@@ -12,7 +12,7 @@
 package mx.effects.effectClasses
 {

-import mx.filters.IFlexBitmapFilter;
+import mx.filters.IBitmapFilter;
 import mx.effects.FxAnimateFilter;

 /**
@@ -49,7 +49,7 @@
     /**
      * IBitmapFilter instance to apply and animate.
      */
-    public var bitmapFilter:IFlexBitmapFilter;
+    public var bitmapFilter:IBitmapFilter;

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


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

--- frameworks/projects/framework/src/mx/effects/Pause.as
+++ frameworks/projects/framework/src/mx/effects/Pause.as
@@ -0,0 +1,73 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.effects
+{
+
+import mx.effects.effectClasses.PauseInstance;
+
+/**
+ *  The Pause effect is useful when sequencing effects.
+ *  It does nothing for a specified period of time.
+ *  If you add a Pause effect as a child of a Sequence effect,
+ *  you can create a pause between the two other effects.
+ *
+ *  @mxml
+ *
+ *
The <mx:Pause> tag
+ *  inherits all the tag attributes of its superclass,
+ *  and adds the following tag attributes:

+ *
+ *

+ *  <mx:Pause
+ *    id="ID"
+ *  />
+ *

+ *
+ *  @see mx.effects.effectClasses.PauseInstance
+ *
+ *  @includeExample examples/PauseEffectExample.mxml
+ */
+public class Pause extends TweenEffect
+{
+    include "../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Constructor
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Constructor.
+	 *
+	 *  @param target This argument is ignored by the Pause effect.
+	 *  It is included for consistency with other effects.
+	 */
+	public function Pause(target:Object = null)
+	{
+		super(target);
+
+		instanceClass = PauseInstance;
+	}
+
+	/**
+	 *  @private
+	 */
+	override public function createInstances(targets:Array = null):Array
+	{
+		var newInstance:IEffectInstance = createInstance();
+
+		return newInstance ? [ newInstance ] : [];
+	}
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 4032
Author:   hmuller@adobe.com
Date:     2008-11-06T21:47:20.290379Z

Log Message:
-----------
Performance tweaks for GroupBase, VGroup, and HGroup.

GroupBase workaround for a FP bug
(http://frpbugapp.macromedia.com/bugapp/detail.asp?ID=239120).  Ignore
attempts to reset the DisplayObject scrollRect property to null (its
default value) if we've never set it.  Similarly, don't read the
DisplayObject scrollRect property if its value has not been set.

Changed event redisptaching in VGroup, HGroup: only add listeners
to the underlying layout, if a corresponding listener is added
to the V,HGroup.

QE Notes: Additional tests for HGroup, VGroup will be needed
Doc Notes: None
Bugs:
Reviewer: Ryan

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/VGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/HGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/core/IViewport.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/GroupBase.as</path>

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

--- frameworks/projects/spark/src/spark/core/IViewport.as
+++ frameworks/projects/spark/src/spark/core/IViewport.as
@@ -93,7 +93,7 @@
      *
      *  @see ScrollUnit
      */
-    function getHorizontalScrollPositionDelta(unit:ScrollUnit):Number
+    function getHorizontalScrollPositionDelta(unit:ScrollUnit):Number;

     /**
      *  Returns the amount one would have to add to the viewport's current
@@ -107,7 +107,7 @@
      *
      *  @see ScrollUnit
      */
-    function getVerticalScrollPositionDelta(unit:ScrollUnit):Number
+    function getVerticalScrollPositionDelta(unit:ScrollUnit):Number;

     /**
      *  If true then clip the viewport's contents by setting its scrollRect


Set Player camera node as sound listener once created

--- DroneAnarchy/Resources/Scripts/DroneAnarchy.as
+++ DroneAnarchy/Resources/Scripts/DroneAnarchy.as
@@ -154,6 +154,8 @@

 	playerNode_.CreateScriptObject(scriptFile,"PlayerObject");
 	playerDestroyed_ = false;
+
+	SetSoundListener(cameraNode);

 }


Address seeking issues.

Address seeking issues.

--- HLSPlugin/src/com/kaltura/hls/SubtitleTrait.as
+++ HLSPlugin/src/com/kaltura/hls/SubtitleTrait.as
@@ -95,6 +95,7 @@
 		{
 			var subtitles:Vector.<SubTitleParser> = activeSubtitles;
 			var subtitleCount:int = subtitles.length;
+			var potentials:Vector.<TextTrackCue> = new Vector.<TextTrackCue>();

 			for ( var i:int = 0; i < subtitleCount; i++ )
 			{
@@ -103,8 +104,6 @@
 				if ( subtitle.endTime < startTime ) continue;
 				var cues:Vector.<TextTrackCue> = subtitle.textTrackCues;
 				var cueCount:int = cues.length;
-
-				var potentials:Vector.<TextTrackCue> = new Vector.<TextTrackCue>();

 				for ( var j:int = 0; j < cueCount; j++ )
 				{
@@ -115,20 +114,24 @@
 						potentials.push(cue);
 					}
 				}
-
-				if(potentials.length > 0)
+			}
+
+			if(potentials.length > 0)
+			{
+				// TODO: Add support for trackid
+				cue = potentials[potentials.length - 1];
+				if(cue != _lastCue)
 				{
-					// TODO: Add support for trackid
-					cue = potentials[potentials.length - 1];
-					if(cue != _lastCue)
-					{
-						dispatchEvent(new SubtitleEvent(cue.startTime, cue.text, language));
-
-						_lastInjectedSubtitleTime = cue.startTime;
-						_lastCue = cue;
-					}
+					dispatchEvent(new SubtitleEvent(cue.startTime, cue.text, language));
+
+					_lastInjectedSubtitleTime = cue.startTime;
+					_lastCue = cue;
 				}
 			}
+
+			// Force last time so we eventually show proper subtitles.
+			_lastInjectedSubtitleTime = endTime;
+
 		}

 		/**
@@ -244,38 +247,8 @@

 		public function set language( value:String ):void
 		{
-			// Trigger a seek to flush buffer and get proper language.
-			if(_language != value)
-			{
-				_language = value;
-
-				trace("Triggering flush for proper subtitle language.");
-				if(owningMediaElement)
-				{
-					var st:SeekTrait = owningMediaElement.getTrait(MediaTraitType.SEEK) as SeekTrait;
-					var tt:TimeTrait = owningMediaElement.getTrait(MediaTraitType.TIME) as TimeTrait;
-
-					if(st == null)
-					{
-						trace("   o No seek trait, skipping...");
-					}
-
-					if(tt == null)
-					{
-						trace("   o No time trait, skipping...");
-					}
-
-					if(st != null && tt != null)
-					{
-						trace("   o Initiating seek to " + tt.currentTime);
-						//st.seek(tt.currentTime);
-					}
-				}
-				else
-				{
-					trace("   o No media element, skipping...");
-				}
-			}
+			// No special logic required, we will sort it out elsewhere.
+			_language = value;
 		}

 		public function get language():String


Transferred from the Adobe Open Source Subversion Repository

Revision: 9073
Author:   chaase@adobe.com
Date:     2009-08-04T20:42:36.903355Z

Log Message:
-----------
Fixed a regression with Fade (dealing with non-IVisualElementContainer parented objects, like Popup) and improved seeking behavior with repeatDelay on composite effects. Also improved effect seeking in general, though it's still not perfect.

QE notes: Mustella failure of Sequence_seek_IntoRC2 is erroenous (the test bitmap is wrong, based on bad earlier behavior)
Doc notes: None
Bugs: SDK-22285, sdk-22555
Reviewer: Jason
Tests run: checkintests, Mustella (spark/effects, mx/effects)
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/animation/Animation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/CompositeEffectInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Fade.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/SequenceInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateTransform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/ParallelInstance.as</path>

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

--- frameworks/projects/framework/src/mx/effects/effectClasses/CompositeEffectInstance.as
+++ frameworks/projects/framework/src/mx/effects/effectClasses/CompositeEffectInstance.as
@@ -95,7 +95,7 @@
 		if (repeatCount > 0)
 		{
 			value = durationWithoutRepeat * repeatCount +
-					(repeatDelay * repeatCount - 1) + startDelay;
+					(repeatDelay * (repeatCount - 1)) + startDelay;
 		}

 		return value;
@@ -115,7 +115,7 @@
 	 */
 	override public function get playheadTime():Number
 	{
-		return _playheadTime + super.playheadTime;
+		return _playheadTime;
 	}

     override public function set playheadTime(value:Number):void


Lower non-VR player

Lower non-VR player


Fixed a bug in selftest generation: new %%ifndef clause must wrap declarations and calls as well as definitions (r=lhansen)

--- extensions/selftest.as
+++ extensions/selftest.as
@@ -394,7 +394,11 @@
 			var st = selftests[i];
 			if (st.ifdef_text != null)
 				s.push(st.ifdef_text);
+			if (st.ifndef_text != null)
+				s.push(st.ifndef_text);
 			s.push("extern void create_" + st.component + "_" + st.category + "(AvmCore* core);");
+			if (st.ifndef_text != null)
+				s.push("#endif");
 			if (st.ifdef_text != null)
 				s.push("#endif");
 		}
@@ -403,7 +407,11 @@
 			var st = selftests[i];
 			if (st.ifdef_text != null)
 				s.push(st.ifdef_text);
+			if (st.ifndef_text != null)
+				s.push(st.ifndef_text);
 			s.push("create_" + st.component + "_" + st.category + "(core);");
+			if (st.ifndef_text != null)
+				s.push("#endif");
 			if (st.ifdef_text != null)
 				s.push("#endif");
 		}


Handle RequestConfig.

Handle RequestConfig.

--- src/flails/resource/RailsResource.as
+++ src/flails/resource/RailsResource.as
@@ -16,8 +16,6 @@
   import mx.utils.ObjectUtil;

   public class RailsResource implements IResource {
-    public var requestConfig:RequestConfig;
-
     private var filter:HTTPFilter;
     private var config:Object;

@@ -64,8 +62,8 @@
     private function requestData(data:Object):Object {
       var out:Object = new Object();

-      if (requestConfig) {
-        for each (var o:Object in requestConfig.extraParams) {
+      if (config.requestConfig) {
+        for each (var o:Object in config.requestConfig.extraParams) {
           out[o.name] = o.value;
         }
       }


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

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


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/rpc/src/mx/rpc/xml/IXMLSchemaInstance.as
+++ frameworks/projects/rpc/src/mx/rpc/xml/IXMLSchemaInstance.as
@@ -23,6 +23,11 @@
  * QName.
  *
  * @see mx.utils.ObjectUtil.object_proxy::type
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public interface IXMLSchemaInstance
 {
@@ -38,6 +43,11 @@
      * implementations of this property to exclude it during object
      * serialization.
      * </p>
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get xsiType():QName;


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

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

 package mx.olap
 {


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

--- frameworks/projects/framework/src/mx/core/UITextFormat.as
+++ frameworks/projects/framework/src/mx/core/UITextFormat.as
@@ -0,0 +1,529 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.core
+{
+
+import flash.text.TextField;
+import flash.text.TextFormat;
+import flash.text.TextLineMetrics;
+import mx.managers.ISystemManager;
+import mx.managers.SystemManagerGlobals;
+
+/**
+ *  The UITextFormat class represents character formatting information
+ *  for the UITextField class.
+ *  The UITextField class defines the component used by many Flex composite
+ *  components to display text.
+ *
+ *
The UITextFormat class extends the flash.text.TextFormat class
+ *  to add the text measurement methods measureText()
+ *  and measureHTMLText() and to add properties for
+ *  controlling the advanced anti-aliasing of fonts.

+ *
+ *  @see mx.core.UITextField
+ */
+public class UITextFormat extends TextFormat
+{
+    include "../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Class properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  embeddedFontRegistry
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for the embeddedFontRegistry property.
+     *  This gets initialized on first access,
+     *  not at static initialization time, in order to ensure
+     *  that the Singleton registry has been initialized.
+     */
+    private static var _embeddedFontRegistry:IEmbeddedFontRegistry;
+
+    /**
+     *  @private
+     *  A reference to the embedded font registry.
+     *  Single registry in the system.
+     *  Used to look up the moduleFactory of a font.
+     */
+    private static function get embeddedFontRegistry():IEmbeddedFontRegistry
+    {
+        if (!_embeddedFontRegistry)
+        {
+            _embeddedFontRegistry = IEmbeddedFontRegistry(
+                Singleton.getInstance("mx.core::IEmbeddedFontRegistry"));
+        }
+
+        return _embeddedFontRegistry;
+    }
+
+    //----------------------------------
+    //  textFieldFactory
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for the textFieldFactory property.
+     *  This gets initialized on first access,
+     *  not at static initialization time, in order to ensure
+     *  that the Singleton registry has already been initialized.
+     */
+    private static var _textFieldFactory:ITextFieldFactory;
+
+    /**
+     *  @private
+     *  Factory for text fields used to measure text.
+     *  Created in the context of module factories
+     *  so the text field has access to an embedded font, if needed.
+     */
+    private static function get textFieldFactory():ITextFieldFactory
+    {
+        if (!_textFieldFactory)
+        {
+            _textFieldFactory = ITextFieldFactory(
+                Singleton.getInstance("mx.core::ITextFieldFactory"));
+        }
+
+        return _textFieldFactory;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     *
+     *  @param systemManager A SystemManager object.
+     *  The SystemManager keeps track of which fonts are embedded.
+     *  Typically this is the SystemManager obtained from the
+     *  systemManager property of UIComponent.
+     *
+     *  @param font A String specifying the name of a font,
+     *  or null to indicate that this UITextFormat
+     *  doesn't specify this property.
+     *  This parameter is optional, with a default value of null.
+     *
+     *  @param size A Number specifying a font size in pixels,
+     *  or null to indicate that this UITextFormat
+     *  doesn't specify this property.
+     *  This parameter is optional, with a default value of null.
+     *
+     *  @param color An unsigned integer specifying the RGB color of the text,
+     *  such as 0xFF0000 for red, or null to indicate
+     *  that is UITextFormat doesn't specify this property.
+     *  This parameter is optional, with a default value of null.
+     *
+     *  @param bold A Boolean flag specifying whether the text is bold,
+     *  or null to indicate that this UITextFormat
+     *  doesn't specify this property.
+     *  This parameter is optional, with a default value of null.
+     *
+     *  @param italic A Boolean flag specifying whether the text is italic,
+     *  or null to indicate that this UITextFormat
+     *  doesn't specify this property.
+     *  This parameter is optional, with a default value of null.
+     *
+     *  @param italic A Boolean flag specifying whether the text is underlined,
+     *  or null to indicate that this UITextFormat
+     *  doesn't specify this property.
+     *  This parameter is optional, with a default value of null.
+     *
+     *  @param urlString A String specifying the URL to which the text is
+     *  hyperlinked, or null to indicate that this UITextFormat
+     *  doesn't specify this property.
+     *  This parameter is optional, with a default value of null.
+     *
+     *  @param target A String specifying the target window
+     *  where the hyperlinked URL is displayed.
+     *  If the target window is null or an empty string,
+     *  the hyperlinked page is displayed in the same browser window.
+     *  If the urlString parameter is null
+     *  or an empty string, this property has no effect.
+     *  This parameter is optional, with a default value of null.
+     *
+     *  @param align A String specifying the alignment of the paragraph,
+     *  as a flash.text.TextFormatAlign value, or null to indicate
+     *  that this UITextFormat doesn't specify this property.
+     *  This parameter is optional, with a default value of null.
+     *
+     *  @param leftMargin A Number specifying the left margin of the paragraph,
+     *  in pixels, or null to indicate that this UITextFormat
+     *  doesn't specify this property.
+     *  This parameter is optional, with a default value of null.
+     *
+     *  @param rightMargin A Number specifying the right margin of the paragraph,
+     *  in pixels, or null to indicate that this UITextFormat
+     *  doesn't specify this property.
+     *  This parameter is optional, with a default value of null.
+     *
+     *  @param indent A Number specifying the indentation from the left
+     *  margin to the first character in the paragraph, in pixels,
+     *  or null to indicate that this UITextFormat
+     *  doesn't specify this property.
+     *  This parameter is optional, with a default value of null.
+     *
+     *  @param leading A Number specifying the amount of additional vertical
+     *  space between lines, or null to indicate
+     *  that this UITextFormat doesn't specify this property.
+     *  This parameter is optional, with a default value of null.
+     *
+     *  @see flash.text.TextFormatAlign
+     */
+    public function UITextFormat(systemManager:ISystemManager,
+                                 font:String = null,
+                                 size:Object = null,
+                                 color:Object = null,
+                                 bold:Object = null,
+                                 italic:Object = null,
+                                 underline:Object = null,
+                                 url:String = null,
+                                 target:String = null,
+                                 align:String = null,
+                                 leftMargin:Object = null,
+                                 rightMargin:Object = null,
+                                 indent:Object = null,
+                                 leading:Object = null)
+    {
+        this.systemManager = systemManager;
+
+        super(font, size, color, bold, italic, underline, url, target,
+              align, leftMargin, rightMargin, indent, leading);
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Variables
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    private var systemManager:ISystemManager;
+
+    /**
+     * @private
+     *
+     * Cache last value of embedded font.
+     */
+    private var cachedEmbeddedFont:EmbeddedFont = null;
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  antiAliasType
+    //----------------------------------
+
+    /**
+     *  Defines the anti-aliasing setting for the UITextField class.
+     *  The possible values are "normal"
+     *  (flash.text.AntiAliasType.NORMAL)
+     *  and "advanced"
+     *  (flash.text.AntiAliasType.ADVANCED).
+     *
+     *
The default value is "advanced",
+     *  which enables advanced anti-aliasing
+     *  for the embedded font.
+     *  Set this property to "normal"
+     *  to disable the advanced anti-aliasing.

+     *
+     *
This property has no effect for system fonts.

+     *
+     *
This property applies to all the text in a UITextField object;
+     *  you cannot apply it to some characters and not others.

+     *
+     *  @default "advanced"
+     *
+     *  @see flash.text.AntiAliasType
+     */
+    public var antiAliasType:String;
+
+    //----------------------------------
+    //  gridFitType
+    //----------------------------------
+
+    /**
+     *  Defines the grid-fitting setting for the UITextField class.
+     *  The possible values are "none"
+     *  (flash.text.GridFitType.NONE),
+     *  "pixel"
+     *  (flash.text.GridFitType.PIXEL),
+     *  and "subpixel"
+     *  (flash.text.GridFitType.SUBPIXEL).
+     *
+     *
This property only applies when you are using an
+     *  embedded font and the fontAntiAliasType
+     *  property is set to "advanced".

+     *
+     *
This property has no effect for system fonts.

+     *
+     *
This property applies to all the text in a UITextField object;
+     *  you cannot apply it to some characters and not others.

+     *
+     *  @default "pixel"
+     *
+     *  @see flash.text.GridFitType
+     */
+    public var gridFitType:String;
+
+    //----------------------------------
+    //  moduleFactory
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for the moduleFactory property.
+     */
+    private var _moduleFactory:IFlexModuleFactory;
+
+    /**
+     *  The moduleFactory used to create TextFields for embedded fonts.
+     */
+    public function get moduleFactory():IFlexModuleFactory
+    {
+        return _moduleFactory;
+    }
+
+    /**
+     *  @private
+     */
+    public function set moduleFactory(value:IFlexModuleFactory):void
+    {
+        _moduleFactory = value;
+    }
+
+    //----------------------------------
+    //  sharpness
+    //----------------------------------
+
+    /**
+     *  Defines the sharpness setting for the UITextField class.
+     *  This property specifies the sharpness of the glyph edges.
+     *  The possible values are Numbers from -400 through 400.
+     *
+     *
This property only applies when you are using an
+     *  embedded font and the fontAntiAliasType
+     *  property is set to "advanced".

+     *
+     *
This property has no effect for system fonts.

+     *
+     *
This property applies to all the text in a UITextField object;
+     *  you cannot apply it to some characters and not others.

+     *
+     *  @default 0
+     *  @see flash.text.TextField
+     */
+    public var sharpness:Number;
+
+    //----------------------------------
+    //  thickness
+    //----------------------------------
+
+    /**
+     *  Defines the thickness setting for the UITextField class.
+     *  This property specifies the thickness of the glyph edges.
+     *  The possible values are Numbers from -200 to 200.
+     *
+     *
This property only applies when you are using an
+     *  embedded font and the fontAntiAliasType
+     *  property is set to "advanced".

+     *
+     *
This property has no effect for system fonts.

+     *
+     *
This property applies to all the text in a UITextField object;
+     *  you cannot apply it to some characters and not others.

+     *
+     *  @default 0
+     *  @see flash.text.TextField
+     */
+    public var thickness:Number;
+
+    //--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Returns measurement information for the specified text,
+     *  assuming that it is displayed in a single-line UITextField component,
+     *  and using this UITextFormat object to define the text format.
+     *
+     *  @param text A String specifying the text to measure.
+     *
+     *  @param roundUp A Boolean flag specifying whether to round up the
+     *  the measured width and height to the nearest integer.
+     *  Rounding up is appropriate in most circumstances.
+     *
+     *  @return A TextLineMetrics object containing the text measurements.
+     *
+     *  @see flash.text.TextLineMetrics
+     */
+    public function measureText(text:String, roundUp:Boolean = true):TextLineMetrics
+    {
+        return measure(text, false, roundUp);
+    }
+
+    /**
+     *  Returns measurement information for the specified HTML text,
+     *  which may contain HTML tags such as <font>
+     *  and <b>, assuming that it is displayed
+     *  in a single-line UITextField, and using this UITextFormat object
+     *  to define the text format.
+     *
+     *  @param text A String specifying the HTML text to measure.
+     *
+     *  @param roundUp A Boolean flag specifying whether to round up the
+     *  the measured width and height to the nearest integer.
+     *  Rounding up is appropriate in most circumstances.
+     *
+     *  @return A TextLineMetrics object containing the text measurements.
+     *
+     *  @see flash.text.TextLineMetrics
+     */
+    public function measureHTMLText(htmlText:String, roundUp:Boolean = true):TextLineMetrics
+    {
+        return measure(htmlText, true, roundUp);
+    }
+
+    /**
+     *  @private
+     */
+    private function measure(s:String, html:Boolean, roundUp:Boolean):TextLineMetrics
+    {
+        // The text of a TextField can't be set to null.
+        if (!s)
+            s = "";
+
+        // Create a persistent, off-display-list TextField
+        // to be used for text measurement. The text field factory keeps
+        // the text fields to one per moduleFactory.
+        var embeddedFont:Boolean = false;
+        var fontModuleFactory:IFlexModuleFactory =
+            embeddedFontRegistry.getAssociatedModuleFactory(
+                getEmbeddedFont(font, bold, italic), moduleFactory);
+
+        embeddedFont = (fontModuleFactory != null);
+        if (fontModuleFactory == null)
+        {
+            // try to use the systemManager as a backup for the case
+            // where embedded fonts have no info().
+            fontModuleFactory = systemManager;
+        }
+
+        var measurementTextField:TextField = null;
+        measurementTextField = TextField(textFieldFactory.createTextField(fontModuleFactory));
+
+        // Clear any old text from the TextField.
+        // Otherwise, new text will get the old TextFormat.
+        if (html)
+            measurementTextField.htmlText = "";
+        else
+            measurementTextField.text = "";
+
+        // Make the measurement TextField use this TextFormat.
+        measurementTextField.defaultTextFormat = this;
+        if (font)
+        {
+            measurementTextField.embedFonts = embeddedFont ||
+                                              (systemManager != null &&
+                                              systemManager.isFontFaceEmbedded(this));
+        }
+        else
+        {
+            measurementTextField.embedFonts = false;
+        }
+
+        // Set other TextField properties based on CSS styles.
+        measurementTextField.antiAliasType = antiAliasType;
+        measurementTextField.gridFitType = gridFitType;
+        measurementTextField.sharpness = sharpness;
+        measurementTextField.thickness = thickness;
+
+        // Set the text to be measured into the TextField.
+        if (html)
+            measurementTextField.htmlText = s;
+        else
+            measurementTextField.text = s;
+
+        // Measure it.
+        var lineMetrics:TextLineMetrics =
+            measurementTextField.getLineMetrics(0);
+
+        if (roundUp)
+        {
+            // Round up because embedded fonts can produce fractional values;
+            // if a parent container rounds a component's actual width or height
+            // down, the component may not be wide enough to display the text.
+            lineMetrics.width = Math.ceil(lineMetrics.width);
+            lineMetrics.height = Math.ceil(lineMetrics.height);
+        }
+
+        return lineMetrics;
+    }
+
+    /**
+     * @private
+     *
+     * Get the embedded font for a set of font attributes.
+     */
+    private function getEmbeddedFont(fontName:String, bold:Boolean, italic:Boolean):EmbeddedFont
+    {
+        // Check if we can reuse a cached value.
+        if (cachedEmbeddedFont)
+        {
+            if (cachedEmbeddedFont.fontName == fontName &&
+                cachedEmbeddedFont.fontStyle == EmbeddedFontRegistry.getFontStyle(bold, italic))
+            {
+                return cachedEmbeddedFont;
+            }
+        }
+
+        cachedEmbeddedFont = new EmbeddedFont(fontName, bold, italic);
+
+        return cachedEmbeddedFont;
+    }
+
+    /**
+     *  @private
+     */
+    mx_internal function copyFrom(source:TextFormat):void
+    {
+        font = source.font;
+        size = source.size;
+        color = source.color;
+        bold = source.bold;
+        italic = source.italic;
+        underline = source.underline;
+        url = source.url;
+        target = source.target;
+        align = source.align;
+        leftMargin = source.leftMargin;
+        rightMargin = source.rightMargin;
+        indent = source.indent;
+        leading = source.leading;
+    }
+}
+
+}


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

--- frameworks/projects/framework/src/mx/utils/ObjectProxy.as
+++ frameworks/projects/framework/src/mx/utils/ObjectProxy.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: 21808
Author:   jasonsj@adobe.com
Date:     2011-08-04T01:30:11.972874Z

Log Message:
-----------
Callout visual review: drop shadow, content shadow tweaking.
New Callout skin for SplitViewNavigator that disables the content shadow and mask.

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

Modified Paths:
--------------
<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="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewNavigatorCalloutSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/SplitViewNavigatorSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile320/assets/CalloutContentBackground.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/defaults.css</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile240/assets/CalloutContentBackground.fxg</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/mobile160/assets/CalloutContentBackground.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/MobileThemeClasses.as</path>

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

--- frameworks/projects/mobiletheme/src/MobileThemeClasses.as
+++ frameworks/projects/mobiletheme/src/MobileThemeClasses.as
@@ -58,6 +58,7 @@
 import spark.skins.mobile.ViewMenuSkin; ViewMenuSkin;
 import spark.skins.mobile.ViewNavigatorApplicationSkin; ViewNavigatorApplicationSkin;
 import spark.skins.mobile.ViewNavigatorSkin; ViewNavigatorSkin;
+import spark.skins.mobile.ViewNavigatorCalloutSkin; ViewNavigatorCalloutSkin;
 import spark.skins.mobile.VScrollBarSkin; spark.skins.mobile.VScrollBarSkin;
 }
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 8483
Author:   smgilson@adobe.com
Date:     2009-07-09T17:52:48.367800Z

Log Message:
-----------
Second checkin 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/effects/easing/EaseInOutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Fade.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/animation/MotionPath.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/ColorMatrixFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/easing/Power.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/BlurFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/DisplacementMapFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/ShaderFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/DropShadowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/CallAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GradientBevelFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateColor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Scale3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Animate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateTransitionShader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Rotate3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AddAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Scale.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/Graphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Move3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Rotate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/BasicLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Resize.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateTransform3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Wipe.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/easing/Sine.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Move.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GlowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateTransform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/TileLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/ConvolutionFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/easing/Linear.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/animation/Keyframe.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GradientGlowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/SetAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/RemoveAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/BevelFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GradientFilter.as</path>

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

--- frameworks/projects/spark/src/spark/filters/GlowFilter.as
+++ frameworks/projects/spark/src/spark/filters/GlowFilter.as
@@ -46,7 +46,7 @@
  *  attributes of its superclass and adds the following tag attributes:

  *
  *

- *  <GlowFilter
+ *  <s:GlowFilter
  *    Properties
  *    alpha="1"
  *    color="0xFF0000"


http://www.igniterealtime.org/issues/browse/XIFF-60 Part 1.

--- src/org/igniterealtime/xiff/conference/Room.as
+++ src/org/igniterealtime/xiff/conference/Room.as
@@ -768,7 +768,12 @@
 								roomEvent.data = form;
 								dispatchEvent( roomEvent );
 							}
-
+						}
+						else if ( msg.type == Message.CHAT_TYPE )
+						{
+							roomEvent = new RoomEvent( RoomEvent.PRIVATE_MESSAGE );
+							roomEvent.data = msg;
+							dispatchEvent( roomEvent );
 						}
 					}
 					else if ( isThisUser( msg.to.unescaped ) && msg.type == Message.CHAT_TYPE )


fix bug set managed mode after init + don't throw on req_id not found

--- src/org/hola/JSURLStream.as
+++ src/org/hola/JSURLStream.as
@@ -35,7 +35,7 @@
             _hola_managed = HSettings.enabled && ZExternalInterface.avail();
             addEventListener(Event.OPEN, onopen);
             super();
-            if (!_hola_managed || js_api_inited)
+            if (!ZExternalInterface.avail() || js_api_inited)
                 return;
             // Connect calls to JS.
             ZErr.log('JSURLStream init api');
@@ -233,7 +233,10 @@
             var stream : JSURLStream;
             try {
                 if (!(stream = reqs[o.req_id]))
-                    throw new Error('req_id not found '+o.req_id);
+                {
+                    ZErr.log('req_id not found '+o.req_id);
+                    return;
+                }
                 stream.on_fragment_data(o);
             } catch(err : Error){
                 ZErr.log('Error in hola_onFragmentData', ''+err,


Maintenant le programme n'arrête plus lorsqu'une erreur est détectée. Clean up.

--- tp3.as
+++ tp3.as
@@ -165,18 +165,28 @@
   ldub  [%l0+%l2], %l4          ! Charger le chiffre courant en mémoire

   cmp   %l4, 0                  ! Le chiffre doit être entre 1 et 9
-  ble   ValiderLignes12
+  ble   ValiderLignes07
   nop

   cmp   %l4, 10
-  bge   ValiderLignes12
+  bge   ValiderLignes07
   nop

   ba    ValiderLignes10         ! Lancer la validation du chiffre courant sur la ligne
   nop

+/* Message d'erreur */
+ValiderLignes07:
+  set   validationrangee, %o0  ! Indiquer qu'on a trouvé une erreur dans la ligne courante
+  add   %l1, 1, %o1
+  call  printf
+  nop
+
+  ba	ValiderLignes04		! Passer a la ligne suivant
+  nop
+
 /* Valider tout les chiffres en partant du premier au dernier et ne valider que le dernier chiffre sans testeur. */
-ValiderLignes08:
+ValiderLignes09:
   inc   %l2                     ! Passer au chiffre suivant pour la validation
   add   %l2, 1, %l3             ! Le chiffre a tester est toujours le chiffre après le chiffre courant (au début de la validation du chiffre courant)

@@ -190,42 +200,26 @@
 /* Valider toute la ligne a partir du chiffre courant avec le reste des chiffres de la ligne */
 ValiderLignes10:
   cmp   %l2, 8                  ! Si on a atteint la fin de la ligne, on passe a la suivante
-  bge   ValiderLignes08
+  bge   ValiderLignes09
   nop

   ldub  [%l0+%l3], %l5          ! Charger le chiffre a tester dans le registre l5

-  /* DEBUG */
-  !set   debug, %o0
-  !mov   %l2, %o1
-  !mov   %l4, %o2
-  !mov   %l3, %o3
-  !mov   %l5, %o4
-  !call  printf
-  !nop
-  /* END DEBUG */
-
   cmp   %l4, %l5                ! Comparer le chiffre courant avec le chiffre a tester pour s'assurer qu'ils ne sont pas identique
-  be    ValiderLignes12
-  nop
-
+  be    ValiderLignes07
+  nop
+
+  ba 	ValiderLignes14		! Passer au prochain chiffre
+  nop
+
+ValiderLignes14:
   inc   %l3                     ! Tester le chiffre suivant

   cmp   %l3, 9                  ! S'il nous reste des chiffre a tester, on les tests
   bl    ValiderLignes10
   nop

-  ba    ValiderLignes08
-  nop
-
-/* Message indiquant qu'on a trouvé une erreur */
-ValiderLignes12:
-  set   validationrangee, %o0  ! Indiquer qu'on a trouvé une erreur dans la ligne courante
-  add   %l1, 1, %o1
-  call  printf
-  nop
-
-  call  SudokuFin
+  ba    ValiderLignes09
   nop

 /*
@@ -265,18 +259,27 @@
   ldub  [%l0+%l6], %l4          ! Charger le chiffre courant en mémoire

   cmp   %l4, 0                  ! Le chiffre doit être entre 1 et 9
-  ble   ValiderColonnes12
+  ble   ValiderColonnes07
   nop

   cmp   %l4, 10
-  bge   ValiderColonnes12
-  nop
-
-  ba    ValiderColonnes10       ! Lancer la validation du chiffre courant sur la colonne
+  bge   ValiderColonnes07
+  nop
+
+  ba    ValiderColonnes10         ! Lancer la validation du chiffre courant sur la colonne
+  nop
+
+ValiderColonnes07:
+  set   validationcolonne, %o0  ! Indiquer qu'on a trouvé une erreur dans la colonne courante
+  add   %l1, 1, %o1
+  call  printf
+  nop
+
+  ba	ValiderColonnes04
   nop

 /* Valider tout les chiffres en partant du premier au dernier et ne valider que le dernier chiffre sans testeur. */
-ValiderColonnes08:
+ValiderColonnes09:
   inc   %l2                     ! Passer au chiffre suivant pour la validation
   add   %l2, 1, %l3             ! Le chiffre a tester est toujours le chiffre après le chiffre courant (au début de la validation du chiffre courant)

@@ -290,14 +293,14 @@
 /* Valider toute la colonne a partir du chiffre courant avec le reste des chiffres de la colonne */
 ValiderColonnes10:
   cmp   %l2, 8                  ! Si on a atteint la fin de la colonne, on passe a la prochaine
-  bge   ValiderColonnes08
+  bge   ValiderColonnes09
   nop

   umul  %l3, 9, %l6             ! Puisqu'on y va par colonnes, on doit y aller ligne par ligne
   ldub  [%l0+%l6], %l5          ! Charger le chiffre a tester dans le registre l5

   cmp   %l4, %l5                ! Comparer le chiffre courant avec le chiffre a tester pour s'assurer qu'ils ne sont pas identique
-  be    ValiderColonnes12
+  be    ValiderColonnes07
   nop

   inc   %l3                     ! Tester le chiffre suivant
@@ -306,17 +309,7 @@
   bl    ValiderColonnes10
   nop

-  ba    ValiderColonnes08
-  nop
-
-/* Message indiquant qu'on a trouvé une erreur */
-ValiderColonnes12:
-  set   validationcolonne, %o0  ! Indiquer qu'on a trouvé une erreur dans la colonne courante
-  add   %l1, 1, %o1
-  call  printf
-  nop
-
-  call  SudokuFin
+  ba    ValiderColonnes09
   nop

@@ -333,41 +326,43 @@
   nop

   mov   0, %l1              ! X
-  ba    ValiderBloc04       ! On valide les blocs sur la rangée l1
-  nop
-
-ValiderBloc03:
+  ba    ValiderBloc06       ! On valide les blocs sur la rangée l1
+  nop
+
+ValiderBloc04:
   inc   %l0                 ! On passe à la rangée de bloc suivante
   ba    ValiderBloc02
   nop

-ValiderBloc04:
+ValiderBloc06:
   cmp   %l1, 3              ! Si on a testé les 3 blocs sur la rangée, on passe à la prochaine
-  be    ValiderBloc03
-  nop
-
+  be    ValiderBloc04
+  nop
+
   umul  %l1, 3,  %o0        ! Calculer l'indice du premier element du bloc dans le vecteur
   umul  %l0, 27, %o1
   add   %o0, %o1, %o2       ! Index calculé

   umul  %l0, 3, %o3         ! # du bloc
+  add	%o3, %l1, %o3

   add   %l1, %o4, %o4
+
   call  ValiderBloc10       ! Valider le bloc commençant a cet indice
   nop

   inc   %l1                 ! On passe au bloc suivant sur la même rangée
-  ba    ValiderBloc04
+  ba    ValiderBloc06
   nop

 ValiderBloc10:
   save  %sp, -96, %sp       ! On concerve les registres. L'index du début va se trouver dans i2
   mov   0, %l0
-  set   vecteur, %l6
-
-ValiderBloc11:
+  set   vecteur, %l6	    ! Conserver l'adresse du vecteur dans le registre l6
+
+ValiderBloc12:
   cmp   %l0, 21
-  be    ValiderBloc20       ! Restore
+  be    ValiderBloc30       ! Restore
   nop

   mov   %l0, %o0            ! Si le nombre est un multiple de 3, on change de ligne dans le Sudoku
@@ -376,28 +371,28 @@
   nop

   cmp   %o0, 1              ! Puisque c'est un multiple de 3, on doit changer de ligne
-  be    ValiderBloc13
-  nop
-
-  ba    ValiderBloc14       ! Tester le reste du bloc avec le chiffre
-  nop
-
-ValiderBloc12:
+  be    ValiderBloc16
+  nop
+
+  ba    ValiderBloc18       ! Tester le reste du bloc avec le chiffre
+  nop
+
+ValiderBloc14:
   inc   %l0                 ! Tester le prochain nombre courant
-  ba    ValiderBloc11
-  nop
-
-ValiderBloc13:
+  ba    ValiderBloc12
+  nop
+
+ValiderBloc16:
   add   %l0, 6, %l0         ! Changer de ligne

-ValiderBloc14:
+ValiderBloc18:
   add   %i2, %l0, %l5       ! Index du chiffre qu'on veut aller chercher
   ldub  [%l6+%l5], %l3      ! Charger le chiffre courant dans l3
   add   %l0, 1, %l1         ! Chiffre testeur

-ValiderBloc15:
+ValiderBloc20:
   cmp   %l1, 21
-  be   ValiderBloc12
+  be   ValiderBloc14
   nop

   mov   %l1, %o0            ! Si le nombre est un multiple de 3, on change de ligne dans le Sudoku
@@ -406,40 +401,38 @@
   nop

   cmp   %o0, 1              ! Puisque c'est un multiple de 3, on doit changer de ligne
-  bne   ValiderBloc17
-  nop
-
-ValiderBloc16:
+  bne   ValiderBloc24
+  nop
+
+ValiderBloc22:
   add   %l1, 6, %l1         ! Changer de ligne

-ValiderBloc17:
+ValiderBloc24:
   add   %i2, %l1, %l5       ! Index du chiffre qu'on veut aller chercher
   ldub  [%l6+%l5], %l4      ! Charger le chiffre a tester dans l4

   cmp   %l3, %l4            ! S'assurer que les 2 chiffres sont différents
-  bne   ValiderBloc19
-  nop
-
-ValiderBloc18:
+  bne   ValiderBloc28
+  nop
+
+ValiderBloc26:
   set   validationbloc, %o0 ! Indiquer qu'on a trouvé une erreur au bloc courant
   add   %i3, 1, %o1
   call  printf
   nop

-  ba    SudokuFin
-  nop
-
-ValiderBloc19:
+  ba	ValiderBloc30       ! On passe au prochain bloc
+  nop
+
+ValiderBloc28:
   inc   %l1                 ! Tester le nombre courant avec un autre chiffre dans le bloc
-  ba    ValiderBloc15
-  nop
-
-ValiderBloc20:
+  ba    ValiderBloc20
+  nop
+
+ValiderBloc30:
   ret                       ! Passer au bloc suivant
   restore

-ValiderBloc21:
-

 /*
     MultipleDe:
@@ -498,4 +491,4 @@
   vecteur: .skip	81  ! 81 espaces mémoire pour le vecteur du Sudoku

 .section ".data"
-  lecture:  .word   0 ! Espace pour la lecture du chiffre en entrée+  lecture:  .word   	0   ! Espace pour la lecture du chiffre en entrée


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/framework/src/mx/binding/Binding.as
+++ frameworks/projects/framework/src/mx/binding/Binding.as
@@ -46,6 +46,11 @@
 	 *
      *  @param destString The destination represented as a String.
 	 *  We can then tell the ValidationManager to validate this field.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function Binding(document:Object, srcFunc:Function,
 						    destFunc:Function, destString:String)
@@ -167,22 +172,42 @@
     /**
      *  All Bindings hang off of a document for now,
 	 *  but really it's just the root of where these functions live.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     mx_internal var document:Object;

 	/**
      *  The function that will return us the value.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     mx_internal var srcFunc:Function;

 	/**
      *  The function that takes the value and assigns it.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     mx_internal var destFunc:Function;

 	/**
      *  The destination represented as a String.
 	 *  This will be used so we can signal validation on a field.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     mx_internal var destString:String;

@@ -225,6 +250,11 @@
 	 *  Call the source function and get the value we'll use.
 	 *  Then call the destination function passing the value as an argument.
 	 *  Finally try to validate the destination.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function execute(o:Object = null):void
     {
@@ -415,6 +445,11 @@
     /**
 	 *  This function is called when one of this binding's watchers
 	 *  detects a property change.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
     public function watcherFired(commitEvent:Boolean, cloneIndex:int):void
     {


Transferred from the Adobe Open Source Subversion Repository

Revision: 4849
Author:   jimurphy@adobe.com
Date:     2009-02-05T15:00:22.254099Z

Log Message:
-----------
Merged 3.x revisions 4842,4847 -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/AbstractProducer.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/wsdl/WSDL.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AbstractOperation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/XMLDecoder.as</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/3.x/frameworks/projects/rpc/src/mx/rpc/http/mxml/HTTPMultiService.as" copyfrom-rev="4847" action="A">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/mxml/HTTPMultiService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/wsdl/WSDLLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/MessageAgent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>

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

--- frameworks/projects/rpc/src/mx/rpc/AbstractOperation.as
+++ frameworks/projects/rpc/src/mx/rpc/AbstractOperation.as
@@ -206,8 +206,8 @@
             else
             {
                 if (_service != null)
-                    _service.dispatchEvent(event);
-            }
+                _service.dispatchEvent(event);
+            }
         }
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 10357
Author:   jimurphy@adobe.com
Date:     2009-09-17T21:13:02.502084Z

Log Message:
-----------
Merged beta2 revisions 10309,10320-10321,10333-10335,10342,10347-10348 -> trunk

checkintests: pass

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/supportClasses/FadeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/Info.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/genext/GenerativeClassInfo.java</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RichText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/DropDownListSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Label.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/TLFText.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/mx/core/UITLFTextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/TypeAnalyzer.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/ApplicationSkin.mxml</path>

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

--- frameworks/projects/spark/src/mx/core/UIFTETextField.as
+++ frameworks/projects/spark/src/mx/core/UIFTETextField.as
@@ -1884,6 +1884,8 @@
         textFormat.thickness = thickness;

         textFormat.useTLF = true;
+        textFormat.direction = direction;
+        textFormat.locale = locale;

         return textFormat;
     }


update readme

update readme

--- testSrc/TestStream.as
+++ testSrc/TestStream.as
@@ -6,7 +6,6 @@
     import com.kemsky.impl.filters.eq;
     import com.kemsky.impl.filters.ge;
     import com.kemsky.impl.filters.gt;
-    import com.kemsky.impl.filters.or;
     import com.kemsky.$;
     import com.kemsky.impl.filters.prop;
     import com.kemsky.impl.filters.subtract;


Transferred from the Adobe Open Source Subversion Repository

Revision: 18131
Author:   hmuller@adobe.com
Date:     2010-10-11T22:43:35.924917Z

Log Message:
-----------
IDataGridElement and some minor Doc/API changes:

Defined IDataGridElement.  Grid and ColumnHeaderBar implement it.

Removed the Grid gridOwner property.  The IDataGridElement dataGrid property serves the same purpose.

Added public grid ColumnHeaderBar property that's set/cleared by DataGrid partAdded/Removed().  ColumnHeaderBar is now responsible for syncing its scroll position with its grid.

Removed DataGrid headerRenderer property and headerColunmSeparator skin part.  These values can be changed by reconfiguring the default skin.

Corrected GridItemEditor event type metadata in DataGrid.

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Grid.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/IDataGridElement.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/ColumnHeaderBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/events/GridItemEditorEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GridColumn.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GridLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGrid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/DataGridSkin.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/wireframe/src/spark/skins/wireframe/DataGridSkin.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ColumnHeaderBarLayout.as</path>

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

--- frameworks/projects/spark/src/spark/components/gridClasses/GridColumnHeaderGroupLayout.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/GridColumnHeaderGroupLayout.as
@@ -609,11 +609,10 @@
     private function get grid():Grid
     {
         const chb:ColumnHeaderBar = columnHeaderBar;
-        if (!chb)
-            return null;
-
-        const dg:DataGrid = chb.owner as DataGrid;
-        return (dg) ? dg.grid : null;
+        if (chb.dataGrid)
+            return chb.dataGrid.grid;
+
+        return null;
     }
 }
 }


update ConeGeometry to create a cone with a radius = 0.5 instead of radius = 1

--- src/aerys/minko/render/geometry/primitive/ConeGeometry.as
+++ src/aerys/minko/render/geometry/primitive/ConeGeometry.as
@@ -28,11 +28,7 @@
 			{
 				var angle : Number = (Math.PI * 2.) * (segmentId / numSegments);

-				xyz.push(
-					Math.cos(angle),
-					-.5,
-					Math.sin(angle)
-				);
+				xyz.push(Math.cos(angle) * .5, -.5, Math.sin(angle) * .5);
 			}

 			xyz.push(0., -.5, 0.);


That's odd... I'm not entirely sure why that compiled.

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

--- src/as/com/threerings/whirled/zone/client/ZoneDirector.as
+++ src/as/com/threerings/whirled/zone/client/ZoneDirector.as
@@ -238,7 +238,7 @@
             } else {
                 log.info("Delaying forced move because we have a move pending",
                     "pend", _scdir.getPendingModel(), "rzId", zoneId, "rsId", sceneId);
-                _scdir.addPendingForcedMove(new function() :void {
+                _scdir.addPendingForcedMove(function() :void {
                         forcedMove(zoneId, sceneId);
                 });
             }


OPEN - issue REPRISE-68: bottom margins from previous element aren't factored into the positioning of absolute elements whose 'top' and 'bottom' properties are set to 'auto'
http://j.fork.de:8080/browse/REPRISE-68

	FIXED

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

--- src/reprise/ui/layoutmanagers/CSSBoxModelLayoutManager.as
+++ src/reprise/ui/layoutmanagers/CSSBoxModelLayoutManager.as
@@ -211,7 +211,7 @@
 						{
 							closeLineBox();
 						}
-						child.y = currentLineBoxTop + child.style.marginTop;
+						child.y = currentLineBoxTop + collapsibleMargin + child.style.marginTop;
 					}
 				}
 				//add to displaystack for later sorting


Changed CSS trantition for visibility and display to immediately switch from 0 to 1 on first tick instead of on the second one

--- src/reprise/css/transitions/VisibilityTransitionVO.as
+++ src/reprise/css/transitions/VisibilityTransitionVO.as
@@ -20,7 +20,12 @@
 		{
 			if (startValue == 'hidden' || startValue == 'none')
 			{
-				return ratio == 0 ? startValue : endValue;
+				//For visibility and display, we want to switch to the "on"-state
+				//immediately instead of waiting another frame. This makes sense
+				//and prevents severe problems with validation caused by using
+				//display:none in transitions
+				log('start!',startValue);
+				return endValue;
 			}
 			return ratio == 1 ? endValue : startValue;
 		}


Conditional Syllogism switched over to translated argument

--- Arguments/src/logic/ConditionalSyllogism.as
+++ Arguments/src/logic/ConditionalSyllogism.as
@@ -23,8 +23,10 @@
 	import classes.ArgumentPanel;
 	import classes.DynamicTextArea;
 	import classes.Inference;
+	import classes.Language;

 	import mx.controls.Alert;
+

 	public class ConditionalSyllogism extends ParentArg
 	{
@@ -148,7 +150,8 @@
 					{
 						inference.inputs[0].text = inference.claim.inputs[0].text;
 					}
-					output = "If " + inference.inputs[1].text + ", then " +  inference.inputs[0].text;
+					output = Language.lookup("ArgIfCap") + inference.inputs[1].text +
+						"," +  Language.lookup("ArgThen") +  inference.inputs[0].text;
 					inference.inputs[1].forwardUpdate();
 					inference.inputs[0].forwardUpdate();
 					break;
@@ -158,7 +161,7 @@
 					{
 						inference.inputs[0].text = inference.claim.inputs[0].text;
 					}
-					output = inference.inputs[1].text + " implies " + inference.inputs[0].text;
+					output = inference.inputs[1].text + Language.lookup("ArgImplies") + inference.inputs[0].text;
 					inference.inputs[1].forwardUpdate();
 					inference.inputs[0].forwardUpdate();
 			}


Tracked down the bug that was causing some composed translations
to come out as "mmmmmmmmmmmmmmmmmmmmmm".

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

--- src/as/com/threerings/util/MessageBundle.as
+++ src/as/com/threerings/util/MessageBundle.as
@@ -371,7 +371,7 @@

         var buf :StringBuilder = new StringBuilder();
         for (var ii :int = 0; ii < val.length; ii++) {
-            var ch :String = val.charAt(0);
+            var ch :String = val.charAt(ii);
             if (ch != "\\" || ii == val.length-1) {
                 buf.append(ch);
             } else {


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

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

 package mx.graphics
 {


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

--- frameworks/projects/framework/src/mx/logging/LogEventLevel.as
+++ frameworks/projects/framework/src/mx/logging/LogEventLevel.as
@@ -0,0 +1,66 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2005-2006 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.logging
+{
+
+/**
+ *  Static class containing constants for use in the level
+ *  property.
+ */
+public final class LogEventLevel
+{
+	include "../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Class constants
+	//
+	//--------------------------------------------------------------------------
+
+    /**
+     *  Designates events that are very
+     *  harmful and will eventually lead to application failure.
+     */
+    public static const FATAL:int = 1000;
+
+    /**
+     *  Designates error events that might
+     *  still allow the application to continue running.
+     */
+    public static const ERROR:int = 8;
+
+    /**
+     *  Designates events that could be
+     *  harmful to the application operation.
+     */
+    public static const WARN:int = 6;
+
+    /**
+     *  Designates informational messages that
+     *  highlight the progress of the application at coarse-grained level.
+     */
+    public static const INFO:int = 4;
+
+    /**
+     *  Designates informational level
+     *  messages that are fine grained and most helpful when debugging an
+     *  application.
+     */
+    public static const DEBUG:int = 2;
+
+    /**
+     *  Tells a target to process all messages.
+     */
+    public static const ALL:int = 0;
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 18635
Author:   aharui@adobe.com
Date:     2010-11-17T00:18:36.469040Z

Log Message:
-----------
Add estimatedSizes to the layout infrastructure to better deal with text reflow.
Add new events to layout infrastructure to deal with caching of size information

QE notes: New APIs and Interfaces
Doc notes: New APIs and interfaces
Bugs: SDK-27226, SDK-26155, SDK-25483, SDK-23621, SDK-27225, SDK-26993, SDK-25535, SDK-25521
Reviewer: Evtim
Tests run: checkintests mustella full run
Is noteworthy for integration: yes

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/TileLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/layoutClasses/PriorityQueue.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ScrollerLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/core/Application.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/RichEditableText.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/BasicLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Group.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/PopUpAnchor.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/events/FlexEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/IContainerInvalidating.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/scripts/FormTestScript.mxml</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/ILayoutManagerContainerClient.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/DefaultItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/VerticalLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/IStyleManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/ILayoutElement.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/TextFieldGridItemRendererInclude.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/core/Container.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/LayoutManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Application.as</path>

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

--- frameworks/projects/spark/src/spark/components/Application.as
+++ frameworks/projects/spark/src/spark/components/Application.as
@@ -27,6 +27,7 @@
 import flash.utils.setInterval;

 import mx.core.FlexGlobals;
+import mx.core.FlexVersion;
 import mx.core.IInvalidating;
 import mx.core.InteractionMode;
 import mx.core.Singleton;
@@ -1005,9 +1006,21 @@
     //--------------------------------------------------------------------------

     /**
-     *  @private
-     */
-    override protected function invalidateParentSizeAndDisplayList():void
+     *  @private
+     *  Applications set estimated sizes for their children
+     */
+    override public function setActualSize(w:Number, h:Number):void
+    {
+        if (FlexVersion.compatibilityVersion >= FlexVersion.VERSION_4_5)
+            setEstimatedSize(w, h, false);
+
+        super.setActualSize(w, h);
+    }
+
+    /**
+     *  @private
+     */
+    override protected function invalidateParentSizeAndDisplayList(estimatedSizesChanged:Boolean = false):void
     {
         if (!includeInLayout)
             return;
@@ -1021,7 +1034,7 @@
             return;
         }

-        super.invalidateParentSizeAndDisplayList();
+        super.invalidateParentSizeAndDisplayList(estimatedSizesChanged);
     }

     /**
@@ -1449,6 +1462,7 @@
         {
             invalidateProperties();
             invalidateSize();
+            invalidateEstimatedSizesOfChildren();
         }

         setActualSize(w, h);


Transferred from the Adobe Open Source Subversion Repository

Revision: 17000
Author:   aharui@adobe.com
Date:     2010-07-21T19:25:55.009948Z

Log Message:
-----------
PopUpAnchor now sets owner property

QE notes: none
Doc notes: none
Bugs: SDK-26406
Reviewer: Corey
Tests run: checkintests mustella/gumbo/components/PopUpAnchor
Is noteworthy for integration: no

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

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

--- frameworks/projects/spark/src/spark/components/PopUpAnchor.as
+++ frameworks/projects/spark/src/spark/components/PopUpAnchor.as
@@ -22,6 +22,7 @@
 import flash.geom.Rectangle;

 import mx.core.IFlexDisplayObject;
+import mx.core.IUIComponent;
 import mx.core.LayoutDirection;
 import mx.core.UIComponent;
 import mx.core.mx_internal;
@@ -484,6 +485,8 @@
         if (DisplayObject(popUp).parent == null && displayPopUp)
         {
             PopUpManager.addPopUp(popUp,this,false);
+			if (popUp is IUIComponent)
+				IUIComponent(popUp).owner = this;
             popUpIsDisplayed = true;
             if (popUp is UIComponent && !popUpSizeCaptured)
             {


Revert of commit test.

Revert of commit test.

--- test/org/igniterealtime/xiff/util/DateTimeParserTest.as
+++ test/org/igniterealtime/xiff/util/DateTimeParserTest.as
@@ -34,7 +34,7 @@
 		{
 			var date:Date = new Date( 2000, 10, 30, 0, 0 );
 			var dateAsString:String = DateTimeParser.date2string( date );
-			assertEquals( "2000-12-30", dateAsString );
+			assertEquals( "2000-11-30", dateAsString );
 		}
 	}
 }


- change: Added "multiline" bool alias to parsing for property "multiline"

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

--- src/reprise/css/propertyparsers/Font.as
+++ src/reprise/css/propertyparsers/Font.as
@@ -42,7 +42,7 @@
 			textTransform : {parser : strToStringProperty, inheritable : true},
 			letterSpacing : {parser : strToFloatProperty, inheritable : true},
 			leading : {parser : strToIntProperty, inheritable : true},
-			multiline : {parser : strToBoolProperty, transition : BooleanTransitionVO},
+			multiline : {parser : parseMultiline, transition : BooleanTransitionVO},
 			wordWrap : {parser : strToStringProperty},
 			selectable : {parser : strToBoolProperty, transition : BooleanTransitionVO},
 			fontVariant : {parser : strToStringProperty},
@@ -70,6 +70,11 @@
 			return strToBoolProperty(val, file, ['fix']);
 		}

+		private static function parseMultiline(val:String, file:String) : CSSProperty
+		{
+			return strToBoolProperty(val, file, ['multiline']);
+		}
+
 		private static function parseRasterizeDeviceFonts(
 			val:String, file:String) : CSSProperty
 		{


- changed UIObject to add non UIObject-elements to its own display list instead of adding them to m_contentDisplay

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

--- src/reprise/ui/UIObject.as
+++ src/reprise/ui/UIObject.as
@@ -146,7 +146,14 @@

 		public override function addChild(child : DisplayObject) : DisplayObject
 		{
-			return addChildAt(child, m_children.length);
+			if (child is UIObject)
+			{
+				return addChildAt(child, m_children.length);
+			}
+			else
+			{
+				return super.addChild(child);
+			}
 		}

 		public override function addChildAt(
@@ -191,7 +198,7 @@
 			}
 			else
 			{
-				m_contentDisplay.addChildAt(child, index);
+				super.addChildAt(child, index);
 			}
 			return child;
 		}


Flushing batch before CommandComplete.

Flushing batch before CommandComplete.

Not doing this means we lose previous data unless a batch
happens to complete right before a CommandComplete message.

--- driver/src/main/flex/org/postgresql/febe/FEBEConnection.as
+++ driver/src/main/flex/org/postgresql/febe/FEBEConnection.as
@@ -187,8 +187,8 @@

 	    private function handleComplete(msg:CommandComplete):void {
 	        if (_queryHandler) {
+	        	flushPendingResults();
 	        	_queryHandler.handleCompletion(msg.commandTag, msg.affectedRows, msg.oid);
-	        	_currResults = [];
 	        	_queryHandler = null;
 	        } else {
 	        	throw new ProtocolError("Unexpected CommandComplete");
@@ -208,11 +208,15 @@
 	        }
 	    }

+        private function flushPendingResults():void {
+            if (_queryHandler && _currResults.length > 0) {
+                _queryHandler.handleData(_currResults);
+                _currResults = [];
+            }
+        }
+
         private function handleBatchComplete(e:Event):void {
-        	if (_queryHandler && _currResults.length > 0) {
-        		_queryHandler.handleData(_currResults);
-        		_currResults = [];
-        	}
+        	flushPendingResults();
         }

         // executeSimpleQuery and executeQuery should both notify caller when commandComplete


Fixed some bugs on session recording/playback, Added SPEEDTest to the TUIO XML parsing loop for debugging/comparison

--- AS3/int/flash/events/TUIO.as
+++ AS3/int/flash/events/TUIO.as
@@ -23,6 +23,7 @@
 	import flash.text.TextField;
 	import flash.text.TextFieldAutoSize;
 	import flash.text.TextFormat;
+	import flash.utils.getTimer;
 	//import caurina.transitions.Tweener;

 	public class TUIO
@@ -36,7 +37,7 @@
 		//-------------------------------------- DEBUG VARS
 		internal static var DEBUG:Boolean;
 		private static var INITIALIZED:Boolean;
-		private static var PLAYBACK:Boolean;
+		//private static var PLAYBACK:Boolean;
 		private static var RECORDING:Boolean;
 		private static var DEBUG_TEXT:TextField;
 		private static var DEBUG_BUTTON:Sprite;
@@ -80,7 +81,6 @@
 			//PLAYBACK = false;
 			OBJECT_ARRAY = new Array();
 			ID_ARRAY = new Array();
-
 			EVENT_ARRAY = new Array();

 			try
@@ -152,6 +152,10 @@
 //---------------------------------------------------------------------------------------------------------------------------------------------
 		private static function processMessage(msg:XML)
 		{
+			// SPEEDTEST: For speed testing the function
+			if (DEBUG)
+			var time:Number = getTimer();
+
 			var fseq:String;
 			var node:XML;
 			for each(node in msg.MESSAGE)
@@ -184,12 +188,10 @@
 			{
 				if(node.ARGUMENT[0])
 				{
-					var type:String;
-
+					var type:String;
 					if(node.@NAME == "/tuio/2Dobj")
 					{
 						/*
-
 						// fixme: ensure everything is working properly here.

 						type = node.ARGUMENT[0].@VALUE;
@@ -253,7 +255,6 @@
 							}
 						}
 						*/
-
 					}
 					else if(node.@NAME == "/tuio/2Dcur")
 					{
@@ -374,8 +375,7 @@
 			if(DEBUG)
 			{
 				DEBUG_TEXT.text = "";
-				DEBUG_TEXT.y = -2000;
-				DEBUG_TEXT.x = -2000;
+				DEBUG_TEXT.visible = false;
 			}
 			for (var i=0; i<OBJECT_ARRAY.length; i++ )
 			{
@@ -388,15 +388,18 @@

 				} else {
 					if(DEBUG)
-					{	var tmp = (int(OBJECT_ARRAY[i].area)/-100000);
-						//trace('area: '+tmp);
+					{
+						var tmp = (int(OBJECT_ARRAY[i].area)/-100000);
 						DEBUG_TEXT.appendText("  " + (i + 1) +" - " +OBJECT_ARRAY[i].ID + "  X:" + int(OBJECT_ARRAY[i].x) + "  Y:" + int(OBJECT_ARRAY[i].y) +
-						"  A:" + int(tmp) + "  \n");
-						DEBUG_TEXT.x = STAGE.stageWidth-200;
-						DEBUG_TEXT.y = 25;
+						"  A:" + int(tmp) + "  \n");
+						DEBUG_TEXT.visible = true;
 					}
 					}
 			}
+		// SPEEDTEST END
+		//trace("SPEEDTEST: " +  time + " - "  + getTimer() + " = " + (getTimer() - time));
+		if(DEBUG)
+		DEBUG_TEXT.appendText("  T - " + (getTimer() - time)+"  \n");
 		}
 //---------------------------------------------------------------------------------------------------------------------------------------------
         private static function activateDebugMode():void
@@ -408,7 +411,9 @@
 				DEBUG_TEXT.background = true;
 				DEBUG_TEXT.backgroundColor = 0x000000;
 				DEBUG_TEXT.border = true;
-				DEBUG_TEXT.borderColor = 0x333333;
+				DEBUG_TEXT.borderColor = 0x333333;
+				DEBUG_TEXT.x = STAGE.stageWidth-200;
+				DEBUG_TEXT.y = 25;
 				STAGE.addChild( DEBUG_TEXT );
 				STAGE.setChildIndex(DEBUG_TEXT, STAGE.numChildren-1);

@@ -442,7 +447,6 @@
 		private static function togglePlayback(e:Event)
 		{
 			PLAYBACK_URL = "http://nui.mine.nu/amfphp/services/test.xml";
-
 			if(PLAYBACK_URL != "")
 				 {
 					PLAYBACK_BUTTON.alpha = 0.9;
@@ -472,7 +476,6 @@
 				delete PLAYBACK_XML.OSCPACKET[0];

 				//if (PLAYBACK_XML.length) { }
-
 				PLAYBACK_BUTTON.alpha = 0.25;
 				//STAGE.frameRate = FRAME_RATE;
 				//trace(STAGE.frameRate);
@@ -488,7 +491,8 @@
 			e.target.alpha = 0.85;
 			//e.target.scaleX = e.target.scaleY = 1.0;
 			RECORD_BUTTON.visible = true;
-			PLAYBACK_BUTTON.visible = true;
+			PLAYBACK_BUTTON.visible = true;
+			DEBUG_TEXT.visible = true;
 			}
 			else{
 			DEBUG=false;
@@ -497,6 +501,7 @@
 			//e.target.scaleX = e.target.scaleY = 0.5;
 			RECORD_BUTTON.visible = false;
 			PLAYBACK_BUTTON.visible = false;
+			DEBUG_TEXT.visible = false;
 			}
 		}
 //---------------------------------------------------------------------------------------------------------------------------------------------
@@ -510,9 +515,8 @@
 		}
 //---------------------------------------------------------------------------------------------------------------------------------------------
 		private static function toggleRecord(e:Event)
-		{
+		{
 			var RESPONDER = new Responder(saveSession_Result, onFault);
-
 			if(!RECORDING){
 			RECORDING = true;
 			e.target.alpha = 0.9;
@@ -520,7 +524,8 @@
 			trace('-----------------------------------------------------------------------------------------------------');
 			trace('-------------------------------------- Record ON ----------------------------------------------------');
 			trace('-----------------------------------------------------------------------------------------------------');
-			SERVICE.call("touchlib.clearSession", RESPONDER);
+			SERVICE.call("touchlib.clearSession", RESPONDER);
+			RECORDED_XML = <OSCPackets></OSCPackets>;
 			}
 			else{
 			RECORDING = false;
@@ -530,15 +535,14 @@
 			trace('-----------------------------------------------------------------------------------------------------');
 			SERVICE.call("touchlib.saveSession", RESPONDER, RECORDED_XML.toXMLString());
 			//trace(RECORDED_XML.toString());
-			trace('-------------------------------------- Recording END ------------------------------------------------');
+			trace('-------------------------------------- Recording END ------------------------------------------------');
 			}
 		}
 //---------------------------------------------------------------------------------------------------------------------------------------------
 		private static function saveSession_Result(result)
 		{
-		DEBUG_TEXT.x = DEBUG_TEXT.y = 5;
 		DEBUG_TEXT.text = result;
-		//trace(result);
+		trace(result);
 		}
 //---------------------------------------------------------------------------------------------------------------------------------------------
         private static function dataHandler(event:DataEvent):void