Microsoft Office Forums

Go Back   Microsoft Office Forums > Microsoft Office > PowerPoint

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 05-30-2013, 08:17 AM
dedine dedine is offline Windows Vista Office 2007
Novice
 
Join Date: Jan 2013
Posts: 10
dedine is on a distinguished road
Default Play Shockwave on a double click


Hi,
I inserted a Shockwave file in my PPT document using the Developper Controls. I don't want to SWF to play automaticaly so I set the Properties / Movie to "false".
Now to play movie I must right click and choose Play.

I would like to know if it is possible to play the SWF by double clicking it? (instead of right click)

Thanks
Reply With Quote
  #2  
Old 05-30-2013, 10:29 AM
JohnWilson JohnWilson is offline Windows 7 64bit Office 2010 32bit
Programmer
 
Join Date: Nov 2008
Location: UK
Posts: 1,601
JohnWilson will become famous soon enough
Default

I think you can only do this with code. Assuming the name used is the default try having a button action run this:

Code:
Sub playme()
Dim osld As Slide
Set osld = SlideShowWindows(1).View.Slide
osld.Shapes("ShockwaveFlash1").OLEFormat.Object.Playing = True
End Sub
__________________
Microsoft PowerPoint MVP
Free Advanced PowerPoint Tips and Tutorials
Reply With Quote
  #3  
Old 05-31-2013, 08:55 AM
dedine dedine is offline Windows Vista Office 2007
Novice
 
Join Date: Jan 2013
Posts: 10
dedine is on a distinguished road
Default

Quote:
Originally Posted by JohnWilson View Post
I think you can only do this with code. Assuming the name used is the default try having a button action run this:

Code:
Sub playme()
Dim osld As Slide
Set osld = SlideShowWindows(1).View.Slide
osld.Shapes("ShockwaveFlash1").OLEFormat.Object.Playing = True
End Sub

I assigned the code to a Command Button to play the SWF. When I tested it, nothing happened.
Here there anything else I should do?

Thanks a lot for you help
Reply With Quote
  #4  
Old 06-01-2013, 07:27 AM
JohnWilson JohnWilson is offline Windows 7 64bit Office 2010 32bit
Programmer
 
Join Date: Nov 2008
Location: UK
Posts: 1,601
JohnWilson will become famous soon enough
Default

It doesn't need to be on a command button, any shape or button will work if you give it an action of run Macro.

Are you testing in slide show mode?
Is the name of the flash object "ShockwaveFlash1"?

Maybe post the slide online somewhere.
__________________
Microsoft PowerPoint MVP
Free Advanced PowerPoint Tips and Tutorials
Reply With Quote
  #5  
Old 06-03-2013, 08:26 AM
dedine dedine is offline Windows Vista Office 2007
Novice
 
Join Date: Jan 2013
Posts: 10
dedine is on a distinguished road
Default

Hi,
Yes, I did test it in slide show mode.
And the name of the flash object is "ShockwaveFlash1".
It still doesn't work.
I have attached a PPTX with a SWF inserted and the code added.

Thank you so much for your help.
Attached Files
File Type: pptx test_anim.pptx (39.9 KB, 1 views)
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Shockwave object not working Steveedge PowerPoint 0 09-16-2010 05:37 AM
Mouse double click problem in part protected sheets rene01 Excel 0 08-25-2010 07:33 AM
MS Office 2007 / WinXP / Network Files / CANNOT DOUBLE CLICK TO OPEN bjwtech Office 0 08-02-2010 07:41 PM
Outlook .oft template - double-click creates new message but Robarooney Outlook 1 08-05-2009 11:10 AM
Cannot Double Click on Microsoft Word Document weeleong87 Word 0 07-19-2009 05:54 AM


All times are GMT -7. The time now is 08:59 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
MSOfficeForums.com is not affiliated with Microsoft