The first thing to do before exporting to Flash is to create a Macromedia Captivate file or open an existing one. I created a sample file (contained in the sample download, captivatetoflash.zip) so that you can see how the file looks in Macromedia Captivate before exporting it to Flash. Later, you'll see what Flash does with the Macromedia Captivate piece. To view the sample, click the link below:
Play
the demo: The Macromedia Captivate project before exporting it to Flash
This is the sample file you will export for customization in Flash. The movie contains many Macromedia Captivate items including:
Export the Macromedia Captivate demo to Flash MX 2004 as follows:
Select File > Import/Export > Export the Movie to Flash MX 2004.
Figure 1. Exporting the movie to Flash MX 2004
Macromedia Captivate asks you to save your Macromedia Captivate file, if you have changed it at all. I recommend that you always click Yes even if you have just saved the file.
Figure 2. Captivate asks you to save the file.
If you click Yes, you will briefly see the following window as Macromedia Captivate saves the file:
Figure 3. Macromedia Captivate saves the project.
Macromedia Captivate asks if you would like to open Flash MX 2004 (Figure 4).
Figure 4. Macromedia Captivate asks if you would like to open Flash MX 2004.
While you could cancel this dialog box and open Flash later, selecting Open Flash MX 2004 saves you a little time; you can avoid having to go through the Flash opening dialog screen.
Save your Flash MX 2004 piece as Flash loads your Macromedia Captivate file. Macromedia Captivate populates the Flash file name with the name of your Macromedia Captivate file.
Figure 5. Saving the Flash file
Unless you need to name your Flash piece differently, stick with the default Macromedia Captivate file name for ease of maintenance.
Once you save the piece, the following dialog box appears to help you when you are in Flash.
Figure 6. Macromedia Captivate dialog box providing instructions on what to do when you open Flash MX 2004
If you're wondering why this dialog appears, it's because Flash does not automatically import the Macromedia Captivate movie to its Timeline. Follow the steps described above in Figure 6 to actually import the Macromedia Captivate movie.
In RoboDemo 5, the export to Flash opened and imported the movie, but there were so many variables and so many potential issues that the Macromedia Captivate development team decided to simplify the process and eliminate the potential for confusion and error.
Start Macromedia Flash MX 2004 if you haven't already. In the following steps, you'll import your Macromedia Captivate content. Figure 7 shows the Flash interface when it opens.
Note: Your screen may look different depending on your screen resolution and the interface that you've configured for Flash.
Figure 7. The Flash MX 2004 interface
Select File > Import.
Figure 8. Importing the Macromedia Captivate file into Flash
Flash opens the Import dialog box. Notice that the file type is already set to Macromedia Captivate (Figure 9).
Figure 9. The Import dialog box set to Macromedia Captivate Projects
Select the FLAexport file from the Import dialog box and click Open.
The Macromedia Captivate Options dialog appears. This dialog box enables you to select which elements you want Flash to import from Macromedia Captivate.
Figure 10. Macromedia Captivate Options in the import process
Basic elements
Slide elements
Movie elements
In this tutorial, keep everything selected on and click the Import button. Flash shows the following as it imports your Captivate project:
Figure 11. Flash importing the Macromedia Captivate project
When the import is done, Flash warns you that several elements were not imported (Figure 12):
Figure 12. Some elements were not imported.
The following elements were not imported:
Click OK to close the Macromedia Captivate Importer dialog box. A second dialog box will appear if your Macromedia Captivate project has animations on any slides.
Figure 13. The Macromedia Captivate Importer dialog box if your Macromedia Captivate project has animations on any slides
Slides 1 and 11 have animations on them. Macromedia Captivate exports the animations as individual Flash SWF files and then loads them dynamically at run-time.
Note: You must have any animation slides that Macromedia Captivate generates included in the root directory of your published Flash piece for them to play correctly at runtime. I have included these SWF files in the ZIP file in the Requirements section of this article.
Congratulations! You have just imported your first Macromedia Captivate project into Flash MX 2004. That was pretty easy, wasn't it?
In the next section, you'll learn how the Macromedia Captivate elements are imported into Flash.