added missing parserOptions : ParserOptions argument in statis LoaderGroup::load* methods

--- src/aerys/minko/scene/node/group/LoaderGroup.as
+++ src/aerys/minko/scene/node/group/LoaderGroup.as
@@ -59,19 +59,19 @@
 		private var _total				: uint				= 0;
 		private var _loaded				: uint				= 0;

-		public static function load(request : URLRequest) : LoaderGroup
-		{
-			return new LoaderGroup().load(request);
-		}
-
-		public static function loadClass(asset : Class) : LoaderGroup
-		{
-			return new LoaderGroup().loadClass(asset);
-		}
-
-		public static function loadBytes(bytes : ByteArray) : LoaderGroup
-		{
-			return new LoaderGroup().loadBytes(bytes);
+		public static function load(request : URLRequest, parserOptions : ParserOptions = null) : LoaderGroup
+		{
+			return new LoaderGroup().load(request, parserOptions);
+		}
+
+		public static function loadClass(asset : Class, parserOptions : ParserOptions = null) : LoaderGroup
+		{
+			return new LoaderGroup().loadClass(asset, parserOptions);
+		}
+
+		public static function loadBytes(bytes : ByteArray, parserOptions : ParserOptions = null) : LoaderGroup
+		{
+			return new LoaderGroup().loadBytes(bytes, parserOptions);
 		}

 		public static function registerParser(extension 	: String,


Transferred from the Adobe Open Source Subversion Repository

Revision: 153
Author:   proberts@adobe.com
Date:     2008-01-10T20:22:23.867658Z

Log Message:
-----------
Severity: ignore
Description: docs update -- added @productVersion tag to Flex AIR classes' class descriptions.

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

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

--- frameworks/projects/airframework/src/mx/skins/halo/ApplicationTitleBarBackgroundSkin.as
+++ frameworks/projects/airframework/src/mx/skins/halo/ApplicationTitleBarBackgroundSkin.as
@@ -17,6 +17,8 @@

 /**
  *  The skin for the TitleBar of a WindowedApplication or Window.
+ *
+ *  @productversion Apollo 1.0
  */
 public class ApplicationTitleBarBackgroundSkin extends ProgrammaticSkin
 {


Change 20080429-hqm-2 by hqm@badtzmaru.home on 2008-04-29 23:13:05 EDT
    in /Users/hqm/openlaszlo/trunk5
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: declare __mousedown on swf9 LzSprite

New Features:

Bugs Fixed: LPP-NaN

Technical Reviewer: max
QA Reviewer: (pending)
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:

declare __mousedown with a default value of false

Tests:

hello.lzx, click on "clickable text" textfield

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

--- WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
+++ WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
@@ -67,6 +67,8 @@
       //<method>setAttribute</method>. By default, views do not scale their
       //resource
       public var _setrescheight:Boolean = false;
+
+      private var __mousedown:Boolean = false;

       public static var capabilities:* = {


add length prop

add length prop

--- frameworks/as/projects/FlexJSUI/src/org/apache/flex/net/dataConverters/LazyCollection.as
+++ frameworks/as/projects/FlexJSUI/src/org/apache/flex/net/dataConverters/LazyCollection.as
@@ -216,5 +216,19 @@
             }
             return data[index];
         }
+
+        /**
+         *  The number of items.
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion FlexJS 0.0
+         */
+        public function get length():int
+        {
+            return rawData ? rawData.length : 0;
+        }
+
 	}
 }


filter AVC NAL unit with type=0 (unspecified) this fix some issues with particular streams

--- src/com/mangui/HLS/muxing/AVC.as
+++ src/com/mangui/HLS/muxing/AVC.as
@@ -11,19 +11,19 @@

         /** H264 NAL unit names. **/
         public static const NAMES:Array = [
-            'Unspecified',
-            'NDR',
-            'Partition A',
-            'Partition B',
-            'Partition C',
-            'IDR',
-            'SEI',
-            'SPS',
-            'PPS',
-            'AUD',
-            'End of Sequence',
-            'End of Stream',
-            'Filler Data'
+            'Unspecified',                  // 0
+            'NDR',                          // 1
+            'Partition A',                  // 2
+            'Partition B',                  // 3
+            'Partition C',                  // 4
+            'IDR',                          // 5
+            'SEI',                          // 6
+            'SPS',                          // 7
+            'PPS',                          // 8
+            'AUD',                          // 9
+            'End of Sequence',              // 10
+            'End of Stream',                // 11
+            'Filler Data'                   // 12
         ];
         /** H264 profiles. **/
         public static const PROFILES:Object = {
@@ -33,7 +33,9 @@
         };

