After you insert a Macromedia Flash MX file into a Dreamweaver document, the object does not preview correctly in Design view. You may also receive an error message indicating that the plugin failed to initialize.
Dreamweaver relies on Netscape plugins to play embedded content within the Design view of the Document window. Dreamweaver first looks for the appropriate plugin within its own Configuration/Plugins folder. If it does not find the appropriate plugin in its own Configuration/Plugin folder, it looks within the plugins folders of installed browsers. If Dreamweaver cannot find the correct plugin in any of these folders, it will not be able to play the plugin within the Document window.
If possible, you may want to export the Flash object as version 5. With this option, you will not have to download the Macromedia Flash Player 6 plugin and neither will your visitors. If you prefer to export it as Version 6 (and this may be necessary to take advantage of the new functionality available in Macromedia Flash MX), you will need to take additional steps to preview the Version 6 Flash object in Dreamweaver.
If you export the Macromedia Flash object as an earlier version of Macromedia Flash, both you and your visitors will be able to view the movie without needing to download the latest plugin. This may be a good approach if your Flash object does not use features that require the Macromedia Flash Player 6. The steps to export an earlier version of Macromedia Flash are below:
- Click OK. If your object contains functionality that will require the Macromedia Flash Player 6, you will receive a warning message at this time.
Note: You can also preset the Publish settings to Flash 5 (or lower) by choosing File Publish Settings. Then click the Flash tab. The version set in the Version pop-up menu will be used when you export or publish.
If your Flash object uses some of the new features in Flash MX, you will probably want to publish the Flash object as Version 6. In order to preview your Version 6 Flash object in the Document window, you will need make sure Dreamweaver can find the correct plugin. If you have not already downloaded the Macromedia Flash Player 6 plugin for Netscape, begin with Step 1 below; or, if you have already downloaded Macromedia Flash Player 6, skip to Step 3.
Install the Macromedia Flash Player 6 plugin for Netscape. Macromedia web players are available for download for various platforms and browsers from:
Note: If you do not have Netscape installed on your system, you can still download the plugin and then install it into Dreamweaver's Configuration/Plugins folder.
- Even after installing the Netscape plugin, you may not be able to preview Macromedia Flash Player 6 files because other versions of the Macromedia Flash player are installed in your system. At this point, you should copy the Macromedia Flash Player 6 plugin directly into Dreamweaver's Configuration/Plugins folder.
Choose Start > Search > For Files or Folders. Do a Find for the file appropriate for your platform (listed below) and then copy the file into Dreamweaver's Configuration/Plugins folder. The file you are looking for will generally be in the Plugins folder of the Netscape installation.
- On Windows, this file is named NPSWF32.dll, dated 3/5/2002.
- On Macintosh, this file is named Shockwave Flash NP-PPC, dated 3/5/2002.
Also Note: Beyond the issue of previewing your Flash object in the Document window, you will want to make sure the codebase attribute for your Flash object is set correctly. When you insert a Flash object, Dreamweaver automatically codes a codebase attribute. The codebase tells Internet Explorer which version of the Flash ActiveX object is required to play this object. The codebase attribute Dreamweaver currently writes is for an earlier version of the Macromedia Flash Player. You can change the codebase using either of the following methods:
- Publish the HTML from Flash, and then use that HTML page or the object code from that HTML file.
- Change the codebase code once you have inserted the Flash object.
- Insert the Flash media file (Insert > Media > Flash).
- Within the Property Inspector, set the width and height for the Flash movie.
- With the object still selected, open the Split View (View > Code and Design) or the Code Inspector (Window > Code Inspector).
- Within the highlighted code, the codebase will be coded within the object tag. Change it in the code so it looks like the following: