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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T03:29:33+00:00 2026-05-22T03:29:33+00:00

I made a Flash application that add’s content to a page using JavaScript(Ajax). But

  • 0

I made a Flash application that add’s content to a page using JavaScript(Ajax). But strangely enough it doesn’t work in IE(7 nor 8). It works fine in Chrome and FireFox.
The JavaScript function is (probably) not the problem, because when I insert javascript:functionName(id); in my browser it works.
In my Flash I use the JavaScript on a button with the following code:

getURL("javascript:functionName(id);");

I suppose that, that’s a good way to use it?

But strangely enough nothing works in Flash, not even if I replace the code with alert('hello my friend');(maybe he’s not my friend?).

Could someone help me out and tell me what may be causing the problem?
Thanks in advance!

  • 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-22T03:29:34+00:00Added an answer on May 22, 2026 at 3:29 am

    You should be using AS ExternalInterface to communicate with JS, have a look on this: http://www.nelsond8.com/?p=515#more (here I’m using swfobject built in method swfobject.getObjectById, if you are not using swfObject replace this line with document.getElementById)

    If you are using AS2, you could do something like this:

    <script type="text/javascript">
    function myFunction(id)
    {
    alert('hello my friend');       
    return 'hello my friend';
    
    }
    </script>
    

    AS2:

    import flash.external.*;
    
    btn.onPress = function() 
        {
            var jsReply:String = String(ExternalInterface.call("myFunction", "01"));
    
            getURL("jsReply");
    
            trace(jsReply);
        }
    

    And here is the externalInterface reference page for AS2: http://flash-reference.icod.de/

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

Sidebar

Related Questions

Recently I have made a simple flash application that utilizes a webcam feed and
I have a Flash application that I made and I want to basically take
I have a Flash AS2 application that is made up of many SWF files.
I have a sketch pad made in Flash AS3 like this one here: http://henryjones.us/articles/using-the-as3-jpeg-encoder
I've been reading that Adobe has made crossdomain.xml stricter in flash 9-10 and I'm
I have made a simple Rails application that allows people to comment on posts.
I'm communicating from a flash application using a command like the following: ExternalInterface.call(hello, world)
I have a flex application that loads swf files and displays them using the
I have a PHP application containing these files: landing.php, redirect.php, ajax.php on a page
I have a fully working flash application, made in as3. Now i dynamicly added

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.