Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 28th, 2012  |  syntax: None  |  size: 0.61 KB  |  views: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.         private function signalCrossDomainParent(data:Object):void
  2.         {
  3.                 var code:String = '';
  4.                 code += 'var parentProxy = document.getElementById("SvNetworkProxy");';
  5.                 code += 'var splitUrl = parentProxy.src.split("#");';
  6.                 code += 'if (splitUrl.length > 1) parentProxy.src = splitUrl.slice(0, -1).join("#") + "#' + data.toString() + '";';
  7.                 code += 'else parentProxy.src += "#' + data.toString() + '";';
  8.  
  9.                 code += 'if (parentProxy.style.width == "0px") parentProxy.style.width = "1px";';
  10.                 code += 'else parentProxy.style.width = "0px";';       
  11.                 var call:String = 'function(){ ' + code + ' }';
  12.                 ExternalInterface.call(call);
  13.         }