flash和html跨域交互

当你在a域(a.com)下的html上引用b域(b.com)的flash/swf后需要通过externalinterface交互的话,需要在你的页面里加上allowScriptAccess="true"

这个一般人都回家,还要记得再as里加上以下代码:


奇怪的是好像flash不能全路径引用:

这样是不行滴 o(╯□╰)o

你可能感兴趣的:(JavaScript,跨域,html,Flash,crossdomain)