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 8173237
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T22:04:17+00:00 2026-06-06T22:04:17+00:00

I am having some issues passing commands through to flash from javascript. My code

  • 0

I am having some issues passing commands through to flash from javascript. My code finally works in both IE and Chrome. Sadly it doesnt do anything i firefox. Any idea why?

Thanks in advance!

JAVASCRIPT

<script type="text/javascript">

    //function setCurrentPage(newPage) {
    //    currentPage = newPage;
    //    SendDataToFlashMovie(newPage);
    //}
    function getFlashMovieObject(movieName){
    if (window.document[movieName]){

        return window.document[movieName];

    }
    if (navigator.appName.indexOf("Microsoft Internet")==-1){
        if (document.embeds && document.embeds[movieName])
            return document.embeds[movieName];
    }
    else{

            return document.getElementById(movieName);

    }
    }
    function SendDataToFlashMovie(newPage){
    var flashMovie=getFlashMovieObject("java");
    flashMovie.callAs(newPage);
    }

</script>

<a href="#" onClick="SendDataToFlashMovie('Home')">Home</a>

FLASH

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="550" height="400" id="java" align="middle">
<param name="movie" value="java.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="play" value="true" />
<param name="loop" value="true" />
<param name="wmode" value="window" />
<param name="scale" value="showall" />
<param name="menu" value="true" />
<param name="devicefont" value="false" />
<param name="salign" value="" />
<param name="allowScriptAccess" value="always" />

<!--[if !IE]>-->
<object id="java" type="application/x-shockwave-flash" data="java.swf" width="550" height="400">
<param name="movie" value="java.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="play" value="true" />
<param name="loop" value="true" />
<param name="wmode" value="window" />
<param name="scale" value="showall" />
<param name="menu" value="true" />
<param name="devicefont" value="false" />
<param name="salign" value="" />
<param name="allowScriptAccess" value="always" />
<EMBED src="java.swf" quality="high" swliveconnect="true" width="550" height="400" name="java" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash">
</EMBED>
<!--<![endif]-->
<a href="http://www.adobe.com/go/getflash">
        <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
</a>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
  • 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-06-06T22:04:24+00:00Added an answer on June 6, 2026 at 10:04 pm

    Use SWFObject to embed your flash file (there is a handy code generator – use ‘Dynamic publishing’).

    Then the JS code will look like this:

    <script type="text/javascript">
        function SendDataToFlashMovie(newPage){
            var flashMovie = document.getElementById("java");
            flashMovie.callAs(newPage);
        }
    </script>
    
    <a href="#" onClick="SendDataToFlashMovie('Home')">Home</a>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having some interesting issues with passing in variables from within an object into
I'm having some issues with some jQuery code, and I'm hoping and thinking that
I'm having some issues with my code. This is probably due to some design
I am having some issues with logging. After reviewing JBoss Seam source code, I
Originally, I was having some issues getting this code to function, but after a
Having some issues with C. I have this is my code: // First line
I'm having some difficulties with passing functions around. I have this code: var options
I'm having some issues passing vectors to functions. My concern is not with my
I am passing in a dynamic type into a method and having some issues
I'm having some trouble with JavaScript and the passing of a function as parameter

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.