Code in frame 1 layer 1:


//killSprite.fla

//Demonstrates adding methods to sprites, 

//deleting them in real time



_root.attachMovie("ball", "theBall", 10);

theBall._x = 100;

theBall._y = 100;



theBall.onRelease = function(){

  this.removeMovieClip();

} // end onRelease