[osflash] R: python-flash with ExternalInterface
=?GB2312?B?YWk4MjkozsK3ybfJKQ==?=
airandom at gmail.com
Fri Apr 7 03:42:08 EDT 2006
you did not call the right function
On 4/7/06, ai829(ηɷÉ) <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> 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 > 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
> > http://osflash.org/mailman/listinfo/osflash_osflash.org
> >
> >
> > _______________________________________________
> > osflash mailing list
> > osflash at osflash.org
> > http://osflash.org/mailman/listinfo/osflash_osflash.org
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/osflash_osflash.org/attachments/20060407/60268715/attachment-0001.htm
More information about the osflash
mailing list