capabilities.serverString Property

ActionScript for Flash MX: The Definitive Guide, 2nd Edition
By Colin Moock
Chapter 18.  ActionScript Language Reference
capabilities.serverString Property Flash 6

all Capabilities object property values, as a string of URL-encoded variables read/write
System.capabilities.serverString

Description

The string serverString property contains a list of URL-encoded variable names and values corresponding to the property names and values of the Capabilities object.

For example, on my system, the value of serverString is:

A=t&MP3=t&AE=t&VE=t&ACC=f&DEB=t&V=WIN%206%2C0%2C21%2C0&M=Macromedia Windows& R=1600x1200&DP=72&COL=color&AR=1.0&I=point&OS=Windows XP&L=en

To determine the variable name and value used for each property, see the entry for that property. The serverString property is provided as a convenience to the developer who wishes to retrieve assets from the server, based on the client-side Player specifications. The string can be used when loading external XML, variables, or even other movies. For example, a simple movie, loadStub.swf, could be used as a loading module for subsequent content. The loadStub.swf movie should issue a loadMovie( ) command to a server script and append the serverString property value to a GET request:

content_mc.loadMovie("content.swf?" + System.capabilities.serverString);

The server would then respond by sending the appropriate movie for the client-side environment.

Usage

Though the properties of the Capabilities object are writable, custom property assignments are not reflected in the value of serverString.

See Also

MovieClip.loadMovie( ), the LoadVars class, the XML class



    ActionScript for Flash MX. The Definitive Guide
    ActionScript for Flash MX: The Definitive Guide, Second Edition
    ISBN: 059600396X
    EAN: 2147483647
    Year: 2002
    Pages: 780
    Authors: Colin Moock

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net