[swx] Problem sending data: [object Object]

ben ben_da_dog at yahoo.co.uk
Wed Jan 16 13:33:51 PST 2008


'tis odd.

I would think that one element in _root.elementi.Formform.dataHolder 
does not exist.

try
trace(_root.elementi);
trace(_root.elementi.Formform);
trace(_root.elementi.Formform.dataHolder);

to see if any resolve to undefined...

Ben


Joe L wrote:
> One more thing I noticed...
>
> _root.senddata = function(data:Object) {
>      trace(dati.Lastname);
>      trace(dati);
>      trace([dati]);
>     _root.elementi.Formform.dataHolder.args = [data];
>      trace(_root.elementi.Formform.dataHolder.args);
>     SWX.prepare(_root.elementi.Formform.dataHolder);
>     _root.elementi.Formform.dataHolder.loadMovie(" 
> http://localhost/swx/php/swx.php","POST");
> };
>
> The four traces above yield the following results, respectively:
>
> Jones
> [object Object]
> [object Object]
> undefined
>
> So I guess the problem is that the following line:
> _root.elementi.Formform.dataHolder.args = [data];
> doesn't actually assign the object to dataHolder.args
>
> But why?!
>
> Best regards,
>
> JL
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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/20080117/7c94e04d/attachment.html 


More information about the swx mailing list