beautypg.com

Photoshop integration and smart objects, A smart object example – Adobe Extending Dreamweaver CS4 User Manual

Page 99

background image

93

EXTENDING DREAMWEAVER CS4

User interfaces for extensions

This example shows a simple implementation of the SWF file support of Dreamweaver. After you are familiar with
building objects and commands as well as more sophisticated forms, you can integrate SWF files into your
Dreamweaver extensions.The integration provides for a more dynamic user experience. For more information, see

Commands

” on page 131 about writing a

commandButtons()

function to add buttons to the dialog box that displays

your SWF files.

Photoshop integration and Smart Objects

Adobe® Dreamweaver CS4® imports and handles Photoshop files as Smart Objects. Any modification done to the
original image using Photoshop is immediately reflected in Dreamweaver. For more information about APIs
integrating Photoshop to Dreamweaver, see "Photoshop integration" in the Dreamweaver API Reference.

A Smart Object example

In this example, you use Dreamweaver to create a command that updates a Photoshop file (PSD) when the user clicks
the command in the Commands menu. To enable this command to work, ensure that you have a Smart Object web
image on your HTML page. For specific information about creating commands before trying this example, see

Commands

” on page 131.

In Dreamweaver, open a new basic HTML file (this file is your Command definition file). Your Command definition
file looks like the following example:

This manual is related to the following products: