Change 20090222-bargull-OwJ by bargull@dell--p4--2-53 on 2009-02-22 01:49:43
    in /home/Admin/src/svn/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: fix text height and lineheight for swf9

New Features:

Bugs Fixed: LPP-7784 (Text height clipping in swf9 looks different than swf8), LPP-7792 (SWF9: lineheight is wrong)

Technical Reviewer: ptw
QA Reviewer: henry
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:
LPP-7784
- setText: when sizeToHeight is true, just use textHeight (or lineheight when text is empty) for new height
- getTextfieldHeight: copied swf8 logic to get the same results in both runtimes

LPP-7792
- __setFormat: measure a sample text instead of the current text, because
1) an empty string isn't measured properly (LPP-7784 testcase)
2) lineheight is supposed to give the height of a line in the current text-format, but the htmlText may contain additional format rules (like "<font size=...>") which will alter the results

Tests:
testcases from bugreport, lzpix and amazon in swf9

git-svn-id: d62bde4b5aa582fdf07c8d403e53e0399a7ed285@13005 fa20e4f9-1d0a-0410-b5f3-dc9c16b8b17c

--- WEB-INF/lps/lfc/kernel/swf9/LzTextSprite.as
+++ WEB-INF/lps/lfc/kernel/swf9/LzTextSprite.as
@@ -26,8 +26,9 @@

         public var textfield:TextField = null;

-        public static var PAD_TEXTWIDTH:Number = 4;
-        public static var DEFAULT_SIZE = 11;
+        public static const PAD_TEXTWIDTH:Number = 4;
+        public static const PAD_TEXTHEIGHT:Number = 4;
+        public static const DEFAULT_SIZE:Number = 11;

         var font = null;

@@ -75,81 +76,80 @@
             this.textfield = createTextField(0,0,400,20);
         }

-
         override public function setClickable( c:Boolean ):void {
-          if (this.clickable == c) return;
-
-          this.textfield.mouseEnabled = c || this.textfield.selectable;
-          this.setCancelBubbling();
-
-          this.clickable = c;
-          if (c) {
-              attachMouseEvents(this.textfield);
-          } else {
-              removeMouseEvents(this.textfield);
-          }
-      }
+            if (this.clickable == c) return;
+
+            this.textfield.mouseEnabled = c || this.textfield.selectable;
+            this.setCancelBubbling();
+
+            this.clickable = c;
+            if (c) {
+                attachMouseEvents(this.textfield);
+            } else {
+                removeMouseEvents(this.textfield);
+            }
+        }

         public function addScrollEventListener():void {
             this.textfield.addEventListener(flash.events.Event.SCROLL, __handleScrollEvent);
         }

