Answer the question
In order to leave comments, you need to log in
How to call a function in a flash application through a browser?
There is some swf file launched from the browser, there is no access to the sources, but some function is known that needs to be called. How can I do this using a browser. Is there any plugin for flash debugging?
Answer the question
In order to leave comments, you need to log in
If a function is added to the ExternalInterface, then it can be called from outside of
Flash :
function callMe(name:String):String
{
return "busy signal";
}
ExternalInterface.addCallback("myFunction", callMe);
<script language="JavaScript">
// callResult gets the value "busy signal"
var callResult = flashObject.myFunction("my name");
</script>
...
<object id="flashObject"...>
...
<embed name="flashObject".../>
</object>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question