Launching interface from OpenSpace

Post here your questions about the OpenSpace 2.x or notify bugs and suggestions.

Moderators: Lapo, Bax

Post Reply
mmancuso
Posts: 19
Joined: 04 Feb 2012, 23:01

Launching interface from OpenSpace

Post by mmancuso »

How would one go about launching a flash interface from OpenSpace?
I'm using Flex and initially I have OpenSpace and my interface in a Vbox, with the interface initially hidden. When a user steps on a tile, I have a trigger set so that the OpenSpace instance will hide, the user will be removed from the OpenSpace room, added to the interface via SmartFox, and I set the interface to visible.
Just wondering if this is the right / wrong way (if there is one!).

Thanks,
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: Launching interface from OpenSpace

Post by Bax »

As you are hiding the map I would also use the IOpenSpaceAPI.unloadMap method, to release the resources used by OpenSpace.
Paolo Bax
The SmartFoxServer Team
mmancuso
Posts: 19
Joined: 04 Feb 2012, 23:01

Re: Launching interface from OpenSpace

Post by mmancuso »

Ah perfect, that's what I was concerned about, that setVisible(false) was leaving open space running, thus using more resources.

Thanks a tonne, your help is much appreciated.
Post Reply