[svn] 4612: Flex SDK Bug Fix - Added scaleGrid support to BitmapGraphic

Revision: 4612
Author: [email protected]
Date: 2009-01-21 16:58:51 -0800 (Wed, 21 Jan 2009)
Log Message:
Flex SDK Bug Fix - Added scaleGrid support to BitmapGraphic
SDK-17289 - BitmapGraphic source embed does not respect scale9 grid when scaling
BitmapGraphic will use the scaleGrid properties defined on its embedded source. Since the Player doesn't support scaleGrid on bitmaps, we have to slice the bitmap into nine sections and then scale/translate each section. We create two arrays of points along the grid. These are used to define the topLeft and bottomRight corners of the section. Based on the internal scaleFactor and which section we are in, we draw a scaled and translated section according to the scaleGrid rules.
More details:
- Changed BitmapGraphic to no longer use the BitmapFill to draw. Instead, BitmapGraphic performs the drawing code itself.
- When the source is set, check if it has scaleGrid properties and store these in internal variable
- Cache the creation of the 16 grid points array. Flush the cache if the source or dimensions have changed
- To see this behavior in action, set width/height to different values than the source's natural dimensions and set resizeMode = "scale"
QE Notes: Add tests for BitmapGraphic with embedded assets using scaleGrid
Doc Notes: Add docs for this functionality
Bugs: SDK-17289
Reviewer: Glenn
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-17289
http://bugs.adobe.com/jira/browse/SDK-17289
Modified Paths:
flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/BitmapGraphic.as

