|
Flash CS4 Resources |
fontItem.boldAvailabilityFlash CS4 Professional. UsagefontItem.bold DescriptionProperty; a Boolean value that specifies whether the Font item is bold (true) or not (false). ExampleAssuming that the first item in the Library is a Font item, the following code displays true in the Output panel if it is bold, false if it is not, and then sets it to bold. var theItem = fl.getDocumentDOM().library.items[0];
fl.outputPanel.clear();
fl.trace("bold: "+ theItem.bold);
theItem.bold=true;
fl.trace("bold: "+ theItem.bold);
|