顯示具有 Mobile 標籤的文章。 顯示所有文章
顯示具有 Mobile 標籤的文章。 顯示所有文章

2013-06-07

dispose 時該做些什麼

參考 Starling 論壇: question on dispose()
override public function dispose():void
{
    //dispose bitmapData
    bitmapData.dispose();
    //dispose other object witch need
    aStar.dispose();
    //set var to null, I read it was useless now, but it can t be bad..
    myObject = null;
    //remove all your listener
    removeEventListener(EnterFrame, onEnterFrame);
    //removeChild big layer to help GC to get faster
    removeChild(layer);
    //stop any timer, object, video, connection, nstream etc...
    timer.stop();
    //unregister from object if you use this
    unregisterFrom(objectListen);
    //call manually the gc if it's a big big object in memory.
    //You also can call the gc in the method witch call the object.dispose();
    System.gc();
    //call super.dispose()
    super.dispose();
}

2007-11-29

Google 的 My Location 技術

有文有影片的報導
Never lost with Google Maps Mobile and My Location technology

看樣子將會有一堆 Google 的手機服務能把 G-phone 拱上天。

FB 留言