Flash MX 2004.
document.setAlignToDocument(bToStage)
bToStage A Boolean value that, if set to true, aligns objects to the Stage. If set to false, it does not.
Nothing.
Method; sets the preferences for document.align(), document.distribute(), document.match(), and document.space() to act on the document. This method is equivalent to enabling the To Stage button in the Align panel.
The following example enables the To Stage button in the Align panel to align objects with the Stage:
fl.getDocumentDOM().setAlignToDocument(true);