@namespace component "com.domain.project.view.component.*"; component|CustomComponent { skin-class: ClassReference("com.domain.project.view.skin.CustomSkin"); }
或者如果你想在你的组件代码中,你可以在构造函数中设置样式:
public function CustomComponent() { super(); setStyle("skinClass",CustomSkin); }