[osflash] R: python-flash with ExternalInterface

Aaron Smith public at smithaaronlee.net
Fri Apr 7 03:57:55 EDT 2006


I'm interested in seeing how you have this python-flash setup. can you
show me your testing src files just so I could see how you have this all
set up????? would be much appreciated..

smith




ai829(ηɷÉ) wrote:

> you did not call the right function
>
> On 4/7/06, *ai829 (ηɷÉ)* <airandom at gmail.com
> <mailto:airandom at gmail.com>> wrote:
>
>     TestMethod
>     FlashCall
>     the function name is not the same
>
>
>     On 4/7/06, *Mirco Furlan (Visionee)* < mirco.furlan at visionee.com
>     <mailto:mirco.furlan at visionee.com>> 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) < mirco.furlan at visionee.com
>         <mailto:mirco.furlan at visionee.com> > 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
>         osflash at osflash.org <mailto:osflash at osflash.org>
>         http://osflash.org/mailman/listinfo/osflash_osflash.org
>
>
>         _______________________________________________
>         osflash mailing list
>         osflash at osflash.org <mailto:osflash at osflash.org>
>         http://osflash.org/mailman/listinfo/osflash_osflash.org
>         <http://osflash.org/mailman/listinfo/osflash_osflash.org>
>
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>osflash mailing list
>osflash at osflash.org
>http://osflash.org/mailman/listinfo/osflash_osflash.org
>  
>



More information about the osflash mailing list