home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Acao / the_beard.swf / scripts / DefineSprite_169 / frame_1 / DoAction.as
Encoding:
Text File  |  2008-09-23  |  1.1 KB  |  34 lines

  1. function startAd(ngad_url)
  2. {
  3.    System.security.allowDomain("70.87.128.99");
  4.    System.security.allowInsecureDomain("70.87.128.99");
  5.    System.security.allowDomain("ads.shizmoo.com");
  6.    System.security.allowInsecureDomain("ads.shizmoo.com");
  7.    System.security.allowDomain("www.cpmstar.com");
  8.    System.security.allowInsecureDomain("www.cpmstar.com");
  9.    System.security.allowDomain("server.cpmstar.com");
  10.    System.security.allowInsecureDomain("server.cpmstar.com");
  11.    var ngads_redirect = new XML();
  12.    ngads_redirect.ignoreWhite = true;
  13.    ngads_redirect.onLoad = function(success)
  14.    {
  15.       trace("[NEWGROUNDS FLASH ADS] :: You may get a \'Security Sandbox Violation\' ... this is normal, do not freak out!");
  16.       if(success)
  17.       {
  18.          ng_ad.loadMovie(ngads_redirect.toString(),"GET");
  19.       }
  20.    };
  21.    var _loc1_ = 731;
  22.    var _loc2_ = 3;
  23.    ngads_redirect.load(ngad_url);
  24. }
  25. if(NewgroundsAPI.getAdURL())
  26. {
  27.    startAd(NewgroundsAPI.getAdURL());
  28. }
  29. NewgroundsAPI.onAdsApproved = function()
  30. {
  31.    startAd(NewgroundsAPI.getAdURL());
  32. };
  33. stop();
  34.