0 Replies Latest reply on May 10, 2007 5:24 AM by nevermindthat

    Window.closeButton

    nevermindthat
      The window.closeButton's default value is an X, does anyone know if and how you can change that? Here's the code I have so far:



      function open_popup(page_url, pageNumber) {
      if (zoom_win != undefined) {
      return;
      }
      hideZoomPointer();
      pNum = pageNumber +1
      zoom_win = mx.managers.PopUpManager.createPopUp(_root, Window, true, {title:"Page Number: " + pNum, closeButton:true});
      zoom_win.createObject("ScrollPane", "zoom_pane", 0, {contentPath:page_url, _x:3, _y:31});
      zoom_win.setSize(popup_width, popup_height);
      zoom_win.zoom_pane.setSize(popup_width-6, popup_height-31);
      listenerObject = new Object();
      listenerObject.click = closeWindow;
      zoom_win.addEventListener("click", listenerObject);
      zoom_win._x = Stage.width/2-popup_width/2;
      zoom_win._y = Stage.height/2-popup_height/2;
      }