|
Flash CS4 Resources |
bitmapItem.exportToFile()AvailabilityFlash CS4 Professional. UsagebitmapItem.exportToFile(fileURI) Parameters
ReturnsA Boolean value of true if the file was exported successfully; false otherwise. DescriptionMethod; exports the specified item to a PNG or JPG file. ExampleAssuming
the first item in the Library is a bitmap item, the following code
exports it as a JPG file:
var imageFileURL = "file:///C|/exportTest/out.jpg"; var libItem = fl.getDocumentDOM().library.items[0]; libItem.exportToFile(imageFileURL); |