Hi

I have been able to make a flash widget playing icecast streams and
the same can be found at http://blog.muziboo.com on the sidebar

However, I want to use www.gigya.com to help promote my widget. Gigya
allows users to embed your widget on their blog or social networking
profiles in a few clicks.

However gigya either can be invoked using action script code or they
have a wrapper functionality (which I am currently using). The problem
with the wrapper functionality is that it links back to gigya and not
to my website. So google does not count it as a link back

Is there a way, I can call the actionscript code that gigya provides
in openlaszlo. Even a crude way would do. Here is the action script
code for reference. I would really appreciate any pointers.

//--- This code configures and loads Wildfire ---

//Set up security to allow your widget to interact with Wildfire
Security.allowDomain("cdn.gigya.com");
Security.allowInsecureDomain("cdn.gigya.com");

//This code creates an empty movie clip to host the wildfire interface
var mcWF:MovieClip = new MovieClip();
addChild(mcWF).name='mcWF';

//Please position Wildfire in your Flash
mcWF.x=15;  mcWF.y=42;

// This code creates a configuration object through which Wildfire
will communicate with the host swf
  var ModuleID:String='PostModule1';        // pass the module id to wildfire
  // Build configuration object
  var cfg:Object = { };     // initialize the configuration object

//This code assigns the configurations you set in our site to the
Wildfire configuration object
cfg['width']='400';
cfg['height']='300';
cfg['partner']='185391';
cfg['UIConfig']='<config><display showEmail="true" showBookmark="true"
/></config>';

// Please set up the content to be posted
cfg['defaultContent']= ''; // <-- YOUR EMBED CODE GOES HERE

// You can set different content for each network
//cfg['myspaceContent']='';
//cfg['friendsterContent']='';
//cfg['facebookContent']='';
//cfg['taggedContent']='';
//cfg['bloggerContent']='';
//cfg['hi5Content']='';
//cfg['freewebsContent']='';
//cfg['xangaContent']='';
//cfg['livejurnalContent']='';
//cfg['blackplanetContent']='';
//cfg['piczoContent']='';
//cfg['wordpressContent']='';
//cfg['typepadContent']='';

//cfg['bulletinSubject']='';  // The subject for bulleting messages of
your content
//cfg['bulletinHTML']='';   // code for the bulletin, if it is
different than the defaultContent

//cfg['facebookURL']=''; // If you have your own facebook application
you can set it's URL here

// set up an event handler for the postProfile event, this is called
when the used completed the proccess of posting to his profile.
cfg['onPostProfile']=function(eventObj:Object):void{
 trace('event fired eventObj.type='+eventObj.type + '
eventObj.network='+eventObj.network +'
eventObj.partnerData='+eventObj.partnerData);
}

// set up an event handler for the onLoad event, this is called when
the Wildfire UI is loaded.
cfg['onLoad']=function(eventObj:Object):void{
 trace('event fired eventObj.type='+eventObj.type +
'eventObj.ModuleID='+eventObj.ModuleID);
}

// This code calls up wildfire
  var ldr:Loader = new Loader();
  var url:String =
'http://cdn.gigya.com/WildFire/swf/wildfireInAS3.swf?ModuleID=' +
ModuleID;
  var urlReq:URLRequest = new URLRequest(url);
  mcWF[ModuleID] = cfg;
  ldr.load(urlReq);
  mcWF.addChild(ldr);

Regards

-- 
Prateek Dayal

www.Muziboo.com
get an audience

Reply via email to