You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Justin Mclean (JIRA)" <ji...@apache.org> on 2013/10/24 22:38:02 UTC

[jira] [Updated] (FLEX-33842) CXFormWithAlpha doesn't override toString() method, causing swfdump to ignore alpha effects

     [ https://issues.apache.org/jira/browse/FLEX-33842?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Justin Mclean updated FLEX-33842:
---------------------------------

    Labels: easyfix easytest  (was: )

> CXFormWithAlpha doesn't override toString() method, causing swfdump to ignore alpha effects
> -------------------------------------------------------------------------------------------
>
>                 Key: FLEX-33842
>                 URL: https://issues.apache.org/jira/browse/FLEX-33842
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Modules
>    Affects Versions: Apache Flex 4.10.0
>         Environment: Windows 7
>            Reporter: Simon Lavallee
>              Labels: easyfix, easytest
>
> The java class CXFormWithAlpha doesn`t override the toString() method, causing swfdump to use the toString() method of base class CXForm and ignore the alpha multiplier and additive.
> STR:
> - Create a swf with a movie clip (defineSprite) that has alpha color effect.
> - Use swfdump to convert the SWF file to an xml file.
> Notice that only the alpha color effect is not mentionned on the placeobject that represent the movie clip with alpah color effect.
> Known fix:
> Just add this method to the class CXFormWithAlpha (modules/swfutils/src/java/flash/types/CXFormWithAlpha.java):
> public String toString()
> {
>     	String base = super.toString();
> 	return base + " " + alphaMultTerm + "a" + (alphaAddTerm>=0 ? "+" :     "") + alphaAddTerm;
> }



--
This message was sent by Atlassian JIRA
(v6.1#6144)