>From FlexCoders:

"First, the behavior of ActionScript 3 Number, int and uint is based
on
the ECMA Script 4 specification (well, at least what this
specification
stipulated at the time of release). Given that AS3 has been released
Flex is dependent on the way it is today.

Second, Java primitives can't be null (they default to 0 if one tries
to
provide null to them on reflection). So, if you wanted to preserve a
null value then your Java propeties would have to use the Object form
of
the Java numeric types.

Third, for ActionScript integer types (i.e. int and uint), and Java
integer types (long, int, short, and byte) can not accept NaN. If you
try to get the long value from Double.NaN (or Float.NaN) you'll get 0.

Fourth, ActionScript Number goes over the wire in AMF3 using the
double
type and is deserialized as a Java Double. On instantiating your
remote
Java object or passing a parameter to a method to be invoked this
Double
is translated to the required type using reflection and translation.

So, an ActionScript Number.NaN -> Java Double.NaN -> Java Long 0 and
thus your limitation is that AS numeric types can't be null in general
and Java integers can't be NaN.

So you need to either use Object in ActionScript to hold null or use
Double (or Float) in Java to hold NaN."

Pete (from Adobe)


[]'s
Beck Novaes

On 20 ago, 16:58, "Cleber Lecheta Franchini" <[EMAIL PROTECTED]>
wrote:
> Prezados(as),
>
>     Como fazer para que um objeto action script que tenha um atributo
> int que não foi preenchido no formulário passe seu valor como null e
> não como zero quando utilizo ele como remote object para conversar com
> o java?
>
> --
> Atenciosamente
>
> Cleber Lecheta Franchini
> (44) 9951-8170
>
> MBA em Gerenciamento por Projetos - FGV
> Especialista em Sistemas GNU/Linux - Conectiva S.A
> Tecnologia em Informática - UFPR
>
> ANTES DE IMPRIMIR tenha em mente seu compromisso com o  MEIO AMBIENTE!


--~--~---------~--~----~------------~-------~--~----~
Você recebeu esta mensagem porque está inscrito na lista "flexdev"
Para enviar uma mensagem, envie um e-mail para [email protected]
Para sair da lista, envie um email em branco para [EMAIL PROTECTED]
Mais opções estão disponíveis em http://groups.google.com/group/flexdev
-~----------~----~----~----~------~----~------~--~---

Responder a