View comments | RSS feed

Global methods

The following table lists the global Fireworks methods, along with their argument data types and, where appropriate, acceptable values and notes.

Method Data type Notes

alert(message)

string

Displays a string in a modal alert box, along with an OK button. Returns nothing.

confirm(message)

string

Displays a string in a modal alert box, along with OK and Cancel buttons. Returns true if OK is clicked, false if Cancel is clicked.

prompt(caption, text)

string, string

Prompts the user (with the string that is specified by text) to enter a string in a modal dialog box; the dialog box is titled with the string that is specified by caption. Returns the string entered if OK is clicked, null if Cancel is clicked.

write(arg1, arg2, ..., argN)

string

Same as WRITE_HTML; WRITE_HTML was created to let you differentiate HTML output calls from other JavaScript calls in your code.

WRITE_CSS

string

Available only when exporting. Writes the CSS as an external file.

WRITE_HTML(arg1, arg2, ..., argN)

string

Available only when exporting. Converts each argument to a string and writes it to the HTML output file. To enter an end-of-line character, use "\n"; this is converted to the correct line ending for your platform. For more information, see HTML export objects.


Comments


senocular said on Jan 17, 2006 at 2:21 PM :
WRITE_CSS is incorrect. It should read WRITE_EXTERNAL_CSS. Keep in mind that it accepts only one string and not any number of arguments like WRITE_HTML. Also, WRITE_EXTERNAL_CSS will only work when exportDoc.cssPopupMenus is true (i.e. there are popup menus in the document). Otherwise, it will have no effect.

 

RSS feed | Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/fireworks/8/fwextending/fw_02_13.htm