Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-30-2013, 08:17 AM
dedine dedine is offline Play Shockwave on a double click Windows Vista Play Shockwave on a double click Office 2007
Novice
Play Shockwave on a double click
 
Join Date: Jan 2013
Posts: 11
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 Play Shockwave on a double click Windows 7 64bit Play Shockwave on a double click Office 2010 32bit
Programmer
 
Join Date: Nov 2008
Location: UK
Posts: 1,912
JohnWilson has a spectacular aura aboutJohnWilson has a spectacular aura about
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 2007-2023
Free Advanced PowerPoint Tips and Tutorials
Reply With Quote
  #3  
Old 05-31-2013, 08:55 AM
dedine dedine is offline Play Shockwave on a double click Windows Vista Play Shockwave on a double click Office 2007
Novice
Play Shockwave on a double click
 
Join Date: Jan 2013
Posts: 11
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 Play Shockwave on a double click Windows 7 64bit Play Shockwave on a double click Office 2010 32bit
Programmer
 
Join Date: Nov 2008
Location: UK
Posts: 1,912
JohnWilson has a spectacular aura aboutJohnWilson has a spectacular aura about
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 2007-2023
Free Advanced PowerPoint Tips and Tutorials
Reply With Quote
  #5  
Old 06-03-2013, 08:26 AM
dedine dedine is offline Play Shockwave on a double click Windows Vista Play Shockwave on a double click Office 2007
Novice
Play Shockwave on a double click
 
Join Date: Jan 2013
Posts: 11
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, 7 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
Play Shockwave on a double click 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

Other Forums: Access Forums

All times are GMT -7. The time now is 04:22 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft