MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Dokumentacja Strona 129

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 369
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 128
51
CHAPTER 4
Application Development Tips and Tricks
This chapter is designed to supplement, not replace, application development and best practices
recommendations included in Using Flash MX. For general information on how Macromedia
Flash MX streams data and how you can test and improve the performance of your Flash movies,
see “Streaming and file optimization techniques for Flash Player” on the Macromedia Flash
Support Site (http://www.macromedia.com/go/flash_stream_optimize).
The rest of this chapter points out some useful information specific to Macromedia Flash
Communication Server MX. It includes general sections on application design, coding
conventions, and debugging techniques, followed by information relevant to specific objects. (All
objects are client-side objects except where noted.)
The best way to use this chapter is to skim it once in its entirety before you begin writing Flash
Communication Server programs, to familiarize yourself with its contents. Then, as you begin
coding, refer to it as needed.
Application design and development
This section includes recommendations that apply to all Flash Communication Server
applications you write.
Designing for portability across servers
If your application (SWF file) is on the same computer that is running the Flash Communication
Server, you can use rtmp:/appName/instanceName as a shortcut version of rtmp://
server.domain.com/appName/instanceName. The use of a single slash followed by the
application name indicates a relative path and lets you move the files to a different server without
changing the code.
Designing for interdependence
Because the client-side and server-side ActionScript code are part of the same application, they
must work interdependently. One example of the interdependency between the client and server
code is the server-side ActionScript
call method, which acts differently according to which
object it is associated with—a client-side NetConnection object or a server-side Client object.
Przeglądanie stron 128
1 2 ... 124 125 126 127 128 129 130 131 132 133 134 ... 368 369

Komentarze do niniejszej Instrukcji

Brak uwag