Groups | Blog | Home
all groups > flash (macromedia) > july 2005 >

flash (macromedia) : link open in main html page


nstriegel
7/6/2005 11:33:34 PM
I have my main window that has a link to a flash file opening up as a pop up
window. I have a link on that pop up window that I would like to open on the
original html page window and close the flash window in the process. Can this
be done? I seem to only be able to open in a new window or in the current
flash window.
nstriegel
7/7/2005 12:00:00 AM
Sorry for the confusion...
I'm creating a link on my web site to go to go to a pop up window that
contains a flash video and links. The links give the option to apply for the
object advertised, request more information or close the pop up. I have the
close button working. I just need my links to open in the web site window and
close the flash pop up. Does that make more sense?
manstett
7/7/2005 12:00:00 AM
I've used this in the html document that holds the Flash content to send the
parent window to a new url (myUrl) and then give it focus:
window.opener.location = myUrl;
window.opener.focus();

This does not close the Flash window, but it might help you get closer to your
goal.

You might be able to use window.close() instead of the window.opener.focus()
to close the Flash window, or you might be able to create a method in the
parent window to close the child Flash window.
Hope that helps.

nstriegel
7/7/2005 12:00:00 AM
urami_
7/7/2005 8:39:40 AM


[quoted text, click to view]

Mind to rephrase ? You get me lost on the
"I have a link on that pop up window that I would like to open on the
original html page window and close the flash window in the process"

Sound like you want to open pop up content in parent window than why use pop up
in the first place ?


--
Regards

Urami

--


<urami>
http://www.Flashfugitive.com
</urami>

<web junk free>
http://www.firefox.com
urami_
7/8/2005 12:00:00 AM


[quoted text, click to view]

Thank you, that does make sense ,
in such case :


on(release){
getURL("javascript:if(window.opener&&!window.opener.closed){window.opener.location='myURL';}self.close();void(0);");
}

myURL is where you put the page (some.html) or url (http://yahoo.com) which you want to open
in parent windows once the pop up is closed.


--
Regards

Urami

--


<urami>
http://www.Flashfugitive.com
</urami>

<web junk free>
http://www.firefox.com
nstriegel
7/8/2005 8:54:02 PM
urami_
7/9/2005 11:04:03 AM


[quoted text, click to view]

Cool, I wasn't still sure I got what you mean right and worry it won't suit you.
Well, glad you made it work.

--
Regards

Urami

--


<urami>
http://www.Flashfugitive.com
</urami>

<web junk free>
http://www.firefox.com
AddThis Social Bookmark Button