# Need to create a button with text for link

**URL:** <https://forum.kirupa.com/t/need-to-create-a-button-with-text-for-link/286001>\
**Category:** Uncategorized\
**Created:** [April 8, 2009, 4:51pm UTC](https://forum.kirupa.com/t/need-to-create-a-button-with-text-for-link/286001 "2009-04-08T16:51:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![webguync](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/webguync/32/2434_2.png) [@webguync](https://forum.kirupa.com/u/webguync)\
**Post date:** [April 8, 2009, 4:51pm UTC](https://forum.kirupa.com/t/need-to-create-a-button-with-text-for-link/286001/1 "2009-04-08T16:51:55Z")

</div>

Hi,

I need to take this code

```auto

_myButton.addEventListener(MouseEvent.CLICK, onMouseClick);
 
function onMouseClick(e:MouseEvent):void
{
var request:URLRequest = new URLRequest("[http://www.linktopdf.com");](http://www.linktopdf.com%22%29/;)
navigateToURL(request,"_blank");
}

```

and create in AS3 a button for it (\_myButton) with the text ‘click me’

can anyone assist me with that?