Similar Messages

  • [svn] 4624: Flex SDK Bug Fix - Add snapshot support for 3D transformed GraphicElements

    Revision: 4624
    Author: [email protected]
    Date: 2009-01-22 13:15:17 -0800 (Thu, 22 Jan 2009)
    Log Message:
    Flex SDK Bug Fix - Add snapshot support for 3D transformed GraphicElements
    SDK-17362 - GraphicElement.getBitmapData doesn't handle 3D transforms
    Added in support to take a bitmap snapshot of a 3D transformed GraphicElement.
    Added a flag to getBitmapData to return a bitmap of the target either in the local or global coordinate space.
    Also, fixed a bug in the bitmap snapshot logic for a 2D GraphicElement that was sharing its displayObject.
    Note that the 3D snapshot isn't accurate if you have set maintainProjectionCenter on an ancestor. There are also limitations when rotation is applied. In addition, getting a local 3D snapshot isn't too accurate once you start scaling ancestors.
    QE Notes: Add mustella tests for getBitmapData
    Doc Notes: Document that getBitmapData now supports 3D transforms
    Bugs: SDK-17362
    Reviewer: Evtim
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17362
    http://bugs.adobe.com/jira/browse/SDK-17362
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/GraphicElement.a s

    FYI - This regression has been filed here: http://bugs.adobe.com/jira/browse/SDK-31989

  • [svn:fx-trunk] 5224: Flex SDK Bug Fixes

    Revision: 5224
    Author: [email protected]
    Date: 2009-03-10 14:06:53 -0700 (Tue, 10 Mar 2009)
    Log Message:
    Flex SDK Bug Fixes
    SDK-19772 Initially invisible graphic element can not be made visible
    When visible is false, we were both setting the displayObject invisible and not drawing the graphics. When visible was then set to true, we changed the displayObject visibility, but didn't draw the graphics. The fix is to always draw the graphics when we are not sharing our displayObject. This way we simply toggle visibility on the displayObject on/off, instead of having to perform a redraw.
    SDK-19581 BitmapFill incorrectly handle source property
    Updated code to match code in BitmapGraphic. If the source is a class, we still need to check the type of the newly instantiated instance of that class.
    SDK-19085 unexpected behaviour when setting scaleX < 3 on a LinearGradient
    Internally, we no longer allow scaleX to be less than 2. Visually, this shouldn't have much impact.
    QE Notes: n/a
    Doc Notes: n/a
    Bugs: SDK-19772, SDK-19581, SDK-19085
    Reviewer: Evtim, Chet
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-19772
    http://bugs.adobe.com/jira/browse/SDK-19581
    http://bugs.adobe.com/jira/browse/SDK-19085
    http://bugs.adobe.com/jira/browse/SDK-19772
    http://bugs.adobe.com/jira/browse/SDK-19581
    http://bugs.adobe.com/jira/browse/SDK-19085
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/BitmapGraphic.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/baseClasses/GraphicElement.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/BitmapFill.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/LinearGradient.as

    error dateField not selecion date 27/11/2002 ?
    This is bug flex 3 ?
    thanks

  • [svn:fx-3.x] 5687: Flex Framework Bug Fix

    Revision: 5687
    Author: [email protected]
    Date: 2009-03-27 16:27:38 -0700 (Fri, 27 Mar 2009)
    Log Message:
    Flex Framework Bug Fix
    SDK-14684 Un-hardcode the 10 digit limit in PhoneNumberValidator
    Added a minDigits property to PhoneNumberValidator. Added new resource string to Validator.properties.
    SDK-16679 NumberValidator.domain should use constants instead of strings
    Added new class NumberValidatorDomainType. Updated the ASDoc and one of the equality checks in NumberValidator.
    QE Notes: add tests for the new minDigits property
    Doc Notes: add documentation for the new minDigits property and NumberValidatorDomainType class
    Bugs: SDK-14684, SDK-16679
    Reviewer: Hans
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-14684
    http://bugs.adobe.com/jira/browse/SDK-16679
    http://bugs.adobe.com/jira/browse/SDK-14684
    http://bugs.adobe.com/jira/browse/SDK-16679
    Modified Paths:
    flex/sdk/branches/3.x/frameworks/projects/framework/bundles/en_US/src/validators.properti es
    flex/sdk/branches/3.x/frameworks/projects/framework/src/mx/validators/NumberValidator.as
    flex/sdk/branches/3.x/frameworks/projects/framework/src/mx/validators/PhoneNumberValidato r.as
    Added Paths:
    flex/sdk/branches/3.x/frameworks/projects/framework/src/mx/validators/NumberValidatorDoma inType.as

  • [svn:fx-trunk] 11717: Bug Fixing Localized SDK - modified one file xercesSchema. properties in xercesImpl_ja.jar - added " to one JA string.

    Revision: 11717
    Author:   [email protected]
    Date:     2009-11-12 11:54:22 -0800 (Thu, 12 Nov 2009)
    Log Message:
    Bug Fixing Localized SDK - modified one file xercesSchema.properties in xercesImpl_ja.jar - added " to one JA string.
    ANT CLEAN MAIN successful
    Modified Paths:
        flex/sdk/trunk/lib/xercesImpl_ja.jar

  • [svn:bz-trunk] 21394: bug fix for watson 2887837 Not getting duplicate session detected error when same flex client id is used from two different HTTP sessions in CRX .

    Revision: 21394
    Revision: 21394
    Author:   [email protected]
    Date:     2011-06-16 12:34:13 -0700 (Thu, 16 Jun 2011)
    Log Message:
    bug fix for watson 2887837 Not getting duplicate session detected error when same flex client id is used from two different HTTP sessions in CRX.
    get the sessions id before we invalidate the duplicate session.
    Checkintests pass
    Modified Paths:
        blazeds/trunk/modules/core/src/flex/messaging/endpoints/BaseHTTPEndpoint.java

    For our profect I think this issue was caused as follows:
    Believing that remoting was full asynchronous we fired a 2 or 3 remote calls to the server at the same time ( within the same function ) - usually when the users goes to a new section of the app.
    This seemed to trigger the duplicate http session error since according to http://blogs.adobe.com/lin/2011/05/duplication-session-error.html  two remote calls arriving before a session is created will cause 2 sessions to be created.
    Our current solution ( too early to say it works ) is to daisy chain the multiple calls together .
    Also there seemed to be an issue where mobile apps that never quit ( thanks Apple! )  caused the error when activated after a few hours.
    I guess the session expires on the server and the error above occurs on activation.
    So the mobile apps now ping the server with a remote call when activated after sleeping for more than one hour.
    All duplicate http errors are silently caught and reported.
    Fingers crossed we won't get any more!

  • [svn:bz-trunk] 18839: bug fix BLZ-575 Potential race condition in flex. management.runtime.messaging.endpoints.EndpointControl

    Revision: 18839
    Revision: 18839
    Author:   [email protected]
    Date:     2010-11-29 12:26:32 -0800 (Mon, 29 Nov 2010)
    Log Message:
    bug fix BLZ-575 Potential race condition in flex.management.runtime.messaging.endpoints.EndpointControl
    Change a few counters to Atomic numbers
    Probably solve some PMD bugs too (was complaining about new Integer() and new Long() API)
    Ticket Links:
        http://bugs.adobe.com/jira/browse/BLZ-575
    Modified Paths:
        blazeds/trunk/modules/core/src/flex/management/runtime/messaging/endpoints/EndpointContro l.java

  • [svn:bz-trunk] 21151: bug fix watson 2769398 [Coverity] potential dead lock in flex.messaging.services.MessageService

    Revision: 21151
    Revision: 21151
    Author:   [email protected]
    Date:     2011-04-26 12:14:04 -0700 (Tue, 26 Apr 2011)
    Log Message:
    bug fix watson 2769398 potential dead lock in flex.messaging.services.MessageService
    override the AbstractService.stop in MessageService to obtain subscribeLock when stopping
    Checkintests pass
    Modified Paths:
        blazeds/trunk/modules/core/src/flex/messaging/services/MessageService.java

  • [svn:bz-trunk] 21043: bug fix watson 2769398 [Coverity] potential dead lock in flex.messaging.service

    Revision: 21043
    Revision: 21043
    Author:   [email protected]
    Date:     2011-04-07 12:41:36 -0700 (Thu, 07 Apr 2011)
    Log Message:
    bug fix watson 2769398 potential dead lock in flex.messaging.service
    fix the order of locking of MessageService.subscribeLock, FlexClient.objectLock, requires that routing message to client roution obtain the subscribeLock first
    checkin test pass done
    Modified Paths:
        blazeds/trunk/modules/core/src/flex/messaging/services/MessageService.java

  • [svn:bz-trunk] 18873: Bug fix Watson 2724938 [Coverity] potential deadlock in flex.messaging.client.FlexClient

    Revision: 18873
    Revision: 18873
    Author:   [email protected]
    Date:     2010-11-30 12:22:15 -0800 (Tue, 30 Nov 2010)
    Log Message:
    Bug fix Watson 2724938 potential deadlock in flex.messaging.client.FlexClient
            Maintain the pattern of using the FlexClient.lock and ensure that order of locks should always start with the FlexClient.lock.  This is critical to prevent deadlock cases,
    Modified Paths:
        blazeds/trunk/modules/core/src/flex/messaging/client/FlexClient.java

  • [svn] 4885: Flex SDK Framework - Update mx.filters API and class hierarchy

    Revision: 4885
    Author: [email protected]
    Date: 2009-02-06 16:12:32 -0800 (Fri, 06 Feb 2009)
    Log Message:
    Flex SDK Framework - Update mx.filters API and class hierarchy
    - Removed BaseFilter.as, BaseDimensionFilter.as, and GradientFilter.as
    - Renamed IBitmapFilter.as to IFlexBitmapFilter.as
    - Changed IBitmapFilter.clone to createBitmapFilter
    - Moved properties and functions from base classes up to filter subclasses
    - Changed ColorMatrixFilter constructor parameter from Array to Object
    - Added Change metadata to all filter classes
    - Changed notifyFilterChanged from public to private
    - Added ASDoc comments
    - Added copyright info
    - Added a number of formatting and style fixes
    QE Notes: Need to update tests based on API changes. Missing tests for DisplacementMapFilter.as.
    Doc Notes: Need extensive ASDoc review. Consider using @copy for properties that match the flash.filters properties
    Bugs: n/a
    Reviewer: Gordon
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/FxAnimateFilter.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxAnimateFilterInst ance.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/BevelFilter.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/BlurFilter.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/ColorMatrixFilter.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/ConvolutionFilter.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/DisplacementMapFilter.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/DropShadowFilter.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/GlowFilter.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/GradientBevelFilter.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/GradientGlowFilter.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/ShaderFilter.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/Parser.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/StrokedElement.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/GraphicElement.a s
    flex/sdk/trunk/frameworks/projects/framework/src/FrameworkClasses.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as
    Added Paths:
    flex/sdk/trunk/frameworks/projects/framework/src/mx/filters/IFlexBitmapFilter.as
    Removed Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/GradientFilter.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/filters/BaseDimensionFilter.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/filters/BaseFilter.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/filters/IBitmapFilter.as

    Yup. The source files are simply missing from the 4.5 source releases....I'm hitting the same issue when trying to rebuild the SDK with flexcover changes applied.

  • [svn] 4600: Flex SDK - Move style metadata from base class down to component classes

    Revision: 4600
    Author: [email protected]
    Date: 2009-01-20 13:11:33 -0800 (Tue, 20 Jan 2009)
    Log Message:
    Flex SDK - Move style metadata from base class down to component classes
    Previously, all spark and text styles were defined on FxComponent even though not every component supports all of those styles. So I have moved each style to the top-most base class where the style will apply to all descendant classes of that base class.
    This is the set of styles that were added to the various classes:
    baseColor
    color
    focusColor
    symbolColor
    selectionColor
    contentBackgroundColor
    rollOverColor
    alternatingItemColors
    basic text styles
    advanced text styles
    Here are some details about the implementation:
    - baseColor was added to FxComponent because every component and container supports it
    - FxContainer and GroupBase are containers, so their children can potentially support any of the styles. Thus the container classes support all of the styles indirectly.
    - FxDataContainer doesn't support all of the styles because its subclasses (FxButtonBar, FxList) don't support all styles.
    - FxList supports selectionColor, but not inactiveSelectionColor or unfocusedSelectionColor. All other components that support selectionColor, support the other two styles, and thus include styles/metadata/SelectionFormatTextStyles.as
    - GroupBase contains the style declarations that have the full ASDoc. All other declarations use the @copy keyword to reference the asdoc from GroupBase.
    QE Notes: Update tests to remove references to styles that are no longer allowed on various components/FxButton.as
    Doc Notes: Write the ASDoc comments for the style declarations in GroupBase
    Bugs: n/a
    Reviewer: Glenn
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxButton.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxCheckBox.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxContainer.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxDataContainer.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxList.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxNumericStepper.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxRadioButton.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxScroller.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxSpinner.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxTextArea.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxComponent.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxScrollBar.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxSlider.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxTextBase.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/GroupBase.as

    Gordon, it looks like its been a while since you made this post.  Not sure how valid it is now...   I am particularly interested in the LigatureLevel.NONE value.  It seems that it is no longer supported.
    How do I turn of ligatures in the font rendering?
    My flex project involves trying to match the font rendering of Apache's Batik rendering of SVG and ligatures have been turned off in that codebase.  Is there any way (even roundabout) to turn ligatures off in flash?
    Thanks,
    Om

  • [svn] 3748: 2 alpha bug fixes.

    Revision: 3748
    Author: [email protected]
    Date: 2008-10-20 11:23:33 -0700 (Mon, 20 Oct 2008)
    Log Message:
    2 alpha bug fixes. Removing describeType usage - despite only used once per type, it is too expensive. Restoring previous mechanism of traversing superclass definition chain, but refactoring so that we can support descendant selectors.
    Also a quick fix for global id selectors.
    QE: Yes
    Doc: No
    Checkintests: Pass
    Reviewer: Corey
    Bugs:
    SDK-17671 - [Advanced CSS] global id selectors are broken as of build 3639
    SDK-17669 - Swf start up time is slow...
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17671
    http://bugs.adobe.com/jira/browse/SDK-17669
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSStyleDeclaration.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as

    Revision: 3748
    Author: [email protected]
    Date: 2008-10-20 11:23:33 -0700 (Mon, 20 Oct 2008)
    Log Message:
    2 alpha bug fixes. Removing describeType usage - despite only used once per type, it is too expensive. Restoring previous mechanism of traversing superclass definition chain, but refactoring so that we can support descendant selectors.
    Also a quick fix for global id selectors.
    QE: Yes
    Doc: No
    Checkintests: Pass
    Reviewer: Corey
    Bugs:
    SDK-17671 - [Advanced CSS] global id selectors are broken as of build 3639
    SDK-17669 - Swf start up time is slow...
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17671
    http://bugs.adobe.com/jira/browse/SDK-17669
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSStyleDeclaration.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as

  • [svn:fx-trunk] 7970: Bug Fix in VideoPlayerSkin

    Revision: 7970
    Author:   [email protected]
    Date:     2009-06-18 13:36:00 -0700 (Thu, 18 Jun 2009)
    Log Message:
    Bug Fix in VideoPlayerSkin
    Changed layer to depth
    QE Notes: None
    Doc Notes: None
    Bugs: None
    Reviewer: Matt F
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/spark/VideoPlayerSkin.mxml

  • [svn:bz-trunk] 21155: bug fix BLZ-623 BeanProxy/ PropertyProxyRegistry have unsynchronized access to registry/cache

    Revision: 21155
    Revision: 21155
    Author:   [email protected]
    Date:     2011-04-27 10:16:52 -0700 (Wed, 27 Apr 2011)
    Log Message:
    bug fix BLZ-623 BeanProxy/PropertyProxyRegistry have unsynchronized access to registry/cache
    adding the locking in the get of Maps in both classes
    checkintests pass
    Ticket Links:
        http://bugs.adobe.com/jira/browse/BLZ-623
    Modified Paths:
        blazeds/trunk/modules/core/src/flex/messaging/io/BeanProxy.java
        blazeds/trunk/modules/core/src/flex/messaging/io/PropertyProxyRegistry.java

Maybe you are looking for