- Write down the location of the SWF file you want to use.
- Choose View>Toolbars>Control Toolbox.
- Click the Hammer button (More Controls).
- Choose Shockwave Flash Object from the menu.
- Drag a box across the screen to get the desired size and location.
- Right click the box and choose Properties.
- In the Properties window, click the top line, Custom. Then click the ellipsis at the right.
- In the Property Pages dialog box, type the location of the SWF file that you wrote down earlier. Use the full path.
- Set the other parameters, if you wish, for example, Quality: best; Scale: show all; Window: window.
- Click Embed movie if you want to make sure it’s always included with the PP presentation.
- Click OK.
- Close the Properties window using its close box.
- Choose Slide Show view to see the movie. If your movie didn’t appear in Normal view, it will appear when you return to Normal view after running the slide show.
Related Tips:
Match the movie background to the background of your PowerPoint template/presentation.
If the Flash movie doesn’t play, open the Properties window again and look at the Playing property. If it says False, click Playing, then the down arrow and change the Playing property to True.
Note: PowerPoint can’t recognize any mouse clicks on top of Flash object, so don’t make the Flash object the full size of the slide so you have some area to click to the next slide.
There is a well-known bug that automatically changes the Playing property to False if the Flash movie is not set to loop. Here are two solutions to this problem:
Save the presentation as a PowerPoint Show
This is the simplest method.
- Reset the Playing property of the SWF file(s) to True. To do this, select the Shockwave Flash object, right click it and choose Properties. On the Playing row, click so you see a drop-down arrow, then click the arrow and choose True.
- Save the presentation as a Show. First save your presentation, then choose File > Save As. From the Save as Type drop-down list, choose PowerPoint Show (*.pps). Keep the same file name and click Save.
From now on you can play the presentation by opening the
.pps file and the Flash movie will always play.
Create some Visual Basic for Applications (VBA) code to control the Playing property
This method is more complex but lets you present from the original presentation file. Use this method if others will modify the PowerPoint presentation.
Follow the same steps to insert the Flash movie. After step 10, uncheck the Loop checkbox. Now follow these steps to create the VBA code:
- On the Control Toolbox toolbar, click the View Code button. The Microsoft Visual Basic window opens.
- Choose Insert > Module.
- In the main window, enter the following code, where the number in the 3rd line after the word "Slides" is the number of the slide containing the Flash movie. (Thanks to Christopher Contois at www.2cinteractive.com for reminding me of this point. Don't forget to customize the slide number!)
- That's it! Return to your presentation and play it through in slide show view to test it.
Sub OnSlideShowPageChange()
Dim obj As ShockwaveFlash
Set obj = _ ActivePresentation.Slides(2).Shapes("ShockwaveFlash1").OLEFormat.Object
obj.Playing = True
obj.Rewind
obj.Play
End Sub
Note: If you put lines 3 and 4 on the same line, omit the underscore.)
Note: Be careful about the 4th line of code because it hard codes the slide number (2 in the example). Therefore, if you move that slide or add or delete slides before it, you need to remember to change the slide number.
As you can see, the code simply sets the Playing property to true, rewinds the movie, and plays it.
Note: if you want more than one Flash movie in a presentation, you need to give additional movies unique shape names in the 4th line of the code. The 2nd one could be "ShockwaveFlash2" for example. Then, in the Properties window, give the object the same name in the Name row (which is just under the Custom row).
Next, go to the slide containing the Flash movie. From the Drawing toolbar, insert a blank Action Button. In the Action Settings dialog box that opens, choose the Run Macro option, choose the macro from the drop-down list (“OnSlideShowPageChange” in the previous example), and click OK. With the action button still selected, type some text on the button, such as “Play Movie” to label the button. Now, whenever you need to play the movie in slide show view, you can simply click the button.
Your macro security settings may stop the VBA code from running. Make sure it isn't set to high. (Tools > Options > Security > Macro Security.) In addition, coding in the Flash file itself may stop the movie from playing.
This post has been modified, but was originally taken from
http://www.ellenfinkelstein.com/