Hi,
I have a button with a link to my hompeage. but I want to insert a clicktag, clicktarget to y link. How do I do that in Actionscript 3?
Right now, my code, without clicktag, looks like this:
inv_btn.addEventListener(MouseEvent.CLICK, invBtnClicked);
function invBtnClicked(e:MouseEvent):void {
var url:String = “http://www.homepageexample.com/”;
var request:URLRequest = new URLRequest(url);
try {
navigateToURL(request, ‘_blank’);
} catch (e:Error) {
trace(“Error occurred!”);
}
}
Could someone be so kind and give me the full code to use for my link and clicktag? Thank you!