//Set up security to allow your widget to interact with Wildfire
System.security.allowDomain("cdn.gigya.com");
System.security.allowInsecureDomain("cdn.gigya.com");
//prevent creation of multiple instances of wildfire
if (_root.Wildfire !=undefined ) {
_root.Wildfire._visible=true;
return;
}
//This code creates an empty movie clip to host the wildfire interface
var mcWF:MovieClip=_root.createEmptyMovieClip('Wildfire',_root.getNextHighestDepth());
mcWF._lockroot=true; //lock the root of the newly created movieclip
//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
mcWF['ModuleID']='PostModule1'; // passing the module id to wildfire
var cfg=_root[mcWF['ModuleID']]={}; // initializing the configuration object
//This code assigns the configurations you set in our site to the Wildfire configuration object
cfg['width']='200';
cfg['height']='250';
cfg['useFacebookMystuff']='false';
cfg['partner']='1319931';
cfg['UIConfig']='
// Please set up the content to be posted
cfg['defaultContent']= ''; // <-- YOUR EMBED CODE GOES HERE
// set up an event handler for the onClose event, this is called when the Wildfire UI is closed.
cfg['onClose']=function(eventObj){
mcWF._visible = false;
mcWF.INIT();
No comments:
Post a Comment