clickTAG

import flash.display.LoaderInfo;
import flash.events.MouseEvent;

click_btn.addEventListener(MouseEvent.CLICK, onButtonClicked);
function onButtonClicked(e:MouseEvent) :void {
if (root.loaderInfo.parameters.clickTAG.substr(0, 5) == "http:")
{
navigateToURL(new URLRequest(LoaderInfo(root.loaderInfo).parameters.clickTAG), "_blank");
}
}

0 comments:

Post a Comment