主题:  Flash MX - New Property

|危险|

职务:普通成员
等级:1
金币:11.0
发贴:248
#12002/3/20 16:44:15
While browsing through the Macromedia Actionscript Errata, i found the following new property, which is very,very useful:

System.security.allowDomain

Availability:
Flash MX

Usage:

System.security.allowDomain(domain1, domain2,....domainN)

Description:

Allows Flash MX movies in the identified domains to access objects and variables in the Flash MX movie that calls the allowDomain command.

Example:

The domains can be formatted in the following ways: domain.com, domain.com, or IPaddress.

Scenario:

loads . MovieA.swf contains the command System.security.allowDomain("shockwave.com") . Therefore MovieB.swf will be able to access MovieA.swf's objects and variables.

编辑历史:[这消息被Danger编辑过(编辑时间2002-03-20 17:54:24)]


brahma

职务:版主
等级:5
金币:15.1
发贴:1762
#22002/3/20 17:50:22
是不是相当给对方了一个权限。