Avatar Chat Changing Backgrounds

Post here your questions about the Flash / Flex / Air API for SFS2X

Moderators: Lapo, Bax

OceanZoneAdmin
Posts: 6
Joined: 02 Sep 2013, 17:43

Avatar Chat Changing Backgrounds

Postby OceanZoneAdmin » 05 Sep 2013, 23:11

Hello
I previously posted a problem with my admin panel and now am out of problems (Probably Can Buy Some Issues At Target! :lol:) and am looking at customization. Here is a image of the avatar chat. Is it possible to have say the grass in one room, but when I change rooms it has a different image? How do you do that? AKA make each room have a different background.

Thank you.
User avatar
Bax
Site Admin
Posts: 4612
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: Avatar Chat Changing Backgrounds

Postby Bax » 06 Sep 2013, 09:36

The simplest way is to use a Room Variable declaring the background for that Room. As soon as the client joins the Room, you read the variable and setup the interface accordingly.
Paolo Bax
The SmartFoxServer Team
OceanZoneAdmin
Posts: 6
Joined: 02 Sep 2013, 17:43

Re: Avatar Chat Changing Backgrounds

Postby OceanZoneAdmin » 06 Sep 2013, 20:36

Bax wrote:The simplest way is to use a Room Variable declaring the background for that Room. As soon as the client joins the Room, you read the variable and setup the interface accordingly.

Can you tell me what the code for that would be in Flash?
User avatar
Bax
Site Admin
Posts: 4612
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: Avatar Chat Changing Backgrounds

Postby Bax » 07 Sep 2013, 11:04

No, I'm sorry. You will need to read the documentation to learn about Room Variables and how to use them.
Paolo Bax
The SmartFoxServer Team

Return to “SFS2X ActionScript 3 API”

Who is online

Users browsing this forum: No registered users and 25 guests