Adding Flash Content To Dreamweaver - Adobe 38040334 - Dreamweaver CS3 User Manual

Extending dreamweaver
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

In this example, when the user changes the value of the text box and then tabs or clicks elsewhere, the color picker
updates to show the color that is specified in the text box. Whenever the user selects a new color with the color picker,
the text box updates to show the hex value for that color.

Adding Flash content to Dreamweaver

Flash content (SWF files) can display in the Dreamweaver interface either as part of an object or command. This
Flash support is especially useful if you build extensions that use Flash forms, animations, ActionScript or other
Flash content.
Basically, you leverage the ability for Dreamweaver objects and commands to display dialogs (see "Insert bar objects"
on page 99 for more information about building objects and "Commands" on page 126 for information about
commands) using the
form
A simple Flash dialog box example
In this example, you use Dreamweaver to create a new command that displays a SWF file called myFlash.swf when
the user clicks the command in the Commands menu. For specific information about creating commands before
trying this example, see "Commands" on page 126.
Note: This example assumes you already have a SWF file called myFlash.swf in the Configuration/Commands folder of
your Dreamweaver application installation folder. To test this with your own SWF file, save the SWF file to the appli-
cation Commands folder, and substitute your filename in all instances of myFlash.swf.
In Dreamweaver, open a new basic HTML file (this will be your Command definition file). Between the opening and
closing
tags, enter
title
My Flash Movie
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My Flash Movie</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
Now, save the file as My Flash Movie.htm in the application Configuration/Commands folder (but do not close the
file yet). You save the file at this point so you can embed your Flash content with a relative path; otherwise Dream-
weaver will try to use an absolute path.
Back in the HTML document, between the opening and closing
Then, within the
tags, use the Insert > Media > Flash menu option to add your Flash content to the Command
form
definition file. When prompted, select the SWF file in the Commands folder, and click OK. Your Command
definition file should now look like the following example (of course, the
depending on your SWF file properties):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My Flash Movie</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
tag with the
tag to embed your Flash content in a Dreamweaver dialog box.
object
so the head of your page reads as follows:
tags, add an opening and closing
body
and
width
height
DREAMWEAVER CS3
Extending Dreamweaver
tag.
form
attributes might differ,
88

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents