Adobe 65011817 Extended User Guide - Page 34
Document functions
UPC - 883919157368
View all Adobe 65011817 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 34 highlights
Last updated 12/8/2009 EXTENDING FIREWORKS 30 The Document object Field name CreationTime Software Value The date and time the document was created. The software used to create the document. The current version of Fireworks always sets this value to "Adobe Fireworks CS4." You can edit these fields or add your own fields, and they will be preserved across file saves. The pngText object corresponds directly to the 'tEXt' chunk of the document's PNG structure. Document functions As discussed in an earlier section, you get and set document properties by calling functions as methods of the document's Document Object Model (DOM) (see "Accessing a Fireworks document" on page 6). Methods that operate on a document's DOM are listed in this section as dom.functionName(). However, you cannot simply type dom.functionName(). In place of dom, you must type fw.getDocumentDOM() or fw.documents[documentIndex]. For example: • How a function looks in this manual: dom.addNewHotspot() • How you must type it: fw.getDocumentDOM().addNewHotspot(); // operates on active document or fw.documents[documentIndex].addNewHotspot(); // operates on specified document dom.addBehavior() Availability Fireworks 3. Usage dom.addBehavior(action, event, eventIndex) Arguments action A string that specifies the behavior to be added, such as "MM_swapImageRestore()". For a list of all the behaviors that can be added, see "Using the dom.addBehavior() function" on page 31. event The event that triggers the behavior. Acceptable values are "onMouseOver", "onMouseOut", "onLoad", and "onClick". eventIndex An integer value that specifies the location where the behavior should be added, starting with 0 (although, to specify the end location, pass -1 here). Returns Nothing. Description Adds a specified behavior to the selected hotspots and slices.