FLASH! PPT2HTML does it. Flash, that is.

PPT2HTML will convert the Flash movies embedded in a Flash control on your PowerPoint slides to working Flash movies in HTML. Here's how:

First, modify your PPTools.INI file
Open the PPTools.INI file in your PPTools folder (use Notepad or any plain text editor)
Locate the [PPT2HTML] section and add this line:

FlashTemplate=FLASH.TXT

FLASH.TXT is the name of the file you'll store some special HTML code in. We'll get to that in a few seconds. You can use any file name you like in place of FLASH.TXT here.

Be sure not to add any extra blank lines. Save the file, then close it.

Create FLASH.TXT
Copy the following into a new Notepad document and save it to your PPTools folder as FLASH.TXT


<div id=:Flash.Name: 
	style="position: absolute; 
	background-color: red;
	left: :Flash.Left:px; 
	top: :Flash.Top:px; 
	width: :Flash.Width:px
	height: :Flash.Height:px;" >

	<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width=":Flash.Width:" height=":Flash.Height:">
	  <param name="movie" value=":Flash.Movie:">
	  <param name=quality value=high>
	  <param name=scale value=ExactFit>
	  <embed src=":Flash.Movie:" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width=":Flash.Width:" height=":Flash.Height:"></embed>
	</object>
</div>

Create or modify your HTML template

Locate the line of HTML code that creates a slide image. Normally, it'll look something like:

<img src=":Slide.Image:" width=:Slide.Image.Width: border="0">

Replace it with this:


<div 
	id=DIV1 
	style="position: relative; left: 0px; top: 0px; width: :Slide.Image.Width:px; height: :Slide.Image.Height:px;">
	<IMG SRC=":Slide.Image:" WIDTH=:Slide.Image.Width: BORDER="1">
	:FLASH.CODE:
</div>

Here's a simple example of a complete template file that includes the necessary bits for Flash to work. Copy this into a Notepad file and save it as FLASH.HTM and put it in your PPTools folder. Now you can choose it from PPT2HTML's Preferences dialog box:


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<TITLE>:Prefs.PageTitle:</TITLE>
</head>
<body>
:Nav.Map:
<center>
<div 
	id=DIV1 
	style="position: relative; left: 0px; top: 0px; width: :Slide.Image.Width:px; height: :Slide.Image.Height:px;">
	<IMG SRC=":Slide.Image:" WIDTH=:Slide.Image.Width: BORDER="1">
	:FLASH.CODE:
</div>
</center>
<center>:Nav.LinksToAll:</center>
</body>
</html>

What the heck is going ON here?

What happens is this:

If PPT2HTML sees the :FLASH.CODE: placeholder in your template while converting a presentation, it looks in PPTools.INI for the FlashTemplate=FLASH.TXT entry. If it finds one there, it reads the file FLASH.TXT (or whatever other file is called for) and substitutes its contents in place of :FLASH.CODE:

But before doing the substitution, it reads the contents of the FLASH.TXT file then calculates and substitutes appropriate values for :Flash.Left: :Flash.Top: :Flash.Width: :Flash.Height: :Flash.Movie: and so on. This allows it to position the Flash movie correctly over the slide image, no matter what size you've decided to make the image.

If you understand Flash, HTML, CSS and Javascript well, you can change FLASH.TXT and the template code above. If you need access to some of the other properties of the Flash movie to do what you want, talk to us. If PowerPoint will tell us, we can probably make it pass the info along through PPT2HTML.

However, we don't claim to be JavascriptCSSHTMLFlash wizards ourselves and can't support user-modified code other than on a paid consulting basis.

Sound too, please?
By combining bits from some of our other templates, you can also pick up the sounds from your slides. Use this template instead of the one above:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>:Prefs.PageTitle:</title>
</head>
<body>

<SCRIPT LANGUAGE="JavaScript">
var MSIE=navigator.userAgent.indexOf("MSIE");
var NETS=navigator.userAgent.indexOf("Netscape");
var OPER=navigator.userAgent.indexOf("Opera");
if((MSIE>-1) || (OPER>-1)) {
document.write("<BGSOUND SRC=':Slide.FirstAnimationSound:' LOOP=0>");
} else {
document.write("<EMBED SRC=:Slide.FirstAnimationSound: AUTOSTART=TRUE>");
document.write("HIDDEN=true VOLUME=100 LOOP=FALSE>");
}
// End -->
</SCRIPT>

:Nav.Map:

<center>
<div id=DIV1 
	style="position: relative; left: 0px; top: 0px; width: :Slide.Image.Width:px; height: :Slide.Image.Height:px;">
	<IMG SRC=":Slide.Image:" WIDTH=:Slide.Image.Width: BORDER="1">
	:FLASH.CODE:
</div>
</center>
</body>
</html>

Supercharge your PPT Productivity with PPTools


Content authoring & site maintenance by

Friday - The Automatic FAQ Maker