# Links dont work when published!

**URL:** <https://forum.kirupa.com/t/links-dont-work-when-published/263981>\
**Category:** flash\
**Created:** [June 21, 2008, 12:00pm UTC](https://forum.kirupa.com/t/links-dont-work-when-published/263981 "2008-06-21T12:00:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anix](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@anix](https://forum.kirupa.com/u/anix)\
**Post date:** [June 21, 2008, 12:00pm UTC](https://forum.kirupa.com/t/links-dont-work-when-published/263981/1 "2008-06-21T12:00:37Z")

</div>

Hi i have just inished creating my Flash portfolio website in Flash CS3 (AS3) and when i tested the movieclip in Flash everythink worked ok all the links worked perfectly and all was good. Now when i have published the file into a html doc the links that where working before now dont work. All the internal site links work but when i click on a link to open a new website in a blank window it does nothink? could some1 please help me with this. thanks

---

<div class="post-metadata">

**Author:** ![Tarnished](https://avatars.discourse-cdn.com/v4/letter/t/7cd45c/32.png) [@Tarnished](https://forum.kirupa.com/u/Tarnished)\
**Post date:** [June 22, 2008, 5:28am UTC](https://forum.kirupa.com/t/links-dont-work-when-published/263981/2 "2008-06-22T05:28:57Z")

</div>

I actually just finished my portfolio, I had the same problem you did, but this code here worked for me

[COLOR=“Lime”]  
Your button name here[/COLOR].addEventListener(MouseEvent.CLICK, [COLOR=“Lime”]yourFunctionHere[/COLOR]);  
function [COLOR=“Lime”]youFunctionHere/COLOR:void {  
navigateToURL(new URLRequest("[COLOR=“Lime”]your external link here[/COLOR]"));  
}

Hope that works for you
