A Flash Developer Resource Site

Results 1 to 1 of 1

Thread: [AS2] Banner Ads and Crossdomain

  1. #1
    Junior Member
    Join Date
    Jun 2007
    Posts
    16

    [AS2] Banner Ads and Crossdomain

    Hi everyone,
    I have banner ads that have their content hosted on some new webspace we just purchased.

    What I'm trying to do is make a small 'holder' swf to send to the online media outlets, and then pull in the entire swf 'ad' that I made. That way I don't need to get into loading individual image files etc.

    I'm testing it now and it's obviously loading something:
    http://www.primaryplanet.com/avalon/...600holder.html
    but when I run the ad locally on my system, with the 'holder' pulling in the 'ad' it runs the entire ad no problem.

    What do I need to look at in AS2 (running on Flash CS3) to make the ad actually play when it's loaded?

    My 'holder' actionscript is this:
    Code:
    var mclListener:Object = new Object();
    mclListener.onLoadInit = function(holder:MovieClip) {
        trace("movie loaded");
    	play();
    }
    var avalon_mcl:MovieClipLoader = new MovieClipLoader();
    avalon_mcl.addListener(mclListener);
    avalon_mcl.loadClip("http://64.13.226.161/ADS/Fortgreene/120x600/fortgreene_120x600_d.swf", holder);
    You can see the entire ad here:
    http://64.13.226.161/ADS/Fortgreene/...120x600_d.html

    Thanks everyone

    ===RESOLVED===

    Apparently all I needed to add to the 'ad' was:
    Code:
    this._lockroot = true;
    Last edited by 540steve; 08-19-2009 at 10:38 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center