Operation Manual
240
USING DREAMWEAVER
Adding content to pages
Last updated 3/28/2012
Insert a SWF file
1 In the Design view of the Document window, place the insertion point where you want to insert the content, then
do one of the following:
• In the Common category of the Insert panel, select Media and click the SWF icon .
• Select Insert > Media > SWF.
2 In the dialog box that appears, select a SWF file (.swf).
A SWF file placeholder appears in the Document window.
The placeholder has a tabbed blue outline. The tab indicates the type of asset (SWF file) and the ID of the SWF file.
The tab also displays an eye icon. It acts as toggle between the SWF file and the download information users see when
they don’t have the correct version of Flash Player.
3 Save the file.
Dreamweaver informs you that two dependent files, expressInstall.swf and swfobject_modified.js, are being saved to
a Scripts folder in your site. Don’t forget to upload these files when you upload the SWF file to your web server.
Browsers can’t display the SWF file properly unless you have also uploaded these dependent files.
Note: Microsoft Internet Information Server (IIS) does not process nested object tags. For ASP pages, Dreamweaver uses
nested object/embed code instead of nested object code when inserting SWF or FLV files.
Edit Flash Player download information
When you insert a SWF file in a page, Dreamweaver inserts code that detects whether the user has the correct version
of Flash Player. If not, the page displays default alternative content that prompts the user to download the latest
version. You can change this alternative content at any time.
This procedure also applies to FLV files.
Note: If a user does not have the required version but does have Flash Player 6.0 r65 or later, the browser displays a Flash
Player express installer. If the user declines the express install, the page then displays the alternative content.
1 In the Design view of the Document window, select the SWF file or FLV file.
2 Click the eye icon in the tab of the SWF file or FLV file.
You can also press Control + ] to switch to alternative content view. To return to SWF/FLV view, press Control + [
until all of the alternative content is selected. Then press Control + [ again.
3 Edit the content just as you would edit any other content in Dreamweaver.
Note: You cannot add SWF files or FLV files as alternative content.
4 Click the eye icon again to return to the SWF (or FLV) file view.
Preview SWF files in the Document window
1 In the Document window, click the SWF file placeholder to select the content.