Can flash be used as a background image?

Posted on 2009-04-22
Last Modified: 2012-05-06
Can a flash object (swf) be used as a background image.

I see this link but don't know if it really will work:


Question by:Rowby Goren
    LVL 8

    Accepted Solution

    Could possibly work... What I'd do if I wanted a swf as a background is create a layered DIV Page. Create the swf object in a div called background (using the CSS below that has z-index of 1), and then layer items above it with z-index of 2 (such as menu is the example CSS).

    You then have a swf background!


    #background {
    z-index: 1;
    width: 100%;
    height: 100%;
    #menu {
        z-index: 2;
        width: 100%;
        height: 200px;
        top: 20px;

    Open in new window

    LVL 13

    Assisted Solution

    Flash uses a plugin with occupies a z-index outside the scope of the DOM, meaning that no matter what z-index you give it, Flash will always be on top..

    swf files will always be in front no matter the z-value you set.

    Normally it is not possible. But you can try these links. I haven't tried it myself but it works when you use Flash CS3 or higher because you will need the .js script that accompanies the swf file.

    Let us know if this works for you.

    Good luck.


    LVL 13

    Expert Comment

    Just tried the first link. It looks promising but you need to do some work and downloads from Macromedia Site.

    See the demo here:

    Good luck

    LVL 9

    Author Comment

    by:Rowby Goren
    Thanks   I will review the links.  I have a feeling I will just just a non-flash background image.  But will keep these links in case client "insists" on flash.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
    When applying CSS to your HTML, there are many different ways to select which element(s) the CSS applies to.  Some of these selectors are more commonly known and used than others - Here are the more common ones: #X - Matches an ID of X .X - Matche…
    In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
    The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now