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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T22:25:24+00:00 2026-05-19T22:25:24+00:00

I am working on a chatting app that makes use of flash sockets. I

  • 0

I am working on a chatting app that makes use of flash sockets. I don’t want to code the entire interface in flash, so I was hoping to just use flash to talk to the socketserver and call js to modify the dom.

can this be done?

  • 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-19T22:25:25+00:00Added an answer on May 19, 2026 at 10:25 pm

    To call a JavaScript function from Flash, use the ExternalInterface.call function in ActionScript:

    import flash.external.ExternalInterface;
    
    // Call a JavaScript function
    ExternalInterface.call("your_javascript_function");
    
    // Get a return value from a JavaScript function
    var x:int = ExternalInterface.call("get_x");
    
    // Pass an argument to a JavaScript function
    var retval:int = ExternalInterface.call("some_js_function", "the-argument");
    

    To call an ActionScript function from JavaScript, first use the ExternalInterface.addCallback function in ActionScript:

    // "methodName" is the method to call in JavaScript
    // instanceObject.realMethod is the method that will be triggered
    var successful = ExternalInterface.addCallback("methodName",
                                                   instanceObject,
                                                   realMethod);
    

    Then, get a handle on the SWFObject in JavaScript and call the ActionScript method as follows:

    function makeActionScriptCall() {
        var flash = document.getElementById(movieName);
        flash.methodName(parametersIfAny);
    }
    

    For more information, see:

    • http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/external/ExternalInterface.html
    • http://codingrecipes.com/calling-a-javascript-function-from-actionscript-3-flash
    • http://bytes.com/topic/flash/answers/694359-how-do-i-access-flash-function-using-javascript
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Working on my first EmberJS app. The entire app requires that a user be
i have a problem. I am working on a chatting application. I want to
So I have a question. I have chatting/IM website that I am working on
Working Example: This is almost identical to code I use in another places on
I'm writing a ajax chatting webapp, just to test working with GWT. To simulate
Currently i am working on a chatting app, I am trying to upload the
I am working on the jabber chatting Applications with the use of XMPP server
Working with an undisclosed API, I found a function that can set the number
I am working on a web application that has to present charts on different
I am working on an android app and using AChartEngine for Charting. The Bar

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.