flashgeek Macromedia Flash tutorials and Microsoft Powerpoint tutorials Microsoft Powerpoint and Macromedia Flash tutorials Discuss your questions about Macromedia Flash, Microsoft Powerpoint, or other topics on the Flash board Macromedia Flash books to keep your skills up-to-date Links to Macromedia Flash resources and Microsoft Powerpoint resources Inspirational Flash sites About flashgeek and Rick Turoczy Copyright 1998-2004, Rick Turoczy
 

 

Tutorial: Rewinding Flash in Powerpoint 2000 and Powerpoint XP (Step 4)

Once your cursor is in the appropriate spot, cut and paste (or type) the following code into the window:

Sub OnSlideShowPageChange()
' Copyright (c) 2001 Rick Turoczy
' Rewinding code for
' Powerpoint 2000 and Powerpoint XP
' presentations with Flash movies
' http://www.flashgeek.com/
' This code is free for use and editing as needed.

Dim swf As ShockwaveFlash
Dim FrameNum As Long

' Define the slide and the Flash object to whom you'd like to speak
Set swf = Slide1.ShockwaveFlash1

' Tell it to stop playing.
swf.Playing = False

' Tell it to return to the first frame (swf.Rewind)
swf.GotoFrame (1)

' Tell it to start playing again
swf.Play

End Sub

Congratulations! You've just created a macro. Now, let's hook that puppy on to something so that it can do some work for you.

Note: If you have a number of embedded movies, please see this additional information.

Previous | Next
<1...2...3...4...5>

 

 

 

 

Search for additional information on
Macromedia Flash and
Microsoft Powerpoint
Google