Adobe 65011817 Extended User Guide - Page 23
Find object
UPC - 883919157368
View all Adobe 65011817 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 23 highlights
Last updated 12/8/2009 EXTENDING FIREWORKS 19 The Fireworks Object Model Method close() readline() readLineUTF8 write(textString) writeUTF8 Data Type none none string string string Notes Closes the current File Reference object. You are not required to use this method (the file is closed when the Files object is destroyed), but it is useful for controlling access to a file. Reads the next line from the current File Reference object and returns it as a string. The end-of-line character(s) are not included in the string. Returns null if end-of-file is reached or if the line is longer than 2048 characters. Reads one line from the file that has been opened with UTF8 encoding. Writes the specified string to the current File Reference object. No end-of-line characters are appended; to include one, use "\n". Writes text in UTF8 encoding when the file is opened in UTF8 encoding. Find object There are several ways to specify a Find object, depending on what you want to find and replace. Use the whatToFind property to specify the type of find operation, along with the properties that are associated with each legal value for whatToFind. These properties are listed in the following tables. Read-only properties are marked with a bullet (•). Finding and replacing text Property whatToFind find matchCase numItemsReplaced • regExp Data type string string Boolean Integer Boolean replace wholeWord string Boolean Notes In the format: "text" Text to find. If set to true, the search is case-sensitive. Defaults to false. Number of replacements done in a file using Find and Replace. If set to true, the find and replace text is interpreted as a regular expression. The default is false. Text to use as replacement text. If set to true, only whole words matching the search text are found. The default is false. Finding and replacing fonts and styles Property whatToFind find replace Data type string string string Notes In the format: "font" Name of font to find. Name of font to use as replacement.