# Unable to Link buttons to HTML Files

**URL:** <https://forum.kirupa.com/t/unable-to-link-buttons-to-html-files/307288>\
**Category:** flash\
**Created:** [March 31, 2010, 11:09pm UTC](https://forum.kirupa.com/t/unable-to-link-buttons-to-html-files/307288 "2010-03-31T23:09:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mjmayuresh](https://avatars.discourse-cdn.com/v4/letter/m/e47774/32.png) [@mjmayuresh](https://forum.kirupa.com/u/mjmayuresh)\
**Post date:** [March 31, 2010, 11:09pm UTC](https://forum.kirupa.com/t/unable-to-link-buttons-to-html-files/307288/1 "2010-03-31T23:09:47Z")

</div>

Hi, i m new to flash as well as actionscript. I m using actionscript 3.0 and flash cs4. I have button “Music\_btn” which i want to link to a HTML file which lies in C:\Documents and Settings\Administrator\Desktop\bg\index.html. So, this i what i have tried

Music\_btn.addEventListener(MouseEvent.CLICK, music);  
function music(event:MouseEvent):void {  
var [url:String="C:\Documents](http://www.kirupa.com/forum/String=%22C:%5CDocuments) and Settings\Administrator\Desktop\bg\index.html";  
var req:URLRequest=new URLRequest(url);  
navigateToURL(req, ‘\_blank’);  
}

Error DeScription: - 1120: Access of undefined property Music\_btn.

but of no use

Can ne1 please help.
