formi
asked on
as 3.0: calling js-function
Hi
I found many instructions how to use ExternalInterface.call in as 3.0 but it doesn't work. In the html-page where I embed my Flash I have the following code:
I found many instructions how to use ExternalInterface.call in as 3.0 but it doesn't work. In the html-page where I embed my Flash I have the following code:
<html lang="de">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="expires" content="3">
<script type="text/javascript">
function myJsFunc(url) {
alert(URL)
}
</script>
<script language="JavaScript" type="text/javascript">
<!--
//v1.7
// Flash Player Version Detection
// Detect Client Browser type ............
In AS I call it
import flash.external.ExternalInterface;
ExternalInterface.call("myJsFunc","just an example");
but nothing happens.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
if (ExternalInterface.availab
import flash.external.ExternalInt
ExternalInterface.call("my
}