Shockwave Flash and DHTML

Shockwave Flash and DHTML

How can I make a Shockwave Flash movie run over or under a DHTML DIV tag with text inside? I tried to use z-index but it doesn’t work well with Flash.

With the Flash program (or any Macromedia program, for that matter), there is usually a program that is in the same folder called AfterShock. This program is useful for preparing the HTML page that will support the Shockwave application. Run it, and load a Shockwave SWF file that you wish to use. Then, click on the Shockwave tab in the right-hand pane of the application. In the drop-down for Window Mode, you can make the movie opaque or transparent to the rest of the Web page by changing the option from “Window” to “Opaque Windowless” or “Transparent Windowless”. These settings will make the application run in the same layer space as the rest of the browser (i.e., you can use z-index) so that the movie runs beneath other HTML elements. Note that this technique is more expensive in terms of resources than working in Window mode, so expect some performance degradation.


About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist