In our last lesson
, we set up buttons to allow end-users to add different elements to our snowman animation in whatever order they chose by setting each button to reference a certain movie clip to tell it to play. However, once that element was added to the scene, it was stuck there; clicking the button only causes the entering animation to play again, rather than removing it. If we leave our animation as-is, then any time the user wants to remove an element (say they decide they don't want their snowman to have a scarf), they have to go all the way back to the first options screen selecting between a tall or short snowman and start over again from scratch.
That's a mite inconvenient, and not really any fun. So what we need is an option to remove each element separately without affecting the rest of the scene. To do that, we're going to set up a new group of button options.
To start with, just use the text tool to put a new header in a clear area of your stage titled "Remove" (or whatever suits you), and then drag and drop new instances of the buttons you should already have created to arrange them under the heading.