PDA

View Full Version : closing a popup window from a flash movie in other window


peleco
07-06-2001, 02:49 AM
Hello, to everyone
My problem is the next:
I have a flash movie in html that calls a popup window by get url method, theres a way to close this popup window from the original flash movie browser window?

Erik.

makkox
07-08-2001, 02:40 PM
...if you named this window when you popped it (apologize my ugly english..hehehe)...
Es, if you made a script like this:

MyPop=window.open(etc...)

then you can close the pop-up with an action like this from inside your flash movie in the original window:

getURL("javascript:MyPop.close()")

well, I'think it may be closed without naming it in the "popping" script... but I'm not shure how to call the pop-up... window.parent.close() ??? ...window.child.close()???
I never tried theese ways...but first one works fine (way change?...hehehe)

I'hope you'll understand 10% I wrote in this post... my english is really like a monkey typing on a four letter keyboard...hehehe