Forum Moderators: open

Message Too Old, No Replies

Opening new windows

Problem with window.opener command

         

catcherintherye51

10:48 pm on Mar 7, 2007 (gmt 0)

10+ Year Member



I have a page in Flash (Page A) that has a pop-up link to another page (Page B). When you click a link in Page B the contents of Page A should change. I've done this in HTML/JS without any problems.

When I try it in Flash, if Page A is open and you click a link, another window opens (Page C). Every click in Page B thereafter changes Page C, and Page A just sits there.

If you close Page A, Page B recognizes that Page A isn't open and creates a new page. This functionality works great. My only issue is when both A nad B are open and you click a link in B, a third page (C) appears, when it should just chan ge the content of A.


if(biglink!=="" && "javascript:window.opener &&!window.opener.closed"){
getURL("javascript:window.opener.location.href='"+_level2.titlelink.biglink+"';window.opener.focus();");
gotoAndPlay(3);
}
if(biglink!=="" && "javascript:window.opener.closed"){
getURL("javascript:window.open('"+_level2.titlelink.biglink+"','newwin');window.focus('newwin');");
}
}

Hope that explanation makes sense!

What am I doing wrong?