MACROMEDIA FLASH MEDIA SERVER 2-CLIENT-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR FLASH MEDIA SERVER 2 Instrukcja Użytkownika Strona 83

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 172
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 82
80
SERVER-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR ADOBE MEDIA SERVER 5.0.1
Server-Side ActionScript Language Reference
Last updated 7/2/2013
LoadVars class
The LoadVars class lets you send all the variables in an object to a specified URL and lets you load all the variables at
a specified URL into an object. It also lets you send specific variables, rather than all variables, which can make your
application more efficient. You can use the
LoadVars.onLoad() handler to ensure that your application runs when
data is loaded, and not before.
The LoadVars class works much like the XML class; it uses the load(), send(), and sendAndLoad() methods to
communicate with a server. The main difference between the LoadVars class and the XML class is that LoadVars
transfers ActionScript name-value pairs, rather than an XML Document Object Model (DOM) tree stored in the XML
object. The LoadVars class follows the same security restrictions as the XML class.
Availability
Flash Media Server 2
Property summary
Method summary
Event handler summary
Property Description
LoadVars.contentType The MIME type sent to the server when you call the LoadVars.send() or LoadVars.sendAndLoad()
method.
LoadVars.loaded A boolean value that indicates whether a LoadVars.load() or LoadVars.sendAndLoad() operation
has completed (
true) or not (false).
Method Description
LoadVars.addRequestHeader() Adds or changes HTTP request headers (such as Content-Type or SOAPAction) sent with POST
actions.
LoadVars.decode() Converts the query string to properties of the specified LoadVars object.
LoadVars.getBytesLoaded() Returns the number of bytes loaded from the last or current LoadVars.send() or
LoadVars.sendAndLoad() method call.
LoadVars.getBytesTotal() Returns the number of total bytes loaded during all LoadVars.send() or
LoadVars.sendAndLoad() method calls.
LoadVars.load() Downloads variables from the specified URL, parses the variable data, and places the resulting
variables in the LoadVars object that calls the method.
LoadVars.send() Sends the variables in the specified object to the specified URL.
LoadVars.sendAndLoad() Posts the variables in the specified object to the specified URL.
LoadVars.toString() Returns a string containing all enumerable variables in the specified object, in the MIME content
encoding application/x-www-urlform-encoded.
Event handler Description
LoadVars.onData() Invoked when data has completely downloaded from the server or when an error occurs while data is
downloading from a server.
LoadVars.onHTTPStatus() Invoked when Adobe Media Server receives an HTTP status code from the server.
LoadVars.onLoad() Invoked when a LoadVars.send() or LoadVars.sendAndLoad() operation has completed.
Przeglądanie stron 82
1 2 ... 78 79 80 81 82 83 84 85 86 87 88 ... 171 172

Komentarze do niniejszej Instrukcji

Brak uwag