我在 Flex 应用程序中实现状态时遇到问题,请帮忙!

发布于 2024-08-30 03:05:52 字数 272 浏览 2 评论 0原文

大家好,我正在尝试弄清楚如何在我的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

笑看君怀她人 2024-09-06 03:05:52

我唯一想到的是您在基本状态中添加了这些控件。
尝试从基本状态中删除控件,然后重试。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文