• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 22. External Communications > Introduction to Network-Aware Communicati...

Introduction to Network-Aware Communications

Flash offers six types of network-aware communication. In most cases, when you're communicating with a server, the same class permits two-way communication, both into and out of your movie. You can use

  • MovieClip methods, such as loadMovie and loadMovieNum (for FP6), or the MovieClipLoader class (for FP7) to load SWF or JPEG files.

    → For more on loading SWF or JPEG files, seeWorking with Movie Clips,” page 517, in Chapter 20, “Basic ActionScript.”


  • The LoadVars class, or its predecessor LoadVariables(), to transfer simple text files or data from an HTML page.

  • The src and movie parameters of both the OBJECT and EMBED tags (in the HTML file) to embed short pieces of text data on an HTML Page.

  • The XML class to transfer structured information formatted in XML (Extensible Markup Language).

  • The NetConnection and NetStream classes to load .flv video/audio files. (This is two-way only when using the Flash Communication Server.)

  • Dynamic data, using Web Services or Flash Remoting, both covered in Chapter 23, “Using Flash for Dynamic Data,” page 661.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint