flex – mxml中的static / private子组件?

有没有办法在mxml中声明一个私有/受保护甚至是静态的子组件?

当然我们可以在脚本标签内执行此操作,但还有其他方法吗?

最佳答案 Ashier建议使用“排除”元数据标签,但Maskit提供其局限性并建议替代解决方案:

http://blog.ashier.com/2008/03/25/hiding-properties-in-flex-components/
http://smaskit.blogspot.com/2008/07/making-mxml-subcomponent-private.html

点赞