Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I'm trying to call javascript function from my swf (action script). I'm using ExternalInterface.call class for this.

In my swf file, I add following code:

ExternalInterface.call("fnname","welcome");

In my html page, I add following js function:

<script>
function fnname(a)
{
  alert(a);
 }
</script>

When i check whether function is call or not on swf file, it shows following error message on swf file.

"Error: Error #2067: The ExternalInterface is not available in this container. ExternalInterface requires Internet Explorer ActiveX, Firefox, Mozilla 1.7.5 and greater, or other browsers that support NPRuntime. "

Any solutions?

share|improve this question
    
Which web browser do you use? –  Pascal Le Merrer Mar 17 at 11:05
    
i'm using firebox –  Guru Mar 17 at 11:46
add comment

1 Answer

I solve this page by adding this to my html page

<object ....>
<param name="allowScriptAccess" value="always">
<param name="AllowNetworking" value="all">

</object>
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.