Do you need a Google ClickTag that's coded in AS3? Then grab and bite the following Nyum-nyum codes:
YourBtnName.addEventListener(MouseEvent.MOUSE_UP,ClickThru);
function ClickThru(e:MouseEvent):void {
if (root.loaderInfo.parameters.clickTAG.substr(0,5)=="http:") {
navigateToURL(new URLRequest(root.loaderInfo.parameters.clickTAG),"_blank");
}
}
Courtesy of David Stiller, Co-author, Foundation Flash CS3 for Designers
No comments:
Post a Comment