03.05.2013 Views

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Note that this property may be examined from a SWF file of any version, but is only<br />

supported in Flash Player 8 or greater. This unusual arrangement means that you can examine<br />

this property, for example, from a version 7 SWF file playing in Flash Player 8. This allversions<br />

support means that, if you publish for a version earlier than 8, you will not know at<br />

publish time whether this property will be supported or not at playback time. Thus, in a SWF<br />

file of version 7 or lower, you may find that this property has an undefined value; that should<br />

only happen when the player version (indicated by System.capabilities.version) is less<br />

than 8. In that situation, you can determine the s<strong>and</strong>box type according to whether your SWF<br />

file's URL is a local file or not. If so, you can assume Flash Player will classify your SWF as<br />

"localTrusted" (prior to Flash Player 8, this was how all local content was treated). If not,<br />

you can assume Flash Player will classify your SWF file as "remote".<br />

For more information, see the following:<br />

■ The Flash Player 9 Security white paper at http://www.adobe.com/go/fp9_0_security<br />

■ The Flash Player 8 Security-Related API white paper at http://www.adobe.com/go/<br />

fp8_security_apis<br />

Availability: <strong>ActionScript</strong> 1.0; Flash Player 8 - See the description for version-specific details.<br />

Selection<br />

Object<br />

|<br />

+-Selection<br />

public class Selection<br />

extends Object<br />

The Selection class lets you set <strong>and</strong> control the text field in which the insertion point is<br />

located (that is, the field that has focus). Selection-span indexes are zero-based (for example,<br />

the first position is 0, the second position is 1, <strong>and</strong> so on).<br />

There is no constructor function for the Selection class, because there can be only one<br />

currently focused field at a time.<br />

Availability: <strong>ActionScript</strong> 1.0; Flash Player 5<br />

Property summary<br />

Properties inherited from class Object<br />

constructor (Object.constructor property), __proto__ (Object.__proto__<br />

property), prototype (Object.prototype property), __resolve<br />

(Object.__resolve property)<br />

Selection 1083

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!