# Gallery trouble, works in ie, but not FF or opera

**URL:** <https://forum.kirupa.com/t/gallery-trouble-works-in-ie-but-not-ff-or-opera/245536>\
**Category:** flash\
**Created:** [November 30, 2007, 6:01pm UTC](https://forum.kirupa.com/t/gallery-trouble-works-in-ie-but-not-ff-or-opera/245536 "2007-11-30T18:01:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![albino](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/albino/32/1022_2.png) [@albino](https://forum.kirupa.com/u/albino)\
**Post date:** [November 30, 2007, 6:01pm UTC](https://forum.kirupa.com/t/gallery-trouble-works-in-ie-but-not-ff-or-opera/245536/1 "2007-11-30T18:01:49Z")

</div>

hey

ok, not sure how simple this is, but ive made a gallery, loosely based on the kirupa one. basically, I have a border that resizes, then the image shows in it. This all works fine in IE, but when it is viewed in FF and Opera, the box does not resize, it goes all small. Hard to explain lol. here are some links;

the actual flash page:

[http://munkydesigns.co.uk/burls/index.html](http://munkydesigns.co.uk/burls/index.html)

the files

[http://munkydesigns.co.uk/burls/burls.zip](http://munkydesigns.co.uk/burls/burls.zip)

Here is the code in question for the resizing:

```auto
function resizeMe(w, h){
    mc_border._visible = true;
    var speed = 3;
    _root.mc_image._alpha = 0;
    
    mc_border.onEnterFrame = function(){
        
        this._width += (w - this._width)/speed;
        this._height += (h - this._height)/speed;
        
        if(Math.abs(this._width-w)<1){
            
            this._width = w;
            this._height = h;
            _root.mc_image._x = this._x - this._width/2 + spacing/2;
            _root.mc_image._y = this._y - this._height/2 + spacing/2;
            _root.mc_image._alpha = 100;
            delete mc_border.onEnterFrame;
            
        }
        
    }
}

```

Ive got to have this in for a deadline on Monday ☹

If anyone can help, it’d be greatly appreciated!
