Page 1 of 1

sending Boolean with sendObject()

Posted: 23 Jun 2005, 10:50
by paco
Hi,

I was trying to send a Boolean wich was set to false to another user with sendObject(). But it came out out true at the other end.

I'm not sure if this is due to my own scripting , but when I send it as a String ("false"), and at the recieving end a script like:

if (obj.var=="false")
{
do_this();
}
else // "true"
{
do_that();
}

...,it worked fine.

I'm curiuos if other people experience the same trouble with sending a Boolean with sendObject().

If not, then it's just me. :D

Posted: 23 Jun 2005, 18:15
by Lapo
Hi Paco, I will check the API and see if it's a bug.

I will let yo know as soon as possible! :)

Posted: 26 Jun 2005, 17:04
by Lapo
Hi,
sorry for the delay in responding.

This was a bug in version prior to 1.1.1 and it happened only under Actionscript 2, because of slight difference in how booleans are treated in AS2 in respect to AS1.

With the latest release this was solved.

What version are you using? The bug was in the API, please check if you're using version 0.9.2

:)