Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6569225
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:36:00+00:00 2026-05-25T14:36:00+00:00

We are writing app for facebook. It’s a game written in flash and embeded

  • 0

We are writing app for facebook. It’s a game written in flash and embeded with wmode window. We get problem with Firefox 6, but only on Windows XP. When user invoke some facebook dialog (for example: pay dialog or buying more credits dialog) flash disappears. This same happens when user click on notifications (globe icon in top facebook menu) and hold it for a while (however this is not so important).

After flash disappears it it still in DOM as <object>.
This is not happen when wallpost dialog is created.

How to fix it?

We can’t change wmode, so this way is impossible.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T14:36:00+00:00Added an answer on May 25, 2026 at 2:36 pm

    The FB.init documentation: https://developers.facebook.com/docs/reference/javascript/FB.init/#flash gives you some options for doing something better than displaying a white background if your application will not work with wmode=”opaque”.

    Adobe Flash applications on facebook.com

    For Canvas applications using Adobe Flash, wmode=”opaque” is preferred
    whenever possible. We have found that, on modern browsers with
    hardware compositing, there is generally no performance degradation to
    using wmode=”opaque”. Otherwise, Facebook will, by default, hide your
    Flash objects when popup events occur, and redisplay them when the
    popup is dismissed.

    If you need to use wmode=”window”, and would like to control this
    behavior (such as also showing text or an image when this happens) you
    can provide a function into the hideFlashCallback parameter to
    FB.init. hideFlashCallback takes a state field as part of the passed
    in parameters saying whether the window is being opened or closed.
    This is the default implementation that you’ll be overriding if you
    provide one, but may also give you an idea of what your override would
    look like:

    function(params) {
      var candidates = window.document.getElementsByTagName('object');
      for (var i = 0; i < candidates.length; i++) {
        var elem = candidates[i];
        if (elem.type != "application/x-shockwave-flash") {
          continue;
        }
    
        var good = false;
        for (var j = 0; j < elem.childNodes.length; j++) {
          if (elem.childNodes[j].nodeName == "PARAM" && elem.childNodes[j].name == "wmode") {
            if (elem.childNodes[j].value != "window" && elem.childNodes[j].value != "default") {
              good = true;
            }
          }
        }
        if (!good) {
          if (params.state == 'opened') {
            elem.style.old_visibility = elem.style.visibility;
            elem.style.visibility = 'hidden';
          } else if (params.state == 'closed') {
            elem.style.visibility = elem.style.old_visibility;
            elem.style.old_visibility = '';
          }
        }
      }
    }
    

    Note: Some UI methods like stream.publish and stream.share can be used
    without registering an app or calling this method. If you are using an
    app id, all methods must be called after this method.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a facebook app that iterates through comments. I can get the user
I'm writing a very basic Facebook app, but I'm encountering an issue with cross-domain
I am writing an app that publishes pictures on Facebook using facebook-ios-sdk, but everytime
I am writing an iframe based facebook app. Now I want to use the
I'm writing an app that will need to make use of Timer s, but
I've been writing a small Facebook app which uses the unified_thread table using FQL.
I'm writing a Facebook app. When a user adds the application i insert a
I'm writing a Facebook iframe/canvas app and would like to give users the ability
I start writing a simple app to use FaceBook IOS SDK from GitHub. I
Im writing a facebook-connect app that login user after authenticate session on facebook, question

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.