Title: Messaggio
I'd like it be so simple :)) the funcion name is not the same, because in wxPython I bind the event FlashCall to a local function (not matter what the flash real call). I said I can correctly see the flash call arrive to my function FlashCall (all the xml string <invoke name="TestMethod".....>) the problem is that the SetResultValue from python seems to be nothing on the flash ActiveX control. That's my problem. 
And it appear very strange to me, because the other side a python->flash call (with a method registered in AS with addCallBack) go successfull with the response. 
 
 -----Messaggio originale-----
Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Per conto di ai829(ηɷÉ)
Inviato: venerdì 7 aprile 2006 9.42
A: Open Source Flash Mailing List
Oggetto: Re: [osflash] R: python-flash with ExternalInterface

you did not call the right function

On 4/7/06, ai829(温飞飞) <[EMAIL PROTECTED]> wrote:
TestMethod
FlashCall
the function name is not the same


On 4/7/06, Mirco Furlan (Visionee) < [EMAIL PROTECTED]> wrote:
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


_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to