Need help with Powerpoint to Flash communication via VBA

M

MSN-Powerpoint

I'm a newbie to VBA. I have tried to understand the coding examples and such
that I find with the topic of having flash and powerpoint interact with each
other. But I have not gotten any closer to my goal.

I have powerpoint file with embedded swf file. The swf file has animation
control buttons which allows the instructor to play, pause and stop the
animation when they are ready. The problem arrises when they click on the
embedded flash file it makes the focus on said embedded flash on the slide.
Then when the instructor wants to move to the next slide via arrow buttons
with action commands, he/she has to click twice. Once to return the focus
back to the powerpoint and then another to actually have the button function
properly.

My goal is to program either flash/powerpoint to automatically return the
focus back to powerpoint after the intructor clicks any of the animation
navigation controls within the swf.

Software used with this project:
Powerpoint 2003 . Flash MX
Bundled with SecurePack

Any and all help with this problem I am having would be greatly appreciated.

Pulling hair out... not much left now,
M. Pride
Graphic Designer
Effective Traingin Inc. . www.etinews.com
 
S

Shyam Pillai

You could try setting up an FSCommand event to fire in the swf each time any
of the buttons are clicked and set the focus back to the PowerPoint window
in the event that is fired.
 
J

Justin

How are you embedding the swf file into PowerPoint? Is the same
version of PowerPoint being used to run the file as the version that
was used to embed the Flash File? I've found that using an earlier
version of PowerPoint will often corrupt the the Flash file.

J
 
M

Matthew P.

Shyam, thank you for the quick reply. That is what im pulling my hair out
on, is the coding of getting the results you just said. What would be the
correct VBA coding for having the focus be returned to powerpoint.

Thank you for also posting, Justin . Thank you for the info, but the
situation you brough up isn't such. I embedded the swf into the powerpoint
by inserting a Shockwave Flash Object from the Control Toolbox. I have
followed the exact steps that the experts have said to do for inserting a
flash file into a PPP. My concern is the VBA coding needed to have the focus
return to the Powerpoint presentation.

If someone could help me with that it would be much appreciated. I know from
searching all over on this newsgroup, other posts that share the same
situation would benefit from this solution solved as well.

Thanks to all who may respond.

Best regards,
M. Pride
Graphic Designer
Effective Training Inc. . www.etinews.com

=============================================================
 
M

Matthew P.

I found this code, which the orginial person used ".Next" for where the
[missing code] label is. When i tested it with ".Next" it executed good but
I need to find the proper coding for setting focus back to the powerpoint.

Private Sub ShockwaveFlash1_FSCommand(ByVal command As String, ByVal
args As String)
With SlideShowWindows(1).View
[[[ missing code area]]]
End With
End Sub

I am sure this is only one way to do what I want. If anyone else has
possible coding options, I'm totally open to hear them. Thanks for any and
all help with this matter.

Best regards,
M. Pride
Graphic Designer
Effective Traingin Inc. || www.etinews.com

===========================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top