flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maurice Amsellem (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLEX-34074) Defining Actionscript skins in a library project is not working
Date Thu, 06 Feb 2014 10:42:09 GMT

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

Maurice Amsellem commented on FLEX-34074:
-----------------------------------------

In AS, you don't need the [HostComponent]. 
The way it's done (for example in mobile skins) is to declare a public variable named hostComponent,
with the correct type, and it will be assigned with the correct value.

public var hostComponent: spark.components.Button.

see class spark.components.supportClasses.Skin for how it works



> Defining Actionscript skins in a library project is not working
> ---------------------------------------------------------------
>
>                 Key: FLEX-34074
>                 URL: https://issues.apache.org/jira/browse/FLEX-34074
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: .Unspecified - Compiler
>    Affects Versions: Apache Flex 4.11.0
>         Environment: Windows 7 64 bit
> Flash Builder 4.7 64 bit
>            Reporter: Benjamin Chalupka
>              Labels: compiler, library, skin
>         Attachments: TestSkinLibrary.fxpl
>
>
> If I create for example a button skin the error following error occurs:
> "[HostComponent] class 'spark.components.Button' not found."
> MXML skins work correctly.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message