Room variable and room property

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

User avatar
Wei
Posts: 50
Joined: 13 Jun 2017, 08:16

Room variable and room property

Postby Wei » 25 Jul 2017, 02:22

What's the difference between those 2?
Change room property does not trigger any event on client side, right?
If I set a hidden room variable, it just like room property, right?
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Room variable and room property

Postby Lapo » 25 Jul 2017, 06:41

You are correct, properties are server side only.
However properties can store any Java object while Room variables are limited by the types that are supported

If you need server side only data I would recommend properties.

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
Wei
Posts: 50
Joined: 13 Jun 2017, 08:16

Re: Room variable and room property

Postby Wei » 25 Jul 2017, 21:12

Got it, thanks.

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 45 guests