MACROMEDIA FLEX-GETTING STARTED WITH FLEX Instrukcja Użytkownika Strona 88

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 148
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 87
The Flex application, which is running on the customer’s com-
puter,
uses the HTTPService tag to talk directly to the web serv-
er. The code on the web server, either in PHP, ASP, JSP, or
something similar, talks to the database and then returns either
text or XML.
Example 5-3 shows the code for the Flex application which
responds to a text response from the web server.
Example 5-3. The text-based Flex application
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute" backgroundColor="#FFFFFF"
backgroundAlpha="0"
backgroundImage="">
<mx:Script>
Figure 5-5. The XML return version of the application
Figure 5-6. Network access from the Flex application
72 | Chapter 5:Working with the Server
Przeglądanie stron 87
1 2 ... 83 84 85 86 87 88 89 90 91 92 93 ... 147 148

Komentarze do niniejszej Instrukcji

Brak uwag