Pablo Beltran created FLEX-33235:
------------------------------------

             Summary: mx.utils.PopUpUtil
                 Key: FLEX-33235
                 URL: https://issues.apache.org/jira/browse/FLEX-33235
             Project: Apache Flex
          Issue Type: Bug
    Affects Versions: Adobe Flex SDK 4.6 (Release)
            Reporter: Pablo Beltran


PROBLEM DESCRIPTION:

The code just at the end of the method "applyPopUpTransform":

====================================================
if (tmpColorTransform != null)
                        {
                                tmpColorTransform.alphaMultiplier = oldAlpha;
                                tmpColorTransform.alphaOffset = 0;
                        }                               
DisplayObject(popUp).transform.colorTransform = tmpColorTransform;
====================================================

raises an exception (null value not allowed) when the  tmpColorTransform 
variable value is null.

SOLUTION:

Move the following line into the block:

DisplayObject(popUp).transform.colorTransform = tmpColorTransform;

====================================================
if (tmpColorTransform != null)
                        {
                                tmpColorTransform.alphaMultiplier = oldAlpha;
                                tmpColorTransform.alphaOffset = 0;
                                DisplayObject(popUp).transform.colorTransform = 
tmpColorTransform;
                        }                               

====================================================

REPRODUCE:

Show a Callout spark control with a Sprite (not UIComponent) as owner.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to