NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page NP$ for help with actionscript error, works in ie, not in ff or opera

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search
5 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 12-02-2007, 11:57 AM THREAD STARTER               #1 (permalink)
Munky Designs
Join Date: May 2005
Posts: 996
Albino is a jewel in the roughAlbino is a jewel in the roughAlbino is a jewel in the rough
 



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


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!
Albino is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


 
All times are GMT -7. The time now is 02:25 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger