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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T23:18:28+00:00 2026-06-06T23:18:28+00:00

I am trying to pass 2 variables from javascript to flash. I figured I

  • 0

I am trying to pass 2 variables from javascript to flash. I figured I could do something like this i as3 to try and recieve them.

ExternalInterface.addCallback("callAs", muscle, tension);

Sadly this throws an error

1137: Incorrect number of arguments. Expected no more than 2.

Is there a way to send 2 variables instead of having to make 2 calls each time?

Thanks in advance!
Resin

  • 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-06T23:18:31+00:00Added an answer on June 6, 2026 at 11:18 pm

    It is possible.

    ExternalInterface.addCallback("theFunctionNameInJavascript", theFunctionNameInActionscript);
    
    function theFunctionNameInActionscript(param1:String, param2:String):void {
    //do something with param1;
    //do something with param2;
    
    }
    

    Then in Javascript you would have something like…

    <!-- work out if we are on Mac or PC -->
    function getFlashMovie(movieName) {
        var isIE = navigator.appName.indexOf("Microsoft") != -1;
        return (isIE) ? window[movieName] : document[movieName];
    }
    
    function theFunctionNameInJavascript(swf, param1, param2) {
        getFlashMovie(swf).theFunctionNameInActionscript(param1, param2);
    }
    

    And you would trigger this with something like…

    <form action="javascript:theFunctionNameInJavascript('idNameOfYourSWF', 'thisisparam1', 'thisIsParam2')" id="form">
    <input type="submit" value="Click Me" />
    </form>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi am trying to pass variables to php from inside an app. <?php //
I'm trying to pass a variable through a ssh connection, like this: working_dir=/home/user/some_dir/ ssh
New to MVC, trying to pass a variable from Flash using FSCommand (works well
I'm trying to pass local variables to an inline function in javascript and have
Im trying to pass some variables from the URL to the PHP script. Now
Ok so I am trying to pass some string variables from a classic ASP
I am trying to pass my variables from my main page to external JS
I am trying to pass two variables from one screen to another. From the
I'm trying to pass a variable from one include file to another. This is
I'm currently trying to pass Silverlight a string value from the parent JavaScript. The

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.