Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Writing an integer Number writes it as int type #4

Open
SBRK opened this issue Mar 4, 2014 · 1 comment
Open

Writing an integer Number writes it as int type #4

SBRK opened this issue Mar 4, 2014 · 1 comment
Labels

Comments

@SBRK
Copy link

SBRK commented Mar 4, 2014

No description provided.

@loteixeira
Copy link
Owner

Hey.
as3-msgpack relies on flash.utils.getQualifiedClassName to discover the type of each object.
and, aparently, this function returns int when a number stores an integer value.

check the following test:

var input:Number = 1.0;
trace("getQualifiedClassName returns " + getQualifiedClassName(input));

the output is

getQualifiedClassName returns int

but if you change the test to use non-integers, the value returned is Number.

so far i don't know how to handle this problem. need to find another way to evaluate the class of an object.

UPDATE
here's a discussion about this issue:
http://stackoverflow.com/questions/12951555/detecting-the-difference-between-uint-int-and-number-in-actionscript-3

@loteixeira loteixeira added the bug label Apr 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants