Thanks, I was just thinking that something like your code could be
added to the framework. I'd personally like to have dispose functions
on all object that removes everything inside. So disposing the view
would also dispose all objects in the scene etc.
I simply removed the view like this:
if (this.view) {
this.removeChild(view);
this.view=null;
}
The thing that different from other projects I've done is that it's
removed by a key press, so it might have a different event timing that
what's usual (must say that I don't really understand how the event
timing works, though). So if i hold the cursor over the scene and
press the button i get a mouseOut event, when the view is already
removed.
/David