タグ

tipsとメモリリークに関するabtkyのブックマーク (2)

  • gskinner.com: gBlog: AS3: Resource Management pt 3 GC ガーベジコレクト

    This one took a little longer than I’d hoped – life’s too busy right now! In this third part of my series on resource management in ActionScript 3 I will be focusing on a few new tools in AS3 / Flex2 that let you track and manage memory more effectively. There are only a couple new “official” features that are specifically geared towards resource management, but they are very useful. These are sup

    gskinner.com: gBlog: AS3: Resource Management pt 3 GC ガーベジコレクト
  • ActionScript 3 Tweenerとメモリ問題(ガベージコレクション)

    もはや必須のライブラリーTweener。気をつけないとメモリ問題ではまります。 以下、kaniくんより ●まずはFlashのガベージコレクション(メモリーの掃除)の基 つくったものをステージからremoveChildする その際にaddEventListenerしていたらremoveEventListenerをする これで参照が無くなるのでガベージコレクションの対象になる 特定のタイミングでガクッとメモリの使用量が減る サンプルファイルをダウンロード(Adobe Flash CS4/ActionScript3) ●Tweenerクラスとガベージコレクションの対象 addChildしたインスタンスがTweenerを使ってループアニメを使った場合、ガベージコレクションの対象にならない なぜならTweenerクラスが静的クラスなのでFlashPlayerのグローバルな領域にいてインスタンとの参

    ActionScript 3 Tweenerとメモリ問題(ガベージコレクション)
    abtky
    abtky 2009/08/11
    Tweenerクラスが静的クラスなのでTweenerのremoveTweensを実行して現在実行中のアニメを取り除く
  • 1