MACROMEDIA COLDFUSION MX 7.0.2-USING COLDFUSION MX WITH FLEX 2 Guida Utente Pagina 221

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 256
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 220
Build a distributed application with the ActionScript object adapter 221
2. Directly above the text <destination id="contact">, make sure the following
destination definition exists.
Create the destination definition if it isnt there, and save the file.
<destination id="notes">
<adapter ref="actionscript"/>
<properties>
<metadata>
<identity property="noteId"/>
</metadata>
</properties>
</destination>
3.
Start the application server that contains the samples web application.
Create an MXML file
In an MXML editor or text editor, create an MXML (text) file that contains the following text
and save it as lesson1.mxml in the DSLessons directory of the samples web application.
As noted in “Before you begin” on page 220, if you are using Flex Builder, create this MXML
file in a Flex Data Services project called DSLessons that uses the root directory of the samples
web application as the root folder, the context root of the samples web application as the root
URL (for example, http://localhost:8700/samples/), and the DSLessons directory as the
project location.
<?xml version="1.0" ?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
height="100%" width="100%">
</mx:Application>
If you are using Flex Builder, remove layout="absolute" from the mx:application tag and
set lesson1.mxml as the Default Application.
Create the user interface
In this section, you create the TextArea control that displays editable text in the application.
1. Create a TextArea control by adding the following MXML code after the beginning
<mx:Application> tag in the lesson1.mxml file.
<mx:TextArea id="log" width="100%" height="80%"/>
<mx:Button label="Send"/>
Vedere la pagina 220
1 2 ... 216 217 218 219 220 221 222 223 224 225 226 ... 255 256

Commenti su questo manuale

Nessun commento