MACROMEDIA FLASH REMOTING MX-USING FLASH REMOTING FOR FLASH MX 2004 ACTIONSCRIPT 2.0 Spezifikationen Seite 38

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 40
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 37
This is the Title of the Book, eMatter Edition
Copyright © 2003 O’Reilly & Associates, Inc. All rights reserved.
36
|
Chapter 1: Introduction to Flash Remoting
entirely on the client side, as the UI can be created dynamically at runtime on the cli-
ent’s machine. Furthermore, once the UI has been created or downloaded, only the
updated data has to be sent back and forth to the server. This differs from dynami-
cally generated HTML, which requires that the entire page be recreated on the server
and served to the client each time the data or state of the application changes.
There are other advantages of using an n-tiered architecture with the Flash Player as
the presentation layer. By abstracting the presentation layer away from the data
source, you can completely change the data source or its format without affecting the
interface or rewriting your Flash movie.
Changes to the data tier affect only the middle tier. Assuming that the API exposed
by the middle tier to the presentation level does not change, the Flash movie will not
be affected at all.
For example, the application’s data source can be changed without affecting the
Flash movie, as shown in Figure 1-10. Furthermore, because the middle tier might
comprise multiple levels, only the middle tier’s interface to the data tier needs to be
adjusted.
By having multiple tiers, each tier can be optimized for its particular task and envi-
ronment. This is particularly important when using Flash as the presentation layer,
Figure 1-10. N-tiered architecture with data abstraction layer
Client
Server
Flash Player
Presentation
tier
Middle
tier
AMF
Flash Remoting
adapter
Core business
logic
Data abstraction
layer
XMLDatabase Other data
source
Data
tier
Seitenansicht 37
1 2 ... 33 34 35 36 37 38 39 40

Kommentare zu diesen Handbüchern

Keine Kommentare