Here is the AS function (log is a variable associated with a dynamic
textfield):
function callPython(){
var ret = ExternalInterface.call("TestMethod","param1","param2");
log += ("\nresponse: "+ret);
}
and here is the python code:
def FlashCall(self,evt):
"""Riceve una chiamata dal flash di tipo call"""
print "FlashCall", evt.request
ret = "<object><property id='message'><string>Ciao
baby</string></property></object>"
self.movie.SetReturnValue(ret)
It's arrive correctly the xml of the flash call, but flash never receive the
return value. The 'ret' value is ever null.
paste the actionscript and the python code
On 4/6/06, Mirco Furlan (Visionee) <[EMAIL PROTECTED] > wrote:
I'm trying for the first time to bring up a simple example of communication
between python and flash using ExternalInterface class. Use wxPython as host
application. I can't have a 'call' action to capture a result back.
Seems the SetResultValue() function not properly working... I don't see any
error, but the result in flash is ever null.
Someone had the same problem?
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org