/ Published in: ActionScript
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
 function fadeOut(obj:MovieClip,target) { onEnterFrame = function () { obj._alpha -= 3; if (obj._alpha <= target) { obj._alpha = target; delete onEnterFrame; } }; } function fadeIn(obj:MovieClip,target) { onEnterFrame = function () { obj._alpha += 3; if (obj._alpha >= target) { obj._alpha = target; delete onEnterFrame; } }; }
Comments
                    Subscribe to comments
                
                