[swx] SWX Object exists, but call isn't executed
Mediactief - Paul de Raaij
paul at mediactief.nl
Mon Apr 14 05:51:42 PDT 2008
The this._parent._parent._parent is far from ideal, but rewriting is not an
option at the moment.
I've traced both and for both the result is undefined.
Met vriendelijke groet,
Mediactief
Paul de Raaij
Moddermanplein 10
2675 CT Honselersdijk
T: 0174-642451
M: 06-55797329
E: paul at mediactief.nl
W: www.mediactief.nl
W: www.mediactief.eu
The information in this e-mail message (including any information contained
in attachments hereto) is intended only for use of the addressee. This
e-mail message contains confidential or privileged information. If you
receive this e-mail message unintentionally, please notify the sender
immediately and then delete this message. E-mail transmission is not
guaranteed to be secured or error free. The sender is in no way liable for
any errors or omissions in the content of this e-mail message, which may
arise as a result of e-mail transmission
-----Oorspronkelijk bericht-----
Van: ben [mailto:ben_da_dog at yahoo.co.uk]
Verzonden: dinsdag 15 april 2008 14:47
Aan: paul at mediactief.nl; SWX Mailing List
Onderwerp: Re: [swx] SWX Object exists, but call isn't executed
Hmm.. when you start seeing this._parent._parent._parent you know you should
be up for some code rewriting of some sort :)
Are you tracing swxMailer.call() or swxMailer.call ?
that's not the same.
trace(swxMailer.call()) would trace whatever the return of call() is,
whereas trace(swxMailer.call) would trace the property "call", a function)..
Ben
Mediactief - Paul de Raaij wrote:
>
> Hello all,
>
> I have a very strange problem, with probably (and hopefully) a very
> simple solution. I have the following actionscript:
>
> ==========================================
>
> // Get SWX object.
> swxMailer = this._parent._parent._parent.swxCards;
>
> btnSubmit.onRelease = function() {
> var mailParameters:Object = {
> serviceClass: "CardMailer",
> method: "sendCard",
> args: [_parent.iCardID, txtTo.text, txtMail.text,
txtContent.text],
> result: [this, showResult],
> progress: [this, progressHandler]
> }
> swxMailer.call(mailParameters);
> }
>
> function progressHandler(event:Object) {
> trace (event.bytesLoaded + " van de " + event.bytesTotal + "
> geladen...");
> }
>
> function showResult(event:Object)
> {
> var res = event.result;
> _status.text = res;
> }
>
> ===============================================
>
> This is how I make all calls to the swx object in the root and this is
> the only one that doesn't work. When I trace the swxMailer I get
> [object] object. When I trace swxMailer.call() I get undefined. So for
> some reason it loses the call function?
>
> I can't find the problem of this and I'm hoping that someone here can
> give me a new insight to a solution.
>
> 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