在flash中从javascript接收复杂对象

在flash中从javascript接收复杂对象,javascript,flash,communication,externalinterface,Javascript,Flash,Communication,Externalinterface,我试图从javascript调用一个Flash函数,将复杂的数据类型作为参数传递 正在正确调用Flash函数,但args没有值, 我的意思是,它们都是具有属性的复杂数据类型,但在Flash中,当我尝试访问这些属性时,会得到“未定义的” 是的,我确信javascript代码是正确的,并且参数在javascript中具有正确的值 //this is the flash part ExternalInterface.addCallback("OnProcessFound", OnProcessFoun

我试图从javascript调用一个Flash函数,将复杂的数据类型作为参数传递
正在正确调用Flash函数,但args没有值,
我的意思是,它们都是具有属性的复杂数据类型,但在Flash中,当我尝试访问这些属性时,会得到“未定义的”
是的,我确信javascript代码是正确的,并且参数在javascript中具有正确的值

//this is the flash part
ExternalInterface.addCallback("OnProcessFound", OnProcessFoundHandler);
function OnProcessFoundHandler(sender, e):void
{   
    txtTrack.text = "external event " + new Date().getTime().toString() + sender.toString() + e.toString();     
}

//this if the javascript code that calls the flash method 
//and passes the complex args
function OnProcessFoundDlg(sender, e)
{
    document.getElementById('Untitled-1').OnProcessFound(sender, e);            
}

我认为您仅限于序列化您分配给FlashVar的对象,然后从Flash反序列化。

我认为您仅限于序列化您分配给FlashVar的对象,然后从Flash反序列化。

好的,实际上我希望Flash“知道”我的对象具有什么属性。序列化方法将是我最后的选择。好吧,实际上我希望Flash“知道”我的对象有什么属性。序列化方法将是我最后的选择。