How to assign FlashVars to embedded SWF in Powerpoint so they will stay when the presentation is re-opened
Posted on 2008-11-01
I am able to embed a swf file into PowerPoint easily. I can set the FlashVars either by using the Properties window and setting them directly or by appending them to the embedded movie path, such as c:\swfs\TestSwf.swf?var=12345. However, whenever I re-open the presentation, the variables are getting lost. I have embedded the swf manually, and using VBA, and using c#, but they all result in the same thing. The presentation works fine the first time I load it, but the flash variables are getting lost when I close it and re-open it.
I don't know if it matters, but the swf was generated using Xcelsius 2008, which is supposed to load the flash var on load. When I embed the swf in an html page, it works fine every time. It's just the Powerpoint container that won't cooperate.
Many, many thanks to whoever can solve this one. I want to avoid using VBA in the project, and add-ins are not an option. The flash var that is being passed in is a license key that is used within the swf to determine if the user's license has expired. Users purchase the presentation which expires at a future date, and the presentation is created dynamically using c# and embedding the movie with the flash var. But even the manual creation is failing when I re-open the file.