[swx] Timing problems

holger arndt holger.arndt at synap.de
Sat Apr 26 05:09:57 PDT 2008


Hi Paul,
first off, i tested the postoffice and it seems to work fine... (???)
when i "enter" the postoffice, some pictures appear as in the book,
that's all, right? I can send them as an ecard when i click on them ...
and those appear (on my computer) after only a few seconds.
So it might not be a general problem with your code,
but just a certain situation in which the call is not correctly  
executed or takes longer than the timeout.

But what is strange is that you use args[1] in your call parameter and  
the debugger writes
> SWX: No arguments array (args) found. No arguments will be sent.

That would make it understandable why you don't get a result.
So try to add a Fault Handler to check what SWX tells you there.
It should say that your service misses an argument or similar...
And then try to find the reason for this e.g. why the args array is  
ignored...

Hope that gets at least on the right way to find your "error"...

Cheers,
Holger


Am 26.04.2008 um 09:27 schrieb Mediactief - Paul de Raaij:

> Hello All,
>
> I've got a strange problem. I'm working on a new website which uses  
> swx
> intensively. Now I'm having a weird problem. I've you take a look at
> www.myloandfriends.nl/test.php you'll see the flash page. When you  
> click on
> the clubhouse in the left and then on the book right, you've see some
> pictures coming up. This all works nice with swx. (When you try it  
> you'll
> have to login: user: praaij; pass: test)
>
> This is all working perfectly. Now I have almost the same code in the
> postoffice (right in the main village) and here Ib get some strange  
> timing
> problems. It takes a long time (15 - 30 seconds) before the call gets
> executed. In the debugger then I get this message:
>
> =====================
> SWX.call INFO: No timeout handler defined.
> SWX.call INFO: No fault handler defined.
> ExternalAsset timeout: _level0.SWXLoadManagerClip.holder0
> ExternalAsset.load() info: Sending data using GET encoding.
> SWX.prepare:
> SWX: No arguments array (args) found. No arguments will be sent.
> ExternalAsset timeout: _level0.SWXLoadManagerClip.holder0
> =====================
>
> I use this code to call the swx
>
> ======================
> // Maak het SWX object.
> swx = this._parent.swx;
>
> // Voeg de 'method' eigenschappen toe.
> var methodParameters:Object =
> {
> 	serviceClass: "CardMailer",
> 	method: "getCards",
> 	args: [1],
> 	progress: [this, progressMeter],
> 	result: [this, showCards]
> }
>
> swx.call(methodParameters);
>
>
> function progressMeter(event:Object) {
> 	dataPreloader._alpha = 100;
> }
> =======================
>
> This code works perfectly for the clubhouse, so I don't understand  
> why I
> don't get it to work for this section. Anyone any idea what I'm  
> doing wrong?
> Thanks in advance!
>
> Paul
>
>
>
> _______________________________________________
> swx mailing list
> swx at osflash.org
> http://osflash.org/mailman/listinfo/swx_osflash.org




More information about the swx mailing list