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

ID: Q250832


The information in this article applies to:
  • Microsoft PowerPoint 2000


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:

Q250974 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 Solution Provider or the Microsoft fee-based consulting line at (800) 936-5200. For more information about Microsoft Certified Solution Providers, please see the following page on the World Wide Web:

http://www.microsoft.com/mcsp/
For more information about the support options available from Microsoft, please see the following page on the World Wide Web:

http://www.microsoft.com/support/supportnet/overview/overview.asp

NOTE: The following macro examples only work from within the PowerPoint application. Visual Basic for Applications macros are not supported by the Microsoft PowerPoint Viewer. For additional information, please see the following article in the Microsoft Knowledge Base:
Q230746 PPT: Viewer: Presentation Macros Don't Run Within the Viewer
Create the following code samples and then link them to action buttons.

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. From 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 Setup 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:

Q222703 PPT2000: How To Manipulate ActiveX Controls Through VBA Macros

Additional query words: vba

Keywords : kbdta kbdtacode OffVBA KbVBA
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbhowto


Last Reviewed: January 18, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.