sending Boolean with sendObject()

You think you've found a bug? Please report it here.

Moderators: Lapo, Bax

Post Reply

Does anybody experience trouble whenn sending a Boolean with sendObject() ?

yes
0
No votes
never
1
33%
maybe
2
67%
 
Total votes: 3
paco
Posts: 16
Joined: 01 Apr 2005, 19:58
Location: Holland
Contact:

sending Boolean with sendObject()

Post 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
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post 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! :)
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post 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

:)
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply