Re: [FlexJS] UIBase z-order

2016-07-26 Thread Harbs
I personally care about the ordering in code and not markup. (I’m using it to temporarily bring active objects forward.) Yes. z-order is a CSS property and it’s supported in JS. I did not realize that depth was in UIComponent I thought it was a DisplayObject property. That makes this much harde

Re: [FlexJS] UIBase z-order

2016-07-26 Thread Alex Harui
Just so I'm clear, the issue is declaring z-order in MXML or in AS as well? There is no "depth" property on flash.display.DisplayObject AFAIK. If JS supports a zOrder CSS style, then FlexJS should as well. You can add it to SimpleCSSStyles or create a new ZOrderCSSStyles. The SWF implementation

RE: [FlexJS] UIBase z-order

2016-07-26 Thread Yishay Weiss
This looks like a Bead candidate. I would take TextPromptBead as an example. The zIndex is analogous to prompt, although you would probably want to update the zIndex every time it’s changed on the bead, not just when the bead is added. I’m not sure why it doesn’t work that way in TextPromptBead.