Closest comfortable code but not the real thing:
buttonWeWantToAssignCodeTo.addEventListener(MouseEvent.MOUSE_UP, getTheCode);
function getTheCode(event:MouseEvent):void {
var jscommand:String = "window.open('https://www.e-junkie.com/ecom/gb.php?c=cart&i=1&cl=37&ejc=2','win','height=300,width=450,toolbar=no,scrollbars=yes');";
var url:URLRequest = new URLRequest("javascript:" + jscommand + " void(0);");
navigateToURL(url, "_self");
}
Still awaiting for a decent solution and decent help tutorial from ejunkie for actionscript 3.0.