I don’t think I made sure states works with an includeIn that is a list of states so that’s the first place I’d look.
State-dependent children don’t go in the MXMLDescriptor. They become AddItems in the overrides of the States and all of that gets set up in the constructor. Also, there is a bug in setting up the initial state that may not have been fixed in the JS side. DataBindingTest doesn’t have any children that are dependent on the initial state. You can look at recent changes I made to SimpleStatesImpl.as and sync them over to the JS side, or I’ll probably get to it next week. -Alex On 10/17/14, 4:53 PM, "OmPrakash Muppirala" <bigosma...@gmail.com> wrote: >I created a component that sort of behaves like a Skin class. It is here: > >https://github.com/apache/flex-asjs/blob/develop/examples/FlexJSTest_SVG/s >rc/SkinsView.mxml > >This works fine on the Flash side. There is an issue with mouseChildren >setter on the JS side, but I think I can figure out a way around it. > >The real issue here is that on the JS side, no element get drawn. In the >view JS class, this is how the MXMLDescriptor looks like: > >SkinsView.prototype.get_MXMLDescriptor = function() >{ > if (this.mxmldd == undefined) > { > /** @type {Array} */ > var arr = SkinsView.base(this, 'get_MXMLDescriptor'); > /** @type {Array} */ > var data = [ > >]; > > if (arr) > this.mxmldd = arr.concat(data); > else > this.mxmldd = data; > } > return this.mxmldd; >}; > >I looked at DataBindingTest example and the states seems to work fine >there. I am not able to figure out what I am doing wrong. > >Alex/Peter/Erik, can one of you please take a look and help me debug? A >code review of my recent commits would be good as well. > >Thanks, >Om