Skip to main content
April 29, 2007
Question

Closing the window after the video is complete.

  • April 29, 2007
  • 1 reply
  • 281 views
I'm obviously new to this, so please excuse the simple questions.... I need for the SWF files to actually close the window when they are complete, however, I get the following message when the video is finished.

The webpage you are viewing is trying to close the tab.
Do you want to close this tab?

Is there anyway that I can have it bypass this step? If so, it would make things a lot easier for me.

Thanks in advance!!!!
    This topic has been closed for replies.

    1 reply

    Captiv8r
    Legend
    April 29, 2007
    Hi FacilityDude

    This happens normally in IE, when you have simply opened the movie inside its own browser instance. There is a way that may work to prevent it from occurring by tricking the browser into thinking the movie trying to close the instance was actually what opened it in the first place. Essentially you would insert a piece of JavaScript and use that to close the browser. Keep in mind it's a bit involved. You have to be using .SWF output (won't work if you produce .EXE output) And you have to futz with JavaScript.

    Before we do that, I have a question for you. How are you planning to deploy? I ask because I think that if you set things up properly with the way you link to your movies for your users, you won't encounter the prompt. So it would be silly to go futzing about looking for other ways to overcome an apparent browser limitation if it could be prevented altogether by simply being a bit picky with how you create the links to your movies.

    Cheers... Rick