Keyframe?

Hi, how do i gotoAndPlay an keyframe and remove all the MCs on the Screen which i have attached with AS?

ex: (there might be syntax, wroted from head)

[AS]
attachMovie(‘ball’,‘ball1’,this.getNextHighestDepth)
_root.gotoAndPlay(2);
[/AS]

How would i ‘clear’ the frame from Mc’s but not removing the variables and functions?