# Unable to Link buttons to HTML Files

**URL:** <https://forum.kirupa.com/t/unable-to-link-buttons-to-html-files/307289>\
**Category:** Uncategorized\
**Created:** [March 31, 2010, 11:22pm UTC](https://forum.kirupa.com/t/unable-to-link-buttons-to-html-files/307289 "2010-03-31T23:22:29Z")\
**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:22pm UTC](https://forum.kirupa.com/t/unable-to-link-buttons-to-html-files/307289/1 "2010-03-31T23:22:29Z")

</div>

**[SIZE=5][COLOR=orange]Unable to Link buttons to HTML Files[/COLOR][/SIZE]**

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 [[COLOR=#0000ff]url:String="C:\Documents[/COLOR]](http://www.kirupa.com/forum/String=%22C:/Documents) 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

Please Help

**[SIZE=5][COLOR=orange][/COLOR][/SIZE]**
