插入Flash对象到Form中,出现js无法获取Flash对象的错误

by wersling on June 29th, 2009, under Flash Note

最近遇到的一个问题,在插入flash到html中时无意写了类似的代码:

<form>
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
            id="flashObj" width="${width}" height="${height}"
            codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
            <param name="movie" value="${swf}.swf" />
            <param name="quality" value="high" />
            <param name="bgcolor" value="${bgcolor}" />
            <param name="allowScriptAccess" value="sameDomain" />
    </object>
</form>

在js中如果你要访问到flashObj这个对象,并发送些信息给flash(swfaddress、swfobject),就会失误。
受影响的版本是9.0.28,以后的版本没有这个问题。
解决的办法就是不要把flash放form中。

, , 3 comments

Adobe CS4 官方下载地址

by wersling on November 24th, 2008, under News

Adobe 已经为CS4的部分软件提供试用了:

更多的可以去这个地址下载:

http://www.adobe.com/downloads/#creativesuite_family

, 7 comments

Google Analytics for Flash and Flex

by wersling on November 23rd, 2008, under News

Google Analytics 发布了针对Flash的API,现在你可以将统计代码直接写到Flash程序中,而不是通过调用JS来实现。

我已经将这个功能加入到 MusicBox,试用两天,发现很不错。:)

值得注意的是目前它还存在一些bug,建议在使用之后多进行一些测试。

相关文章

代码及项目位置(google code)

, , 1 comment

Adobe FMS 3.5 Release

by wersling on November 18th, 2008, under News
The content is not available in that language.

, , , No comments

Adobe AIR 1.5 Release

by wersling on November 18th, 2008, under News

PS. 据MAX大会了解,下一个版本的 Flex 将更名为 “Flash Platform”.

, , , No comments

10 Free SVN & Project Hosting Services

by wersling on November 6th, 2008, under Resource