The harder parts had been the implementation of lazy loading and the loading of the icons from remote locations, both of which I got ideas from other people and adapted.
The lazy loading idea is from http://flexdiary.blogspot.com/2009/01/lazy-loading-tree-example-file-posted.html
The handling of the obix becomes pretty easy with the e4x in flex. One point worth highlighting is the need for explicitly referring to the obix namespace.
So you need to define the namespace like this
so that you can invoke stuff like
The swiz framework provides a nice
So you need to define the namespace like this
var ns:Namespace = new Namespace("http://obix.org/ns/schema/1.0");
so that you can invoke stuff like
result.child(new QName(ns, "*"));
The swiz framework provides a nice
executeServiceCall method in controller classes which facilitates service calls. The source code of the Swiz 1.0.0 Beta framework is not included in view source. You can get it from its source code repository.The demo here works as a client to the http://obix.tridium.com/obix/
Download, install, run and view source.
And Enjoy or don't! :)
No comments:
Post a Comment