问题
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.
回答1:
Use a HorizontalLayout with a Label,TextInput,Label.
<s:Group>
<s:layout>
<s:HorizontalLayout/>
</s:layout>
<s:Label />
<s:TextInput />
<s:Label />
</s:Group>
来源:https://stackoverflow.com/questions/38626850/fill-in-the-blanks-questions-in-flex-using-action-script