2009年7月30日
摘要: 转自:http://programmer.blogbus.com/logs/36658308.html在很多项目中有许多的事件被广播出去,但没有接收者侦听他们。这不应该成为问题,但它原来的Flash Player处理这些事件的效率低下。幸运的是很容易修补这个情况。以下的代码将比标准的dispatchEvent在没有事件侦听时高出5倍的效率Code: overridepublicfunctiondi... 阅读全文
posted @ 2009-07-30 10:13 sungo 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 转自:http://www.anttikupila.com/flash/getting-jpg-dimensions-with-as3-without-loading-the-entire-file/Does this sound familiar: You're loading a JPG file, and want to know what size it isbeforeit has lo... 阅读全文
posted @ 2009-07-30 10:12 sungo 阅读(423) 评论(0) 推荐(0) 编辑