Removiing a Movie Clip on Stage with AS
Posted by Helmut | Filed under ActionScript, Programming
ActionScript:
- //A square with id = square
- //A simple button named mca that removes the attached MCs
- this.attachMovie("square", "square1",1);
- this.attachMovie("square", "square2",2);
- square2._x =100;
- mca.onRelease = function() {
- square1.removeMovieClip();
- square2.removeMovieClip();
- }