NameSilo

NP$ for help with actionscript error, works in ie, not in ff or opera

Spaceship Spaceship
Watch

Albino

Munky DesignsEstablished Member
Impact
17
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

the files

http://munkydesigns.co.uk/burls/burls.zip

Here is the code in question for the resizing:

Code:
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;
            
        }
        
    }
}

If anyone can help, it'd be greatly appreciated!
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
Appraise.net

We're social

Domain Recover
DomainEasy — Zero Commission
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back