Note that this property may be examined from a SWF file of any version, but is only
supported in Flash Player 8 or greater. This unusual arrangement means that you can examine
this property, for example, from a version 7 SWF file playing in Flash Player 8. This all-
versions support means that, if you publish for a version earlier than 8, you will not know at
publish time whether this property will be supported or not at playback time. Thus, in a SWF
file of version 7 or lower, you may find that this property has an undefined value; that should
only happen when the player version (indicated by
than 8. In that situation, you can determine the sandbox type according to whether your SWF
file's URL is a local file or not. If so, you can assume Flash Player will classify your SWF as
(prior to Flash Player 8, this was how all local content was treated). If not,
"localTrusted"
you can assume Flash Player will classify your SWF file as
For more information, see the following:
Chapter 17, "Understanding Security," in Learning ActionScript 2.0 in Flash
The Flash Player 8 Security white paper at http://www.macromedia.com/go/fp8_security
The Flash Player 8 Security-Related API white paper at http://www.macromedia.com/go/
fp8_security_apis
Availability: ActionScript 1.0; Flash Player 8 - See the description for version-specific details.
Selection
Object
|
+-Selection
public class Selection
extends Object
The Selection class lets you set and control the text field in which the insertion point is
located (that is, the field that has focus). Selection-span indexes are zero-based (for example,
the first position is 0, the second position is 1, and so on).
There is no constructor function for the Selection class, because there can be only one
currently focused field at a time.
Availability: ActionScript 1.0; Flash Player 5
1068
ActionScript classes
System.capabilities.version
"remote".
) is less
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?