一段流行的as3内存释放hack代码

01. public static function GC() {

02. var lc1 : LocalConnection;

03. var lc2 : LocalConnection;

04. try {

05. lc1 = new LocalConnection();

06. lc2 = new LocalConnection();

07. lc1.connect("name");

08. lc2.connect("name");

09. }

10. catch (e : Error) {

11. }

12. return;

13.}

posted @ 2010-11-19 17:26  模西的哥哥  阅读(247)  评论(0编辑  收藏  举报