Microsoft KB Archive/250832

From BetaArchive Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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:

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

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.

  1. To create the action button, follow these steps:
    1. On the Drawing toolbar, click AutoShapes, point to Action Buttons, and then click the Action Button: Custom button.
    2. Draw the action button on the slide.
  2. In the Action Settings dialog box, click the Mouse Click tab.
  3. Click Run Macro.

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


REFERENCES

For more information about running a macro during a slide show, click Microsoft PowerPoint Help on the Help menu, type set up a macro to run during a slide show in the Office Assistant or the Answer Wizard, and then click Search to view the topic.

For additional information about using ActiveX Controls, click the article number below to view the article in the Microsoft Knowledge Base:

222703 PPT2000: How To Manipulate ActiveX Controls Through VBA Macros



Additional query words: vba

Keywords: kbdtacode kbhowto KB250832
Technology: kbPowerPt2000 kbPowerPt2000Search kbPowerPtSearch kbVBASearch kbZNotKeyword2 kbZNotKeyword3 kbZNotKeyword6