首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网络技术 > 网络基础 >

深入理解Flash的沙箱 – Security Domains_上

2012-10-24 
深入理解Flash的沙箱 – Security Domains_下需要跨域策略文件把跨域的SWF加载到相同的安全域要加载某个SWF

深入理解Flash的沙箱 – Security Domains_下

需要跨域策略文件把跨域的SWF加载到相同的安全域

要加载某个SWF到自己的安全域内,需要给Loader.load方法指定一个LoaderContext对象。LoaderContext对象的securityDomain属性设置为当前的安全域(SecurityDomain.currentDomain)。通过这样的加载方式,父SWF授信给子SWF,而子SWF的授信则需要通过跨域策略文件。

http://host.example.com/parent.swf:

addChildaddChildAtremoveChildremoveChildAtgetChildIndexsetChildIndexgetChildAtgetObjectsUnderPointswapChildrenswapChildrenAtnumChildrentabChildrenmouseChildrenwidthstageWidthfullScreenWidthheightstageHeightfullScreenHeightqualityalignscaleModedisplayStatefullScreenSourceRectstageFocusRectshowDefaultContextMenucolorCorrectionaddEventListenerdispatchEventhasEventListenerwillTrigger??

热点排行