[
https://issues.apache.org/jira/browse/FLEX-34074?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13893248#comment-13893248
]
Maurice Amsellem edited comment on FLEX-34074 at 2/6/14 10:41 AM:
------------------------------------------------------------------
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.
{code}
public var hostComponent: spark.components.Button.
{code}
see class spark.components.supportClasses.Skin for how it works
was (Author: mamsellem):
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)