Flex 3 使用嵌套状态
我在我的弹性表单应用程序中使用状态。
基本状态是常规形式。 然后我有一个高级表单按钮,可以调用高级状态。 一旦进入高级状态表单,如果用户输入无效数据,将使用另一个错误状态显示错误,该错误状态仅将文本字段添加到高级状态的lastChild元素,
我遇到的问题是,当错误状态启动时,它不会在高级表单下方显示错误,而是返回到基本状态。
是否可以从一个状态内部调用另一个状态?
Im using states in my flex form application.
The base state is the regular form. I then have an advanced form button which calls the advanced state. Once inside the advanced state form if a user enters invalid data an error will be displayed using another error state which just adds a text field to the lastChild element of the advanced state,
the problem im having is that when the error state is kicked off, instead of displaying the error below the advanced form it instead goes back to the base state.
Is it possible to calls a state from inside another state?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不熟悉状态,但从文档来看< /a>,这不是
State
对象的basedOn
属性的用途吗?I'm not familiar with states, but judging from the documentation, isn't that what the
basedOn
attribute of theState
object is for?您可以在此处查看 Flex 状态教程:
http://askmeflash.com/tutorial/0/how-to-create-website-in-flex-tutorial-my-first-flex-website
you can check out the flex states tutorial here :
http://askmeflash.com/tutorial/0/how-to-create-website-in-flex-tutorial-my-first-flex-website