flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aleksey (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLEX-33875) Runtime error #1069 in MobileSkin class on focus out
Date Tue, 05 Nov 2013 08:54:17 GMT

    [ https://issues.apache.org/jira/browse/FLEX-33875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13813775#comment-13813775
] 

Aleksey commented on FLEX-33875:
--------------------------------

No, there is no hostComponent property in the base skin class. This applies to the Spark skins
as well(You have to use [HostComponent] metadata and compiler generates it for you). I think
hostComponent was not added as a property to the base class to provide strongly typed hostComponent
property. For example, if you have button skin you want hostComponent to be Button and not
generic SkinnableComponent.  

> 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
>            Assignee: Justin Mclean
>              Labels: easyfix
>             Fix For: Apache Flex 4.12.0
>
>
> 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;
>         }



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

Mime
View raw message