Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package {
- import flash.display.MovieClip;
- import flash.events.Event;
- public class Blood extends MovieClip {
- public function Blood() {
- // constructor code
- addEventListener(Event.ENTER_FRAME, update);
- }
- private function update(e:Event):void {
- this.removeEventListener(Event.ENTER_FRAME, update);
- if(this.currentFrame == 25) parent.removeChild(this);
- }
- }
- }
Add Comment
Please, Sign In to add comment