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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T08:31:35+00:00 2026-06-10T08:31:35+00:00

I want to execute ActionScript function from HTML and return value back to HTML.

  • 0

I want to execute ActionScript function from HTML and return value back to HTML. But function in flash require addEventListener. So I have no idea how can I return value, because main-function finishes faster then EventListener-function. Obviously event-functions have no ability to return something besides void, but maybe there are some tricks?

  • 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-10T08:31:37+00:00Added an answer on June 10, 2026 at 8:31 am

    Assuming that you don’t need to have the return value back immediately for the javascript to work, you could poll the flash until it is ready, and then read the return value.

    flash.execute();
    var checkInterval = setInterval(function() {
        if (flash.isReady()) {
            clearInterval(checkInterval);
            var returnValue = flash.getReturnValue();
        }
    }, 100);
    

    In the flash, execute() sets a “ready” boolean to false (which can be read from javascript by isReady()) and then starts the asynchronous operation. Once it’s completed, the flash stores the return value which can be read from javascript by getReturnValue() and finally changes the ready boolean to true.

    This assumes that you don’t need to call parallell execute commands. In that case you could give each execution an id, and send in that to execute(), isReady() and getReturnValue() and have the flash handle parallell requests by separating the internal asynchronous calls by id.

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

Sidebar

Related Questions

I have asp.net generated html code. I want execute jQuery click function when user
I want to execute a code helloword.cpp which takes in some argument from console
I want to execute one mysql statement where I have a select that is
I want to execute a javascript function in a c# code. Here is what
i want to execute some commands using NSIS script , but for the commands
I want to execute the DeviceInformation command on iOS devices. So far I have
I want to execute the MySQL command SET NAMES 'utf8' from PHP. How to
I want to execute database import from .sql file from java program. My program
I want to execute a Python CGI Script within a .shtml file, but I
i want execute populateFields if the spinner changed but i don't know how i

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.