You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Aleksey (JIRA)" <ji...@apache.org> on 2013/11/04 19:30:17 UTC

[jira] [Created] (FLEX-33875) Runtime error #1069 in MobileSkin class on focus out

Aleksey created FLEX-33875:
------------------------------

             Summary: Runtime error #1069 in MobileSkin class on focus out
                 Key: FLEX-33875
                 URL: https://issues.apache.org/jira/browse/FLEX-33875
             Project: Apache Flex
          Issue Type: Bug
          Components: Skinning
    Affects Versions: Apache Flex 4.10.0, Apache Flex 4.11.0
            Reporter: Aleksey


Hiting tab to move focus away from component which has pure AS skin without hostComponent prorty defined results in runtime error. 

Error happens in the endHighlightBitmapCapture of MobileSkin:
    public function endHighlightBitmapCapture():Boolean
    {
        var exclusions:Array = focusSkinExclusions;
        if (!exclusions)
        {
            if (this["hostComponent"] is SkinnableComponent)
                exclusions = SkinnableComponent(this["hostComponent"]).suggestedFocusSkinExclusions;
        }

Note that property accessed as dynamic property but there is no check for property existance. It should be there just like in case of beginHighlightBitmapCapture:
    public function beginHighlightBitmapCapture():Boolean
    {
        var exclusions:Array = focusSkinExclusions;
        if (!exclusions)
        {
            if (("hostComponent" in this) && this["hostComponent"] is SkinnableComponent)
                exclusions = SkinnableComponent(this["hostComponent"]).suggestedFocusSkinExclusions;
        }



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