On Fri, Oct 17, 2014 at 5:26 PM, Alex Harui <aha...@adobe.com> wrote:
> 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. > I had to do that because, if I don't specify all the list of states, the Label never shows up on the Flash version. Technically, if I don't specify any state, it should show up in all the states. But, that does not seem to be working. I tested by removing the array of states. The label does not show up in Flash, and is the only thing that shows up in HTML/JS. > > 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. > Okay, thanks for the hint. I will try to debug this over the weekend. Thanks, Om > > -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 > >