用动作脚本在flex中填空题 [英] Fill in the blanks questions in flex using action script

查看:517
本文介绍了用动作脚本在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.

推荐答案

使用Horizo​​ntalLayout和Label,TextInput,Label。

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天全站免登陆