# Flash banner works in IE6 but not IE7 and FF2

**URL:** <https://forum.kirupa.com/t/flash-banner-works-in-ie6-but-not-ie7-and-ff2/243401>\
**Category:** flash\
**Created:** [November 6, 2007, 5:57pm UTC](https://forum.kirupa.com/t/flash-banner-works-in-ie6-but-not-ie7-and-ff2/243401 "2007-11-06T17:57:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![moleculezz](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@moleculezz](https://forum.kirupa.com/u/moleculezz)\
**Post date:** [November 6, 2007, 5:57pm UTC](https://forum.kirupa.com/t/flash-banner-works-in-ie6-but-not-ie7-and-ff2/243401/1 "2007-11-06T17:57:32Z")

</div>

Hello,

So I am trying to get this banner to work and for some reason it only works in IE6. I have only tried in IE6, IE7 and FF2.

You can check out the page at this URL:  
[page](http://home2.telebyte.nl/%7Egdarends/test.htm)

also you can have a look at the XML file that i’m using to get the info  
[XML File](http://home2.telebyte.nl/%7Egdarends/_lib/banners.xml)

This is the actionscript code I am using.

```auto

//Set amount of time to hold each image onscreen 
var inSeconds:Number = 7; 
var xmlBanners:XML = new XML(); 

xmlBanners.ignoreWhite = true; 
xmlBanners.onLoad = function(success) {     
    if (success) {
        parseXML(xmlBanners);
    } 
}; 
xmlBanners.load("_lib/banners.xml"); 
function parseXML(banners_XML) {
    var bannerNum:Number = 0;  
    var xnRoot:XMLNode = banners_XML.firstChild;
    var xnBanner:XMLNode;
    
    xnBanner = xnRoot.childNodes[bannerNum];
    myFile = xnBanner.firstChild.firstChild;
    //trace(myFile);
    myURL = xnBanner.lastChild.firstChild;
    //trace(myURL);
    
    this.onEnterFrame = function() {
        //This creates the first clip without delay
        this.createEmptyMovieClip("my_mc", this.getNextHighestDepth());
        var movLoad:MovieClipLoader = new MovieClipLoader();
        var myListener:Object = new Object();
        myListener.onLoadInit = function(thisMc:MovieClip) {
            thisMc.onRelease = function() {
                getURL(myURL);
            };
        };
        movLoad.addListener(myListener);
        movLoad.loadClip("gfx/banners/"+myFile, this.my_mc);
        delete this.onEnterFrame;
    };
    //After that, they are on a timed change
    this.getNewPic = function() {
        var maxBanners:Number = xnRoot.childNodes.length;
        if (bannerNum == maxBanners-1) {
            bannerNum = 0;
        }
        else {
            bannerNum++;
        }
        xnBanner = xnRoot.childNodes[bannerNum];
        myFile = xnBanner.firstChild.firstChild;
        myURL = xnBanner.lastChild.firstChild;
        //
        this.createEmptyMovieClip("my_mc", this.getNextHighestDepth());
        var movLoad:MovieClipLoader = new MovieClipLoader();
        var myListener:Object = new Object();
        myListener.onLoadInit = function(thisMc:MovieClip) {
            thisMc.onRelease = function() {
                getURL(myURL);
            };
        };
        movLoad.addListener(myListener);
        movLoad.loadClip("gfx/banners/"+myFile, this.my_mc);
    };
    var myInt = setInterval(this, "getNewPic", (inSeconds*1000));
}

```

I have used both dreamweavers flash display javascript code and swfobject code. But it doesn’t make a difference.

Can anyone help me out pls ?
