] 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
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
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
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
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.
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
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
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:
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
9 matches
Mail list logo