7yue's Weblog

Thinking in RIA Solutions...2470,8514,1020的生活演绎

« Adobe使用Flash Player和AIR对Avatar进行大规模推广Adobe开发者技术日广州演讲稿 »

基于Alchemy移植到Flash上的Quake

Alchemy自从在Labs.adobe.com公开给开发者之后,引起了非常多的游戏爱好者的兴趣。早就在MAX时候,Adobe曾经演示过一款基于Alchemy port到Flash上的FPS游戏Quake。现在,同样是Quake游戏,完整版出现在Flash上,除了性能更加优秀之外,模拟度也非常之高,还有就是也是同样基于Alchemy进行移植的。

http://www.silvergames.com/game/quake-flash/

  • quote 8.邵凯
  • var ba:ByteArray = new ByteArray();
    ba.writeInt(12);
    ba.clear();
    trace(ba.length, ba.position); //0 4
    ba.writeInt(34);
    ba.clear();
    trace(ba.length, ba.position); //0 8

    7yue,你好,以下是官方文档上ByteArray.clear()方法的说明:
    Clears the contents of the byte array and resets the length and position properties to 0. Calling this method explicitly frees up the memory used by the ByteArray instance
    按照as3帮助文档上的说明,clear()方法调用后length和position属性应该都变为0才对,不过目前似乎position属性忘了设为0了?

    你可以反馈一下这个小bug么?
    Admin7yue 于 2009-12-4 13:36:34 回复
    我先去看一下,然后考虑提交反馈。
  • 2009-12-2 15:50:02 回复该留言

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

日历

最新评论及回复

最近发表

Powered By Z-Blog 1.8 Walle Build 91204

Copyright 2007 www.7yue.com. Some Rights Reserved.
京ICP备05064035号