---
title: "flash和html跨域交互"
author: "floydd"
date: "2011-10-20T11:21:00Z"
tags: []
categories: ["Web前端"]
slug: "flash-html"
draft: false
lastmod: "2012-01-12T14:16:52Z"
id: 1326341
url: "https://floydd.iteye.com/blog/1326341"
---

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

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

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

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