Help!

Or search support forum

What's Global Moxie?

Global Moxie specializes in mobile design strategy and user experience for a multiscreen world. We offer consulting services, training, and product-invention workshops to help creative organizations build tapworthy mobile apps and effective websites. We're based in Brooklyn, NY. Learn more.

On Shelves

Books by Josh Clark

Tapworthy: Designing Great iPhone Apps

Best iPhone Apps: The Guide for Discriminating Downloaders

iWork ’09: The Mising Manual

Moxiemail

Enter your e-mail to receive occasional updates:

Why do Flash animations obscure parts of my page?

Flash animations tend to display on top of all other elements on the page, sometimes obscuring elements that should appear above them. For example, dropdown menus and the image enlargement/slideshow features can sometimes be hidden by Flash animations included in your custom page template.

In many cases, this can be avoided by adding a wmode parameter to the HTML for the Flash object, which allows other objects to display on top of the Flash animation.

If your Flash object has <param> tags, add a wmode param tag like so:

<param name="wmode" value="transparent" />

...and if your Flash object uses an <embed> tag make sure that it likewise includes wmode="transparent" among its attributes, for example:

<embed src="flash.swf" quality="best" wmode="transparent" ... >

An example

Say that your template includes the following HTML to embed a Flash animation into your page:

<object type="application/x-shockwave-flash
        data="flash.swf" width="400" height="300">

    <param name="movie" value="/flash/movie.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#ffffff" />

    <embed src="/flash/movie.swf"
        type="application/x-shockwave-flash"
        pluginspage="http://www.macromedia.com/go/getflashplayer"
        quality="high" bgcolor="#ffffff" align=""
        width="550" height="400"></embed>

</object>

You would add a new <param name="wmode"> tag and add the wmode="transparent" attribute to the <embed> tag, with this result:

<object type="application/x-shockwave-flash
        data="flash.swf" width="400" height="300">

    <param name="wmode" value="transparent" />
    <param name="movie" value="/flash/movie.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#ffffff" />

    <embed src="/flash/movie.swf"
        wmode="transparent"
        type="application/x-shockwave-flash"
        pluginspage="http://www.macromedia.com/go/getflashplayer"
        quality="high" bgcolor="#ffffff" align=""
        width="550" height="400"></embed>

</object>
Download Big Medium
Try it free for 30 days, or buy to unlock.

A Better Place

“The App Store would be a better place if every app designer read Tapworthy.
—Juri Pakaste, developer

Tapworthy is far and away the best book on the subject.”
—Mike Rundle, iOS designer, Flyosity

Tapworthy is a great read for every iPhone app maker!”
—Sophia Teutschler, iPhone developer

More praise for Tapworthy