# AS2 Preloader + Links are not working well :(

**URL:** <https://forum.kirupa.com/t/as2-preloader-links-are-not-working-well/274398>\
**Category:** flash\
**Created:** [October 29, 2008, 2:45pm UTC](https://forum.kirupa.com/t/as2-preloader-links-are-not-working-well/274398 "2008-10-29T14:45:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![k3nn4](https://avatars.discourse-cdn.com/v4/letter/k/58f4c7/32.png) [@k3nn4](https://forum.kirupa.com/u/k3nn4)\
**Post date:** [October 29, 2008, 2:45pm UTC](https://forum.kirupa.com/t/as2-preloader-links-are-not-working-well/274398/1 "2008-10-29T14:45:31Z")

</div>

Guys… I’ve been trying to fix this and no luck ☹ Anyone here can help me out ??

What is my current problem is… my actionscript button is working very well but when i added the preloader code in there… the link just stop working… ☹

Here is my code…

\_root.onEnterFrame = function() {  
var amountLoaded:Number = \_root.getBytesLoaded()/\_root.getBytesTotal();

```
loadText.text = Math.round(amountLoaded*100)+"%";
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
    gotoAndPlay(3);
    delete _root.onEnterFrame;
}

```

};  
stop();

\_root.mc\_about.onEnterFrame = function() {  
if (mouse\_over\_mc\_about) {  
\_root.mc\_about.nextFrame();  
} else {  
\_root.mc\_about.prevFrame();  
}  
};

\_root.mc\_works.onEnterFrame = function() {  
if (mouse\_over\_mc\_works) {  
\_root.mc\_works.nextFrame();  
} else {  
\_root.mc\_works.prevFrame();  
}  
};

\_root.mc\_services.onEnterFrame = function() {  
if (mouse\_over\_mc\_services) {  
\_root.mc\_services.nextFrame();  
} else {  
\_root.mc\_services.prevFrame();  
}  
};

\_root.mc\_contacts.onEnterFrame = function() {  
if (mouse\_over\_mc\_contacts) {  
\_root.mc\_contacts.nextFrame();  
} else {  
\_root.mc\_contacts.prevFrame();  
}  
};
