Better last DTS estimation.

Better last DTS estimation.

--- HLSPlugin/src/com/kaltura/hls/m2ts/FLVTranscoder.as
+++ HLSPlugin/src/com/kaltura/hls/m2ts/FLVTranscoder.as
@@ -43,17 +43,26 @@
         private var keyFrame:Boolean = false;
         private var totalAppended:int = 0;

+        // State used to estimate video framerate.
+        public var videoLastDTS:int = int.MIN_VALUE;
+
         public function clear(clearAACConfig:Boolean = false):void
         {
             if(clearAACConfig)
                 _aacConfig = null;
             _aacRemainder = null;
             _aacTimestamp = 0;
+
+            bufferedTagData.length = 0;
+            bufferedTagTimestamp.length = 0;
+            bufferedTagDuration.length = 0;
+
+            videoLastDTS = int.MIN_VALUE;
         }

         protected var sendingDebugEvents:Boolean = false;

-        private function sendFLVTag(flvts:int, type:uint, codec:int, mode:int, bytes:ByteArray, offset:uint, length:uint, duration:uint, buffer:Boolean = true):void
+        private function sendFLVTag(flvts:int, type:uint, codec:int, mode:int, bytes:ByteArray, offset:uint, length:uint, duration:int, buffer:Boolean = true):void
         {
             var tag:ByteArray = new ByteArray();

@@ -219,9 +228,6 @@
             naluProcessor.resetAVCCExtraction();
         }

-        // State used to estimate video framerate.
-        public var videoLastDTS:int = -1000000.0;
-
         /**
          * Convert and emit AVC NALU data.
          */
@@ -282,7 +288,7 @@
             return true;
         }

