Código Javascript:
Ver original
function onItemClick(event:MouseEvent) { //Only Selected item acts as Hyperlink if(myGrid.getSelectedItemNum() == thisId) { // you can store the URL in "data" in your XML file var url:URLRequest = new URLRequest(event.target.data); navigateToURL(url); } thisId = myGrid.getSelectedItemNum(); } // Wait for items to load from XML and then add MouseEvent.CLICK to each item function onXMLLoaded(event:GridEvent) { myGrid.addGenericItemEventListener(MouseEvent.CLICK, onItemClick); thisId = myGrid.getSelectedItemNum(); } myGrid.addEventListener(GridEvent.XML_LOAD_COMPLETE, onXMLLoaded); }
y quiero hacer poner esto para que me abre las paginas en una ventana popup
pero no se como usarlo
Código Javascript:
Ver original
var js:URLRequest=new URLRequest(); js.url="javascript:window.open('image.html','popper1','width=540,height=360');newWindow.focus(); void(0);"; pop_btn.addEventListener(MouseEvent.CLICK,openPopUp); function openPopUp(evt:MouseEvent):void { navigateToURL(js,'_self'); }
gracias