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

  • SEARCH
  • Home
  • 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 7653719
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T12:05:44+00:00 2026-05-31T12:05:44+00:00

I have a couple of buttons in my flash application that call two different

  • 0

I have a couple of buttons in my flash application that call two different javascript functions. They work in all browsers except IE9 (I haven’t tried earlier IEs). My code to call the function is something like this:

ExternalInterface.call(
        "myLovelyFunction",
        string1, string2);

and the code in the JS looks like this:

function myLovelyFunction(string1, string2) {
    window.open('https://twitter.com/share?url=http%3A%2F%2Fwww.mysite.com%2Fapage.php&via=atwitteraccount&text=Some%20text%22&related=atwitteraccount',
    'windowname',
    'height=290,width=510');
}

In IE9, the function does absolutely nothing, but the console complains with:

SCRIPT438: Object doesn't support property or method 'SetReturnValue' 
index.php, line 1 character 1

line 1, character 1 is obviously pointing at nothing in particular.

I can make it work fine by switching on compatability view, although the console error doesn’t go away.

Is there anything about IE9 that causes this, and more importantly, how do I fix this?

  • 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-31T12:05:46+00:00Added an answer on May 31, 2026 at 12:05 pm

    I had this very same issue as well. I was using the following code:

        <object type="application/x-shockwave-flash" data="/files/banners/64/64_300x250.swf" width="300" height="250">
          <param name="movie" value="/files/banners/64/64_300x250.swf"/>
          <param name="wmode" value="transparent"/>
        </object>
    

    I’m just embedding the flash with a regular object tag (no SWFObject and no embed fallback). My flash file calls the JS function window.open via ExternalInterface like this:

    ExternalInterface.call("window.open", url, target, features);
    

    What didn’t work:
    The link above suggests changing it to “document.open”, which did not work. Also attempting to force the page to render in IE-8 mode did not work. For example:

    <meta http-equiv="X-UA-Compatible" content="IE=8" />
    

    What did work: Simply adding a “name” and “id” to the object tag solved the issue. For example:

    <object type="application/x-shockwave-flash" data="/files/banners/64/64_300x250.swf" width="300" height="250" name="flash_object" id="flash_object">
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a form that has a couple of buttons on it. Two of
I have an HTML page with a couple javascript buttons that 'replace' the HTML/CSS.
Hi everyone my problem today is I have a couple of buttons that slide
I have a couple of UI elements such as buttons in my web application.
I have a WPF TabControl that has a couple of buttons in the TabItem
I have a form with two combo boxes and couple of buttons. One of
I have an activity and on that activity there are a couple of buttons
I currently have a couple different user controls that provide the same functionality: three
I have created a basic form in access that has a couple of buttons
I have a couple of buttons that users can click to load content with

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.