History | Log In     View a printable version of the current page.  
Issue Details (XML)

Key: SDK-18293
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: B B
Assignee: Jacob Goldstein
Reporter: Peter Farland
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Flex SDK

mx.filters.ColorMatrixFilter matrix property needs to support a comma delimited String of values

Created: 12/02/08 03:54 PM   Updated: 05/04/09 04:53 AM
Component/s: FXG
Security Level: Public (All JIRA Users )

File Attachments: 1. Text File ColorMatrixFilterComp.fxg (0.4 kb)
2. Text File test_4211.mxml (0.2 kb)
3. File test_4211.swf (425 kb)

Image Attachments:

1. bug_4211.jpg
(7 kb)

2. workaround_4211.jpg
(8 kb)

Severity: Non Functioning
Reproducibility: Every Time
Discoverability: High
Found in Version: SDK Gumbo Alpha
Milestone: SDK Gumbo - Feature Complete
Affected OS(s): All OS Platforms - All
Steps to Reproduce:
While MXML-G can make use of databinding to an Array variable listing 20 numeric values to populate a ColorMatrixFilter, the FXG specification states that a simple comma delimited attribute should be provided. Since FXG does not use databinding, the ActionScript implementation of the matrix property in mx.filters.ColorMatrixFilter needs to accept such a String instead of just an Array.


test.mxml
-------------

<?xml version="1.0" encoding="utf-8"?>
<FxApplication xmlns="http://ns.adobe.com/mxml/2009" >

    <d:ColorMatrixFilterComp x="300" xmlns:d="*" />

</FxApplication>


ColorMatrixFilterComp.fxg
-----------------------------------

<?xml version="1.0" encoding="utf-8"?>
<Graphic xmlns="http://ns.adobe.com/fxg/2008">
    <Group>
        <filters>
            <ColorMatrixFilter matrix="0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0" />
        </filters>
        <Rect id="rect1" width="200" height="200" >
            <fill>
                <SolidColor color="0x330099" />
            </fill>
        </Rect>
    </Group>
</Graphic>


Workaround:
Change this:
<ColorMatrixFilter matrix="0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0" />

To this:
<ColorMatrixFilter matrix="[0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0]" />
Language Found: English
Bugbase Id: none
Triaged: Yes
Regression: No
QA Owner: Peter deHaan (Adobe)
Resolved by: Jason Szeto
Participants: Jacob Goldstein, Jason Szeto, Lauren Park, Peter deHaan (Adobe) and Peter Farland
JDK: Sun 1.5.x

Sub-Tasks  All   Open   
 Sub-Task Progress: 

 All   Comments      Sort Order:
Peter deHaan (Adobe) - [12/02/08 04:19 PM ]
Opening to Jason.

Jason Szeto - [01/06/09 04:49 PM ]
Changed the matrix property from type Array to type Object. The underlying backing variable remains an array. The setter will convert a comma delimited string into an array. The getter will always return an array.

Revision 4410

Lauren Park - [01/08/09 12:57 PM ]
Re-assigned to Jacob for verification and closure.