[swx] SWXml

Aral Balkan aral at aralbalkan.com
Sat Dec 8 10:09:39 PST 2007


Hi Arjun,

If you're going to use the native method (no api), you need to serialize
your args

i.e., loader.args = '["http://..."]'; // not the enclosing single quotes

Otherwise, I'd recommend that you use the SWX ActionScript API, where you
can pass the args as a native array.

Hope this helps,
Aral

On Dec 8, 2007 6:04 PM, arjun urs <arjunurs at yahoo.com> wrote:

> Hi,
>
> I am trying to use swx in my flash application. Am I doing anything wrong
> in the code below? because it doesn't seem to work.
>
>
> loader.serviceClass = "SWXml";
> loader.method = "parseXML";
> loader.args = ["
> http://service.openkapow.com/hasin/babelfishenglishtofrench.xml?text=Good+Morning&Translate+From+English+To=German
> "];
> loader.debug = true;
> loader.loadMovie("http://swxformat.org/php/swx.php", "GET");
>
> function onEnterFrame()
> {
>     if (loader.result)
>     {
>         trace(loader.result.result[0].text[0].text);
>         onEnterFrame = null;
>     }
> }
>
> Thanks,
> Arjun
>
> _______________________________________________
> swx mailing list
> swx at osflash.org
> http://osflash.org/mailman/listinfo/swx_osflash.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/swx_osflash.org/attachments/20071208/b7a3f269/attachment.html 


More information about the swx mailing list