|
Flash CS4 Resources |
presetPanel.importItem()AvailabilityFlash CS4 Professional. UsagepresetPanel.importItem(fileURI [,namePath ]) Parameters
ReturnsA Boolean value of true if the file is successfully imported; false otherwise. DescriptionMethod; adds a preset to the Motion Presets panel from a specified XML file. The path specified in namePath must exist in the panel. To create XML files that can be imported, use presetPanel.exportItem(). If you don’t pass a value for namePath, the imported preset is placed in the Custom Presets folder and given the same name as the imported file (without the XML extension). ExampleThe
following example imports a preset into the Custom Presets/Pulse
folder, and names it fastPulse.
fl.presetPanel.importItem("file:///C|/My Presets/thePulsePreset.xml", "Custom Presets/Pulse/fastPulse");
See also |