[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] 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]