:::: 菜单 ::::
月归档:九月 2009

安全沙箱问题#2123

第一份安全沙箱的笔记。
因为安全沙箱困扰了不少人,所以是老生常谈的问题。
今天下午我遇到了2123错误。

案发现场

某个列表flash页面需要支持gravatar的头像
(gravatar的跨域策略文件位于http://www.gravatar.com/avatar/crossdomain.xml)
在加载他们提供的图片头像时我遇到了安全沙箱冲突,错误信息是:

SecurityError: Error #2123: 安全沙箱冲突: [ 阅读全文 ]



Flash CS5小道消息一蹩

这篇文章为我们介绍了一些Flash CS5的小道消息。文中有几处错别字,像我这样E文不咋样的,看得泪流满面。

几个我关注的点:

普及率

当前的Flash平台情况,其中FlashPlayer10的安装数量还在不断上升,新的数字预计将在短期内达到90%以上的覆盖率。

Flash CS5特点

对开发者来说最大的新闻就是Flash创作终于和FlashBuilder整合了。
如果你在用Flash CS5,就能通过一个新的导出对话框导出一个新FlashBuilder项目。 [ 阅读全文 ]


getURL或navigateToURL弹出窗口被IE拦截

问题描述:

下午遇到个麻烦:IE7和IE8会拦截flash中navigateToURL(‘xxx’,’_blank’);
as2下的getURL一样被拦截。
貌似曾经遇到过这情况,但并不是经常出现,所以一直没去研究被拦截的条件。今天又出现了,正好找找原因。

搜索一番,发现很多去年的讨论。
有人指出:

IE7和Firefox(我使用的版本是2.0.0.11)会阻止用navigateToURL方法打开新窗口,而AS2中的getURL方法则不会,让人很不爽。既然项目选择了AS3开发,就只能想办法来解决。

首先当然想到的是ExternalInterface了,测试发现还是会被blocked。后来想添加wmode会不会有所帮助,于是在页面中添加wmode属性为opaque,果然OK了。 [ 阅读全文 ]


“创意工厂”引发唇枪舌战

2009年9月4日,开复博士(http://blog.sina.com.cn/kaifulee)离职谷歌。创意工厂网站浮出台面。
这本是一件很棒的事情,却引发了一些IT博客上的争论。
http://initiative.yo2.cn/archives/642502 这篇文章火了。以防和谐,拷贝与此:

http://www.innovation-works.com/New.asp
1. 用asp,创新吗?
2. 英语中,news和new是意义完全不同的两个词吧?New.asp可见制作网站的外包公司多么山寨
3. 页面td布局就不说了,关键是content=”text/html; charset=gb2312″,这个就值得一喷了。
4. 媒体联系 这一栏居然出现了.doc格式的东西。其实我现在懒得装Word了,装了懒得开,都是拖G Docs。还好不是.docx。
5. 好吧,英文版是UTF-8了,但是http://en.innovation-works.com/new.asp?page=1’会出错。 [ 阅读全文 ]



IIS下404错误页一个注意点

刚刚在测试网站,做到flash加载图片的问题,发现加载一个不存在的文件时flash居然还有进度信息,并且到100%后不显示。
丈二和尚摸不着头脑啊,后来用firebug测了一下发现load的那个图居然返回http头是200status,而且还有文件!
这才想起来是我设置过IIS里的404错误页导致的。

这里有一个注意点:IIS里设置404错误页有两种方式指定。一种是相对URL,一种是本地文件。
如果设置URL方式,那么IIS会返回404页面,同时发200状态的头,相当于转向。
而使用文件方式,IIS才会返回404状态的头。切记切记……


ActionScript for Multiplayer Games and Virtual Worlds[下载]

ActionScript for Multiplayer Games and Virtual Worlds图书概述

The demand for multiplayer games and virtual worlds has exploded over the last few years. Not only do companies want them for site stickiness through social networking, but developers have tremendous interest in exploring this niche area. While developing multiplayer content is challenging, it isn’t as difficult as you might think, and it is fun and highly rewarding! ActionScript for Multiplayer Games and Virtual Worlds explains fundamental multiplayer concepts from connecting to a server to real-time latency hiding techniques. In this book you’ll learn: How to connect users to achieve real-time interaction When to make decisions on the server versus the game client Time synchronization techniques How to use dead reckoning smoothing to hide network latency About tile-based games the isometric view Techniques for customizing and rendering avatars in a virtual world In addition, you’ll learn everything that goes into building: A real-time multiplayer tank battle game A real-time multilayer cooperative game A virtual world

[ 阅读全文 ]