Return to Tutorials

Embedding Macromedia Flash into CHMs.

  1. Finish the Flash movie and use the "Publish" command in Flash 4.0 which will create an HTML file and all the associated files that are necessary to support it (sometimes this is just an .htm file and the .swf file). 

  2. You can then use the "Import" command in RoboHTML.  Import the .htm file as usual.

  3. Then comes the "undocumented" part that makes it work.  You have to add the .swf file to "Baggage" in RoboHTML. Just right click on Baggage on the Project tab and point it to your .swf file. Once you have this done, then you can edit as you like in the WYSIWYG editor.

  4. This "embeds" the movie which will play inside the TOPIC pane.

  5. To run it in its own separate window, you can run in "Player" mode.  You can do this by inserting a "Shortcut" command in RoboHTML. 

  6. Of course, all of this assumes the user has the Flash player/plugins installed on their machine.  You might want to include a link to the Macromedia Flash Player site in case folks need to download and install the player.

I have attached a sample RoboHTML project that will let you look under the hood at how this is done. 

To test it, create a folder containing FLASH.CHM and SKYWRITER2.SWF.  Double-click on FLASH.CHM and see the movie play embedded in the first topic. Then go to the second topic and click on the button to see the movie in the Flash Player. Finally, take SKYWRITER2.SWF out of the folder and notice that the embedded movie still plays, but not the one triggered by the shortcut button control (which needs to locate the SWF externally).

Shockwave Director Movies (.DCR)

Life is not fair when it comes to this path limitation <g>. The baggage trick will work if you're using Shockwave FLASH (.swf) but not a Shocked Director Movie (.dcr). The .dcr will still need an absolute path which severely limits its usefulness.