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/src/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

Reply via email to