actionscript 2 - How to disable a HIT area in AS2? -


how disable hit area (a movieclip instance name "hit") in as2?

please note don't want hide hit area after hitted. needed code disable or remove instance name other objects cannot hit again.

if want instance c1 disabled after being touched, can do:

c1.onenterframe = function():void {     if (this.hittest(anothermovieclip)) {         delete this.onenterframe;     } } 

the hittest can't occur after onenterframe function deleted.


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -