You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2021/09/08 16:51:03 UTC
[GitHub] [royale-asjs] joshtynjala commented on issue #1131: Compile not catching missing states in skin MXML
joshtynjala commented on issue #1131:
URL: https://github.com/apache/royale-asjs/issues/1131#issuecomment-915403087
@estanglerbm I cannot reproduce this issue. I tried the following code, and the compiler correctly reported that the two skin states were missing:
```actionscript
// MyComponent.as
package
{
import mx.core.UIComponent;
[SkinState("test1")]
[SkinState("test2")]
public class MyComponent extends UIComponent
{
public function MyComponent()
{
}
}
}
```
```mxml
// MySkin.mxml
<spark:SparkSkin xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:spark="library://ns.apache.org/royale/spark">
<fx:Metadata>
[HostComponent("MyComponent")]
</fx:Metadata>
</spark:SparkSkin>
```
Could you have forgotten the `[HostComponent]` metadata? Which component were you trying to create a skin for?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@royale.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org