MACROMEDIA FLEX-GETTING STARTED WITH FLEX Manual do Utilizador Página 61

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 148
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 60
One or more child controls or containers, such as input
controls
You can also insert other types of components into a Form con-
tainer.
The code in Example 4-7 demonstrates use of a Form container
control.
Example 4-7. CommentForm.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute" backgroundColor="#FFFFFF"
backgroundAlpha="0">
<mx:Form x="50" y="50" verticalGap="15">
<mx:FormHeading label="Send us comments" />
<mx:FormItem label="Full Name:">
<mx:TextInput id="fullName" />
</mx:FormItem>
<mx:FormItem label="Email:">
<mx:TextInput id="email" />
</mx:FormItem>
<mx:FormItem label="Comments:">
<mx:TextArea id="comments" />
</mx:FormItem>
<mx:FormItem>
<mx:Button id="submit" label="submit" />
</mx:FormItem>
</mx:Form>
</mx:Application>
Figure 4-7 shows the result of this code.
The Form Container | 45
Vista de página 60
1 2 ... 56 57 58 59 60 61 62 63 64 65 66 ... 147 148

Comentários a estes Manuais

Sem comentários