Wednesday, August 26, 2009

Using ShareThis in Flex-Flash

Wondering when ShareThis would actually provide a .swf file to be loaded in the fash file in stead of calling a JavaScript function to open the ShareThispop in the new window.
First of all we need to go to publisher section and customize your widget, you will get a javascript code by registering your email address. Here is javascript code what i got :-

script type="text/javascript" src="">

private function shareThis():void
var url:String = "";
var title:String = "VARUN-RATHORE";"ShareThis", url, title);

Using a javascript code in the html file for opening the pop window
function ShareThis(url, title)
url = window.location;
var s = SHARETHIS.addEntry({
url: url,
title: title
}, {button:false,popup:true});
return false;


Varun Rathore

1 comment:

senthilkumar said...

Hi VRathore's,

i am trying to integrate sharethis in flash,.
i follow the procedures what u mention in Using ShareThis in Flex-Flash,the problem is that the posting message title not showing waht i return from flash,it only shows relative path

About Me