我在 Flex 应用程序中实现状态时遇到问题,请帮忙!
大家好,我正在尝试弄清楚如何在我的 Flex 应用程序中使用状态。
我创建了两个状态,State1 和 Stage 2。两者都基于基本状态。我为 State1 创建了一些视觉元素,并给每个元素添加了 includeIn="State1"。
但是当我处于设计模式并单击 State2 时,这些元素仍然可见?这是为什么?
如果我在选择 State2 时尝试删除它们,所发生的只是将 RemoveChild 添加到 State2 标记中。这是我应该做的吗?
感谢您的阅读!
Hey guys, I'm trying to work out how to use states in my Flex app.
I've created two states, State1 and Stage 2. Both are based off the base state. I've created a few visual elements for State1, and given each of them includeIn="State1".
But when I'm in design mode and click on State2, these elements are still visible? Why is that?
If I try to delete them while State2 is selected, all that happens is RemoveChild is added to the State2 tag. Is this how I'm supposed to do it?
Thanks for reading!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我唯一想到的是您在基本状态中添加了这些控件。
尝试从基本状态中删除控件,然后重试。
The only thing I come in mind is that you added those controls in the base state.
Try to remove the controls from the base state and try again.