Greetings,

I've created a link to make an .swf file pop up in a window. The window isn't actually a web page. It is simply linked to the .swf, making the title of the "page" the directory location of the file ie. "../../folder/folder/file.swf." Is it possible to name the popup swf, or do I need to embed each .swf into a page and make that page the popup?

Dani AI

Generated

Short answer: the browser tab/window title is controlled by the HTML document, not by the raw .swf. was pointing in the right direction and is also correct that you can give the popup a nicer title — the usual, reliable way is to open an HTML “wrapper” page whose <title> you set, and load the SWF inside that page. That keeps the popup title clean and lets you add fallback messaging or an emulator for modern browsers.

Minimal wrapper example (open this page in a popup):

<!doctype html>
<html>
<head>
  <meta charset="utf-8">
  <title>My SWF Title</title>
</head>
<body>
  <object data="file.swf" type="application/x-shockwave-flash" width="800" height="600">
    <param name="movie" value="file.swf" />
    <p>Flash not available. Consider converting the content to HTML5 or running via an emulator.</p>
  </object>
</body>
</html>

Open it from your page with JavaScript:

window.open('player.html', 'playerWindow', 'width=820,height=640');

Note: the second argument to window.open is a window name, not the visible title — the browser shows the wrapper page’s <title>.

Important modern context and troubleshooting:

  • Flash Player reached end-of-life in 2020 and most browsers no longer run SWF files natively; raw .swf popups will usually fail. See Adobe’s Flash EOL notice for details.
  • A practical path today is to serve the SWF inside a wrapper and either convert the content to HTML5 or use an emulator such as Ruffle (https://ruffle.rs/) to run many SWFs in modern browsers. Ruffle can be included in the wrapper so the page title still works.
  • If the SWF loads external assets, remember cross-domain rules and correct MIME type (application/x-shockwave-flash) on the server.

If posts an embedding example, it will fit into this wrapper approach; otherwise the snippet above is all that’s needed to control the popup title.

Recommended Answers

All 3 Replies

I think you have to embed the movie into an html page that pop-up in order to give the pop-up a title.

Greetings,

I've created a link to make an .swf file pop up in a window. The window isn't actually a web page. It is simply linked to the .swf, making the title of the "page" the directory location of the file ie. "../../folder/folder/file.swf." Is it possible to name the popup swf, or do I need to embed each .swf into a page and make that page the popup?

when i get home ill try and post an example of some code i have that embeds swf files if you still need help.

Its possible name the popup swf

Greetings,

I've created a link to make an .swf file pop up in a window. The window isn't actually a web page. It is simply linked to the .swf, making the title of the "page" the directory location of the file ie. "../../folder/folder/file.swf." Is it possible to , or do I need to embed each .swf into a page and make that page the popup?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.