Actionscript 和Javascript通信——实现数据共享

`
/* Javascript */
var member = {
    colin :{sex:"male", age:"21", city:"gz"},
    lucy  :{sex:"female", age:"18", city:"gz"}
};
function getInfo(name){
    return member[name];
}
`
`
/* ActionScript */
import flash.external.ExternalInterface;
var mem = ExternalInterface.call("getInfo('colin')");
/* 上行的“mem”就是Javascript返回的参数 */
`