You got it right! I was using the wrong version of RemoteObject. Now it works great. Thanks a lot!
2008/5/23, Pratima Rao <[EMAIL PROTECTED]>: > > Hope this is useful – I see the following error when I run it in the > debugger. > > > > Error: Cannot assign operations into an RPC Service (showBusyCursor) > > at mx.rpc::AbstractService/ > http://www.adobe.com/2006/actionscript/flash/proxy::setProperty()[C:\dev\enterprise_bali\frameworks\mx\rpc\AbstractService.as:279] > > at my::Model$iinit()[C:\Documents and > Settings\prao\Desktop\downloads\Flex SQLAdmin\my\Model.as:7] > > at main/main::_Model1_i()[C:\Documents and > Settings\prao\Desktop\downloads\Flex SQLAdmin\main.mxml:4] > > at main$iinit()[C:\Documents and > Settings\prao\Desktop\downloads\Flex SQLAdmin\main.mxml:4] > > at _main_mx_managers_SystemManager/create() > > at > mx.managers::SystemManager/mx.managers:SystemManager::initializeTopLevelWindow()[C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\SystemManager.as:2289] > > at > mx.managers::SystemManager/mx.managers:SystemManager::docFrameHandler()[C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\SystemManager.as:2214] > > > > > > > > What fixed it is the following change (in bold) – showBusyCursor seems to > be an attribute of *mx.rpc.remoting.mxml.RemoteObject * > > * * > > That seemed to fix it. Give it a try. > > > > - Pratima > > * * > > > > > > > > package my{ > > import *mx.rpc.remoting.mxml.RemoteObject;* > > public class Model{ > > private var _myServer:RemoteObject; > > public function Model(){ > > _myServer = new RemoteObject("myhandler"); > > _myServer.showBusyCursor = true; > > } > > } > > } > > > > > > > ------------------------------ > > *From:* [email protected] [mailto:[EMAIL PROTECTED] *On > Behalf Of *Sebastien ARBOGAST > *Sent:* Thursday, May 22, 2008 3:05 PM > *To:* [email protected] > *Subject:* [flexcoders] RemoteObject.showBusyCursor doesn't work > > > > 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 > > > -- Sébastien Arbogast http://sebastien-arbogast.com