-        /** Get Avcc header from AVC stream. **/
+        /** Get Avcc header from AVC stream
+        See ISO 14496-15, 5.2.4.1 for the description of AVCDecoderConfigurationRecord
+        **/
         public static function getAVCC(nalu:ByteArray,position:Number=0):ByteArray {
             // Find SPS and PPS units in AVC stream.
             var units:Array = AVC.getNALU(nalu,position,false);
@@ -95,7 +97,8 @@
                 window = nalu.readUnsignedInt();
                 // Match four-byte startcodes
                 if((window & 0xFFFFFFFF) == 0x01) {
-                    if(unit_start) {
+                  // push previous NAL unit if new start delimiter found, dont push unit with type = 0
+                    if(unit_start && unit_type) {
                         units.push({
                             length: nalu.position - 4 - unit_start,
                             start: unit_start,
@@ -109,7 +112,8 @@
                     if(unit_type == 1 || unit_type == 5) { break; }
                 // Match three-byte startcodes
                 } else if((window & 0xFFFFFF00) == 0x100) {
-                    if(unit_start) {
+                    // push previous NAL unit if new start delimiter found, dont push unit with type = 0
+                    if(unit_start && unit_type) {
                         units.push({
                             header: unit_header,
                             length: nalu.position - 4 - unit_start,


Transferred from the Adobe Open Source Subversion Repository

Revision: 19802
Author:   cframpto@adobe.com
Date:     2011-01-19T18:28:50.565501Z

Log Message:
-----------
Fix build.  Initialize local variable before using it - just swap lines around.

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

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

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

--- frameworks/projects/spark/src/spark/components/gridClasses/GridColumnHeaderGroupLayout.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/GridColumnHeaderGroupLayout.as
@@ -644,10 +644,10 @@
         renderer.column = column;
         renderer.label = column.headerText;

+        const columnHeaderGroup:GridColumnHeaderGroup = columnHeaderGroup;
+
         if (columnHeaderGroup.dataGrid)
             renderer.owner = grid.dataGrid;
-
-        const columnHeaderGroup:GridColumnHeaderGroup = columnHeaderGroup;
         renderer.hovered = columnIndex == columnHeaderGroup.hoverColumnIndex;
         renderer.down = columnIndex == columnHeaderGroup.downColumnIndex;
     }


Fix bug where syncFound was flagged as false incorrectly

This was causing byte-level sync issues with throttled (and potentially
other) streams

--- HLSPlugin/src/org/denivip/osmf/net/httpstreaming/hls/HTTPStreamingMP2TSFileHandler.as
+++ HLSPlugin/src/org/denivip/osmf/net/httpstreaming/hls/HTTPStreamingMP2TSFileHandler.as
@@ -117,7 +117,6 @@
 				}
 				else
 				{
-					_syncFound = false;
 					var packet:ByteArray = new ByteArray();

 					if (_key) {
@@ -147,6 +146,7 @@
 						input.readBytes(packet, 0, 187);
 					}

+					_syncFound = false;
 					var result:ByteArray = processPacket(packet);
 					if (result !== null) {
 						output.writeBytes(result);


Unify SPS/PPS handling (from SDP and NAL). Enable extraction from NALU.

--- src/com/axis/rtspclient/FLVMux.as
+++ src/com/axis/rtspclient/FLVMux.as
@@ -13,12 +13,15 @@
   import mx.utils.Base64Decoder;

   public class FLVMux {
+    private const EMPTY_BUF = new ByteArray();
     private var sdp:SDP;
     private var ns:NetStream;
     private var container:ByteArray = new ByteArray();
     private var loggedBytes:ByteArray = new ByteArray();
     private var videoInitialTimestamp:int = -1;
     private var audioInitialTimestamp:int = -1;
+    private var sps:ByteArray = EMPTY_BUF;
+    private var pps:ByteArray = EMPTY_BUF;

     public function FLVMux(ns:NetStream, sdp:SDP) {
       container.writeByte(0x46); // 'F'
@@ -42,14 +45,23 @@
         var pps:Base64Decoder = new Base64Decoder();
         sps.decode(sets[0]);
         pps.decode(sets[1]);
-        createDecoderConfigRecordTag(sps.toByteArray(), pps.toByteArray());
+        this.sps = sps.toByteArray();
+        this.pps = pps.toByteArray();
+        createVideoSpecificConfigTag();
       }

       if (sdp.getMediaBlock('audio')) {
         createAudioSpecificConfigTag(sdp.getMediaBlock('audio'));
       }
-
-      pushData();
+    }
+
+    private function createVideoSpecificConfigTag():void {
+      if (this.sps.bytesAvailable != 0 && this.pps.bytesAvailable != 0) {
+        var spsbit:BitArray = new BitArray(sps);
+        var params:Object = parseSPS(spsbit);
+        createDecoderConfigRecordTag(sps, pps, params);
+        createMetaDataTag(params);
+      }
     }

     private function writeECMAArray(contents:Object):uint {
@@ -183,7 +195,7 @@
       };
     }

-    public function createMetaDataTag():void {
+    public function createMetaDataTag(params):void {
       var size:uint = 0;

       /* FLV Tag */
@@ -197,14 +209,6 @@

       /* Method call */
       size += writeString("onMetaData");
-
-      /* Decode the base64 encoded parameter sets to pass to parseSPS */
-      var sets:Array = sdp.getMediaBlock('video').fmtp['sprop-parameter-sets'].split(',');
-      var spsdec:Base64Decoder = new Base64Decoder();
-      spsdec.decode(sets[0]);
-      var sps:BitArray = new BitArray(spsdec.toByteArray());
-      var params:Object = parseSPS(sps);
-      Logger.log('FLVMux: stream params = ', params);

       /* Arguments */
       size += writeECMAArray({
@@ -224,9 +228,10 @@
       container[sizePosition + 0] = dataSize & 0x00FF0000;
       container[sizePosition + 1] = dataSize & 0x0000FF00;
       container[sizePosition + 2] = dataSize & 0x000000FF;
-    }
-
-    public function createDecoderConfigRecordTag(sps:ByteArray, pps:ByteArray):void {
+
+    }
+
+    public function createDecoderConfigRecordTag(sps:ByteArray, pps:ByteArray, params:Object):void {
       var start:uint = container.position;

       /* FLV Tag */
@@ -241,8 +246,11 @@
       container.writeByte(0x01 << 4 | 0x07); // Keyframe << 4 | CodecID
       container.writeUnsignedInt(0x00 << 24 | 0x00000000); // AVC NALU << 24 | CompositionTime

-      writeDecoderConfigurationRecord();
+      var profilelevelid:uint = parseInt(params.profile, 16);
+      writeDecoderConfigurationRecord(profilelevelid);
       writeParameterSets(sps, pps);
+      this.sps = EMPTY_BUF;
+      this.pps = EMPTY_BUF;

       var size:uint = container.position - start;

@@ -256,9 +264,7 @@
       container.writeUnsignedInt(size);
     }

-    public function writeDecoderConfigurationRecord():void {
-      /* Always take this from SDP file. Is this correct? */
-      var profilelevelid:uint = parseInt(sdp.getMediaBlock('video').fmtp['profile-level-id'], 16);
+    public function writeDecoderConfigurationRecord(profilelevelid:uint):void {
       container.writeByte(0x01); // Version
       container.writeByte((profilelevelid & 0x00FF0000) >> 16); // AVC Profile, Baseline
       container.writeByte((profilelevelid & 0x0000FF00) >> 8); // Profile compatibility
@@ -446,13 +452,13 @@
         break;

       case 7: /* Sequence parameter set */
-        /* What to do about these? Inserting new decoder configurations doesn't seem to work. */
-        /* createDecoderConfigRecordTag(nalu.getPayload(), new ByteArray()); */
+        this.sps = nalu.getPayload();
+        createVideoSpecificConfigTag();
         break;

       case 8: /* Picture parameter set */
-        /* What to do about these? Inserting new decoder configurations doesn't seem to work. */
-        /* createDecoderConfigRecordTag(new ByteArray(), nalu.getPayload()); */
+        this.pps = nalu.getPayload();
+        createVideoSpecificConfigTag();
         break;

       default:


Transferred from the Adobe Open Source Subversion Repository

Revision: 21981
Author:   cframpto@adobe.com
Date:     2011-08-15T18:54:28.190117Z

Log Message:
-----------
First pass of ASdoc corrections/additions for StageText.  Want to see results from tomorrow morning's ASdoc build.

QE notes:
Doc notes:
Bugs: SDK-31078, SDK-31109, SDK-31015, SDK-31127, SDK-31107, SDK-31113
Reviewer:
Tests run:
Is noteworthy for integration:

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/TextSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableStageText.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/TextInput.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/StageTextAreaSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/TextArea.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/StageTextInputSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as</path>

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/TextSkinBase.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/TextSkinBase.as
@@ -21,7 +21,10 @@
 use namespace mx_internal;

 /**
- *  ActionScript-based skin for text input controls in mobile applications.
+ *  ActionScript-based skin for text input controls in mobile applications that
+ *  uses a StyleableTextField class for the text display.
+ *
+ *  @see spark.components.supportClasses.StyleableTextField
  *
  *  @langversion 3.0
  *  @playerversion Flash 10


IN PROGRESS - issue RITTERSPORTWEBSITE-58: http://www.ritter-sport.de/#/de_DE/rittersportfreunde/ wird nicht angezeigt
http://j.fork.de:8080/browse/RITTERSPORTWEBSITE-58

	- change: added view for the old rittersportfreunde landing page

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

--- src/reprise/core/FocusManager.as
+++ src/reprise/core/FocusManager.as
@@ -88,7 +88,7 @@
 				return true;
 			}
 			//else
-			m_document.stage.focus = null;
+//			m_document.stage.focus = null;
 			m_focus = null;
 			return false;
 		}


Transferred from the Adobe Open Source Subversion Repository

Revision: 10135
Author:   chaase@adobe.com
Date:     2009-09-10T22:38:22.666491Z

Log Message:
-----------
Fix to effects' transform center functionality. When autoCenterTransform=false, should default to the transformX/Y/Z specified in the target object. We were instead defaulting to a default Vector3D(), which is like having transfomrXYZ at (0,0,0). one-liner fix to initialize the default transform center with the target's transformXYZ values.
Also fixed unrelated typo in UIComponent asdocs.

QE notes: None
Doc notes: None
Bugs: sdk-21766
Reviewer: Jason
Tests run: checkintests, Mustella transform effects
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/supportClasses/AnimateTransformInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>

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

--- frameworks/projects/spark/src/spark/effects/supportClasses/AnimateTransformInstance.as
+++ frameworks/projects/spark/src/spark/effects/supportClasses/AnimateTransformInstance.as
@@ -561,7 +561,8 @@
     private function updateTransformCenter():void
     {
         if (!transformCenter)
-            transformCenter = new Vector3D();
+            transformCenter = new Vector3D(target.transformX,
+                target.transformY, target.transformZ);
         if (autoCenterTransform)
         {
             transformCenter.x = target.width / 2;


Transferred from the Adobe Open Source Subversion Repository

Revision: 13965
Author:   build@adobe.com
Date:     2010-02-03T20:37:12.428300Z

Log Message:
-----------
Version update to 4.5.0

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

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

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


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

--- frameworks/projects/framework/src/mx/collections/ISortField.as
+++ frameworks/projects/framework/src/mx/collections/ISortField.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2005-2010 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: 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@1259661 13f79535-47bb-0310-9956-ffa450edef68

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

 package mx.core
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 6265
Author:   gosmith@adobe.com
Date:     2009-04-24T22:52:56.350830Z

Log Message:
-----------
To make RichText more lightweight, it now uses the same technique as RichEditableText2 for its TLF hostFormat. In particular, it uses an object which is not actually a TextLayoutFormat, but instead simply implements ITextLayoutFormat by pulling the format properties directly from the component's CSS styles using getStyle(). This object is now implemented in a new CSSTextLayoutFormat class. It is smaller because it has only one var (for the object to call getStyle() on) rather than a var for every format property.

Also, the code in SimpleText, RichText, and RichEditableText2 for handling embedded fonts is now more uniform; all three classes use an identical getEmbeddedFontContext() method, which can eventually be factored into a base class or utility class after we determine the constellation of text classes that we'll ship with. I also made this code more efficient by using only a static instance of EmbeddedFont and TextFormat.

QE Notes: None
Doc Notes: None
Bugs: None
Reviewer: Alex

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/RichEditableText2.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/core/CSSTextLayoutFormat.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/EmbeddedFontRegistry.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/FlexModuleFactory.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/EmbeddedFont.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/SimpleText.as</path>

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

--- frameworks/projects/framework/src/mx/managers/SystemManager.as
+++ frameworks/projects/framework/src/mx/managers/SystemManager.as
@@ -193,8 +193,8 @@
  *  @productversion Flex 3
  */
 public class SystemManager extends MovieClip
-                           implements IChildList, IFlexDisplayObject,
-                           IFlexModuleFactory, ISystemManager, ISWFBridgeProvider, ITextLineCreator
+	implements IChildList, IFlexDisplayObject, IFlexModuleFactory,
+	ISWFBridgeProvider, ISystemManager, ITextLineCreator
 {
     include "../core/Version.as";

@@ -1002,18 +1002,6 @@
     }

     //----------------------------------
-    //  info
-    //----------------------------------
-
-    /**
-     *  @private
-     */
-    public function info():Object
-    {
-        return {};
-    }
-
-    //----------------------------------
     //  measuredHeight
     //----------------------------------

@@ -1921,34 +1909,12 @@

     //--------------------------------------------------------------------------
     //
-    //  Methods: ITextLineCreator
+    //  Methods: IFlexModuleFactory
     //
     //--------------------------------------------------------------------------

     /**
-	 *  Implementation of ITextLineCreator.createTextLine
-   	 */
-    public function createTextLine(textBlock:TextBlock, previousLine:TextLine=null, width:Number=1000000, lineOffset:Number=0.0, fitSomething:Boolean=false):TextLine
-    {
-	    return textBlock.createTextLine(previousLine, width, lineOffset, fitSomething);
-    }
-
-  	/**
-	 *  Implementation of ITextLineCreator.recreateTextLine
-   	 */
-    public function recreateTextLine(textBlock:TextBlock, textLine:TextLine, previousLine:TextLine=null, width:Number=1000000, lineOffset:Number=0.0, fitSomething:Boolean=false):TextLine
-    {
-	    return textBlock["recreateTextLine"] ? textBlock["recreateTextLine"](textLine, previousLine, width, lineOffset, fitSomething) : null;
-    }
-
-    //--------------------------------------------------------------------------
-    //
-    //  Methods: Initialization
-    //
-    //--------------------------------------------------------------------------
-
-    /**
-     *   A factory method that requests an instance of a
+     *  A factory method that requests an instance of a
      *  definition known to the module.
      *
      *  You can provide an optional set of parameters to let building
@@ -1958,11 +1924,11 @@
      *
      *  This method is overridden in the autogenerated subclass.
      *
-     * @param params An optional list of arguments. You can pass
+     *  @param params An optional list of arguments. You can pass
      *  any number of arguments, which are then stored in an Array
      *  called parameters.
      *
-     * @return An instance of the module, or null.
+     *  @return An instance of the module, or null.
      *
      *  @langversion 3.0
      *  @playerversion Flash 9
@@ -1985,6 +1951,68 @@

         return mainClass ? new mainClass() : null;
     }
+
+    /**
+     *  @private
+     */
+    public function info():Object
+    {
+        return {};
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Methods: ITextLineCreator
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+	 *  Calls createTextLine() on the specified TextBlock
+	 *  with the specified parameters.
+	 *  In order for a TextLine to use an embedded font,
+	 *  it must be created in the SWF where the font is.
+	 *  This factory method makes that possible.
+   	 */
+    public function createTextLine(textBlock:TextBlock,
+    							   previousLine:TextLine = null,
+    							   width:Number = 1000000,
+    							   lineOffset:Number = 0.0,
+    							   fitSomething:Boolean = false):TextLine
+    {
+	    return textBlock.createTextLine(previousLine, width,
+	    								lineOffset, fitSomething);
+    }
+
+    /**
+	 *  Calls recreateTextLine() on the specified TextBlock
+	 *  with the specified parameters.
+	 *  In order for a TextLine to use an embedded font,
+	 *  it must be recreated in the SWF where the font is.
+	 *  This factory method makes that possible.
+   	 */
+    public function recreateTextLine(textBlock:TextBlock,
+    								 textLine:TextLine,
+    								 previousLine:TextLine = null,
+    								 width:Number = 1000000,
+    								 lineOffset:Number = 0.0,
+    								 fitSomething:Boolean = false):TextLine
+    {
+	    // The recreateTextLine() method was added to TextBlock
+	    // in Player 10.1, so it must be looked up by name
+	    // since we are compiling for Player 10.0.
+	    var recreateTextLine:Function = textBlock["recreateTextLine"];
+	    if (recreateTextLine == null)
+	    	return null;
+
+	    return recreateTextLine(textLine, previousLine, width,
+	    	   					lineOffset, fitSomething);
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------

     /**
      *  @private
@@ -3039,19 +3067,23 @@
     public function isFontFaceEmbedded(textFormat:TextFormat):Boolean
     {
         var fontName:String = textFormat.font;
-
-        var fl:Array = Font.enumerateFonts();
-        for (var f:int = 0; f < fl.length; ++f)
-        {
-            var font:Font = Font(fl[f]);
+        var bold:Boolean = textFormat.bold;
+        var italic:Boolean = textFormat.italic;
+
+        var fontList:Array = Font.enumerateFonts();
+
+        var n:int = fontList.length;
+        for (var i:int = 0; i < n; i++)
+        {
+            var font:Font = Font(fontList[i]);
             if (font.fontName == fontName)
             {
                 var style:String = "regular";
-                if (textFormat.bold && textFormat.italic)
+                if (bold && italic)
                     style = "boldItalic";
-                else if (textFormat.bold)
+                else if (bold)
                     style = "bold";
-                else if (textFormat.italic)
+                else if (italic)
                     style = "italic";

                 if (font.fontStyle == style)
@@ -3068,10 +3100,9 @@

         var info:Object = embeddedFontList[fontName];

-        return !((textFormat.bold && !info.bold) ||
-                 (textFormat.italic && !info.italic) ||
-                 (!textFormat.bold && !textFormat.italic &&
-                 !info.regular));
+        return !((bold && !info.bold) ||
+                 (italic && !info.italic) ||
+                 (!bold && !italic && !info.regular));
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 2790
Author:   gosmith@adobe.com
Date:     2008-08-08T22:08:51.675681Z

Log Message:
-----------
Infrastructure for CSS support in TextGraphicElement.

TextGraphicElement now has stubs that implement the same two CSS interfaces that UIComponent implements, namely ISimpleStyleClient and IStyleClient.

Reviewer: Deepa
Bugs: -
QA: No
Doc: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/NavBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextField.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/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/graphicsClasses/TextGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as</path>

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

--- frameworks/projects/framework/src/mx/styles/StyleProtoChain.as
+++ frameworks/projects/framework/src/mx/styles/StyleProtoChain.as
@@ -65,7 +65,7 @@
         // Push items onto the proto chain in reverse order, beginning with
         // 6) Follow the usual search path for the styleName object
         var nonInheritChain:Object = styleName.nonInheritingStyles;
-        if (!nonInheritChain || nonInheritChain == UIComponent.STYLE_UNINITIALIZED)
+        if (!nonInheritChain || nonInheritChain == StyleManager.STYLE_UNINITIALIZED)
         {
             nonInheritChain = StyleManager.stylesRoot;

@@ -74,7 +74,7 @@
         }

         var inheritChain:Object = styleName.inheritingStyles;
-        if (!inheritChain || inheritChain == UIComponent.STYLE_UNINITIALIZED)
+        if (!inheritChain || inheritChain == StyleManager.STYLE_UNINITIALIZED)
             inheritChain = StyleManager.stylesRoot;

         // If there's no type selector on this object, then we can collapse