MACROMEDIA COLDFUSION MX 7.0.2-USING COLDFUSION MX WITH FLEX 2 Guide de l'utilisateur Page 125

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 256
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 124
Insert and position the components 125
6. Select the Label control in the layout and set the following Label properties in the Flex
Properties view:
Te xt : Email
X: 20
Y: 60
7. Select the TextInput control in the layout, and set the following TextInput properties:
X: 90
Y: 60
Width: 300
8. Switch to the MXML editor’s Source mode by clicking the Source button in the document
toolbar.
The Layout.mxml file should contain the following MXML code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute">
<mx:Label x="20" y="60" text="Email"/>
<mx:TextInput x="90" y="60" width="300"/>
</mx:Application>
9.
Insert the remaining Flex controls by entering the <mx:Label>, <mx:TextArea>, and
<mx:Button> tags after the <mx:TextInput> tag, as the following example shows:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute">
<mx:Label x="20" y="60" text="Email"/>
<mx:TextInput x="90" y="60" width="300"/>
<mx:Label x="20" y="90" text="Comments"/>
<mx:TextArea x="90" y="90" width="300" />
<mx:Button x="330" y="150" label="Send"/>
</mx:Application>
Vue de la page 124
1 2 ... 120 121 122 123 124 125 126 127 128 129 130 ... 255 256

Commentaires sur ces manuels

Pas de commentaire