使用动作脚本填写 flex 中的空白问题 [英] Fill in the blanks questions in flex using action script

查看:25
本文介绍了使用动作脚本填写 flex 中的空白问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要动态创建一个填充空白组件.将从 XML 中检索问题文本.例如(一些文字 ____________ 一些文字).下划线部分应该有一个文本输入.问题文本将被动态加载,位置应根据分辨率对齐.给我一些例子,以及应该使用哪些组件来实现这一点.

I need to create a fill in the blanks component dynamically. Question text will be retrieved from XML. For Example (some text ____________ some text). The Underline portion should have a text input. The question text will be dynamically loaded and the position should be aligned based on resolution. Give me some examples and which components should be used for achieving this.

推荐答案

使用带有 Label,TextInput,Label 的 Horizo​​ntalLayout.

Use a HorizontalLayout with a Label,TextInput,Label.

<s:Group>
 <s:layout>
  <s:HorizontalLayout/>
 </s:layout>
 <s:Label />
 <s:TextInput />
 <s:Label />
</s:Group>

这篇关于使用动作脚本填写 flex 中的空白问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