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.

exactSettings (System.exactSettings property)<br />

public static exactSettings : Boolean<br />

A Boolean value that specifies whether to use superdomain (false) or exact domain (true)<br />

matching rules when accessing local settings (such as camera or microphone access<br />

permissions) or locally persistent data (shared objects). The default value is true for files<br />

published for Flash Player 7 or later, <strong>and</strong> false for files published for Flash Player 6.<br />

If this value is true, the settings <strong>and</strong> data for a SWF file hosted at here.xyz.com are stored in a<br />

directory called here.xyz.com, the settings <strong>and</strong> data for a SWF file hosted at there.xyz.com are<br />

stored in a directory called there.xyz.com, <strong>and</strong> so on. If this value is false, the settings <strong>and</strong><br />

data for SWF files hosted at here.xyz.com, there.xyz.com, <strong>and</strong> xyz.com are shared, <strong>and</strong> are all<br />

stored in a directory called xyz.com.<br />

If some of your files set this property to false <strong>and</strong> others set it to true, you might find that<br />

SWF files in different subdomains share settings <strong>and</strong> data. For example, if this property is<br />

false in a SWF file hosted at here.xyz.com <strong>and</strong> true in a SWF file hosted at xyz.com, both<br />

files will use the same settings <strong>and</strong> data--namely, those in the xyz.com directory. If this isn't<br />

the behavior you want, ensure that you set this property in each file to correctly represent<br />

where you want to store settings <strong>and</strong> data.<br />

If you want to change this property from its default value, do so in the first frame of your<br />

document. If you want to change this property from its default value, do so near the<br />

beginning of your script. The property can't be changed after any activity that requires access<br />

to local settings, such as System.showSettings() or SharedObject.getLocal().<br />

If you use loadMovie(), MovieClip.loadMovie(), or MovieClipLoader.loadClip() to<br />

load one SWF file into another, all the files published for Flash Player 7 share a single value<br />

for System.exactSettings, <strong>and</strong> all the files published for Flash Player 6 share a single value<br />

for System.exactSettings. If you use MovieClip.loadMovie() or<br />

MovieClipLoader.loadClip() to load one SWF file into another, all of the files share a<br />

single value for System.exactSettings. Therefore, if you specify a value for this property in<br />

one file published for a particular Player version, you should do so in all the files that you plan<br />

to load. If you load multiple files, the setting specified in the last file that's loaded overwrites<br />

any previously specified setting.<br />

System 1175

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

Saved successfully!

Ooh no, something went wrong!