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

Mediactief - Paul de Raaij paul at mediactief.nl
Mon Apr 14 06:56:53 PDT 2008


Well, I've spend two weeks on problemsearching because I had multiple swx
instances on one movie. That's why I have one root movie and all movie are
loaded on the root movie which has the swx instance. That's the reason why
there's an this._parent._parent._parent. 
 
I'm following the suggestion of holger and I'm busy walking through all the
code. Thanks for your suggestion anyway.
 

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 <http://www.mediactief.nl/> 
W: www.mediactief.eu <http://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 
 

  _____  

Van: ben [mailto:ben_da_dog at yahoo.co.uk] 
Verzonden: dinsdag 15 april 2008 15:52
Aan: SWX Mailing List
CC: paul at mediactief.nl
Onderwerp: Re: [swx] SWX Object exists, but call isn't executed


That might sounds like a silly suggestion but, why not create a new SWX
instance ? 


swxMailer = new org.swxformat.SWX();



And set all the SWX object parameters (gateway, etc) there too?



By the sound of it, you're in a bit of a rush since rewriting isn't an
option.. that might get you out of trouble as a quick solution..
Ben

holger arndt wrote: 

Hi Paul,

i think the code so far is ok (except for the mentioned code  

review ;-) )

it seems the problem is somewhere else, outside the script.

You could check, if the  "this._parent._parent._parent.swxCards"  

object is still the SWX object and was not replaced, by error, with a  

result object or so...



trace("Object type: " + (swxMailer instanceof org.swxformat.SWX));





That's where i would start looking for bugs...



Cheers,

Holger Arndt



Am 14.04.2008 um 14:51 schrieb Mediactief - Paul de Raaij:



  

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





      



_______________________________________________

swx mailing list

swx at osflash.org

http://osflash.org/mailman/listinfo/swx_osflash.org

    





_______________________________________________

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/20080414/40023215/attachment-0001.html 


More information about the swx mailing list