How to assign FlashVars to embedded SWF in Powerpoint so they will stay when the presentation is re-opened

Posted on 2008-11-01
Last Modified: 2013-11-10
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.
Question by:lsdillard
  • 5
  • 3
LVL 21

Expert Comment

ID: 22859920
You're going to have a problem with embedded Flash with PowerPoint 2007:

Is it also happening in PPT 2003?  And did you embed the original Flash using Xcelsius or did you export it to a Flash and then embed it manually?

Author Comment

ID: 22863099
This is useful information, but it seems inaccurate.  I have 2 versions of the swf at my disposal.  One takes a flash var and one doesn't.  When I embed the swf without the flash vars and share it with others, it plays fine.  I am saving it as a ppt file not a pptx.  But I would disagree with that post in the first place, as I can also share it as a pptx and have it work (and I can unzip the pptx file and see that it did get embedded into the zip file).
Unfortunately, I don't have PPT 2003, so I'll try to get a copy and see if that works ok.  I am embedding it manually, as the machine that has Xcelsius does not have PPT installed (it is an XP virtual machine running on my vista box).  Xcelsius does not support embedding a file in ppt and setting the flashvar, but it is worth seeing if it looks any different when it is embedded by Xcelsius, so I'll give that a shot.  
But, I don't think this answers the question, since I am clearly able to embed the SWF and have it play for others; the problem is not embedding the file--it is passing the flash vars into the embedded file.

Author Comment

ID: 22877094
I tried embedding the swf in Powerpoint 2003 and I had the same issue.  The flashvar setting seems to only work during the session in which you add the declaration.  Once you close the file and re-open it, the flashvars are lost.
LVL 21

Expert Comment

ID: 22945865
Sorry for the delay in responding.  Been house hunting in Charlotte for the last 2 weeks.
Try Shaym's answer:
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline


Author Comment

ID: 22947301
While this might work, it isn't what I need to do.  Again, there may simply be no solution to this.  Per my problem description: "I want to avoid using VBA in the project, and add-ins are not an option."
I realize that VBA or an add-in can do this, but they would introduce a significant support risk for what we are trying to achieve.  Also, PowerPoint and VBA got very difficult with 2007, so that example is not as easy as it appears, since there is no event that gets fired from PowerPoint the way it did in 2003 or before.  
I appreciate the input, but I am still hoping for an answer that doesn't involve VBA, add-ins, or other workarounds like that.
LVL 21

Accepted Solution

GlennaShaw earned 500 total points
ID: 22949554
I do not believe you can do this just with the control properties.  I think you have to use code.
BTW, the Active X Control for WMV files also has an issue with not all properties working.

I'm unsure if this is an issue with PowerPoint or the Shockwave Flash Active X Control.
To send feedback to Microsoft:

Author Comment

ID: 22980869
I think I agree with GlennaShaw that this simply isn't possible.  In case this helps anyone else, here is where I am:
Built a Flex wrapper to host the Xcelsius generated swf file
Moved the logic that was in Xcelsius and that required the flashvar to be in the Flex wrapper
Automated the build of the Flex swf using Ant
Created process to call Ant to build the swf before proceeding on to the PowerPoint automation that is done via a c# library.

It's very nasty, but it seems to be working so far.

Author Closing Comment

ID: 31517696
Thanks - I kinda hate to award points for letting me know that what I thought was the answer was, in fact, the answer, but I appreciate your taking the time to back it up with details...

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction In all recent versions of PowerPoint it is possible to trigger animations. This means the animation takes place when a certain shape is clicked. This allows you to run animation “on demand” and outwith the normal sequence of mouse cl…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
Viewers will learn the basics of making and using Impulse Kits in Ableton Live. Load new Impulse into an empty MIDI track: Fill the 8 empty sample slots with drum samples: Adjust parameters to tailor each sound as desired: Proceed to create be…
Viewers will learn the basics of creating custom device Racks in Ableton Live. Place instrument(s) and effects onto a track, and select them all by holding the Shift key and clicking on the device title bars: Group them by typing Command-G (Ctrl-G…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now