SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 1887 | Next

Joseph W. Lowery

"Dreamweaver CS3 Bible"


applyBehavior() also passes the necessary arguments to the function in the section.
5. Inspect the behavior: From a user??™s point of view, building a Web page is often a trial-and-error
process. You try one setting and if it doesn??™t work, you try another. To modify settings for a particular
behavior, the user double-clicks the behavior name to reopen the dialog box and change the
settings. The inspectBehavior() function handles the restoration of the previous values to
the parameters form for easy editing.
6. Test the behavior: The final step, as in any software development, is testing. You need to try out
the new behavior in a variety of Web browsers and debug it, if necessary (and believe me, it??™s
always necessary).
To demonstrate the process of creating a behavior, the next few sections take you through a real-world
example: the construction of a Set Layer Z Index action by Massimo Foti, esteemed Dreamweaver/Fireworks
maven and extension developer (see www.massimocorner.com).
The behavior used in this example was developed when Dreamweaver referred to absolutely
positioned
tags styled inline were called layers rather than AP elements, hence the title
of the extension. The code of the behavior also reflects this earlier naming convention.


Pages:
1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899