Microsoft KB Archive/250832

= PPT2000: How to Control a Shockwave Flash Object on a Slide =

PSS ID Number: 250832

Article Last Modified on 5/13/2002

-

The information in this article applies to:


 * Microsoft PowerPoint 2000
 * Microsoft Visual Basic for Applications

-



This article was previously published under Q250832



For a Microsoft PowerPoint 2002 version of this article, see 291876.



SUMMARY
This article describes how to control a Shockwave Flash Control on a slide in your presentation. For more information about how to insert the control into your slide, click the article number below to view the article in the Microsoft Knowledge Base:

250974 PPT2000: How to Add a Shockwave Flash Control to Your Slide



MORE INFORMATION
Microsoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact a Microsoft Certified Partner or the Microsoft fee-based consulting line at (800) 936-5200. For more information about Microsoft Certified Partners, please visit the following Microsoft Web site:

http://www.microsoft.com/partner/referral/

For more information about the support options that are available and about how to contact Microsoft, visit the following Microsoft Web site:

http://support.microsoft.com/default.aspx?scid=fh;EN-US;CNTACTMS

NOTE: The following macro examples work only in PowerPoint. Visual Basic for Applications macros are not supported by the Microsoft PowerPoint Viewer. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:NOTE: Neither the PowerPoint Viewer nor the Macintosh versions of PowerPoint support the use of ActiveX controls. Only Microsoft PowerPoint 97 and later can use ActiveX controls.

To create the code samples, follow these steps:
 * 1) On the Tools menu, point to Macro, and then click Visual Basic Editor.
 * 2) On the Insert menu, click Module.
 * 3) Type the following code samples in the module.

Start
The following subroutine starts the Flash animation: Sub PlayShock Slide#.ShockwaveFlash#.Play End Sub NOTE: Slide# is the slide where the Shockwave Flash control is located. ShockwaveFlash# is the name of the Shockwave Flash Control on the slide; replace this with the actual name of the control.

Stop
The following subroutine stops the animation: Sub StopShock Slide#.ShockwaveFlash#.StopPlay End Sub

Rewind
The following subroutine rewinds the animation back to the beginning: Sub RewindShock Slide#.ShockwaveFlash#.Rewind End Sub

Adding and Configuring an Action Button
Use the following steps to link the code to the action buttons of your choice.  To create the action button, follow these steps:  On the Drawing toolbar, click AutoShapes, point to Action Buttons, and then click the Action Button: Custom button. Draw the action button on the slide.  In the Action Settings dialog box, click the Mouse Click tab. Click Run Macro.

NOTE: You must first create the above macros to have this option available.</li> In the list of macros, select the name of the macro you want to attach to the button.</li> Click OK.</li></ol>

<div class="references_section">