Load an image on the network and find that it cannot be masked by setmask. The trace shows "Security Sandbox conflict ". It is easy to understand the cause. allowdomain is required to call objects or variables in different domains, as shown below:
System. Security. allowdomain ("www.zhugao.cn ");
Loadmovie ("http://www.zhugao.cn/images/links/links_zhugao.jpg", my_mc );
Note: "www.zhugao.cn" and "zhugao.cn" are not the same domain, depending on the target. For example, loadmovie ("http://player.zhugao.cn/##.jpg", my_mc); then, allowdomain should be player.zhugao.cn, not zhugao.cn, or www.zhugao.cn.
To allow multiple domains, use commas to separate them:
System. Security. allowdomain ("www.zhugao.cn", "zhugao.cn", "player.zhugao.cn ");
The wildcard "*" can be used for a player over 8.0 to allow all domains:
System. Security. allowdomain ("*");