Parameters in flashVars

The flashVars is a method of passing variables to a SWF file. FlashVars is a name/value collection seperated using ampersands (&):

<embed type="application/x-shockwave-flash"

The example above is a fictive example embedding a videplayer. The videoplayer takes 2 parameters, the video name and a boolean telling the player to autostart.

But what if the video name is not a physical file, but an URL with parameters, for example This URL contains an ampersand, which conflicts with the flashVars, as flashVars uses ampersand to seperate its own parameters. This would be invalid:


You need to replace your &’s in the URL with %26. This is valid:


About briancaos

Developer at Pentia A/S since 2003. Have developed Web Applications using Sitecore Since Sitecore 4.1.
This entry was posted in c#, General .NET and tagged , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.