1 Reply Latest reply on Feb 6, 2009 8:39 AM by Ned Murphy

    getURL spawned new window doesn't have a parent

    stewati1 Level 1
      I have a Flash application that is opening a new window via getURL.

      getURL(" http://www.microsoft.com", "EMMWindow");

      The new window has a link that triggers a javascript that attempts to redirect the parent window via

      opener.location.href='x';

      However, when that javascript is called, it returns an error that shows that the opener is undefined - e.g., the window that was opened is effectively an orphan - it doesn't know its parent.

      Is this an issue with getURL or am I doing something wrong?

      Any help would be appreciated.

        • 1. getURL spawned new window doesn't have a parent
          Ned Murphy Adobe Community Professional & MVP
          I think this is an html/javascript issue. I don't think GetURL is not going to create a child window, just a plane ole window, so there is no opener associated with it. That window would have to have been opened by the other window and named EMMWindow before getURL filled it up with something.

          You may have to communicate via javascript to get the page to open the window as an opener.

          Of course, I could be wrong.