Closing OpenSpace. Or making it invisible/inactive.

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

Moderators: Lapo, Bax

Post Reply
e2easy
Posts: 6
Joined: 18 Nov 2008, 04:02

Closing OpenSpace. Or making it invisible/inactive.

Post by e2easy »

I have a prototype application where the user can switch between several pages. OpenSpace is on one of these pages.

Initially, I was making the OpenSpace page invisible when it wasn't being viewed. But this caused OpenSpace to complain about its logo not being visible (and it was probably inefficient to have it running in the background anyway.)

So I set up an OpenSpace page when needed. And removed it from the display list when not needed. I modified my code so that all listeners were tidied up and removed when no longer needed.

But from within the OpenSpace engine, there is a listener that isn't tidied up, and after I close down OpenSpace, the listener, and Timer is still active. It causes this error:-

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.smartfoxserver.openspace::OpenSpace/onLinkTest()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()

Can you suggest a graceful way of closing down OpenSpace? Or perhaps a recommended way of switching between pages, where OpenSpace is only on one of these pages.,
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

The problem you are facing is due to the way the trial version works. No problem with the retail version.
Also check my second and third reply in this post.
Paolo Bax
The SmartFoxServer Team
Post Reply