-        private function sendAACConfigFLVTag(flvts:uint, profile:uint, sampleRateIndex:uint, channelConfig:uint):void
+        private function sendAACConfigFLVTag(flvts:int, profile:uint, sampleRateIndex:uint, channelConfig:uint):void
         {
             var isNewConfig:Boolean = true;
             var audioSpecificConfig:ByteArray = new ByteArray();
@@ -432,7 +438,7 @@

                 if(sampleRate)
                 {
-                    var flvts:uint = convertFLVTimestamp(timestamp + timeAccumulation);
+                    var flvts:int = convertFLVTimestamp(timestamp + timeAccumulation);

                     sendAACConfigFLVTag(flvts, profile, sampleRateIndex, channelConfig);
                     //logger.debug("Sending AAC @ " + flvts + " ts=" + timestamp + " acc=" + timeAccumulation);
@@ -483,7 +489,7 @@
             return bytes;
         }

-        private function sendScriptDataFLVTag(flvts:uint, values:Array):void
+        private function sendScriptDataFLVTag(flvts:int, values:Array):void
         {
             var bytes:ByteArray = generateScriptData(values);
             sendFLVTag(flvts, FLVTags.TYPE_SCRIPTDATA, -1, -1, bytes, 0, bytes.length, 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@1284953 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/spark/src/spark/globalization/supportClasses/GlobalizationBase.as
+++ frameworks/projects/spark/src/spark/globalization/supportClasses/GlobalizationBase.as
@@ -1,13 +1,3 @@
-///////////////////////////////////////////////////////////////////////////////
-//
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 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.globalization.supportClasses
 {


Support for default decoders and encoders; doc cleanup.

--- driver/src/main/flex/org/postgresql/codec/CodecFactory.as
+++ driver/src/main/flex/org/postgresql/codec/CodecFactory.as
@@ -8,8 +8,12 @@
     /**
      * The CodecFactory manages mappings between ActionScript Objects (of certain
      * Classes) and PostgreSQL column values (of certain oids). A Class can be mapped
-     * to an oid registering an encoder, and an oid to a Class through a decoder.
+     * to an oid by registering an encoder, and an oid to a Class through a decoder.
      * Only a single mapping can exist for a given oid (or Class) at any given time.
+     *

+     * Default encoders and decoders can also be registered.
+     *

+     * No encoders or decoders are registered by default.
      *
      * @see org.postgresql.Oid
      * @see Class
@@ -19,8 +23,11 @@
         private var _decoders:Dictionary;
         private var _encoders:Dictionary;

+        private var _defaultDecoder:IPGTypeDecoder;
+        private var _defaultEncoder:IPGTypeEncoder;
+
         /**
-         * Constructor. No encoders or decoders are registered by default.
+         * @private
          */
         public function CodecFactory() {
             _decoders = new Dictionary();
@@ -28,32 +35,66 @@
         }

         /**
-         * Register the given encoder to map values of the inType to the inOid. If
+         * Register the given encoder to map values of the inType to an oid. If
          * an encoder was previously registered for the same inType, it is silently
          * replaced.
          *
-         * @param inType
-         * @param inOid
-         * @param encoder
+         * @param inType Class for which to register mapping
+         * @param encoder encoder instance to use for given class
          */
         public function registerEncoder(inType:Class, encoder:IPGTypeEncoder):void {
+            if (!encoder) {
+                throw new ArgumentError("Encoder must not be null");
+            }
+            if (!inType) {
+                throw new ArgumentError("Class to be mapped must not be null");
+            }
             _encoders[inType] = encoder;
         }

         /**
-         * Register the given decoder to map values of the given outOid to the outType. If
+         * Register a encoder to map values when no other encoder is suitable. If
+         * a previous default encoder was specified, it is silently replaced.
+         *
+         * @param encoder encoder instance for default encoding
+         */
+        public function registerDefaultEncoder(encoder:IPGTypeEncoder):void {
+            if (!encoder) {
+                throw new ArgumentError("Encoder must not be null");
+            }
+            _defaultEncoder = encoder;
+        }
+
+        /**
+         * Register the given decoder to map values of the given outOid to an ActionScript type. If
          * a decoder was previously registered for the same outOid, it is silently replaced.
          *
-         * @param outOid
-         * @param outType
-         * @param decoder
+         * @param outOid oid for which to register mapping
+         * @param decoder decoder instance to use for given oid
          */
         public function registerDecoder(outOid:int, decoder:IPGTypeDecoder):void {
+            if (!decoder) {
+                throw new ArgumentError("Decoder must not be null");
+            }
             _decoders[outOid] = decoder;
         }

         /**
+         * Register a decoder to map values when no other decoder is suitable. If
+         * a previous default decoder was specified, it is silently replaced.
+         *
+         * @param decoder decoder instance to use for default decoding
+         */
+        public function registerDefaultDecoder(decoder:IPGTypeDecoder):void {
+            if (!decoder) {
+                throw new ArgumentError("Decoder must not be null");
+            }
+            _defaultDecoder = decoder;
+        }
+
+        /**
          * Return the decoder for the given oid
+         *
          * @param oid oid for which to find decoder
          * @return registered decoder
          * @throws org.postgresql.CodecError if no decoder has been registered for the given oid
@@ -61,6 +102,8 @@
         public function getDecoder(oid:int):IPGTypeDecoder {
             if (oid in _decoders) {
                 return _decoders[oid];
+            } else if (_defaultDecoder) {
+                return _defaultDecoder;
             } else {
                 throw new CodecError("Could not find suitable decoder", CodecError.DECODE, null, oid);
             }
@@ -68,6 +111,7 @@

         /**
          * Return the encoder for the given Class
+         *
          * @param value for which to find encoder
          * @return registered encoder
          * @throws org.postgresql.CodecError if no encoder is registered for the given Class
@@ -75,6 +119,8 @@
         public function getEncoder(clazz:Class):IPGTypeEncoder {
             if (clazz in _encoders) {
                 return _encoders[clazz];
+            } else if (_defaultEncoder) {
+                return _defaultEncoder;
             } else {
                 throw new CodecError("Could not find suitable encoder", CodecError.ENCODE, null, Oid.UNSPECIFIED, clazz);
             }


Transferred from the Adobe Open Source Subversion Repository

Revision: 3973
Author:   rfrishbe@adobe.com
Date:     2008-10-30T20:30:13.007923Z

Log Message:
-----------
Adding IVisualContainer interface.  Group, FxContainer, and FxScroller implement this interface now.  Added owner and parent to IVisualItem.  GraphicElement and UIComponent implement this interface--work had to be done in GraphicElement to do this.  In doing so, elementHost is going to be renamed to parent.  For now, I added parent in GraphicElement and left elementHost in there; however, it is removed from IGraphicElement.  I’ve removed all references to elementHost in our code; however, I think mustella needs to be updated as do mustella tests, so I’m not going to remove elementHost until later.

Most of the changes here are name changes dealing with "elementHost" -> "parent".  If we decide that Gumbo components only support IVisualItems, we should clean up some of the code, but for now, I kept any assumptions that were in the original code (meaning we may be able to support DisplayObjects and old definitions of UIComponents/IUIComponents that aren’t IVisualItems).

I ran checkin tests, Group mustella tests, DataGroup mustella tests, FxContainer mustella tests, graphic tags tests, and all effects Mustella tests.

QE Notes: We will need to update mustella and mustella tests to use elementHost rather than parent.  We can also update mustella to use IVisualContainer rather than what it's doing now.  However, let's wait on these changes for now.  I'll send out an email when we're ready to make these changes and remove elementHost from GraphicElement.
Doc Notes: None
Bugs: -
Reviewer: Chet

Modified Paths:
--------------
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/core/IVisualContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxScroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/RemoveActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/RemoveAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxFadeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/FxFade.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IUIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxAnimate3DInstance.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/flex4/src/mx/effects/effectClasses/FxAnimateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/IGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/AddActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/AddAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxContainer.as</path>

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

--- frameworks/projects/framework/src/mx/core/IUIComponent.as
+++ frameworks/projects/framework/src/mx/core/IUIComponent.as
@@ -295,15 +295,7 @@
     //----------------------------------

     /**
-     *  Typically the parent container of this component.
-     *  However, if this is a popup component, the owner is
-     *  the component that popped it up.
-     *  For example, the owner of a dropdown list of a ComboBox control
-     *  is the ComboBox control itself.
-     *  This property is not managed by Flex, but
-     *  by each component.
-     *  Therefore, if you popup a component,
-     *  you should set this property accordingly.
+     *  @copy mx.core.IVisualItem#owner
      */
     function get owner():DisplayObjectContainer;


Transferred from the Adobe Open Source Subversion Repository

Revision: 1098
Author:   jimurphy@adobe.com
Date:     2008-04-03T21:50:39.896200Z

Log Message:
-----------
Merge 3.0.x -- 362:394, 427:429, 603:608, 644:645, 651:663, 672:676, 755:756, 763:766, 785:790, 812:814, 854:861, 862:866, 866:933,971:1009, 1050:1056 --> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/TileListItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/treeClasses/DefaultDataDescriptor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/VRule.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AsyncRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/IList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/LayoutManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/StreamingConnectionHandler.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IRepeaterClient.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/videoClasses/VideoError.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/ObjectProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/messages/HTTPRequestMessage.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/resources/Locale.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/ParallelInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/Responder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/errors/MessageSerializationError.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/messages/SOAPMessage.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/IBrowserManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ComponentDescriptor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/events/FaultEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridColumn.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/IViewCursor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/AbstractWebService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Tween.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.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/managers/DragManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/menuClasses/IMenuItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/MessageResponder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/preloaders/Preloader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ILayoutManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Spacer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Label.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/Fault.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/XMLListCollection.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/EffectTargetFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SliderEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AsyncToken.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/resources/ResourceManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/ScrollEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/mxml/HTTPService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/videoClasses/CuePointManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/CrossDomainRSLItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/NumericStepperEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/BrowserManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/events/ChannelFaultEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/CursorBookmark.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/IXMLEncoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/HTTPService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/events/WSDLLoadEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/LoadEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/ListCollectionView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/FlexClient.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/SubscriptionInfo.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/DescribeTypeCache.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/logging/LogLogger.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/FocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/MessageAgent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/build_framework.xml</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/rpc/src/mx/rpc/events/HeaderEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/build.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridDragProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/preloaders/DownloadProgressBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/treeClasses/ITreeDataDescriptor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/remoting/RemoteObject.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/TileBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListItemDragProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/ChannelSet.as</path>

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

--- frameworks/projects/framework/src/mx/logging/LogLogger.as
+++ frameworks/projects/framework/src/mx/logging/LogLogger.as
@@ -36,6 +36,8 @@

 	/**
 	 *  Constructor.
+         *
+         *  @param category The category for which this log sends messages.
 	 */
 	public function LogLogger(category:String)
 	{


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 11081
Author:   mhorn@adobe.com
Date:     2009-10-22T15:28:21.499190Z

Log Message:
-----------
asdoc updates

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/spark/src/spark/utils/TextFlowUtil.as

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

--- frameworks/projects/spark/src/spark/utils/TextFlowUtil.as
+++ frameworks/projects/spark/src/spark/utils/TextFlowUtil.as
@@ -253,8 +253,8 @@
     [Bindable("unused")]

     /**
-     *  Creates a TextFlow by importing (i.e., parsing) XML
-     *  containing the markup language used by the Text Layout Framework.
+     *  Creates a TextFlow by importing (parsing) XML
+     *  that contains the markup language used by the Text Layout Framework.
      *
      *
An example of markup XML is
      *

@@ -264,20 +264,22 @@
      *

      *

      *
-     *
However, you can use terser markup such as
-     *
"Hello, World!"
.
-     *  It will get wrapped with a TextFlow tag in the proper namespace,
-     *  and span and paragraph tags will get automatically inserted
-     *  where needed to comply with the structure of a TextFlow.

+     *
You can also use terser markup such as the following:
+     *

+     *  "Hello, <span fontWeight='bold'>World!</span>"
+     *

+     *  The parser wraps the markup with a <TextFlow> tag in the proper namespace.
+     *  The parser also inserts <span> and <paragraph< tags
+     *  where needed to comply with the structure of a TextFlow object.

      *
      *
If you specify the TextFlow tag yourself,
      *  it must be in the correct XML namespace
      *  for runtime Text Layout Framework markup, which is
      *  "http://ns.adobe.com/textLayout/2008".

      *
-     *
Incorrect markup will cause this method to throw
+     *
Incorrect markup causes this method to throw
      *  various exceptions.
-     *  The error message will contain information
+     *  The error message contains information
      *  about why it could not be parsed.

      *
      *  @param markup The markup XML to be imported.


[feat] likes summary

[feat] likes summary

- add result to view

--- src/main/actionscript/com/dotfold/dotvimstat/mediator/summary/LikesSummaryMediator.as
+++ src/main/actionscript/com/dotfold/dotvimstat/mediator/summary/LikesSummaryMediator.as
@@ -3,6 +3,9 @@
 	import com.dotfold.dotvimstat.mediator.Mediator;
 	import com.dotfold.dotvimstat.net.service.IVimeoService;
 	import com.dotfold.dotvimstat.view.summary.LikesSummary;
+
+	import org.as3commons.logging.ILogger;
+	import org.as3commons.logging.LoggerFactory;

 	/**
 	 *
@@ -11,6 +14,8 @@
 	 */
 	public class LikesSummaryMediator extends Mediator
 	{
+		private static var logger:ILogger = LoggerFactory.getClassLogger(LikesSummaryMediator);
+
 		[Inject]
 		public var service:IVimeoService;

@@ -26,10 +31,33 @@

 		/**
 		 * @inheritDoc
+		 * Retrieve the user likes via the VimeoService.
 		 */
 		override public function init():void
 		{
+			logger.debug('init, calling service: {0}', service);

+			service.getLikes()
+				.then(likesDataLoaded, likesDataLoadError);
+		}
+
+		/**
+		 *
+		 */
+		private function likesDataLoaded(result:Array):void
+		{
+			logger.debug('service responded fulfilled {0}', result);
+
+			view.likesCount = result ? result.length : 0;
+		}
+
+		/**
+		 *
+		 */
+		private function likesDataLoadError(error:*):void
+		{
+			// process error
+			// notify view of error
 		}
 	}
 }


Improved showing of messages using resources

--- collect-flex/collect-flex-client/src/main/flex/org/openforis/collect/util/AlertUtil.as
+++ collect-flex/collect-flex-client/src/main/flex/org/openforis/collect/util/AlertUtil.as
@@ -12,20 +12,26 @@
 	public class AlertUtil
 	{
 		private static const ERROR_TITLE_RESOURCE:String = "global.errorAlertTitle";
-
-		public static function showError(messageResource:String, parameters:Array = null, titleResource:String = null):void {
+		private static const INFO_TITLE_RESOURCE:String = "global.infoAlertTitle";
+
+		public static function showError(messageResource:String, messageParameters:Array = null, titleResource:String = null, titleParameters:Array = null):void {
 			if(titleResource == null) {
 				titleResource = ERROR_TITLE_RESOURCE;
 			}
-			var message:String = Message.get(messageResource, parameters);
-			var title:String = Message.get(titleResource, parameters);
-			Alert.show(message, title, Alert.OK, null, null, Images.ERROR);
+			showMsg(Images.ERROR, messageResource, messageParameters, titleResource, titleParameters);
 		}

-		public static function showMessage(resource:String, title:String=""):void {
-			var message:String = Message.get(resource);
-
-			Alert.show(message, title);
+		public static function showMessage(messageResource:String, messageParameters:Array = null, titleResource:String = null, titleParameters:Array = null):void {
+			if(titleResource == null) {
+				titleResource = INFO_TITLE_RESOURCE;
+			}
+			showMsg(null, messageResource, messageParameters, titleResource, titleParameters);
+		}
+
+		private static function showMsg(icon:Class, messageResource:String, messageParameters:Array = null, titleResource:String = null, titleParameters:Array = null) {
+			var message:String = Message.get(messageResource, messageParameters);
+			var title:String = Message.get(titleResource, titleParameters);
+			Alert.show(message, title, Alert.OK, null, null, icon);
 		}

 		public static function showConfirm(messageResource:String, parameters:Array, titleResource:String, yesHandler:Function, noHandler:Function = null):void {


Transferred from the Adobe Open Source Subversion Repository

Revision: 14571
Author:   deeptika@adobe.com
Date:     2010-03-04T07:17:40.283901Z

Log Message:
-----------
Merging revision 14570 from 4.x branch
QE notes:
Doc notes:
Bugs:
Reviewer:
Tests run: checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation/src/mx/automation/delegates/core/UIComponentAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_air/src/mx/automation/delegates/controls/FlexNativeMenuAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation/src/mx/automation/delegates/controls/SWFLoaderAutomationImpl.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/tabularData/SparkListBaseTabularData.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/mx/automation/delegates/core/UIFTETextFieldAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation/src/mx/automation/delegates/core/UITextFieldAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkDropDownListBaseAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_dmv/src/mx/automation/delegates/advancedDataGrid/AdvancedDataGridAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkListBaseAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation/src/mx/automation/tabularData/OLAPDataGridTabularData.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation/src/mx/automation/codec/RendererPropertyCodec.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation/src/mx/automation/delegates/TextFieldAutomationHelper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation/src/mx/automation/codec/AutomationObjectPropertyCodec.as</path>

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

--- frameworks/projects/automation_spark/src/mx/automation/delegates/core/UIFTETextFieldAutomationImpl.as
+++ frameworks/projects/automation_spark/src/mx/automation/delegates/core/UIFTETextFieldAutomationImpl.as
@@ -16,6 +16,7 @@
 	import flash.events.Event;

 	import mx.automation.Automation;
+	import mx.automation.AutomationConstants;
 	import mx.automation.IAutomationObject;
 	import mx.core.UIFTETextField;

@@ -94,13 +95,13 @@

 		public function get automationDelegate():Object
 		{
-			trace("UIFTETextFieldAutomationImpl:automationDelegate - Invalid getter function call. Should have been called on the component");
+			Automation.automationDebugTracer.traceMessage("UIFTETextFieldAutomationImpl", "get automationDelegate()", AutomationConstants.invalidDelegateMethodCall);
 			return this;
 		}

 		public function set automationDelegate(delegate:Object):void
 		{
-			trace("UIFTETextFieldAutomationImpl:automationDelegate - Invalid setter function call. Should have been called on the component");
+			Automation.automationDebugTracer.traceMessage("UIFTETextFieldAutomationImpl", "set automationDelegate()", AutomationConstants.invalidDelegateMethodCall);
 		}

 		public function get automationName():String
@@ -127,7 +128,7 @@

 		public function get automationOwner():DisplayObjectContainer
 		{
-			trace ("This method should not be called on delegate.Should have been called on the component");
+			Automation.automationDebugTracer.traceMessage("UIFTETextFieldAutomationImpl", "get automationOwner()", AutomationConstants.invalidDelegateMethodCall);

 			if(uiFTETextField)
 				return uiFTETextField.owner;
@@ -137,7 +138,7 @@

 		public function get automationParent():DisplayObjectContainer
 		{
-			trace ("This method should not be called on delegate.Should have been called on the component");
+			Automation.automationDebugTracer.traceMessage("UIFTETextFieldAutomationImpl", "get automationParent()", AutomationConstants.invalidDelegateMethodCall);

 			if(uiFTETextField)
 				return uiFTETextField.parent;
@@ -150,7 +151,7 @@
 		//---------------------------------
 		public function get automationEnabled():Boolean
 		{
-			trace ("This method should not be called on delegate.Should have been called on the component");
+			Automation.automationDebugTracer.traceMessage("UIFTETextFieldAutomationImpl", "get automationEnabled()", AutomationConstants.invalidDelegateMethodCall);
 			if(uiFTETextField)
 				return uiFTETextField.enabled;

@@ -159,7 +160,7 @@

 		public function get automationVisible():Boolean
 		{
-			trace ("This method should not be called on delegate.Should have been called on the component");
+			Automation.automationDebugTracer.traceMessage("UIFTETextFieldAutomationImpl", "get automationVisible()", AutomationConstants.invalidDelegateMethodCall);
 			if(uiFTETextField)
 				return uiFTETextField.visible;

@@ -198,13 +199,13 @@

 		public function get showInAutomationHierarchy():Boolean
 		{
-			trace("UIFTETextFieldAutomationImpl:showInAutomationHierarchy - Invalid getter function call. Should have been called on the component");
+			Automation.automationDebugTracer.traceMessage("UIFTETextFieldAutomationImpl", "get showInAutomationHierarchy()", AutomationConstants.invalidDelegateMethodCall);
 			return uiFTETextField.showInAutomationHierarchy;
 		}

 		public function set showInAutomationHierarchy(value:Boolean):void
 		{
-			trace("UIFTETextFieldAutomationImpl:showInAutomationHierarchy - Invalid setter function call. Should have been called on the component");
+			Automation.automationDebugTracer.traceMessage("UIFTETextFieldAutomationImpl", "set showInAutomationHierarchy()", AutomationConstants.invalidDelegateMethodCall);
 		}

 		public function get automationTabularData():Object


fixed spacing

fixed spacing

--- Tablet/TEMPLATE/blackberry.template/src/Air/Template/src/blackberry/template/Template.as
+++ Tablet/TEMPLATE/blackberry.template/src/Air/Template/src/blackberry/template/Template.as
@@ -56,14 +56,14 @@
 //
 package blackberry.template
 {
-    import webworks.extension.DefaultExtension;
+	import webworks.extension.DefaultExtension;

 //
 //STEP 2: Rename this class and constructor to describe the primary purpose of this extension.
 //		  e.g. HelloWorldExtension or LEDextension
 //
-    public class Template extends DefaultExtension
-    {
+	public class Template extends DefaultExtension
+	{

 //
 //STEP 3: For each feature name, add it to an array.
@@ -79,15 +79,15 @@
 //STEP 2 (Continued): Rename this constructor to match the class name.
 //

-        public function Template()
-        {
-            super();
-        }
+		public function Template()
+		{
+			super();
+		}

-        override public function getFeatureList():Array
-        {
-            return FEATURE_ID;
-        }
+		override public function getFeatureList():Array
+		{
+			return FEATURE_ID;
+		}

 //
 //STEP 4: Replace the following section with any properties or functions that
@@ -125,14 +125,14 @@
 		//
 		// Functions:
 		//
-        public function add(first:Number, second:Number):Number
-        {
-            return (first + second);
-        }
+		public function add(first:Number, second:Number):Number
+		{
+			return (first + second);
+		}
 		public function log(msg:String):void
 		{
 			trace("Template log : " + msg);
 		}

-    }
+	}
 }


fix compiler warning

fix compiler warning

--- src/org/mangui/hls/demux/TSDemuxer.as
+++ src/org/mangui/hls/demux/TSDemuxer.as
@@ -836,8 +836,8 @@
                     }
                     break;
                 case _pmtId:
-                    if (_pmtParsed == false || _unknownPIDFound == true) {
-                        CONFIG::LOGGING {
+                    CONFIG::LOGGING {
+                        if (_pmtParsed == false || _unknownPIDFound == true) {
                             if(_pmtParsed == false) {
                                 Log.debug("TS: PMT found");
                             } else {


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 5363
Author:   gruehle@adobe.com
Date:     2009-03-17T21:48:26.221849Z

Log Message:
-----------
More skinning/styling bug fixes.

SDK-19698 - Halo List with Gumbo skin is inconsistent with Gumbo FxList skin when setting baseColor style
SDK-19602 - focusColor is not supported by halo components
SDK-19595 - Various halo components do not look correct when in a disabled state.

QA/Doc Notes: The following changes are controlled by the compatibility-version flag:
* focusColor:
 old behavior: focus drawing was done with themeColor or errorColor, depending on the error state of the component
 new behavior: focus drawing is done with focusColor or errorColor, depending on the error state of the component
* Disabled DateChooser drawing:
 old behavior: border/bottom of header was same color regardless of enable setting
 new behavior: when disabled, border/bottom of header are dimmed 50%
* ComboBase border:
 old behavior: we always created a border object, but it was obscured by the other parts of the component
 new behavior: don't create the border object

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/StepperIncrButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/StepperDecrButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/BorderSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateChooser.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/ScrollBarUpButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/halo/defaults.css</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/sparkskins/src/mx/skins/spark/ScrollBarDownButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/ScrollBarTrackSkin.mxml</path>

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

--- frameworks/projects/mx/src/mx/controls/ComboBase.as
+++ frameworks/projects/mx/src/mx/controls/ComboBase.as
@@ -1065,22 +1065,25 @@
         super.createChildren();

         // Create the border first, in the back.
-        if (!border)
-        {
-            var borderClass:Class = getStyle("borderSkin");
-
-            if (borderClass)
-            {
-                border = new borderClass();
-
-                if (border is IFocusManagerComponent)
-                    IFocusManagerComponent(border).focusEnabled = false;
-
-                if (border is ISimpleStyleClient)
-                    ISimpleStyleClient(border).styleName = this;
-
-                addChild(DisplayObject(border));
-            }
+        if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_4_0)
+        {
+	        if (!border)
+	        {
+	            var borderClass:Class = getStyle("borderSkin");
+
+	            if (borderClass)
+	            {
+	                border = new borderClass();
+
+	                if (border is IFocusManagerComponent)
+	                    IFocusManagerComponent(border).focusEnabled = false;
+
+	                if (border is ISimpleStyleClient)
+	                    ISimpleStyleClient(border).styleName = this;
+
+	                addChild(DisplayObject(border));
+	            }
+	        }
         }

         // Next, create the downArrowButton before creating the textInput,
@@ -1344,7 +1347,8 @@
             var wh:Number = h - vm.top - vm.bottom;
             downArrowButton.setActualSize(wh, wh);
             downArrowButton.move(w - arrowWidth - vm.right, vm.top);
-            border.setActualSize(w, h);
+            if (border)
+            	border.setActualSize(w, h);
             textInput.setActualSize(w - arrowWidth, textInputHeight);
         }
         else
@@ -1355,7 +1359,8 @@
                 var paddingBottom:Number = getStyle("paddingBottom");

                 downArrowButton.move(0, 0);
-                border.setActualSize(w, h);
+                if (border)
+                	border.setActualSize(w, h);
                 textInput.setActualSize(w - arrowWidth, textInputHeight);
                 textInput.border.visible = false;
                 if (FlexVersion.compatibilityVersion >= FlexVersion.VERSION_3_0)
@@ -1365,7 +1370,8 @@
             else
             {
                 downArrowButton.move(w - arrowWidth, 0);
-                border.setActualSize(w - arrowWidth, h);
+                if (border)
+                	border.setActualSize(w - arrowWidth, h);
                 textInput.setActualSize(w - arrowWidth, h);
                 downArrowButton.setActualSize(arrowWidth, unscaledHeight);
                 textInput.border.visible = true;


fix TeapotGeometry to use little endian ByteArrays and reset the position of the vertices/indices ByteArrays to 0 before using them to create the corresponding streams

--- src/aerys/minko/render/geometry/primitive/TeapotGeometry.as
+++ src/aerys/minko/render/geometry/primitive/TeapotGeometry.as
@@ -9,6 +9,7 @@

 	import flash.geom.Vector3D;
 	import flash.utils.ByteArray;
+	import flash.utils.Endian;

 	/**
 	 * Utah Teapot
@@ -169,6 +170,9 @@
 			var indexData	: ByteArray	= new ByteArray();
 			var vertexData	: ByteArray	= new ByteArray();

+			vertexData.endian = Endian.LITTLE_ENDIAN;
+			indexData.endian = Endian.LITTLE_ENDIAN;
+
 			var patch			: Vector.<Vector3D>	= new Vector.<Vector3D>(16, true);
 			var currentVertexId	: uint				= 0;

@@ -183,9 +187,12 @@
 				currentVertexId += (divs + 1) * (divs + 1);
 			}

+			vertexData.position = 0;
+			indexData.position = 0;
+
 			// this is slow and memory consuming and could be avoided by non duplicating all border
 			// vertices on genPatchVertexData and genPatchIndexData...
-			GeometrySanitizer.removeDuplicatedVertices(vertexData, indexData, 3);
+			GeometrySanitizer.removeDuplicatedVertices(vertexData, indexData, 12);

 			super(
 				new <IVertexStream>[


fixed late view matrices update in CameraController by watching the worldToLocal instead of the localToWorld matrix

--- src/aerys/minko/scene/controller/camera/CameraController.as
+++ src/aerys/minko/scene/controller/camera/CameraController.as
@@ -29,7 +29,7 @@
 			_camera = target;
 			_camera.addedToScene.add(addedToSceneHandler);
 			_camera.removedFromScene.add(removedFromSceneHandler);
-			_camera.localToWorld.changed.add(localToWorldChangedHandler);
+			_camera.worldToLocal.changed.add(worldToLocalChangedHandler);
 		}

 		private function targetRemovedHandler(controller	: CameraController,
@@ -37,7 +37,7 @@
 		{
 			_camera.addedToScene.remove(addedToSceneHandler);
 			_camera.removedFromScene.remove(removedFromSceneHandler);
-			_camera.localToWorld.changed.remove(localToWorldChangedHandler);
+			_camera.worldToLocal.changed.remove(worldToLocalChangedHandler);
 			_camera = null;
 		}

@@ -50,7 +50,6 @@
 			sceneBindings.addCallback('viewportHeight', viewportSizeChanged);

 			updateProjection();
-			localToWorldChangedHandler(_camera.localToWorld, null);
 		}

 		private function removedFromSceneHandler(camera : Camera, scene : Scene) : void
@@ -62,27 +61,18 @@
 			sceneBindings.removeCallback('viewportHeight', viewportSizeChanged);
 		}

-		private function localToWorldChangedHandler(localToWorld : Matrix4x4, propertyName : String) : void
+		private function worldToLocalChangedHandler(worldToLocal : Matrix4x4, propertyName : String) : void
 		{
-			var transform 	: Matrix4x4 			= _camera.transform;
 			var cameraData	: CameraDataProvider	= _camera.cameraData;
-
-			transform.transformVector(Vector4.ZERO,		cameraData.position);
-			transform.transformVector(Vector4.Z_AXIS,	cameraData.lookAt);
-			transform.transformVector(Vector4.Y_AXIS,	cameraData.up);
-
-			localToWorld.transformVector(Vector4.ZERO,		cameraData.worldPosition);
-			localToWorld.transformVector(Vector4.Z_AXIS,	cameraData.worldLookAt);
-			localToWorld.transformVector(Vector4.Y_AXIS,	cameraData.worldUp);
-
-			cameraData.screenToWorld.lock()
-				.copyFrom(cameraData.screenToView)
-				.append(localToWorld)
-				.unlock();

 			cameraData.worldToScreen.lock()
 				.copyFrom(_camera.worldToLocal)
 				.append(cameraData.projection)
+				.unlock();
+
+			cameraData.screenToWorld.lock()
+				.copyFrom(cameraData.screenToView)
+				.append(_camera.localToWorld)
 				.unlock();
 		}

@@ -93,21 +83,29 @@

 		private function updateProjection() : void
 		{
-			if (_camera.root is Scene)
-			{
-				var cameraData		: CameraDataProvider	= _camera.cameraData;
-				var sceneBindings	: DataBindings			= Scene(_camera.root).bindings;
-				var viewportWidth	: Number				= sceneBindings.getProperty('viewportWidth');
-				var viewportHeight	: Number				= sceneBindings.getProperty('viewportHeight');
-				var ratio			: Number				= viewportWidth / viewportHeight;
-				var screenToView	: Matrix4x4				= cameraData.screenToView;
-
-				cameraData.projection.perspectiveFoV(cameraData.fieldOfView, ratio, cameraData.zNear, cameraData.zFar);
-				screenToView.lock().copyFrom(cameraData.projection).invert().unlock();
-
-				cameraData.screenToWorld.lock().copyFrom(screenToView).append(_camera.localToWorld).unlock();
-				cameraData.worldToScreen.lock().copyFrom(_camera.worldToLocal).append(cameraData.projection).unlock();
-			}
+			var cameraData		: CameraDataProvider	= _camera.cameraData;
+			var screenToView	: Matrix4x4				= cameraData.screenToView;
+			var sceneBindings	: DataBindings			= Scene(_camera.root).bindings;
+			var viewportWidth	: Number				= sceneBindings.getProperty('viewportWidth');
+			var viewportHeight	: Number				= sceneBindings.getProperty('viewportHeight');
+			var ratio			: Number				= viewportWidth / viewportHeight;
+
+			cameraData.projection.perspectiveFoV(cameraData.fieldOfView, ratio, cameraData.zNear, cameraData.zFar);
+
+			screenToView.lock()
+				.copyFrom(cameraData.projection)
+				.invert()
+				.unlock();
+
+			cameraData.screenToWorld.lock()
+				.copyFrom(cameraData.screenToView)
+				.append(_camera.localToWorld)
+				.unlock();
+
+			cameraData.worldToScreen.lock()
+				.copyFrom(_camera.worldToLocal)
+				.append(cameraData.projection)
+				.unlock();
 		}
 	}
 }


added support for numeric values

added support for numeric values

--- WeaveData/src/weave/data/KeySets/StringDataFilter.as
+++ WeaveData/src/weave/data/KeySets/StringDataFilter.as
@@ -37,7 +37,8 @@

 		private var _enabled:Boolean;
 		private var _includeMissingKeyTypes:Boolean;
-		private var _stringLookup:Object = {};
+		private var _stringLookup:Object;
+		private var _numberLookup:Object;
 		private var _keyType:String;
 		private var _keyLookup:Dictionary = new Dictionary(true);

@@ -53,7 +54,23 @@
 		}
 		private function _resetKeyLookup():void
 		{
-			VectorUtils.fillKeys(_stringLookup = {}, stringValues.getSessionState() as Array);
+			_numberLookup = null;
+			_stringLookup = null;
+			for each (var value:* in stringValues.getSessionState())
+			{
+				if (value is Number)
+				{
+					if (!_numberLookup)
+						_numberLookup = {};
+					_numberLookup[value] = true;
+				}
+				else
+				{
+					if (!_stringLookup)
+						_stringLookup = {};
+					_stringLookup[value] = true;
+				}
+			}
 			_keyType = column.getMetadata(ColumnMetadata.KEY_TYPE);
 			_keyLookup = new Dictionary(true);
 		}
@@ -66,8 +83,16 @@
 			var cached:* = _keyLookup[key];
 			if (cached === undefined)
 			{
-				var value:String = column.getValueFromKey(key, String);
-				cached = _stringLookup.hasOwnProperty(value);
+				if (_stringLookup)
+				{
+					var string:String = column.getValueFromKey(key, String);
+					cached = _stringLookup.hasOwnProperty(string);
+				}
+				if (!cached && _numberLookup)
+				{
+					var number:Number = column.getValueFromKey(key, Number);
+					cached = _numberLookup.hasOwnProperty(number);
+				}
 				if (!cached && _includeMissingKeyTypes && key.keyType != _keyType)
 					cached = true;
 				_keyLookup[key] = cached;


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

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


Better testing UI

Better testing UI

--- src/LevelStates/LevelState.as
+++ src/LevelStates/LevelState.as
@@ -54,6 +54,7 @@
 		protected var loadButton:MenuButton;
 		protected var resetButton:MenuButton;

+
 		protected var displayTime:DTime;
 		protected var displayDelay:DDelay;
 		protected var preserveModule:Boolean;
@@ -177,7 +178,12 @@
 			makeDataButton();
 			makeInfoButton();
 			makeBackButton();
-			upperLayer.add(editEnabled ? displayTime = new DTime(FlxG.width / 2 - 50, 10) : displayTime);
+			if (editEnabled)
+				upperLayer.add(displayTime = new DTime(FlxG.width / 2 - 50, 10))
+			else {
+				upperLayer.add(displayTime);
+				makeEndTestButton();
+			}
 		}

 		protected function makeViewLists():void {
@@ -259,7 +265,7 @@
 		}

 		protected function makeClockButton():void {
-			upperLayer.add(new DClock(10, 130));
+			upperLayer.add(new DClock(130, 90));
 		}

 		protected function makeZoomButton():void {
@@ -302,17 +308,23 @@
 				var randomButton:MenuButton = new GraphicButton(90, 90, _random_sprite, function _():void {
 					initialMemory = level.goal.genMem();
 					memory = initialMemory.slice();
+					upperLayer.add(new DMemory(memory));
 				}, "Generate new memory", new Key("R"));
 				upperLayer.add(randomButton);
 			}

 			if (level.goal.dynamicallyTested) {
-				var testButton:MenuButton = new GraphicButton(130, 90, _test_sprite, function _():void {
+				var testButton:MenuButton = new GraphicButton(FlxG.width / 2 - 16, 40, _test_sprite, function _():void {
 					level.goal.startRun();
 					lastRunTime = elapsed;
 				}, "Test your machine!", new Key("T"));
 				upperLayer.add(testButton);
 			}
+		}
+
+		protected function makeEndTestButton():void {
+			var testButton:MenuButton = new GraphicButton(FlxG.width / 2 - 16, 40, _inv_test_sprite, finishDisplayTest, "Finish the test!", new Key("T"));
+			upperLayer.add(testButton);
 		}

 		protected function makeModeButton():void {
@@ -804,30 +816,36 @@
 		}

 		protected function checkTime():void {
-			if (editEnabled != time.moment == 0) {
-				editEnabled = time.moment == 0;
+			var editShouldBeEnabled:Boolean = time.moment == 0 && !runningDisplayTest;
+			if (editShouldBeEnabled != editEnabled) {
+				editEnabled = editShouldBeEnabled;
 				makeUI();
 			}

-			if (runningDisplayTest) {
-				if (!time.moment && !displayTime.isPlaying)
-					runningDisplayTest = false; //?
-				else if (level.goal.stateValid(this)) {
-					U.save.data[level.name + SUCCESS_SUFFIX] = genSaveString();
-
-					if (level == U.tuts[0])
-						U.updateTutState(U.TUT_BEAT_TUT_1);
-					else if (level == U.tuts[1])
-						U.updateTutState(U.TUT_BEAT_TUT_2);
-
-					FlxG.fade(0xff000000, MenuButton.FADE_TIME*2, function switchStates():void {
-						FlxG.switchState(new SuccessState(level));
-					});
-				} else if (time.moment >= level.goal.timeLimit)
-					FlxG.fade(0xff000000, MenuButton.FADE_TIME*2, function switchStates():void {
-						FlxG.switchState(new FailureState(level));
-					});
-			}
+			if (runningDisplayTest && (level.goal.stateValid(this) || time.moment >= level.goal.timeLimit))
+				finishDisplayTest();
+		}
+
+		protected function finishDisplayTest():void {
+			runningDisplayTest = false;
+
+			if (!level.goal.succeeded) {
+				FlxG.fade(0xff000000, MenuButton.FADE_TIME*2, function switchStates():void {
+					FlxG.switchState(new FailureState(level));
+				});
+				return;
+			}
+
+			U.save.data[level.name + SUCCESS_SUFFIX] = genSaveString();
+
+			if (level == U.tuts[0])
+				U.updateTutState(U.TUT_BEAT_TUT_1);
+			else if (level == U.tuts[1])
+				U.updateTutState(U.TUT_BEAT_TUT_2);
+
+			FlxG.fade(0xff000000, MenuButton.FADE_TIME*2, function switchStates():void {
+				FlxG.switchState(new SuccessState(level));
+			});
 		}

 		//protected function get buttonMoused():MenuButton {
@@ -1129,10 +1147,10 @@

 		protected function runTest():void {
-			var success:Boolean = level.goal.runTestStep(this);
+			level.goal.runTestStep(this);
 			lastRunTime = elapsed;
 			if (!level.goal.running) {
-				if (success)
+				if (level.goal.succeeded)
 					C.log("Success!");
 				else
 					C.log("Failure!");
@@ -1225,6 +1243,7 @@
 		[Embed(source = "../../lib/art/ui/random.png")] private const _random_sprite:Class;
 		[Embed(source = "../../lib/art/ui/reset.png")] private const _reset_sprite:Class;
 		[Embed(source = "../../lib/art/ui/test.png")] private const _test_sprite:Class;
+		[Embed(source = "../../lib/art/ui/tset.png")] private const _inv_test_sprite:Class;

 		[Embed(source = "../../lib/art/ui/pen.png")] private const _pen_cursor:Class;
 		[Embed(source = "../../lib/art/ui/grabby_cursor.png")] private const _grab_cursor:Class;


FLEX-23834 allow event to pass onto DG so it can cancel changes if need be

--- frameworks/projects/mx/src/mx/controls/DateField.as
+++ frameworks/projects/mx/src/mx/controls/DateField.as
@@ -2598,7 +2598,8 @@
             if (showingDropdown)
                 selectedDate = lastSelectedDate;
             displayDropdown(false, event);
-            event.stopPropagation();
+			if (!editable)
+           		event.stopPropagation();
         }

         else if (event.keyCode == Keyboard.ENTER)


Transferred from the Adobe Open Source Subversion Repository

Revision: 10151
Author:   peterson@adobe.com
Date:     2009-09-11T13:20:44.335948Z

Log Message:
-----------
Modified the Channel.applySettings() ASDoc comment. Removed the XML snippet for the method parameter, which wasn't relevant to the primary way this method is used. This method is primarily used in our channel subclasses to add settings specific to those channels and then call super to get the base channel settings. If a developer creates a custom channel class, the developer could use it in the same way, but would be setting the applySettings() method on the custom channel class with properties specific to the custom channel implementation. This change addresses bug BLZ-294.

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/Channel.as

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

--- frameworks/projects/rpc/src/mx/messaging/Channel.as
+++ frameworks/projects/rpc/src/mx/messaging/Channel.as
@@ -767,20 +767,10 @@
     /**
      *  Subclasses should override this method to apply any settings that may be
      *  necessary for an individual channel.
-     *  Make sure to call super.applySettings() to apply common settings for the channel.
+     *  Make sure to call super.applySettings() to apply common settings for the channel. * *  This method is used primarily in Channel subclasses.
      *
      *  @param settings XML fragment of the services-config.xml file for this channel.
-     *  The following fragment includes the <channel> tag with
-     *  all of its configuration settings:
-     *

-     *  <channel id="my-amf" type="mx.messaging.channels.AMFChannel">
-     *    <endpoint uri="/dev/messagebroker/amf" type="flex.messaging.endpoints.AmfEndpoint"/>
-     *    <properties>
-     *      <polling-enabled>false</polling-enabled>
-     *    </properties>
-     *  </channel>
-     *

-     */
+       */
     public function applySettings(settings:XML):void
     {
         if (Log.isInfo())


Transferred from the Adobe Open Source Subversion Repository

Revision: 10034
Author:   clucier@adobe.com
Date:     2009-09-05T03:10:16.526069Z

Log Message:
-----------
AST fix for design layer code gen.  RTE fixed for Fade effect acting on design layers.

QE notes: None
Doc notes: None
Bugs: SDK-22870, SDK-22987
Reviewer: Chet, Paul
Tests run: Checkin
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Fade.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationGenerator.java</path>

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

--- frameworks/projects/spark/src/spark/effects/Fade.as
+++ frameworks/projects/spark/src/spark/effects/Fade.as
@@ -167,7 +167,7 @@
             if (container is IVisualElementContainer)
                 return IVisualElementContainer(container).
                     getElementIndex(target as IVisualElement);
-            else
+            else if ("getChildIndex" in container)
                 return container.getChildIndex(target);
         }


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 20844
Author:   jimurphy@adobe.com
Date:     2011-03-14T15:10:07.899037Z

Log Message:
-----------
block hero_private revs 20698,20699,20702 from being merged into trunk
revert 20839,20841,20842,20843

QE notes: no
Doc notes: no
Bugs: no
Reviewer:no
Tests run: no
Is noteworthy for integration:no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/spark/src/spark/formatters/NumberFormatter.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSCondition.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/ISortField.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/spark/src/spark/formatters/CurrencyFormatter.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/BitmapFill.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/spark/src/spark/formatters/DateTimeFormatter.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/charts/src/mx/charts/chartClasses/CartesianChart.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/GradientStroke.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/ArrayList.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/GradientBase.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/charts/src/mx/charts/chartClasses/PolarChart.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/ColorDodgeShader.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/charts/src/mx/charts/chartClasses/PolarDataCanvas.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/OnDemandEventDispatcher.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/charts/src/mx/charts/series/PlotSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TabBar.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/SolidColorStroke.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/Transform.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/advancedgrids/src/mx/collections/HierarchicalCollectionViewCursor.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSStyleDeclaration.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/FlexEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/charts/src/mx/charts/series/CandlestickSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/StringUtil.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/spark/src/spark/globalization/StringTools.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/CompoundTransform.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/AdvancedStyleClient.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/binding/utils/ChangeWatcher.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/LinearGradientStroke.as</path>

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

--- frameworks/projects/framework/src/mx/graphics/LinearGradientStroke.as
+++ frameworks/projects/framework/src/mx/graphics/LinearGradientStroke.as
@@ -127,26 +127,26 @@
      */
     private static var commonMatrix:Matrix = new Matrix();

-    //--------------------------------------------------------------------------
-    //
-    //  Properties
-    //
-    //--------------------------------------------------------------------------
+	//--------------------------------------------------------------------------
+	//
+	//  Properties
+	//
+	//--------------------------------------------------------------------------

     //----------------------------------
-    //  matrix
-    //----------------------------------
+	//  matrix
+	//----------------------------------

     /**
      *  @private
      */
     override public function set matrix(value:Matrix):void
     {
-        scaleX = NaN;
-        super.matrix = value;
-    }
-
-    //----------------------------------
+    	scaleX = NaN;
+    	super.matrix = value;
+    }
+
+	//----------------------------------
     //  scaleX
     //----------------------------------

@@ -199,21 +199,16 @@

     /**
      *  @inheritDoc
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
      */
     override public function apply(graphics:Graphics, targetBounds:Rectangle, targetOrigin:Point):void
-    {
-        commonMatrix.identity();
-
+	{
+		commonMatrix.identity();
+
         graphics.lineStyle(weight, 0, 1, pixelHinting, scaleMode,
                     caps, joints, miterLimit);

         if (targetBounds)
-            calculateTransformationMatrix(targetBounds, commonMatrix, targetOrigin);
+        	calculateTransformationMatrix(targetBounds, commonMatrix, targetOrigin);

         graphics.lineGradientStyle(GradientType.LINEAR, colors,
                             alphas, ratios,
@@ -259,7 +254,7 @@
             {
                 // Figure out the two sides
                 if (rotation % 90 != 0)
-                {
+                {
                     // Normalize angles with absolute value > 360
                     var normalizedAngle:Number = rotation % 360;
                     // Normalize negative angles
@@ -308,11 +303,11 @@
             if (!isNaN(tx) && !isNaN(ty))
                 matrix.translate(GRADIENT_DIMENSION / 2, GRADIENT_DIMENSION / 2); // 1638.4 / 2

-            // Force the length to a absolute minimum of 2. Values of 0, 1, or -1 have undesired behavior
-            if (length >= 0 && length < 2)
-                length = 2;
-            else if (length < 0 && length > -2)
-                length = -2;
+			// Force the length to a absolute minimum of 2. Values of 0, 1, or -1 have undesired behavior
+			if (length >= 0 && length < 2)
+				length = 2;
+			else if (length < 0 && length > -2)
+				length = -2;

             // Scale the gradient in the x direction. The natural size is 1638.4px. No need
             // to scale the y direction because it is infinite
@@ -327,7 +322,7 @@
                 ty = targetBounds.top + targetBounds.height / 2;
             else
                 ty += targetOrigin.y;
-            matrix.translate(tx, ty);
+            matrix.translate(tx, ty);
         }
         else
         {
@@ -335,7 +330,7 @@
             matrix.scale(1 / GRADIENT_DIMENSION, 1 / GRADIENT_DIMENSION);
             matrix.concat(compoundTransform.matrix);
             matrix.translate(targetOrigin.x, targetOrigin.y);
-        }
+        }
     }

 }


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 12870
Author:   klin@adobe.com
Date:     2009-12-11T23:52:43.652707Z

Log Message:
-----------
Couple of minor fixes including SDK-24627 and SDK-24628.

-Added metadata so that resizeMode code hints. Needed to add the same metadata to Group since it doesn't inherit the enumerations from GroupBase. Renamed NOSCALE to NO_SCALE, which is more in line with naming conventions.
-Added null checks in VScrollBar and HScrollBar in pointToValue().
-Cleaned up VSlider's code.

QE notes: No
Doc notes: No
Bugs: SDK-24627, SDK-24628
Reviewer: Ryan
Tests run: checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ResizeMode.as</path>

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

--- frameworks/projects/spark/src/spark/components/VScrollBar.as
+++ frameworks/projects/spark/src/spark/components/VScrollBar.as
@@ -174,6 +174,9 @@
      */
     override protected function pointToValue(x:Number, y:Number):Number
     {
+        if (!thumb || !track)
+            return 0;
+
         var r:Number = track.getLayoutBoundsHeight() - thumb.getLayoutBoundsHeight();
         return minimum + ((r != 0) ? (y / r) * (maximum - minimum) : 0);
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 9357
Author:   srahim@adobe.com
Date:     2009-08-17T23:32:32.723518Z

Log Message:
-----------
Added reference to VScrollBar example for ASDocs

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

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

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

--- frameworks/projects/spark/src/spark/components/VScrollBar.as
+++ frameworks/projects/spark/src/spark/components/VScrollBar.as
@@ -74,7 +74,8 @@
  *    viewport=""
  *  />
  *  </pre>
- *
+ *
+ *  @includeExample examples/VScrollBarExample.mxml
  *  @see spark.skins.spark.VScrollBarSkin
  *  @see spark.skins.spark.VScrollBarThumbSkin
  *  @see spark.skins.spark.VScrollBarTrackSkin


Transferred from the Adobe Open Source Subversion Repository

Revision: 1218
Author:   jimurphy@adobe.com
Date:     2008-04-15T16:09:32.174552Z

Log Message:
-----------
merge 3.0.x[1069:1202] -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/in/air/air_version.txt</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ProgressBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/lib/flex-messaging-common.jar</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/codec/PNGEncoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/MultiTopicProducer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/codec/JPEGEncoder.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/rpc/src/mx/rpc/xml/SchemaTypeRegistry.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/mxml/HTTPService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/codec/IImageEncoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/ObjectProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/MultiTopicConsumer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/IXMLDecoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/SOAPFault.as</path>
<path kind="file" action="M">/flex/sdk/trunk/build.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/WebService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/Channel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/Operation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/HaloColors.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/SliderThumbSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/IXMLEncoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/RoundedRectangle.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/SimpleXMLEncoder.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/rpc/src/mx/rpc/soap/SOAPHeader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/mxml/WebService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/wsdl/WSDLBinding.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/mxml/Operation.as</path>

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

--- frameworks/projects/rpc/src/mx/rpc/soap/Operation.as
+++ frameworks/projects/rpc/src/mx/rpc/soap/Operation.as
@@ -583,6 +583,7 @@
      * Returns a header if a match is found based on QName localName and URI.
      * @param qname QName of the SOAPHeader.
      * @param headerName Name of a header in the SOAPHeader content (Optional)
+     * @return Returns the SOAPHeader.
      */
     public function getHeader(qname:QName, headerName:String = null):SOAPHeader
     {


sname game marcro

sname game marcro

--- 6502/easy6502/snake-ex.as
+++ 6502/easy6502/snake-ex.as
@@ -0,0 +1,30 @@
+;  ___           _        __ ___  __ ___
+; / __|_ _  __ _| |_____ / /| __|/  \_  )
+; \__ \ ' \/ _` | / / -_) _ \__ \ () / /
+; |___/_||_\__,_|_\_\___\___/___/\__/___|
+
+; Change direction: W A S D
+
+define appleL         $00 ; screen location of apple, low byte
+define appleH         $01 ; screen location of apple, high byte
+define snakeHeadL     $10 ; screen location of snake head, low byte
+define snakeHeadH     $11 ; screen location of snake head, high byte
+define snakeBodyStart $12 ; start of snake body byte pairs
+define snakeDirection $02 ; direction (possible values are below)
+define snakeLength    $03 ; snake length, in bytes
+
+; Directions (each using a separate bit)
+define movingUp      1
+define movingRight   2
+define movingDown    4
+define movingLeft    8
+
+; ASCII values of keys controlling the snake
+define ASCII_w      $77
+define ASCII_a      $61
+define ASCII_s      $73
+define ASCII_d      $64
+
+; System variables
+define sysRandom    $fe
+define sysLastKey   $ff


Fixed a bug where ReprojectedGeometryColumn wasn't triggering
boundingBoxCallbacks when reprojection finished.

Change-Id: I8dee02016ed1bd49fa2eb84fff2e8e748a1ca2d9

--- WeaveData/src/weave/data/AttributeColumns/ReprojectedGeometryColumn.as
+++ WeaveData/src/weave/data/AttributeColumns/ReprojectedGeometryColumn.as
@@ -96,7 +96,6 @@
 				_reprojectedColumn.removeCallback(handleReprojectedColumnChange);

 			_reprojectedColumn = newColumn;
-			_unprojectedColumn = null;

 			if (_reprojectedColumn)
 				_reprojectedColumn.addImmediateCallback(this, handleReprojectedColumnChange, null, true, true); // parent-child relationship
@@ -104,18 +103,14 @@

 		private function handleReprojectedColumnChange():void
 		{
-			if (!_unprojectedColumn)
-			{
-				// if _unprojectedColumn is not null, it means there is no reprojection to do.
-				_unprojectedColumn = ColumnUtils.hack_findNonWrapperColumn(_reprojectedColumn) as StreamedGeometryColumn;
-				if (_unprojectedColumn)
-					_unprojectedColumn.boundingBoxCallbacks.addImmediateCallback(this, _boundingBoxCallbacks.triggerCallbacks);
-			}
-			if (!_unprojectedColumn)
+			// if _unprojectedColumn is not null, it means there is no reprojection to do.
+			var _unprojectedColumn:StreamedGeometryColumn = ColumnUtils.hack_findNonWrapperColumn(_reprojectedColumn) as StreamedGeometryColumn;
+			if (_unprojectedColumn)
+				_unprojectedColumn.boundingBoxCallbacks.addImmediateCallback(this, _boundingBoxCallbacks.triggerCallbacks);
+			else
 				_boundingBoxCallbacks.triggerCallbacks();
 		}

-		private var _unprojectedColumn:StreamedGeometryColumn = null;
 		private var _reprojectedColumn:IAttributeColumn = null;

 		override public function getValueFromKey(key:IQualifiedKey, dataType:Class = 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@1290679 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/advancedgrids/src/mx/printing/PrintOLAPDataGrid.as
+++ frameworks/projects/advancedgrids/src/mx/printing/PrintOLAPDataGrid.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.printing
 {