Document.publishprofiles, Document.punch() – Adobe Extending Flash Professional CS5 User Manual
Page 147
125
EXTENDING FLASH PROFESSIONAL
Document object
Last updated 5/2/2011
Example
The following example publishes the current document:
fl.getDocumentDOM().publish();
document.publishProfiles
Availability
Flash MX 2004.
Usage
document.publishProfiles
Description
Read-only property; an array of the publish profile names for the document.
Example
The following example displays the names of the publish profiles for the document:
var myPubProfiles = fl.getDocumentDOM().publishProfiles;
for (var i=0; i < myPubProfiles.length; i++){
fl.trace(myPubProfiles[i]);
}
document.punch()
Availability
Flash 8.
Usage
document.punch()
Parameters
None.
Returns
A Boolean value:
true
if successful;
false
otherwise.
Description
Method; uses the top selected drawing object to punch through all selected drawing objects underneath it. This method
returns
false
if there are no drawing objects selected or if any of the selected items are not drawing objects.
Example
The following example punches through drawing objects underneath the selected drawing object:
fl.getDocumentDOM().punch();