03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - 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.

Method summary<br />

Modifiers Signature Description<br />

static allowDomain(domain1:<br />

String) : Void<br />

static allowInsecureDomain(<br />

domain:String) :<br />

Void<br />

static loadPolicyFile(url:S<br />

tring) : Void<br />

Methods inherited from class Object<br />

allowDomain (security.allowDomain method)<br />

public static allowDomain(domain1:String) : Void<br />

Lets SWF files <strong>and</strong> HTML files in the identified domains access objects <strong>and</strong> variables in the<br />

calling SWF file or in any other SWF file from the same domain as the calling SWF file.<br />

In files playing in Flash Player 7 or later, the parameters passed must follow exact-domain<br />

naming rules. For example, to allow access by SWF files hosted at either www.domain.com or<br />

store.domain.com, both domain names must be passed:<br />

// For Flash Player 6<br />

System.security.allowDomain("domain.com");<br />

// Corresponding comm<strong>and</strong>s to allow access by SWF files<br />

// that are running in Flash Player 7 or later<br />

System.security.allowDomain("www.domain.com", "store.domain.com");<br />

Also, for files running in Flash Player 7 or later, you can't use this method to let SWF files<br />

hosted using a secure protocol (HTTPS) allow access from SWF files hosted in nonsecure<br />

protocols; you must use System.security.allowInsecureDomain() instead.<br />

538 ActionScript classes<br />

Lets SWF files <strong>and</strong> HTML files in the identified<br />

domains access objects <strong>and</strong> variables in the calling<br />

SWF file or in any other SWF file from the same<br />

domain as the calling SWF file.<br />

Lets SWF files <strong>and</strong> HTML files in the identified<br />

domains access objects <strong>and</strong> variables in the calling<br />

SWF file, which is hosted using the HTTPS<br />

protocol.<br />

Loads a cross-domain policy file from a location<br />

specified by the url parameter.<br />

addProperty (Object.addProperty method), hasOwnProperty<br />

(Object.hasOwnProperty method), isPropertyEnumerable<br />

(Object.isPropertyEnumerable method), isPrototypeOf (Object.isPrototypeOf<br />

method), registerClass (Object.registerClass method), toString<br />

(Object.toString method), unwatch (Object.unwatch method), valueOf<br />

(Object.valueOf method), watch (Object.watch method)

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

Saved successfully!

Ooh no, something went wrong!