【发布时间】:2012-04-13 09:59:42
【问题描述】:
我在 Flex 中为一个进度条设置皮肤,在阅读了一些内容之后,我发现有一个叫做 hostComponent 的东西。
Adobe 网站说:
"The host component is the component that uses the skin. By specifying the host component, Spark skins can gain a reference to the component instance that uses the skin by using the hostComponent property."
但是,我仍然不明白这到底是如何工作的。
有什么快速实用的解释吗?
谢谢!
【问题讨论】:
-
我知道这已经很晚了,但是对于遇到这个的人来说。看看这个链接。它提供了有关主机组件以及如何实现它以实现非常好的解耦蒙皮的更多信息。 projekt202.com/blog/2011/building-spark-components-in-flex-4
标签: actionscript-3 apache-flex flex-spark skin