Guest User

Untitled

a guest
Apr 13th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package  {
  2.    
  3.     import flash.display.MovieClip;
  4.     import flash.events.Event;
  5.    
  6.  
  7.    
  8.     public class Blood extends MovieClip {
  9.        
  10.  
  11.        
  12.         public function Blood() {
  13.             // constructor code
  14.             addEventListener(Event.ENTER_FRAME, update);
  15.         }
  16.        
  17.         private function update(e:Event):void {
  18.             this.removeEventListener(Event.ENTER_FRAME, update);
  19.             if(this.currentFrame == 25) parent.removeChild(this);
  20.         }
  21.     }
  22.    
  23. }
Add Comment
Please, Sign In to add comment