Minor update to SVN trunk for Services Null on Initialization

In the documentation it states that you should perform the following to initialize your application:

public function init():void { // set up our MVC controller for this component addEventListener(MVCServicesInitializedEvent.MVC_SERVICES_INITIALIZED,servicesInit); controller = new MyController(this); if (getService() != null) { dispatchEvent(new MyInitEvent()); } } private function servicesInit(ev:Event):void { dispatchEvent(new MyInitEvent()); } Turns out that if you do not use the optional messaging.xml file then the MVCServicesInitializedEvent is not thrown and due to timing your services may be null. I updated the trunk to fix this or you can just create an empty messaging.xml file.

Comments
BlogCFC was created by Raymond Camden. This blog is running version 5.5.006. | Protected by Akismet | Blog with WordPress