linking local files
Hey I'm stuck with linking some local files.
I made a movieclip into a button but I cant link it to local files
Can anybody tell me how ? Please because I have to do a school project
Hey I'm stuck with linking some local files.
I made a movieclip into a button but I cant link it to local files
Can anybody tell me how ? Please because I have to do a school project
This is my code I want that index.html to open but its not opening . What am I doing wrong
function makebtn(mc:MovieClip,aurl:String):void {
mc.aurl = aurl;
mc.buttonMode = true;
mc.addEventListener (MouseEvent.CLICK,gotoaurl);
}
function gotoaurl (e:MouseEvent):void{
var aurl:String = e.target.aurl;
navigateToURL(new URLRequest(aurl));
}
makebtn(btn, 'index.html');
e.target isn't always the same as e.currentTarget, aurl may be mis-defined and/or you may have a security sandbox issue. start testing.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.