[swx] SWX Object exists, but call isn't executed

Mediactief - Paul de Raaij paul at mediactief.nl
Mon Apr 14 05:29:23 PDT 2008


 
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





More information about the swx mailing list