It has been often mentioned that users would like the ability to re-use their previously perfected widgets using different feeds. With the new mediaURL parameter, our widget team has made this possible!

When embedding a widget, you'll see that our <object> code has several parameters, containing much needed information. The "FlashVars" parameter is the one we will be directly working with in this tutorial. In the code below you will see the two instances that relate to the FlashVars param, and the embedded widget that it displays.

<p align="center">
    </p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" id="kickWidget_35479_3043" width="0" height="0" align="middle"><param name="id" value="kickWidget_35479_3043" /><param name="width" value="0" /><param name="height" value="0" /><param name="align" value="middle" /><param name="allowfullscreen" value="true" /><param name="flashvars" value="affiliateSiteId=35479&widgetId=3043&width=300&height=250&cVars=n&CS_PID=4888c32433a10b4f" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="menu" value="false" /><param name="allownetworking" value="all" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://serve.a-widget.com/kickapps/service/getWidgetSwf.kickAction" /><embed type="application/x-shockwave-flash" id="kickWidget_35479_3043" width="300" height="250" align="middle" allowfullscreen="true" flashvars="affiliateSiteId=35479&widgetId=3043&width=300&height=250&cVars=n&CS_PID=4888c32433a10b4f" quality="high" wmode="transparent" menu="false" allownetworking="all" allowscriptaccess="always" src="http://serve.a-widget.com/kickapps/service/getWidgetSwf.kickAction"></embed></object>
        <p> </p>
 

 

 

 

When adding your own mediaURL override you should escape the full HTTP URL. To do this, if you have FireFox handy, just type this in the address bar: javascript:escape("http://yourfeed.com"); and it will return the escaped version. Or, if you're not using FF, you can use an online site like http://www.barelyfitz.com/projects/encoder/.

After escaping the feed URL, you're ready to insert into the embed code. Locate the FlashVars param (denoted by the red text above) and append to that string:

  <p>&mediaURL=http%3A//www.YOURSITE.com/rssfeeds/YOURFEED.asp</p>
 

Replace the URL with your desired feed and it will overwrite the pre-existing media with that feed.

Remember to append that code in both places in the object and embed code.

 

Here is an example of the finished project:

<p> </p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" id="kickWidget_35479_3043" width="300" height="250" align="middle"><param name="id" value="kickWidget_35479_3043" /><param name="width" value="300" /><param name="height" value="250" /><param name="align" value="middle" /><param name="allowfullscreen" value="true" /><param name="flashvars" value="affiliateSiteId=35479&widgetId=3043&width=300&height=250&cVars=n&CS_PID=4888c32433a10b4f&mediaURL=http%3A//community.kickdeveloper.com/kickapps/service/searchEverythingAsRss.kickAction%3Fas%3D764%26mediaType%3Dvideo%26sortType%3Drecent%26tab%3Dyes%26includeVideo%3Don%26quantity%3D25" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="menu" value="false" /><param name="allownetworking" value="all" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://serve.a-widget.com/kickapps/service/getWidgetSwf.kickAction" /><embed type="application/x-shockwave-flash" id="kickWidget_35479_3043" width="300" height="250" align="middle" allowfullscreen="true" flashvars="affiliateSiteId=35479&widgetId=3043&width=300&height=250&cVars=n&CS_PID=4888c32433a10b4f&mediaURL=http%3A//community.kickdeveloper.com/kickapps/service/searchEverythingAsRss.kickAction%3Fas%3D764%26mediaType%3Dvideo%26sortType%3Drecent%26tab%3Dyes%26includeVideo%3Don%26quantity%3D25" quality="high" wmode="transparent" menu="false" allownetworking="all" allowscriptaccess="always" src="http://serve.a-widget.com/kickapps/service/getWidgetSwf.kickAction"></embed></object>
<p> </p>