-    function __handleScrollEvent(e:Event = null) {
-      if (scroll !== textfield.scrollV) {
-        scroll = textfield.scrollV;
-        //Debug.info('__handleScrollEvent', 'scrollTop', lineNoToPixel(textfield.scrollV));
-        owner.scrollevent('scrollTop', lineNoToPixel(textfield.scrollV));
-      }
-      if (maxscroll !== textfield.maxScrollV) {
-        maxscroll = textfield.maxScrollV;
-        //Debug.info('__handleScrollEvent', 'scrollHeight', lineNoToPixel(textfield.maxScrollV));
-        owner.scrollevent('scrollHeight', lineNoToPixel(textfield.maxScrollV) + height);
-      }
-      if (hscroll !== textfield.scrollH) {
-        hscroll = textfield.scrollH;
-        //Debug.info('__handleScrollEvent', 'scrollLeft', textfield.scrollH);
-        owner.scrollevent('scrollLeft', textfield.scrollH);
-      }
-      if (maxhscroll !== textfield.maxScrollH) {
-        maxhscroll = textfield.maxScrollH;
-        //Debug.info('__handleScrollEvent', 'scrollWidth', textfield.maxScrollH);
-        owner.scrollevent('scrollWidth', textfield.maxScrollH + width);
-      }
-    }
-
-
-      // turn on/off canceling of mouse event bubbling
-      private function setCancelBubbling():void {
-          var dobj:DisplayObject = this.textfield;
-
-          // base on the displayobject's mouseenabled property - on for selectable
-          var prevent = this.textfield.mouseEnabled;
-          // if clickable is on, we don't want to cancel events
-          if (this.clickable) prevent = false;
-
-          if (prevent) {
-              dobj.addEventListener(MouseEvent.CLICK, __ignoreMouseEvent);
-              dobj.addEventListener(MouseEvent.DOUBLE_CLICK, __ignoreMouseEvent);
-              dobj.addEventListener(MouseEvent.MOUSE_DOWN, __ignoreMouseEvent);
-              dobj.addEventListener(MouseEvent.MOUSE_UP, __ignoreMouseEvent);
-              dobj.addEventListener(MouseEvent.MOUSE_OVER, __ignoreMouseEvent);
-              dobj.addEventListener(MouseEvent.MOUSE_OUT, __ignoreMouseEvent);
-          } else {
-              dobj.removeEventListener(MouseEvent.CLICK, __ignoreMouseEvent);
-              dobj.removeEventListener(MouseEvent.DOUBLE_CLICK, __ignoreMouseEvent);
-              dobj.removeEventListener(MouseEvent.MOUSE_DOWN, __ignoreMouseEvent);
-              dobj.removeEventListener(MouseEvent.MOUSE_UP, __ignoreMouseEvent);
-              dobj.removeEventListener(MouseEvent.MOUSE_OVER, __ignoreMouseEvent);
-              dobj.removeEventListener(MouseEvent.MOUSE_OUT, __ignoreMouseEvent);
-          }
-      }
-
-      private function __ignoreMouseEvent(e:MouseEvent) :void {
-          if (e.type != MouseEvent.MOUSE_UP || LzMouseKernel.__lastMouseDown == this) {
-              // don't cancel "onmouseup" if another sprite was selected
-              e.stopPropagation();
-          }
-      }
+        function __handleScrollEvent(e:Event = null) :void {
+            if (scroll !== textfield.scrollV) {
+                scroll = textfield.scrollV;
+                //Debug.info('__handleScrollEvent', 'scrollTop', lineNoToPixel(textfield.scrollV));
+                owner.scrollevent('scrollTop', lineNoToPixel(textfield.scrollV));
+            }
+            if (maxscroll !== textfield.maxScrollV) {
+                maxscroll = textfield.maxScrollV;
+                //Debug.info('__handleScrollEvent', 'scrollHeight', lineNoToPixel(textfield.maxScrollV));
+                owner.scrollevent('scrollHeight', lineNoToPixel(textfield.maxScrollV) + height);
+            }
+            if (hscroll !== textfield.scrollH) {
+                hscroll = textfield.scrollH;
+                //Debug.info('__handleScrollEvent', 'scrollLeft', textfield.scrollH);
+                owner.scrollevent('scrollLeft', textfield.scrollH);
+            }
+            if (maxhscroll !== textfield.maxScrollH) {
+                maxhscroll = textfield.maxScrollH;
+                //Debug.info('__handleScrollEvent', 'scrollWidth', textfield.maxScrollH);
+                owner.scrollevent('scrollWidth', textfield.maxScrollH + width);
+            }
+        }
+
+
+        // turn on/off canceling of mouse event bubbling
+        private function setCancelBubbling():void {
+            var dobj:DisplayObject = this.textfield;
+
+            // base on the displayobject's mouseenabled property - on for selectable
+            var prevent = this.textfield.mouseEnabled;
+            // if clickable is on, we don't want to cancel events
+            if (this.clickable) prevent = false;
+
+            if (prevent) {
+                dobj.addEventListener(MouseEvent.CLICK, __ignoreMouseEvent);
+                dobj.addEventListener(MouseEvent.DOUBLE_CLICK, __ignoreMouseEvent);
+                dobj.addEventListener(MouseEvent.MOUSE_DOWN, __ignoreMouseEvent);
+                dobj.addEventListener(MouseEvent.MOUSE_UP, __ignoreMouseEvent);
+                dobj.addEventListener(MouseEvent.MOUSE_OVER, __ignoreMouseEvent);
+                dobj.addEventListener(MouseEvent.MOUSE_OUT, __ignoreMouseEvent);
+            } else {
+                dobj.removeEventListener(MouseEvent.CLICK, __ignoreMouseEvent);
+                dobj.removeEventListener(MouseEvent.DOUBLE_CLICK, __ignoreMouseEvent);
+                dobj.removeEventListener(MouseEvent.MOUSE_DOWN, __ignoreMouseEvent);
+                dobj.removeEventListener(MouseEvent.MOUSE_UP, __ignoreMouseEvent);
+                dobj.removeEventListener(MouseEvent.MOUSE_OVER, __ignoreMouseEvent);
+                dobj.removeEventListener(MouseEvent.MOUSE_OUT, __ignoreMouseEvent);
+            }
+        }
+
+        private function __ignoreMouseEvent(e:MouseEvent) :void {
+            if (e.type != MouseEvent.MOUSE_UP || LzMouseKernel.__lastMouseDown == this) {
+                // don't cancel "onmouseup" if another sprite was selected
+                e.stopPropagation();
+            }
+        }

         public function enableClickableLinks( enabled:Boolean):void {
             if (enabled) {
@@ -184,7 +184,7 @@
         }

         private function createTextField(nx:Number, ny:Number, w:Number, h:Number):TextField {
-        var tfield:TextField = new TextField();
+            var tfield:TextField = new TextField();
             tfield.antiAliasType = flash.text.AntiAliasType.ADVANCED;
             tfield.x = nx;
             tfield.y = ny;
@@ -251,7 +251,7 @@
             // out how to suppress the other calls from setters.
             this.__setFormat();
             this.setText((args['text'] != null) ? String(args.text) : '');
-
+
             if (this.sizeToHeight) {
                 var h = this.lineheight;
                 //TODO [anba 20080602] is this ok for multiline?
@@ -379,17 +379,9 @@

             //multiline resizable fields adjust their height
             if (this.sizeToHeight) {
-                //FIXME [20080602 anba] won't possibly work, example:
-                //textfield.textHeight=100
-                //textfield.height=10
-                //=> setHeight(Math.max(100, 10)) == setHeight(100)
-                //setHeight sets textfield.height to 100
-                //next round:
-                //textfield.textHeight=10 (new text was entered)
-                //textfield.height=100 (set above!)
-                //=> setHeight(Math.max(10, 100)) == setHeight(100)
-                // => textfield.height still 100, sprite-height didn't change, but it should!
-                this.setHeight(Math.max(this.textfield.textHeight, this.textfield.height));
+                var theight:Number = this.textfield.textHeight;
+                if (theight == 0) theight = this.lineheight;
+                this.setHeight(theight + LzTextSprite.PAD_TEXTHEIGHT);
             }

             //this.textfield.cacheAsBitmap = true;
@@ -418,7 +410,7 @@

             // If there is no font found, assume a device font
             this.textfield.embedFonts = (this.font != null);
-
+
             tf.bold = (this.fontstyle == "bold" || this.fontstyle =="bolditalic");
             tf.italic = (this.fontstyle == "italic" || this.fontstyle =="bolditalic");
             tf.underline = (this.underline || this.textdecoration == "underline");
@@ -433,7 +425,12 @@

             this.textfield.defaultTextFormat = tf;

+            // measure sample text
+            var text:String = this.textfield[this.html ? 'htmlText' : 'text'];
+            this.textfield.text = "__ypgSAMPLE__";
             var lm:TextLineMetrics = this.textfield.getLineMetrics(0);
+            this.textfield[this.html ? 'htmlText' : 'text'] = text;
+
             var lh = lm.ascent + lm.descent + lm.leading;
             if (lh !== this.lineheight) {
               this.lineheight = lh;
@@ -441,8 +438,8 @@
               this.owner.scrollevent('lineHeight', lh);
             }
         }
-
-
+
+
         public function setMultiline ( ml:Boolean ):void {
             this.multiline = (ml == true);
             if (this.multiline) {
@@ -481,9 +478,33 @@
         }

         public function getTextfieldHeight ( ) {
-            return this.textfield.height;
-        }
-
+            var textclip:TextField = this.textfield;
+            var tca:String = textclip.autoSize;
+            var tcw:Number = textclip.width;
+            var tch:Number = textclip.height;
+
+            // turn on autoSize temporarily
+            textclip.autoSize = TextFieldAutoSize.LEFT;
+            // measure height and reset to the original values
+            var h:Number = textclip.height;
+
+            // Measure test string if the field is empty
+            if (h == LzTextSprite.PAD_TEXTHEIGHT) {
+                var tcp:Boolean = textclip.wordWrap;
+                // Make sure the test text does not wrap!
+                textclip.wordWrap = false;
+                textclip.htmlText = "__ypgSAMPLE__";
+                h = textclip.height;
+                textclip.wordWrap = tcp;
+                textclip.htmlText = "";
+            }
+
+            textclip.autoSize = tca;
+            textclip.height = tch;
+            textclip.width = tcw;
+
+            return h;
+        }

 function setHScroll(s:Number) {


Trimming key types and local names

Trimming key types and local names

--- WeaveJS/src/weavejs/data/key/QKeyManager.as
+++ WeaveJS/src/weavejs/data/key/QKeyManager.as
@@ -104,7 +104,13 @@
 		private function init_map_localName_qkey(keyType:String):Object
 		{
 			// key type not seen before, so initialize it
-			var map_localName_qkey:Object = new JS.Map();
+			var map_localName_qkey:Object;
+			// use & prefer the same map associated with the trimmed keyType
+			var trimmedKeyType:String = StandardLib.trim(keyType);
+			if (trimmedKeyType != keyType)
+				map_localName_qkey = map_keyType_localName_qkey.map.get(trimmedKeyType) || init_map_localName_qkey(trimmedKeyType);
+			else
+				map_localName_qkey = new JS.Map();
 			map_keyType_localName_qkey.map.set(keyType, map_localName_qkey);
 			return map_localName_qkey;
 		}
@@ -116,10 +122,10 @@
 		{
 			keyType = keyType == null ? null : String(keyType);

-			// get mapping of key strings to QKey weak references
 			var map_localName_qkey:Object = map_keyType_localName_qkey.map.get(keyType);
 			if (!map_localName_qkey)
 				map_localName_qkey = init_map_localName_qkey(keyType);
+			keyType = StandardLib.trim(keyType);

 			if (!csvParser)
 				csvParser = new CSVParser(false, DELIMITER);
@@ -127,27 +133,29 @@
 			for (var i:int = iStart; i < iEnd; i++)
 			{
 				var localName:String = String(keyStrings[i]);
-				var qkey:* = map_localName_qkey.get(localName);
-				if (qkey === undefined)
+				var qkey:QKey = map_localName_qkey.get(localName);
+				if (!qkey)
 				{
-					// QKey not created for this key yet (or it has been garbage-collected)
-					var qkeyString:String;
-					if (keyType)
+					var trimmedLocalName:String = StandardLib.trim(localName);
+					qkey = map_localName_qkey.get(trimmedLocalName);
+					if (!qkey)
 					{
-						qkeyString = csvParser.createCSVRow([keyType, localName]);
+						var qkeyString:String;
+						if (keyType)
+							qkeyString = csvParser.createCSVRow([keyType, trimmedLocalName]);
+						else
+							qkeyString = trimmedLocalName;
+
+						qkey = new QKey(keyType, trimmedLocalName, qkeyString);
+
+						map_localName_qkey.set(trimmedLocalName, qkey);
+						map_qkeyString_qkey.set(qkeyString, qkey);
+						array_numberToQKey[qkey.toNumber()] = qkey;
+						map_qkey_keyType.set(qkey, keyType);
+						map_qkey_localName.set(qkey, trimmedLocalName);
 					}
-					else
-					{
-						qkeyString = localName;
-					}
-					var qkeyTyped:QKey = qkey = new QKey(keyType, localName, qkeyString);
-
-					array_numberToQKey[qkeyTyped.toNumber()] = qkey;
-					if (map_localName_qkey !== map_qkeyString_qkey)
+					if (localName != trimmedLocalName)
 						map_localName_qkey.set(localName, qkey);
-					map_qkeyString_qkey.set(qkeyString, qkey);
-					map_qkey_keyType.set(qkey, keyType);
-					map_qkey_localName.set(qkey, localName);
 				}

 				output[i] = qkey;


Renamed openingDoor to fixDoor

Renamed openingDoor to fixDoor

fixDoor prevents the doors from flying into space somehow.


Preserve old time reporting behavior.

Preserve old time reporting behavior.

--- HLSPlugin/src/org/osmf/net/httpstreaming/HLSHTTPNetStream.as
+++ HLSPlugin/src/org/osmf/net/httpstreaming/HLSHTTPNetStream.as
@@ -451,9 +451,17 @@
 			return;
 		}

+		public var _hackAbsoluteTime:Number = 0.0;
+
 		public function get absoluteTime():Number
 		{
-			return super.time + _initialTime;
+			if(isNaN(_initialTime))
+				return 0.0;
+
+			var tmpTime:Number = super.time + _initialTime;
+			if(!isNaN(tmpTime))
+				_hackAbsoluteTime = tmpTime;
+			return _hackAbsoluteTime;
 		}

 		protected var _timeCache_LastUpdatedTimestamp:Number = NaN;
@@ -524,7 +532,7 @@
 				{
 					// Failed to cache so can't return a real value.
 					//trace("Failed to updated time cache so aborting.");
-					return NaN;
+					return _lastValidTimeTime;
 				}
 			}


Clarify debug output.

Clarify debug output.

--- HLSPlugin/src/org/osmf/net/httpstreaming/HLSHTTPNetStream.as
+++ HLSPlugin/src/org/osmf/net/httpstreaming/HLSHTTPNetStream.as
@@ -686,7 +686,7 @@
 			_initializeFLVParser = true;
 			CONFIG::LOGGING
 			{
-				logger.debug("Changing source to " + streamName + " , " + seekTarget);
+				logger.debug("Changing source to " + streamName + " , seekTarget=" + seekTarget);
 			}

 			// Make sure we don't go past the buffer for the live edge.


adjust live playlist reload timer when play position is near the edge of the live playlist related to #198

--- src/org/mangui/hls/loader/LevelLoader.as
+++ src/org/mangui/hls/loader/LevelLoader.as
@@ -162,7 +162,14 @@
                 _hls.dispatchEvent(new HLSEvent(HLSEvent.LEVEL_ENDLIST, level));
             } else {
                 _type = HLSTypes.LIVE;
-                var timeout : Number = Math.max(100, _reload_playlists_timer + 1000 * _levels[level].averageduration - getTimer());
+                /* in order to determine playlist reload timer,
+                    check playback position against playlist duration.
+                    if we are near the edge of a live playlist, reload playlist quickly
+                    to discover quicker new fragments and avoid buffer starvation.
+                */
+                var reload_interval : Number = 1000*Math.min((_levels[level].duration - _hls.position)/2,_levels[level].averageduration);
+                // avoid spamming the server if we are at the edge ... wait 500ms between 2 reload at least
+                var timeout : Number = Math.max(500, _reload_playlists_timer + reload_interval - getTimer());
                 CONFIG::LOGGING {
                     Log.debug("Level " + level + " Live Playlist parsing finished: reload in " + timeout.toFixed(0) + " ms");
                 }


[Mangui.DemuxHelper] Make probe Level parameter optional

Selection logic ensures proper Demuxer is used anyway

--- src/org/mangui/hls/demux/TSDemuxer.as
+++ src/org/mangui/hls/demux/TSDemuxer.as
@@ -110,7 +110,6 @@
                                   callback_error : Function,
                                   callback_videometadata : Function,
                                   audioOnly : Boolean) {
-            _avcc = null;
             _curAudioPES = null;
             _curVideoPES = null;
             _curId3PES = null;
@@ -137,6 +136,7 @@
         /** append new TS data */
         public function append(data : ByteArray) : void {
             if (_dataVector == null) {
+		_avcc = null;
                 _dataVector = new Vector.<ByteArray>();
                 _dataComplete = false;
                 _readPosition = 0;
@@ -477,16 +477,7 @@
                             /* push current data into video tag, if any */
                             _curVideoTag.push(_curNalUnit, 0, _curNalUnit.length);
                         }
-                        // only push current tag if AVC HEADER has been pushed already
-                        if(_avcc) {
-                            _curVideoTag.build();
-                            _tags.push(_curVideoTag);
-                        }
-                        CONFIG::LOGGING {
-                            if(!_avcc) {
-                                Log.warn("TS: discarding video tag, as AVC HEADER not found yet, fragment not starting with I-Frame ?");
-                            }
-                        }
+                        _tags.push(_curVideoTag);
                     }
                     _curNalUnit = new ByteArray();
                     _curVideoTag = new FLVTag(FLVTag.AVC_NALU, pes.pts, pes.dts, false);


Transferred from the Adobe Open Source Subversion Repository

Revision: 3448
Author:   chaase@adobe.com
Date:     2008-10-01T23:50:40.097700Z

Log Message:
-----------
Adding new SetAction effect, plus minor improvements to effects overall. This new effect combines the old SetPropertyAction and SetStyleAction effects, figuring out for the named property whether it is a property or a style of the target object. Also, added new capabilities to Animation class and fixed some problems with easing default values.

Reviewed by Glenn
tests: checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Effect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/Animate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/Animation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/NewEffects.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/mxml-2009-manifest.xml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/effectClasses/SetActionInstance.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/SetAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/gumbo-manifest.xml</path>

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

--- frameworks/projects/framework/src/mx/effects/Effect.as
+++ frameworks/projects/framework/src/mx/effects/Effect.as
@@ -1172,7 +1172,13 @@
                 m = styles.length;
                 for (j = 0; j < m; j++)
                 {
-                    valueMap[styles[j]] = target.getStyle(styles[j]);
+                    // Don't clobber values set by relevantProperties
+                    if (valueMap[styles[j]] === undefined)
+                    {
+                        var value:* = target.getStyle(styles[j]);
+                        if (value !== undefined)
+                            valueMap[styles[j]] = value;
+                    }
                 }
             }
         }


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

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

 package mx.effects.easing
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 1118
Author:   shodgson@adobe.com
Date:     2008-04-07T18:27:54.254536Z

Log Message:
-----------
Merge 1117 from branches/3.0.x to trunk.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/AbstractProducer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/ChannelSet.as</path>

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

--- frameworks/projects/rpc/src/mx/messaging/ChannelSet.as
+++ frameworks/projects/rpc/src/mx/messaging/ChannelSet.as
@@ -1133,7 +1133,17 @@
     public function send(agent:MessageAgent, message:IMessage):void
     {
         if (connected)
-        {
+        {
+            // Filter out any commands to trigger connection establishment, and ack them locally.
+            if ((message is CommandMessage) && (CommandMessage(message).operation == CommandMessage.TRIGGER_CONNECT_OPERATION))
+            {
+                var ack:AcknowledgeMessage = new AcknowledgeMessage();
+                ack.clientId = agent.clientId;
+                ack.correlationId = message.messageId;
+                agent.acknowledge(ack, message);
+                return;
+            }
+
             // If this ChannelSet targets a clustered destination, request the
             // endpoint URIs for the cluster.
             if (!_hasRequestedClusterEndpoints && clustered)


Clarify comment

Clarify comment

--- lib/src_linux/com/amanitadesign/steam/FRESteamWorks.as
+++ lib/src_linux/com/amanitadesign/steam/FRESteamWorks.as
@@ -94,13 +94,14 @@
 			}

 			// try to start the process a second time, but this time ignoring any
-			// potential errors. this seems to give the runtime enough time to check
+			// potential errors since we will definitely get one about the process
+			// already running. this seems to give the runtime enough time to check
 			// for any stderr output of the initial call to startProcess(), so that we
-			// now can check if it actually started. process.running is unreliable,
-			// in that it's always set to true, even if the process didn't start at all
-			// in case it couldn't load one of the libraries it depends on, it prints
-			// something like "error while loading shared libraries" to stderr,
-			// which we're trying to detect here
+			// now can check if it actually started: in case it couldn't one of the
+			// libraries it depends on, it prints something like "error while loading
+			// shared libraries" to stderr, which we're trying to detect here.
+			// process.running is unreliable, in that it's always set to true,
+			// even if the process didn't start at all
 			try {
 				startProcess();
 			} catch(e:Error) {


iterator

iterator

--- source/com/kemsky/support/TypeCache.as
+++ source/com/kemsky/support/TypeCache.as
@@ -30,7 +30,7 @@

         public static function getQualifiedClassName(object:*):String
         {
-            if(!(object is Class || object is XML) && object != null)
+            if(!(object is XML || object is Class) && object != null)
             {
                 object = object.constructor;
             }


fixed display bug in text glyph plotter

fixed display bug in text glyph plotter

Change-Id: Ic18f838f881d86581a2eccf772b206e7b1104972

--- WeaveUI/src/weave/visualization/plotters/TextGlyphPlotter.as
+++ WeaveUI/src/weave/visualization/plotters/TextGlyphPlotter.as
@@ -176,17 +176,26 @@
 					// draw almost-invisible rectangle behind text
 					bitmapText.getUnrotatedBounds(tempBounds);
 					tempBounds.getRectangle(tempRectangle);
-
-					var pixels:Vector.<uint> = destination.getVector(tempRectangle);
-					for (var p:int = 0; p < pixels.length; p++)
+					// HACK -- check the pixel at (x,y) to decide how to draw the rectangular halo
+					var pixel:uint = destination.getPixel(bitmapText.x, bitmapText.y);
+					if (pixel)
 					{
-						var color:uint = pixels[p] as uint;
-						if (!color)
-							pixels[p] = color | 0x20ffffff;
+						// If the pixel is already set, check all the pixels and only set the ones that aren't set yet.
+						var pixels:Vector.<uint> = destination.getVector(tempRectangle);
+						for (var p:int = 0; p < pixels.length; p++)
+						{
+							pixel = pixels[p] as uint;
+							if (!pixel)
+								pixels[p] = 0x20ffffff; // alpha 0.125, still visible -- provides desired effect when applying default probe filters
+						}
+						destination.setVector(tempRectangle, pixels);
 					}
-					destination.setVector(tempRectangle, pixels);
-
-					//destination.fillRect(tempRectangle, 0x02808080);
+					else
+					{
+						// If the pixel is not set, assume the rest of the pixels aren't set either -- just overwrite the rectangle.
+						// The purpose of this mode is to avoid having a visible halo while still giving the desired halo effect when using text bitmap filters.
+						destination.fillRect(tempRectangle, 0x02808080); // alpha 0.008, invisible
+					}
 				}

 				bitmapText.draw(destination);


bitrate value added to the debug info

bitrate value added to the debug info

--- KalturaHLSPlugin/src/com/kaltura/kdpfl/plugin/KalturaHLSMediator.as
+++ KalturaHLSPlugin/src/com/kaltura/kdpfl/plugin/KalturaHLSMediator.as
@@ -25,9 +25,6 @@
 	import org.puremvc.as3.interfaces.INotification;
 	import org.puremvc.as3.patterns.mediator.Mediator;

-	import org.osmf.net.httpstreaming.HLSHTTPStreamSource;
-	import org.osmf.events.HTTPStreamingEvent;
-
 	public class KalturaHLSMediator extends Mediator
 	{
 		public static const NAME:String = "KalturaHLSMediator";
@@ -206,6 +203,11 @@
 				debugInfo['currentBitrate'] = _currentBitrateValue;
 			}

+			if( _currentBitrateValue != _dynamicTrait.getBitrateForIndex(_dynamicTrait.currentIndex) ){
+				_currentBitrateValue = _dynamicTrait.getBitrateForIndex(_dynamicTrait.currentIndex);
+				debugInfo['currentBitrate'] = _currentBitrateValue;
+			}
+
 			sendNotification("debugInfoReceived", debugInfo);
 		}


Allow the defaultTextFormat initProps to be specified more conveniently.

git-svn-id: b675b909355d5cf946977f44a8ec5a6ceb3782e4@478 ed5b42cb-e716-0410-a449-f6a68f950b19

--- src/as/com/threerings/flash/TextFieldUtil.as
+++ src/as/com/threerings/flash/TextFieldUtil.as
@@ -51,11 +51,11 @@
      * @param initProps contains properties with which to initialize the TextField.
      * Additionally it may contain the following properties:
      *    outlineColor: uint
-     *
-     * initProps may be destructively modified.
+     * @param formatProps contains properties with which to initialize the defaultTextFormat.
      */
     public static function createField (
-        text :String, initProps :Object = null, clazz :Class = null) :TextField
+        text :String, initProps :Object = null, formatProps :Object = null, clazz :Class = null)
+        :TextField
     {
         var tf :TextField = (clazz == null) ? new TextField() : TextField(new clazz());

@@ -64,6 +64,9 @@
         }

         Util.init(tf, initProps, null, MASK_FIELD_PROPS);
+        if (formatProps != null) {
+            tf.defaultTextFormat = createFormat(formatProps);
+        }
         tf.text = text;
         if (tf.autoSize != TextFieldAutoSize.NONE) {
             tf.width = tf.textWidth + WIDTH_PAD;


Transferred from the Adobe Open Source Subversion Repository

Revision: 10708
Author:   egeorgie@adobe.com
Date:     2009-09-30T03:17:16.772618Z

Log Message:
-----------
Add support for drag-and-drop from Spark List to Halo ListBase.

QE notes: Dragging from Spark and dropping in Halo is now possible.
Doc notes: None
Bugs: None
Reviewer: Ryan
Tests run: checkintests, mustella (containers, DragManager)
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as</path>

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

--- frameworks/projects/mx/src/mx/controls/listClasses/ListBase.as
+++ frameworks/projects/mx/src/mx/controls/listClasses/ListBase.as
@@ -20,7 +20,6 @@
 import flash.display.Graphics;
 import flash.display.Shape;
 import flash.display.Sprite;
-import flash.events.DataEvent;
 import flash.events.Event;
 import flash.events.KeyboardEvent;
 import flash.events.MouseEvent;
@@ -28,7 +27,6 @@
 import flash.ui.Keyboard;
 import flash.utils.Dictionary;
 import flash.utils.clearInterval;
-import flash.utils.getTimer;
 import flash.utils.setInterval;

 import mx.collections.ArrayCollection;
@@ -48,7 +46,6 @@
 import mx.core.EdgeMetrics;
 import mx.core.EventPriority;
 import mx.core.FlexShape;
-import mx.core.FlexSprite;
 import mx.core.IDataRenderer;
 import mx.core.IFactory;
 import mx.core.IFlexDisplayObject;
@@ -59,10 +56,8 @@
 import mx.core.ScrollControlBase;
 import mx.core.ScrollPolicy;
 import mx.core.SpriteAsset;
-import mx.core.UITextField;
 import mx.core.mx_internal;
 import mx.effects.IEffect;
-import mx.effects.IEffectInstance;
 import mx.effects.IEffectTargetHost;
 import mx.effects.Tween;
 import mx.events.CollectionEvent;
@@ -72,7 +67,6 @@
 import mx.events.FlexEvent;
 import mx.events.ListEvent;
 import mx.events.MoveEvent;
-import mx.events.PropertyChangeEvent;
 import mx.events.SandboxMouseEvent;
 import mx.events.ScrollEvent;
 import mx.events.ScrollEventDetail;
@@ -10290,7 +10284,8 @@

         lastDragEvent = event;

-        if (enabled && iteratorValid && event.dragSource.hasFormat("items"))
+        if (enabled && iteratorValid &&
+            (event.dragSource.hasFormat("items") || event.dragSource.hasFormat("orderedItems")))
         {
             DragManager.acceptDragDrop(this);
             DragManager.showFeedback(event.ctrlKey ? DragManager.COPY : DragManager.MOVE);
@@ -10322,7 +10317,8 @@

         lastDragEvent = event;

-        if (enabled && iteratorValid && event.dragSource.hasFormat("items"))
+        if (enabled && iteratorValid &&
+            (event.dragSource.hasFormat("items") || event.dragSource.hasFormat("orderedItems")))
         {
             DragManager.showFeedback(event.ctrlKey ? DragManager.COPY : DragManager.MOVE);
             showDropFeedback(event);
@@ -10387,48 +10383,90 @@
         hideDropFeedback(event);
         lastDragEvent = null;
         resetDragScrolling();
-
-        if (enabled && event.dragSource.hasFormat("items"))
-        {
-            if (!dataProvider)
-                // Create an empty collection to drop items into.
-                dataProvider = [];
-
-            var items:Array = event.dragSource.dataForFormat("items") as Array;
-            var dropIndex:int = calculateDropIndex(event);
-            if (event.action == DragManager.MOVE && dragMoveEnabled)
-            {
-                if (event.dragInitiator == this)
-                {
-                    var indices:Array = selectedIndices;
-                    indices.sort(Array.NUMERIC);
-
-                    for (var i:int = indices.length - 1; i >= 0; i--)
-                    {
-                        collectionIterator.seek(CursorBookmark.FIRST, indices[i]);
-                        if (indices[i] < dropIndex)
-                            dropIndex--;
-                        collectionIterator.remove();
-                    }
-                    clearSelected(false);
-                }
-            }
-            collectionIterator.seek(CursorBookmark.FIRST, dropIndex);
+
+        if (!enabled)
+            return;
+
+        var dragSource:DragSource = event.dragSource;
+        if (!dragSource.hasFormat("items") && !dragSource.hasFormat("orderedItems"))
+            return;
+
+        if (!dataProvider)
+            // Create an empty collection to drop items into.
+            dataProvider = [];
+
+        var dropIndex:int = calculateDropIndex(event);
+
+        if (dragSource.hasFormat("items"))
+            insertItems(dropIndex, dragSource, event);
+        else
+            insertOrderedItems(dropIndex, dragSource, event);
+
+        lastDragEvent = null;
+    }
+
+    /**
+     *  @private
+     *  Insert for drag and drop, handles the Spark "orderedItems" data format.
+     */
+    private function insertOrderedItems(dropIndex:int, dragSource:DragSource, event:DragEvent):void
+    {
+        var items:Vector.<Object> = dragSource.dataForFormat("orderedItems") as Vector.<Object>;
+
+        // Copy or move the items. No need to check whether the operation is
+        // reorder within this list, as ListBase never creates the
+        // "orderedItems" data format. This is a new data format from Spark List only.
+        collectionIterator.seek(CursorBookmark.FIRST, dropIndex);
+        var count:int = items.length;
+        for (var i:int = 0; i < count; i++)
+        {
+            if (event.action == DragManager.COPY)
+            {
+                collectionIterator.insert(copyItemWithUID(items[i]));
+            }
+            else if (event.action == DragManager.MOVE)
+            {
+                collectionIterator.insert(items[i]);
+            }
+        }
+    }
+
+    /**
+     *  @private
+     *  Insert for drag and drop, handles the Halo "items" data format.
+     */
+    private function insertItems(dropIndex:int, dragSource:DragSource, event:DragEvent):void
+    {
+        var items:Array = dragSource.dataForFormat("items") as Array;
+        if (event.action == DragManager.MOVE &&
+            dragMoveEnabled &&
+            event.dragInitiator == this)
+        {
+            var indices:Array = selectedIndices;
+            indices.sort(Array.NUMERIC);

-            for (i = items.length - 1; i >= 0; i--)
-            {
-                if (event.action == DragManager.COPY)
-                {
-                    collectionIterator.insert(copyItemWithUID(items[i]));
-                }
-                else if (event.action == DragManager.MOVE)
-                {
-                    collectionIterator.insert(items[i]);
-                }
-            }
-        }
-        lastDragEvent = null;
-
+            for (var i:int = indices.length - 1; i >= 0; i--)
+            {
+                collectionIterator.seek(CursorBookmark.FIRST, indices[i]);
+                if (indices[i] < dropIndex)
+                    dropIndex--;
+                collectionIterator.remove();
+            }
+            clearSelected(false);
+        }
+        collectionIterator.seek(CursorBookmark.FIRST, dropIndex);
+
+        for (i = items.length - 1; i >= 0; i--)
+        {
+            if (event.action == DragManager.COPY)
+            {
+                collectionIterator.insert(copyItemWithUID(items[i]));
+            }
+            else if (event.action == DragManager.MOVE)
+            {
+                collectionIterator.insert(items[i]);
+            }
+        }
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 5213
Author:   egeorgie@adobe.com
Date:     2009-03-09T21:36:12.100484Z

Log Message:
-----------
Fix bug SDK-19480 Horizontal gaps can become nonzero when explicitly set to 0,
SDK-19233 Increasing the width of the content (e.g. columnWidth or horizontalGap) eventually causes a Group to unnecessarily increase its height,
SDK-19519 TileLayout justifyColumns and justifyRows should use classes with static constant

Fix: SDK-19480: Make sure that we enforce the maximum rounded cell width/height instead of the original value.
Fix: SDK-19233: Make sure there are no empty rows/columns, check for both top and bottom rounding for both rows and columns.

QE Notes: None
Doc Notes: None
Bugs: SDK-19480, SDK-19233
Reviewer: Hans
tests: checkintests, gen docs, mustella (tileLayout)

Modified Paths:
--------------
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/TileOrientation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/TileLayout.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/TileJustifyColumns.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/TileJustifyRows.as</path>

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

--- frameworks/projects/spark/src/spark/layouts/TileOrientation.as
+++ frameworks/projects/spark/src/spark/layouts/TileOrientation.as
@@ -0,0 +1,48 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2008 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.layout
+{
+
+/**
+ *  Enumerated type for the TileLayout's orientation
+ *  property.
+ *
+ *  @see TileLayout#orientation
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+public final class TileOrientation
+{
+    /**
+     *  Arranges elements row by row.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public static const ROWS:String = "rows";
+
+    /**
+     *  Arranges elements column by column.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public static const COLUMNS:String = "columns";
+}
+}


Handle disparate initialization patterns in XSmartURL

--- as3/xobjas3/src/com/rpath/xobj/XSmartURL.as
+++ as3/xobjas3/src/com/rpath/xobj/XSmartURL.as
@@ -34,6 +34,8 @@
         baseURL = new URL(this.value);
     }

+
+
     public function get baseURL():URL
     {
         return _baseURL;
@@ -52,8 +54,18 @@
      * which is a poor man's metadata right now
      */
     [xobjTransient]
-    public var descriptor:XSmartURLDescriptor;
-
+    private var _descriptor:XSmartURLDescriptor;
+
+    public function get descriptor():XSmartURLDescriptor
+    {
+        return _descriptor;
+    }
+
+    public function set descriptor(value:XSmartURLDescriptor):void
+    {
+        _descriptor = value;
+        recomputeQualifiedURL();
+    }

     /** paging support
      */
@@ -173,6 +185,9 @@
     {
         var params:Dictionary = new Dictionary();
         var query:String = "";
+
+        if (!descriptor)
+            return query;

         if (rangeRequest)
         {


remove useless check for _resource != null in RenderTarget.width and RenderTarget.height setters

--- src/aerys/minko/render/RenderTarget.as
+++ src/aerys/minko/render/RenderTarget.as
@@ -29,9 +29,7 @@
 		public function set width(value : uint) : void
 		{
 			_width = value;
-
-			if (_resource)
-				_resource.setSize(value, _height);
+			_resource.setSize(value, _height);
 		}

 		public function get height() : uint
@@ -41,9 +39,7 @@
 		public function set height(value : uint) : void
 		{
 			_height = value;
-
-			if (_resource)
-				_resource.setSize(_width, value);
+			_resource.setSize(_width, value);
 		}

 		public function get textureResource() : ITextureResource


Wire up so descendants can do something when sprites are clicked.

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

--- src/as/com/threerings/stage/client/CrowdStageScenePanel.as
+++ src/as/com/threerings/stage/client/CrowdStageScenePanel.as
@@ -501,11 +501,21 @@
         var viewPt :Point = _isoView.globalToLocal(new Point(event.stageX, event.stageY));
         var iso :Point = _isoView.localToIso(new Point(viewPt.x, viewPt.y));

+        if (hobject is CharacterIsoSprite) {
+            handleSpriteClicked(CharacterIsoSprite(hobject));
+            return true;
+        }
+
         // Move ourselves to the spot clicked.
         handleLocationClicked(new StageLocation(MisoUtil.tileToFull(iso.x),
             MisoUtil.tileToFull(iso.y), 0));

         return true;
+    }
+
+    protected function handleSpriteClicked (sprite :CharacterIsoSprite) :void
+    {
+        // Nothing by default.
     }

     protected function displayFeedback (msg :String) :void


rename variable for sake of clarity

rename variable for sake of clarity

--- src/com/mangui/HLS/streaming/Buffer.as
+++ src/com/mangui/HLS/streaming/Buffer.as
@@ -31,8 +31,8 @@
         /** Next loading fragment sequence number. **/
         /** The start position of the stream. **/
         public var PlaybackStartPosition:Number = 0;
-         /** start play time **/
-        private var _playback_start_time:Number;
+         /** start playback position in second, retrieved from first fragment **/
+        private var _playback_start_position:Number;
         /** playback start PTS. **/
         private var _playback_start_pts:Number;
         /** playlist start PTS when playback started. **/
@@ -77,7 +77,7 @@
             if(_buffer.length) {
                buffer = (_buffer_last_pts - _playback_start_pts)/1000 - _stream.time;
                /** Current play time (time since beginning of playback) **/
-               var playback_current_time:Number = (Math.round(_stream.time*100 + _playback_start_time*100)/100);
+               var playback_current_time:Number = (Math.round(_stream.time*100 + _playback_start_position*100)/100);
                var current_playlist_start_pts:Number = _loader.getPlayListStartPTS();
                var play_position:Number;
                if(current_playlist_start_pts ==Number.NEGATIVE_INFINITY) {
@@ -170,19 +170,20 @@

         /** Add a fragment to the buffer. **/
         private function _loaderCallback(tags:Vector.<Tag>,min_pts:Number,max_pts:Number):void {
+            // flush already injected Tags and restart index from 0
             _buffer = _buffer.slice(_buffer_current_index);
             _buffer_current_index = 0;
             if (_playback_start_pts == Number.NEGATIVE_INFINITY) {
                _playback_start_pts = min_pts;
                _playlist_start_pts = _loader.getPlayListStartPTS();
-               _playback_start_time = (_playback_start_pts-_playlist_start_pts)/1000;
+               _playback_start_position = (_playback_start_pts-_playlist_start_pts)/1000;
             }
             _buffer_last_pts = max_pts;
             tags.sort(_sortTagsbyDTS);
             for each (var t:Tag in tags) {
                _buffer.push(t);
             }
-            _buffer_next_time=_playback_start_time+(_buffer_last_pts-_playback_start_pts)/1000;
+            _buffer_next_time=_playback_start_position+(_buffer_last_pts-_playback_start_pts)/1000;
             Log.txt("_loaderCallback,_buffer_next_time:"+ _buffer_next_time);
             _loading = false;
         };


Added TODO: figure out when event should be cloned.
Restored the "write-once" comment that got lost.

git-svn-id: 9085b6c627c116a57de1019657806a8c000cc042@18 6e9afafe-9be5-11de-811b-9ff18243e0fd

--- src/com/robertpenner/signals/Signal.as
+++ src/com/robertpenner/signals/Signal.as
@@ -83,7 +83,8 @@
 			var event:IEvent = eventObject as IEvent;
 			if (event)
 			{
-				if (!event.target) event.target = this.target;
+				//TODO: figure out when the event should be cloned
+				if (!event.target) event.target = this.target; // write-once
 				event.currentTarget = this.target;
 				event.signal = this;
 			}


Bubbling now stops when a target is found that has the onEventBubbled() handler (via Richard Lord).

git-svn-id: 3635f658cd63696bbccf5e31eb8660aa893cf08d@20 6e9afafe-9be5-11de-811b-9ff18243e0fd

--- src/com/robertpenner/signals/Signal.as
+++ src/com/robertpenner/signals/Signal.as
@@ -106,12 +106,13 @@

 			//// Bubble the event as far as possible.
 			var currentTarget:Object = this.target;
-			while ( currentTarget.hasOwnProperty("parent")
+			while ( currentTarget && currentTarget.hasOwnProperty("parent")
 					&& (currentTarget = currentTarget.parent) )
 			{
 				if (currentTarget is IEventBubbler)
 				{
 					IEventBubbler(currentTarget).onEventBubbled(event);
+					currentTarget = null;
 				}
 			}
 		}


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

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

 package spark.collections
 {


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

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

 package mx.charts.chartClasses
 {


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

 package mx.filters
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 6257
Author:   smgilson@adobe.com
Date:     2009-04-24T21:28:52.430843Z

Log Message:
-----------
ASDoc edits for effects

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/easing/EaseInOutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/Animation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/IAnimationTarget.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/easing/IEaser.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/RepeatBehavior.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/easing/Linear.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformScale.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/easing/EasingFraction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/easing/Power.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/interpolation/IInterpolator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/interpolation/NumberInterpolator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/easing/Sine.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/interpolation/RGBInterpolator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/interpolation/HSBInterpolator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/interpolation/ArrayInterpolator.as</path>

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

--- frameworks/projects/spark/src/spark/effects/easing/EaseInOutBase.as
+++ frameworks/projects/spark/src/spark/effects/easing/EaseInOutBase.as
@@ -11,11 +11,25 @@
 package spark.effects.easing
 {
 /**
- * The superclass for classes that provide easing capability where there
- * is an easing-in portion of the animation followed by an easing-out portion.
- * The default behavior of this class will simply return a linear
- * interpolation for both easing phases; developers should create a subclass
- * of EaseInOutBase to get more interestion behavior.
+ *  The EaseInOutBase class is the base class that provide easing capability.
+ *  The EaseInOutBase class  defines easing as consisting of two phases:
+ *  the acceleration, or ease in phase, followed by the deceleration, or ease out phase.
+ *  The default behavior of this class returns a linear
+ *  interpolation for both easing phases. You can create a subclass
+ *  of EaseInOutBase to get more interestion behavior.
+ *
+ *  @mxml
+ *
+ *
The <mx:EaseInOutBase> tag
+ *  inherits all of the tag attributes of its of its superclass,
+ *  and adds the following tag attributes:

+ *
+ *

+ *  <mx:EaseInOutBase
+ *    id="ID"
+ *    easeInFraction="0.5"
+ *   />
+ *

  *
  *  @langversion 3.0
  *  @playerversion Flash 10
@@ -26,13 +40,12 @@
 {

     /**
-     * Constructs an EaseInOutBase instance with an optional easeInFraction
-     * parameter.
+     *  Constructor.
      *
-     * @param easeInFraction Optional parameter that sets the value of
-     * the easeInFraction property. The default value is
-     * EasingFraction.IN_OUT, which eases in for the first half
-     * of the time and eases out for the remainder.
+     *  @param easeInFraction Sets the value of
+     *  the easeInFraction property. The default value is
+     *  EasingFraction.IN_OUT, which eases in for the first half
+     *  of the time and eases out for the remainder.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -55,18 +68,16 @@
     private var _easeInFraction:Number = .5;

     /**
-     * The percentage of an animation that should be spent accelerating.
-     * This factor sets an implicit
-     * "easeOut" parameter, equal to (1 - easeIn), so that any time not
-     * spent easing in is spent easing out. For example, to have an easing
-     * equation that spends half the time easing in and half easing out,
-     * set easeIn equal to .5.
-     *
-     * @see IN
-     * @see OUT
-     * @see IN_OUT
-     *
-     * @default .5
+     *  The percentage of an animation that should be spent accelerating.
+     *  This factor sets an implicit
+     *  "easeOut" parameter, equal to (1 - easeIn), so that any time not
+     *  spent easing in is spent easing out. For example, to have an easing
+     *  equation that spends half the time easing in and half easing out,
+     *  set easeIn to .5.
+     *
+     *
Valid values are between 0.0 and 1.0.

+     *
+     *  @default .5
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -83,17 +94,23 @@
     }

     /**
-     * @inheritDoc
+     *  Takes the fraction representing the elapsed duration of an animation
+     *  (a value between 0.0 to 1.0) and returns a new elapsed value.
+     *  This  value is used to calculate animated property values.
+     *  By changing the value of the elapsed fraction, you effectively change
+     *  the animation of the property.
      *
-     * Calculates the eased fraction value based on the
-     * easeInFraction property. If the given
-     * fraction is less than easeInFraction,
-     * this will call the easeIn() function, otherwise it
-     * will call the easeOut() function. It is expected
-     * that these functions are overridden in a subclass.
-     *
-     * @param fraction The elapsed fraction of the animation
-     * @return The eased fraction of the animation
+     *  For EaseInOutBase, this method calculates the eased fraction
+     *  value based on the easeInFraction property. If
+     *  fraction is less than easeInFraction,
+     *  this method calls the easeIn() method. Otherwise it
+     *  calls the easeOut() method.
+     *  It is expected
+     *  that these functions are overridden in a subclass.
+     *
+     *  @param fraction The elapsed fraction of the animation.
+     *
+     *  @return The eased fraction of the animation.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -112,16 +129,17 @@
     }

     /**
-     * Returns a value that represents the eased fraction during the
-     * ease-in part of the curve. The value returned by this class
-     * is simply the fraction itself, which represents a linear
-     * interpolation of the fraction. More interesting behavior is
-     * implemented by subclasses of EaseInOutBase.
+     *  Returns a value that represents the eased fraction during the
+     *  ease in phase of the animation. The value returned by this class
+     *  is simply the fraction itself, which represents a linear
+     *  interpolation of the fraction. More interesting behavior is
+     *  implemented by subclasses of EaseInOutBase.
      *
-     * @param fraction The fraction elapsed of the easing-in portion
-     * of the animation.
-     * @return A value that represents the eased value for this
-     * part of the animation.
+     *  @param fraction The fraction elapsed of the easing in phase
+     *  of the animation, between 0.0 and 1.0.
+     *
+     *  @return A value that represents the eased value for this
+     *  phase of the animation.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -134,16 +152,17 @@
     }

     /**
-     * Returns a value that represents the eased fraction during the
-     * ease-out part of the curve. The value returned by this class
-     * is simply the fraction itself, which represents a linear
-     * interpolation of the fraction. More interesting behavior is
-     * implemented by subclasses of EaseInOutBase.
+     *  Returns a value that represents the eased fraction during the
+     *  ease out phase of the animation. The value returned by this class
+     *  is simply the fraction itself, which represents a linear
+     *  interpolation of the fraction. More interesting behavior is
+     *  implemented by subclasses of EaseInOutBase.
+     *
+     *  @param fraction The fraction elapsed of the easing out phase
+     *  of the animation, between 0.0 and 1.0.
      *
-     * @param fraction The fraction elapsed of the easing-out portion
-     * of the animation.
-     * @return A value that represents the eased value for this
-     * part of the animation.
+     *  @return A value that represents the eased value for this
+     *  phase of the animation.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10


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

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

 package mx.effects
 {


6502 snake example working!

6502 snake example working!

--- 6502/easy6502/snake-ex.as
+++ 6502/easy6502/snake-ex.as
@@ -250,5 +250,14 @@
   sta (appleL),y
   rts

+spinWheels:
+  ldx #0
+spinloop:
+  nop
+  nop
+  dex
+  bne spinloop
+  rts
+
 gameOver:
   rts


Removed greensock reference

Removed greensock reference

--- src/com/axiomalaska/map/types/google/overlay/WMS/WMSOverlay.as
+++ src/com/axiomalaska/map/types/google/overlay/WMS/WMSOverlay.as
@@ -17,8 +17,6 @@
 	import com.google.maps.overlays.Polygon;
 	import com.google.maps.overlays.PolygonOptions;
 	import com.google.maps.styles.FillStyle;
-	import com.greensock.*;
-	import com.greensock.easing.*;

 	import flash.display.DisplayObject;
 	import flash.display.Loader;
@@ -895,4 +893,4 @@

 	}
-}+}


changing syntax so Flex 4.5.1A compiler doesn't get confused

--- WeaveUI/src/weave/visualization/plotters/GeometryPlotter.as
+++ WeaveUI/src/weave/visualization/plotters/GeometryPlotter.as
@@ -336,8 +336,8 @@
 				}

 				// this progress value will be less than 1
-				progress = recordIndex++ / task.recordKeys.length;
-				task.asyncState[RECORD_INDEX] = recordIndex;
+				progress = recordIndex / task.recordKeys.length;
+				task.asyncState[RECORD_INDEX] = ++recordIndex;

 				// avoid doing too little or too much work per iteration
 				if (getTimer() > task.iterationStopTime)


- added names to created sprites
- highlevel mcs are now set to mouseEnabled = false to not intercept handling of tooltips

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

--- src/reprise/core/GlobalMCManager.as
+++ src/reprise/core/GlobalMCManager.as
@@ -86,6 +86,7 @@
 			//TODO: check if the changes in the AS2 version that happened in 622:15.3.08
 			//are relevant to the as3 version
 			m_lowLevelContainer = new Sprite();
+			m_lowLevelContainer.name = 'low_level_container';
 			stage.addChildAt(m_lowLevelContainer, 0);
 		}

@@ -94,6 +95,8 @@
 			//TODO: check if the changes in the AS2 version that happened in 622:15.3.08
 			//are relevant to the as3 version
 			m_highLevelContainer = new Sprite();
+			m_highLevelContainer.mouseEnabled = false;
+			m_highLevelContainer.name = 'high_level_container';
 			stage.addChild(m_highLevelContainer);
 		}
 	}


- removed duplicate var declaration to make compiler happy

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

--- src/reprise/css/CSSParsingHelper.as
+++ src/reprise/css/CSSParsingHelper.as
@@ -198,6 +198,8 @@
 				var nextClosingParen : int = input.indexOf(')', offset);
 				nextClosingParen == -1 && (nextClosingParen = 99999);

+				var closingQuote : int;
+
 				if (openParens > 0 && nextClosingParen == 99999)
 				{
 					//syntax error
@@ -244,7 +246,7 @@
 					//skip to the end of the single quoted string
 					while (true)
 					{
-						var closingQuote : int = input.indexOf("'", offset);
+						closingQuote = input.indexOf("'", offset);
 						if (closingQuote == -1)
 						{
 							//error in this segment, return the valid segments
@@ -270,7 +272,7 @@
 					while (true)
 					{

-						var closingQuote : int = input.indexOf('"', offset);
+						closingQuote = input.indexOf('"', offset);
 						if (closingQuote == -1)
 						{
 							//error in this segment, return the valid segments


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

--- frameworks/projects/mx/src/mx/effects/WipeLeft.as
+++ frameworks/projects/mx/src/mx/effects/WipeLeft.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2003-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: 5808
Author:   clucier@adobe.com
Date:     2009-03-31T17:18:12.735949Z

Log Message:
-----------
Scrubbing the SDK for incorrectly used ArrayElementType metadata.
Bugs: SDK-15607
QE Notes: None
Doc Notes: None
Reviewer: Chet

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Canvas.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/LayoutContainer.as</path>

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

--- frameworks/projects/mx/src/mx/containers/Panel.as
+++ frameworks/projects/mx/src/mx/containers/Panel.as
@@ -726,15 +726,15 @@
     //----------------------------------
     //  constraintColumns
     //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for the constraintColumns property.
+     */
+    private var _constraintColumns:Array = [];

     [ArrayElementType("mx.containers.utilityClasses.ConstraintColumn")]
     [Inspectable(arrayType="mx.containers.utilityClasses.ConstraintColumn")]
-
-    /**
-     *  @private
-     *  Storage for the constraintColumns property.
-     */
-    private var _constraintColumns:Array = [];

     /**
      *  @copy mx.containers.utilityClasses.IConstraintLayout#constraintColumns
@@ -771,15 +771,15 @@
     //----------------------------------
     //  constraintRows
     //----------------------------------
-
+
+    /**
+     *  @private
+     *  Storage for the constraintRows property.
+     */
+    private var _constraintRows:Array = [];
+
     [ArrayElementType("mx.containers.utilityClasses.ConstraintRow")]
     [Inspectable(arrayType="mx.containers.utilityClasses.ConstraintRow")]
-
-    /**
-     *  @private
-     *  Storage for the constraintRows property.
-     */
-    private var _constraintRows:Array = [];

     /**
      *  @copy mx.containers.utilityClasses.IConstraintLayout#constraintRows


Avoid recursing into certain directories.

--- exporter/src/main/as/flump/export/Exporter.as
+++ exporter/src/main/as/flump/export/Exporter.as
@@ -171,6 +171,9 @@
                 }
             }
             for each (file in files) {
+                if (StringUtil.startsWith(file.name, ".", "RECOVER_")) {
+                    continue; // Ignore hidden VCS directories, and recovered backups created by Flash
+                }
                 if (file.isDirectory) findFlashDocuments(file, exec);
                 else if (Files.hasExtension(file, "fla")) addFlashDocument(file);
             }


Fixed AbstractScriptController _scene affectation so that it is set before start is called

--- src/aerys/minko/scene/controller/AbstractScriptController.as
+++ src/aerys/minko/scene/controller/AbstractScriptController.as
@@ -89,14 +89,14 @@
                     'The same ScriptController instance can not be used in more than one scene ' +
                     'at a time.'
                 );
-
+
+			_scene = scene;
+
 			if (!_started[target])
 			{
 				_started[target] = true;
 				start(target);
 			}
-
-			_scene = scene;
         }

 		override protected function targetRemovedFromScene(target 	: ISceneNode,


Flash: Allow (only) version or timestamp in swf url.

--- src/flash/src/Moxie.as
+++ src/flash/src/Moxie.as
@@ -64,17 +64,15 @@
 			stage.align = StageAlign.TOP_LEFT;
 			stage.scaleMode = StageScaleMode.EXACT_FIT;

-			// use only FlashVars, ignore QueryString
-			var params:Object, url:String, urlParts:Object, pos:int, query:Object;
+			// use only FlashVars, ignore QueryString
+			var params:Object = root.loaderInfo.parameters;
+			var url:String = root.loaderInfo.url;
+			var pos:int = url.indexOf('?');

-			params = root.loaderInfo.parameters;
+			if (pos !== -1 && !/^\?[\d\.ab]+$/.test(url.substr(pos))) {
+				return; // we do not allow anything from query sring, except the version (for caching purposes)
+			}

-			pos = root.loaderInfo.url.indexOf('?');
-			if (pos !== -1) {
-				return; // we do not allow anything from query sring, so if there's anything, we - quit
-			}
-
-
 			// Setup id
 			if (!params.hasOwnProperty("uid")) {
 				return; // we do not have uid, so we cannot fire error event - lets simply wait until it timeouts


Transferred from the Adobe Open Source Subversion Repository

Revision: 21319
Author:   build@adobe.com
Date:     2011-06-01T17:45:41.136089Z

Log Message:
-----------
Version update to 4.5.2

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/airspark/src/spark/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/automation_air/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/automation_spark/src/spark/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/flex-config.xml</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/automation_spark/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/automation/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark_dmv/src/spark/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/rpc/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mx/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/charts/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/automation_flashflexkit/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/automation_dmv/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/build.properties</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/modules/compiler/src/java/flex2/tools/VersionInfo.java</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/airframework/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/framework/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/advancedgrids/src/mx/core/Version.as</path>

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

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


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

--- frameworks/projects/advancedgrids/src/mx/olap/IOLAPQuery.as
+++ frameworks/projects/advancedgrids/src/mx/olap/IOLAPQuery.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: 6266
Author:   egeorgie@adobe.com
Date:     2009-04-24T23:09:01.304621Z

Log Message:
-----------
Layout PARB changes

Major (most probably will require updates):
- LayoutBase.getScrollPositionDelta() -> getScrollPositionDeltaToElement()
- HorizontalLayout, VerticalLayout method inView() -> fractionOfElementInView()
- LayoutElementFactory is deleted, interface ILayoutElement is implemented by UIComponent, GraphicElement, VisualSprite, no need for casting in those cases, cast to ILayoutElement in case of type Object.
- TileLayout.elementHorizontalAlign -> horizontalAlign
- TileLayout.elementVerticalAlign -> verticalAlign
- TileJustifyRows -> RowAlign
- TileJustifyColumsn > ColumnAlign
- TileLayout.justifyRows -> rowAlign
- TileLayout.justifyColumns -> columnAling
- TileJustifyRows.NONE, "none" -> TOP, "top"
- TileJustifyRows.GAP_SIZE, "gapSize" -> JUSTIFY_USING_GAP, "justifyUsingGap"
- TileJustifyRows.ROW_SIZE, "rowSize" -> JUSTIFY_USING_HEIGHT, "justifyUsingHeight"
- TileJustifyColumns.NONE, "none" -> LEFT, "left"
- TileJustifyColumns.GAP_SIZE, "gapSize" -> JUSTIFY_USING_GAP, "justifyUsingGap"
- TileJustifyColumns.COLUMN_SIZE, "columnSize" -> JUSTIFY_USING_WIDTH, "justifyUsingWidth"
- TileLayout.set rowCount -> set requestedRowCount
- add TileLayout.get requestedRowCount
- TileLayout.set columnCount -> set requestedColumnCount
- add TileLayout.get requestedColumnCount

Minor (may require updates, but not that probable):
- get baselinePosition() is moved from IVisualElement to ILayoutElement.
- setLayoutBoundsSize() does not have default NaN values for width & height (but still logic is the same).
- name of ILayoutInterface methods' parameter "postTransform" is renamed to "postLayoutTransform".
- name of ILayoutInterface methods' parameter "triggerLayout" is renamed to "invalidateLayout".
- LayoutBase methods invalidateTargetSizeAndDisplayList() and invalidateTargetSize() are removed.
- LayoutBase method getTargetScrollRect() is renamed to getScrollRect().

QE Notes: None
Doc Notes: None
Bugs: None
Reviewer: Hans, Ryan
tests: checkintests, mustella (gumbo/layout, gumbo/group, gumbo/dataGroup)

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/layout/layout_tester.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/supportClasses/LayoutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/TextGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Ellipse.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElement.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/RowAlign.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/spark-manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/LayoutElementUIComponentUtils.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/TileJustifyRows.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/Animate3DInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ILayoutElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/TileLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/HSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/HScrollBar.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/ColumnAlign.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/supportClasses/LayoutElementFactory.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ButtonBarHorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Path.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Rect.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/TileJustifyColumns.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/BasicLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/core/TextBaseClass.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/supportClasses/Block.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/supportClasses/LinearLayoutVector.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ScrollerLayout.as</path>

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

--- frameworks/projects/framework/src/mx/core/IVisualElement.as
+++ frameworks/projects/framework/src/mx/core/IVisualElement.as
@@ -92,24 +92,6 @@
     function get layer():Number;

     /**
-     *  The y-coordinate of the baseline
-     *  of the first line of text of the component.
-     *
-     *
This property is used to implement
-     *  the baseline constraint style.
-     *  It is also used to align the label of a FormItem
-     *  with the controls in the FormItem.

-     *
-     *
Each component should override this property.

-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
-     */
-    function get baselinePosition():Number;
-
-    /**
      *  Controls the visibility of this visual element. If true,
      *  the object is visible.
      *


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

--- frameworks/projects/framework/src/mx/core/MovieClipAsset.as
+++ frameworks/projects/framework/src/mx/core/MovieClipAsset.as
@@ -0,0 +1,197 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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
+{
+
+/**
+ *  MovieClipAsset is a subclass of the flash.display.MovieClip class
+ *  which represents movieclip symbols that you embed in a Flex application
+ *  from a SWF file produced by Flash.
+ *  It implements the IFlexDisplayObject interface, which makes it
+ *  possible for the MovieClip to be displayed in an Image control,
+ *  or to be used as a container background or a component skin.
+ *
+ *
The MovieClip that you're embedding must be a movieclip symbol
+ *  that is in a SWF file.
+ *  A common reason for using an embedded movieclip is that you have created
+ *  a frame-based animation in Flash and want to use it in a Flex application.
+ *  The MXML compiler autogenerates a class that extends MovieClipAsset
+ *  to represent the embedded animation.

+ *
+ *
You don't generally have to use the MovieClipAsset class directly
+ *  when you write a Flex application.
+ *  For example, you can use a movieclip animation as an application's
+ *  background image by writing the following:

+ *
+ *

+ *  <mx:Application backgroundImage="@Embed(source='Assets.swf', symbol='BackgroundAnimation')"/>

+ *
+ *
or

+ *
+ *

+ *  <mx:Style>
+ *      Application
+ *      {
+ *          backgroundImage: Embed(source="Assets.swf", symbol="BackgroundAnimation")
+ *      }
+ *  <mx:Style/>

+ *
+ *
without having to understand that the MXML compiler has created
+ *  a subclass of MovieClipAsset for you.

+ *
+ *
However, it may be useful to understand what is happening
+ *  at the ActionScript level.
+ *  To embed a movieclip in ActionScript, you declare a variable
+ *  of type Class, and put [Embed] metadata on it.
+ *  For example:

+ *
+ *

+ *  [Bindable]
+ *  [Embed(source="Assets.swf", symbol="BackgroundAnimation")]
+ *  private var backgroundAnimationClass:Class;

+ *
+ *
The MXML compiler notices that the BackgroundAnimation symbol
+ *  in Assets.swf is a movie clip, autogenerates a subclass of the
+ *  MovieClipAsset class to represent it, and sets your variable
+ *  to be a reference to this autogenerated class.
+ *  You can then use this class reference to create instances of the
+ *  MovieClipAsset using the new operator, and you can use
+ *  APIs of the MovieClip class on them:

+ *
+ *

+ *  var backgroundAnimation:MovieClipAsset =
+ *      MovieClipAsset(new backgroundAnimationClass());
+ *  var n:int = backgroundAnimation.totalFrames;

+ *
+ *
However, you rarely need to create MovieClipAsset instances yourself
+ *  because image-related properties and styles can be set to an
+ *  image-producing class, and components will create instances as necessary.
+ *  For example, to set the application background to this animation,
+ *  you can simply write the following:

+ *
+ *

+ *  <mx:Application backgroundImage="{backgroundAnimationClass}"/>

+ */
+public class MovieClipAsset extends FlexMovieClip
+                            implements IFlexAsset, IFlexDisplayObject, IBorder
+{
+    include "../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     */
+    public function MovieClipAsset()
+    {
+        super();
+
+        // Remember initial size as our measured size.
+        _measuredWidth = width;
+        _measuredHeight = height;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  measuredHeight
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for the measuredHeight property.
+     */
+    private var _measuredHeight:Number;
+
+    /**
+     *  @inheritDoc
+     */
+    public function get measuredHeight():Number
+    {
+        return _measuredHeight;
+    }
+
+    //----------------------------------
+    //  measuredWidth
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for the measuredWidth property.
+     */
+    private var _measuredWidth:Number;
+
+    /**
+     *  @inheritDoc
+     */
+    public function get measuredWidth():Number
+    {
+        return _measuredWidth;
+    }
+
+    //----------------------------------
+    //  borderMetrics
+    //----------------------------------
+
+    /**
+     *  @inheritDoc
+     */
+    public function get borderMetrics():EdgeMetrics
+    {
+        if (scale9Grid == null)
+        {
+            return EdgeMetrics.EMPTY;
+        }
+        else
+        {
+            return new EdgeMetrics(scale9Grid.left,
+                                   scale9Grid.top,
+                                   Math.ceil(measuredWidth - scale9Grid.right),
+                                   Math.ceil(measuredHeight - scale9Grid.bottom));
+        }
+    }
+
+
+    //--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @inheritDoc
+     */
+    public function move(x:Number, y:Number):void
+    {
+        this.x = x;
+        this.y = y;
+    }
+
+    /**
+     *  @inheritDoc
+     */
+    public function setActualSize(newWidth:Number, newHeight:Number):void
+    {
+        width = newWidth;
+        height = newHeight;
+    }
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 11163
Author:   dloverin@adobe.com
Date:     2009-10-26T20:35:33.260693Z

Log Message:
-----------
Changes to turn on the per-module style feature by default.

The feature can be turned off by compiling with -isolateStyles=false.

QE notes: None.
Doc notes: None.
Bugs:
Reviewer: Alex, Paul
Tests run: checkintests, all mustella
Is noteworthy for integration: Yes.

Summary of changes:

frameworks/projects/flash-integration/src/mx/flash/FlexContentHolder.as
Propagate the module factory in setFlexContent.

frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as
Implement IFlexModule

frameworks/projects/framework/src/mx/containers/ApplicationControlBar.as
Move getting style declaration from the constructor to the override of the module factory setter.

frameworks/projects/framework/src/mx/controls/Alert.as
Set moduleFactory to parent if parent is an IFlexModuleFactory.

frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridItemRenderer.as
Pass styleManager in CSSStyleDeclaration.

frameworks/projects/framework/src/mx/controls/menuClasses/MenuBarItem.as
Pass styleManager in CSSStyleDeclaration.

frameworks/projects/framework/src/mx/controls/RadioButton.as
Move getting style declaration from the constructor to the override of the module factory setter.

frameworks/projects/framework/src/mx/controls/SWFLoader.as
Handle the “get parent module factory” request from an embedded swf.

frameworks/projects/framework/src/mx/core/Container.as
Pass styleManager in CSSStyleDeclaration.

frameworks/projects/framework/src/mx/core/UIComponent.as
Defer setting styles until a module factory is set.

frameworks/projects/framework/src/mx/managers/systemClasses/ChildManager.as
Set the module factory of an added child.

frameworks/projects/framework/src/mx/managers/ToolTipManagerImpl.as
Set the module factory of the tooltip to be the same as the target.

frameworks/projects/framework/src/mx/styles/CSSStyleDeclaration.as
Rename parameter based on PARB feedback.

frameworks/projects/framework/src/mx/styles/IStyleModule.as
Add setStyleDeclarations per spec.

frameworks/projects/framework/src/mx/styles/StyleManager.as
Deprecate old static StyleManager API.

frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as
Use IStyleModule.setStyleDeclarations.

frameworks/projects/framework/src/mx/styles/StyleProtoChain.as
A fix to get the correct style manager and pass styleManager in CSSStyleDeclaration.

frameworks/projects/spark/src/mx/controls/dataGridClasses/FTEDataGridItemRenderer.as
Pass styleManager in CSSStyleDeclaration.

frameworks/projects/spark/src/spark/components/Group.as
Propagate moduleFactory in elementAdded().

modules/compiler/src/java/flex2/compiler/common/CompilerConfiguration.java
Rename –create-style-manager option to –isloateStyles. The option has been changed from hidden to advanced.

modules/compiler/src/java/flex2/compiler/css/StyleDef.vm
Fix bug to not add a default factory that is not needed.

modules/compiler/src/java/flex2/compiler/mxml/gen/ClassDef.vm
Initialize styles in a module factory setter override.

modules/compiler/src/java/flex2/compiler/mxml/gen/ClassDefLib.vm
Changed emitComponentInitializers_1 to not emit style related code if the document implements IFlexModule. Created emitComponentStyleInitializers to emit those styles.

modules/compiler/src/java/flex2/compiler/mxml/ImplementationGenerator.java
Generate code to match ClassDef.vm and ClassDefLib.vm changes.

modules/compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.java
Add IFlexModuleFactory to standard imports.

modules/compiler/src/java/flex2/configuration_en.properties
Rename –create-style-manager option to –isloateStyles.

modules/compiler/src/java/flex2/tools/PreLink.java
Rename –create-style-manager option to –isloateStyles.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/gen/ClassDef.vm</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/RadioButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/menuClasses/MenuBarItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ApplicationControlBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSStyleDeclaration.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/IStyleModule.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ToolTipManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/FlexContentHolder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/dataGridClasses/FTEDataGridItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Alert.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/CompilerConfiguration.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/configuration_en.properties</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/PreLink.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/ChildManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/gen/ClassDefLib.vm</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/modules/ModuleManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleDef.vm</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationGenerator.java</path>

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

--- frameworks/projects/framework/src/mx/styles/IStyleModule.as
+++ frameworks/projects/framework/src/mx/styles/IStyleModule.as
@@ -44,9 +44,7 @@
      *  @playerversion AIR 1.1
      *  @productversion Flex 4
      */
-//    FIXME: (dloverin) Need to generate this in AST code before it can be
-//    uncommented.
-//    function setStyleDeclarations(styleManager:IStyleManager2):void;
+    function setStyleDeclarations(styleManager:IStyleManager2):void;

     /**
      *  Unloads the style module.


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

--- frameworks/projects/rpc/src/mx/rpc/http/mxml/HTTPService.as
+++ frameworks/projects/rpc/src/mx/rpc/http/mxml/HTTPService.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  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.
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
 //
 ////////////////////////////////////////////////////////////////////////////////