[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

Similar Messages

  • [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:fx-trunk] 9884: Move CalendarIcon.png from sparkskins to framework.

    Revision: 9884
    Author:   [email protected]
    Date:     2009-09-01 12:38:49 -0700 (Tue, 01 Sep 2009)
    Log Message:
    Move CalendarIcon.png from sparkskins to framework.
    QE notes: N/A
    Doc notes: N/A
    Bugs: SDK-22746
    Reviewer:
    Tests run: checkintests
    Is noteworthy for integration: no
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22746
    Modified Paths:
        flex/sdk/trunk/development/eclipse/flex/framework/.actionScriptProperties
        flex/sdk/trunk/frameworks/projects/framework/build.xml
        flex/sdk/trunk/frameworks/projects/sparkskins/build.xml
    Added Paths:
        flex/sdk/trunk/frameworks/projects/framework/assets/CalendarIcon.png
    Removed Paths:
        flex/sdk/trunk/frameworks/projects/sparkskins/assets/CalendarIcon.png

  • [svn:fx-trunk] 5269: Remove style metadata for the non-inheriting verticalAlign, paddingLeft, paddingTop, paddingRight, paddingBottom styles.

    Revision: 5269
    Author: [email protected]
    Date: 2009-03-12 11:35:42 -0700 (Thu, 12 Mar 2009)
    Log Message:
    Remove style metadata for the non-inheriting verticalAlign, paddingLeft, paddingTop, paddingRight, paddingBottom styles.
    QE Notes: None
    Doc Notes:
    Bugs: None
    Reviewer: None
    tests: checkintests, mustella
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/TextView.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextBox.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextGraphic.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/styles/metadata/BasicTextLayoutFormatStyl es.as
    Added Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/styles/metadata/NonInheritingTextLayoutFo rmatStyles.as

    Anyone able to help?

  • [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

  • [svn:osmf:] 14372: PARB changes: Remove metadata from MediaContainer and LayoutTargetSprite constructors.

    Revision: 14372
    Revision: 14372
    Author:   [email protected]
    Date:     2010-02-23 15:17:18 -0800 (Tue, 23 Feb 2010)
    Log Message:
    PARB changes: Remove metadata from MediaContainer and LayoutTargetSprite constructors.  Instead, metadata is set on LayoutTargetSprite via a non-public setter used by the framework.  Update a bunch of ASDocs, make some enum classes final, remove elementIDs from sample apps (since they rely on metadata, and we want to keep samples focused on the public API).
    Modified Paths:
        osmf/trunk/apps/samples/framework/MediaContainerSample/MediaContainerSample.as
        osmf/trunk/apps/samples/framework/NestedMediaContainersSample/NestedMediaContainersSample .as
        osmf/trunk/apps/samples/framework/OSMFPlayer/src/OSMFPlayer.as
        osmf/trunk/framework/OSMF/org/osmf/containers/IMediaContainer.as
        osmf/trunk/framework/OSMF/org/osmf/containers/MediaContainer.as
        osmf/trunk/framework/OSMF/org/osmf/elements/compositeClasses/CompositeDisplayObjectTrait. as
        osmf/trunk/framework/OSMF/org/osmf/layout/HorizontalAlign.as
        osmf/trunk/framework/OSMF/org/osmf/layout/ILayoutTarget.as
        osmf/trunk/framework/OSMF/org/osmf/layout/LayoutMode.as
        osmf/trunk/framework/OSMF/org/osmf/layout/LayoutTargetSprite.as
        osmf/trunk/framework/OSMF/org/osmf/layout/VerticalAlign.as
        osmf/trunk/framework/OSMFTest/org/osmf/containers/TestMediaContainer.as
        osmf/trunk/framework/OSMFTest/org/osmf/layout/TestLayoutRenderer.as
        osmf/trunk/framework/OSMFTest/org/osmf/layout/TestMediaElementLayoutTarget.as

  • [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

  • Implement abstract method from base class problem

    Here is the example:
    public abstract class AbstractClass{
    protected double aVariable;
    protected abstract double abstractMethod();
    public class RealClass extends AbstractClass{
    public double abstractMethod(){
    return aVariable;
    Error message:
    RealClass should be declared abstract; it does not define abstractMethod() in AbstractClass

    I also compiled the code with Jdk1.3 and it
    worked.. The code would not have compiled
    if the access modifier in the derived class
    was more restrictive(eg private )...

  • Control Timeline from base class?

    How do you do this?
    I'm extending the MovieClip class, and no amount of
    this.stop() is working.....
    wth?

    use trace(this) to see if you're in scope of your
    class.

  • Flex sdk 4.1.0.16076 is not open source

    Ref: http://opensource.adobe.com/svn/opensource/flex/sdk/tags/
    The Open Source of flex sdk 4.1.0.16076 is missing from the official archive.
    There is also no README explaining why it is missing.
    SB

    The main event (MAX 2011) is next October, and "360 flex keynotes" do not seem to have an archive. Please post the relevant URL asap. Thank you. --SB

  • AS3 Preloader (without Flex SDK or Flash CS)

    I use FlashBuilder but not the Flex SDK, just pure Actionscript. I have a swf application that is too long to download, so I would like to display a progressbar while the swf is being downloaded from the host.
    My main class is a Sprite. I tried to add a progressEvent.PROGRESS listener on root.loaderInfo in the constructor of my main Sprite, but then a PROGRESS event is fired only when all the swf is downloaded. Useless.
    On a Flex project, you have a Preloader included in the main Application, that displays a progressBar while the application swf is being downloaded from the server and initializing.
    That's what I want.
    Does someone understand how the Flex Preloader works ?
    Do you know how to do that without Flex SDK ?

    Here is the Preloader class :
    public class Preloader extends MovieClip
      public function Preloader()
        super();
        stop();
        if (root && root.loaderInfo)
        root.loaderInfo.addEventListener(Event.INIT, initHandler, false, 0, true);
      private function initHandler(e:Event):void
        root.loaderInfo.removeEventListener(Event.INIT, initHandler);
        displayProgressBar();
        root.loaderInfo.addEventListener(ProgressEvent.PROGRESS, progressHandler, false, 0, true);
        root.loaderInfo.addEventListener(Event.COMPLETE, completeHandler, false, 0, true);
      private function progressHandler(e:ProgressEvent):void
        displayProgressBar(e.bytesLoaded, e.bytesTotal);
      private function completeHandler(e:Event):void
        root.loaderInfo.removeEventListener(ProgressEvent.PROGRESS, progressHandler);
        root.loaderInfo.removeEventListener(Event.COMPLETE, completeHandler);
        removeProgressBar();
        nextFrame();
        var mainClass:Class = Class(getDefinitionByName("MainApplication"));
        if(mainClass)
          var app:Sprite = new mainClass();
          stage.addChild(app);
        stage.removeChild(this);
      private function displayProgressBar(bytesLoaded:int = -1, bytesTotal:int = -1):void
       // add a progressBar and display the progress
      private function removeProgressBar(bytesLoaded:int = -1, bytesTotal:int = -1):void
       // remove the progressBar

  • Does Flex SDK 4 Suport Khmer Unicode?

    Hi,
    I have problem with khmer unicode (http://www.khmeros.info/drupal612/en/download).
    Input Controls of Flex SDK 3 could be able to display Khmer Text correctly if the values are assign by hard code or copy and past to the controls.
    But when we set focus to one input control and type from directly from keyboard, the controls are not able to display typed text value.
    could you please help me to fix this mistake?
    Boren.
    Thank!

    I think the question was "Which flex components will not work in right way if we compile project with Flex SDK 4.5 and then run it in Flash Player 10.0 enviroment?"
    For example - as I understand some new components in Flex SDK 4.5 use flash.globalization classes - so new spark formatters and ?validators? will not work in in Flash Player 10.0.
        * spark.formatter.NumberFormatter
        * spark.formatter.CurrencyFormatter
        * spark.formatter.DateTimeFormatter
        * spark.globalization.SortingCollator
        * spark.globalization.MatchingCollator
        * spark.globalization.StringTools
    Also we have to pay attension to 'string sorting'  functionality - because it could be dependent on flash.globalization also.
    Are there another 'danger' components in Flex SDK 4.5 ?

  • [svn:fx-trunk] 14142: Merging revision 14141 from 4.x branch

    Revision: 14142
    Revision: 14142
    Author:   [email protected]
    Date:     2010-02-12 00:57:47 -0800 (Fri, 12 Feb 2010)
    Log Message:
    Merging revision 14141 from 4.x branch
    QE notes:
    Doc notes:
    Bugs: FLEXENT-1234
    Reviewer:
    Tests run:
    Is noteworthy for integration:
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FLEXENT-1234
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/compon ents/SparkApplicationAutomationImpl.as

  • [svn:fx-trunk] 14571: Merging revision 14570 from 4.x branch

    Revision: 14571
    Revision: 14571
    Author:   [email protected]
    Date:     2010-03-03 23:17:40 -0800 (Wed, 03 Mar 2010)
    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:
        flex/sdk/trunk/frameworks/projects/automation/src/mx/automation/codec/AutomationObjectPro pertyCodec.as
        flex/sdk/trunk/frameworks/projects/automation/src/mx/automation/codec/RendererPropertyCod ec.as
        flex/sdk/trunk/frameworks/projects/automation/src/mx/automation/delegates/TextFieldAutoma tionHelper.as
        flex/sdk/trunk/frameworks/projects/automation/src/mx/automation/delegates/controls/SWFLoa derAutomationImpl.as
        flex/sdk/trunk/frameworks/projects/automation/src/mx/automation/delegates/core/UIComponen tAutomationImpl.as
        flex/sdk/trunk/frameworks/projects/automation/src/mx/automation/delegates/core/UITextFiel dAutomationImpl.as
        flex/sdk/trunk/frameworks/projects/automation/src/mx/automation/tabularData/OLAPDataGridT abularData.as
        flex/sdk/trunk/frameworks/projects/automation_air/src/mx/automation/delegates/controls/Fl exNativeMenuAutomationImpl.as
        flex/sdk/trunk/frameworks/projects/automation_dmv/src/mx/automation/delegates/advancedDat aGrid/AdvancedDataGridAutomationImpl.as
        flex/sdk/trunk/frameworks/projects/automation_spark/src/mx/automation/delegates/core/UIFT ETextFieldAutomationImpl.as
        flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/compon ents/supportClasses/SparkDropDownListBaseAutomationImpl.as
        flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/compon ents/supportClasses/SparkListBaseAutomationImpl.as
        flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/tabularData/Spar kListBaseTabularData.as
    Property Changed:
        flex/sdk/trunk/

  • [svn:fx-trunk] 14704: Merging revision 14699 from 4.x branch

    Revision: 14704
    Revision: 14704
    Author:   [email protected]
    Date:     2010-03-11 06:45:16 -0800 (Thu, 11 Mar 2010)
    Log Message:
    Merging revision 14699 from 4.x branch
    QE notes:
    Doc notes:
    Bugs:
    Reviewer:
    Tests run:
    Is noteworthy for integration:
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/automation/src/mx/automation/delegates/containers/Appl icationAutomationImpl.as
        flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/compon ents/SparkApplicationAutomationImpl.as
    Property Changed:
        flex/sdk/trunk/

Maybe you are looking for