Archive for 8月, 2008

noidea!@#$%^&*

星期五, 8月 29th, 2008

KitchenSync

星期日, 8月 24th, 2008


KitchenSync is an ActionScript 3.0 library for sequencing animations and other time-based actions.
demo
project site

bitmap.hittest

星期一, 8月 18th, 2008

(Either JavaScript is not active or you are using an old version of Adobe Flash Player. Please install the newest Flash Player.)

单纯的hittest已经不能满足精确的碰撞检测,还好flash 8里有了bitmapdata,而其中有个hittest的方法。就是用来检测复杂不规则图形的collision.
BitmapData.hitTest(firstPoint:Point, firstAlphaThreshold:uint,secondObject:Object, secondBitmapDataPoint:Point = null, secondAlphaThreshold:uint = 1):Boolean
其中firstpoint是BitmapData的左上角的x,y坐标,endpoint为碰撞物的坐标,firstAlphaThreshold和secondAlphaThreshold是对于透明区域的值,越高的话应该越精确。上面那个例子已开始没用用到bitmap的检测,我改了一下代码,就出现了那样的效果。

lotloft black version

星期二, 8月 12th, 2008

还是黑色好