|
Flash CS4 Resources |
presetPanel.newFolder()AvailabilityFlash CS4 Professional. UsagepresetPanel.newFolder( [folderPath] ) Parameters
ReturnsA Boolean value of true if the folder is successfully added; false otherwise. DescriptionMethod; creates a folder in the folder tree of the Motion Presets panel. You can create only one new folder level with this method. That is, if you pass “Custom Presets/My First Folder/My Second Folder" for folderPath, “Custom Presets/My First Folder“ must exist in the folder tree. If you don’t pass a value for folderPath, a folder named “Untitled folder n” is created at the first level below “Custom Presets,” where n is incremented each time a folder is added in this fashion. Note: You can’t add folders
to the Default Presets folder.
ExampleThe following example adds a folder named Bouncing below the Custom Presets folder: fl.presetPanel.newFolder("Custom Presets/Bouncing");
See also |