What's wrong with this code?
AS3
AS2
AS3
Code:
import flash.external.ExternalInterface;
import flash.net.*;
var AVM_lc:LocalConnection = new LocalConnection();
AVM_lc.connect("thisconnection");
AVM_lc.showalert= function()
{
ExternalInterface.call("alert", "hey it worked");
}
AS2
Code:
var AVM_lc:LocalConnection = new LocalConnection();
AVM_lc.send("thisconnection", "showalert");