I'm trying to transform a simple example Flex 3 application to
separate model, view and controller. I started with the following:

<mx:Application>
    <mx:RemoteObject id="myServer" showBusyCursor="true"/>
</mx:Application>

And I ended up with the following:

main.mxml
========
<mx:Application>
    <my:Model/>
</mx:Application>

Model.as
=======
package my{
    class Model{
        private var _myServer:RemoteObject;
        public function Model(){
            _myServer = new RemoteObject();
            _myServer.showBusyCursor = true;
        }
    }
}

But the MVC version doesn't work because of the
_myServer.showBusyCursor=true; line. The application freezes on
startup and nothing happens. Not even an error message. And if I
remove this line, everything loads correctly.

I've tried to set the busy cursor manually using CursorManager and it
works but I would prefer RemoteObject to do it automatically.

Am I doing something wrong?

-- 
Sébastien Arbogast

http://sebastien-arbogast.com

Reply via email to