Menu:

Links:

Use these links to navigate the FAQ:

Next:
Use ASP (or PHP or XML or ....) files as templates

Previous:
Converting presentations with movies / videos

All about PPT2HTML index page

Updated
7/25/2016

Microsoft MVP Logo

FLASH! PPT2HTML does it!

You can embed Flash movies in your PowerPoint presentations by using these instructions from Flashgeek.com.

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.

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:

<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.

[Previous] [Home] [Next]