RE: [flexcoders] FDS number NaN

2006-12-08 Thread Peter Farland
] FDS number NaN Anyone else have this problem or am I just doing something wrong. Thanks Jeff Jeff Krueger wrote: All, I am finding that when I pass a actionscript class to a remote

Re: [flexcoders] FDS number NaN

2006-12-05 Thread Jeff Krueger
Anyone else have this problem or am I just doing something wrong. Thanks Jeff Jeff Krueger [EMAIL PROTECTED] wrote: I have considered coming up with a number like -99 and then assume that to be null and initialize all my Number variables to it and then translate

Re: [flexcoders] FDS number NaN

2006-12-02 Thread Jeff Krueger
This is correct. My Number in my as class isn't really null it is NaN. But I believe that to be the actionscript equivalent to null for a number. And yes when I pass that to java function that function recieves the class with a 0 for the Long instead of null. Here is the output from

Re: [flexcoders] FDS number NaN

2006-12-02 Thread Douglas McCarroll
Okay. So this is normal FDS behavior, as explained in the docs. The question becomes How can we deal with this limitation of FDS? I don't know an answer but perhaps others on the list do. Has anyone else wished that they could pass NaN or null into Java? How did you deal with this FDS

Re: [flexcoders] FDS number NaN

2006-12-02 Thread Jeff Krueger
I have considered coming up with a number like -99 and then assume that to be null and initialize all my Number variables to it and then translate that in java to null. But that is a hack at best. Anyone else?? Jeff Douglas McCarroll [EMAIL PROTECTED] wrote: Okay.

[flexcoders] FDS number NaN

2006-12-01 Thread Jeff Krueger
All, I am finding that when I pass a actionscript class to a remote java object and a number variable type in the actionscript class is set to NaN (Null), that the java class gets set to a 0, instead of a null. Is there something I am missing or something I need to set the number to

Re: [flexcoders] FDS number NaN

2006-12-01 Thread Douglas McCarroll
Jeff, I'm not sure that this will help you find a solution, but it confirms that this is a known issue: http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/js/html/wwhelp.htm?href=Part1_GetStarted.html Primitive values cannot be set to null in Java. When passing Boolean and Number

Re: [flexcoders] FDS number NaN

2006-12-01 Thread Jeff Krueger
Thanks. I am not using a primitive, I am using Long. I wonder what it does for those. Jeff Douglas McCarroll [EMAIL PROTECTED] wrote: Jeff, I'm not sure that this will help you find a solution, but it confirms that this is a known issue:

Re: [flexcoders] FDS number NaN

2006-12-01 Thread Douglas McCarroll
Jeff, Let me get this clear. If I understand correctly you're passing an AS number hoping that it will convert to a Java Long. But your number is set to null, and you'd like it to convert to null on the Java type. Is this correct? Douglas Jeff Krueger wrote: Thanks. I am not using a