數位媒體。筆記

站內搜尋

Friday, 13 February 2009

AS3.0: hitTestObject

For Detecting Collision / Hit testing

event.target.hitTestObject(event.target._hitTarget)

//測試是否與event.target._hitTarget碰撞
//var _hitTarget:MovieClip;
//txtBanana_mc._hitTarget = banana_mc;

No comments:

Post a Comment