[swx] SWX Object exists, but call isn't executed
ben
ben_da_dog at yahoo.co.uk
Tue Apr 15 05:46:45 PDT 2008
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