Flash MX 2004.
document.editScene(index)
index A zero-based integer that specifies which scene to edit.
Nothing.
Method; makes the specified scene the currently selected scene for editing.
Assuming that there are three scenes (Scene0, Scene1, and Scene2) in the current document, the following example makes Scene2 the current scene and then deletes it:
fl.getDocumentDOM().editScene(2);
fl.getDocumentDOM().deleteScene();