Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-33875

Runtime error #1069 in MobileSkin class on focus out

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Apache Flex 4.10.0, Apache Flex 4.11.0
    • Apache Flex 4.12.0
    • Skinning

    Description

      Hiting tab to move focus away from component which has pure AS skin without hostComponent property 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 existence. 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; }

      Attachments

        Activity

          People

            jmclean Justin Mclean
            Shmatov Aleksey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: