
capabilities.version Property
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
490
|
ActionScript Language Reference
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
capabilities.version Property
the Flash Player version
Flash 6
read/write
System.capabilities.version
Description
The string version property contains version and platform information for the Flash Player
hosting the current movie. As of Flash 6, it is favored over the getVersion( ...