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 should be done as a bead that folks add to the View sort of
how we have beads that implement data binding.  Hopefully the JS side will
"just work" which is what we want: minimum overhead on the JS side.

My 2 cents,
-Alex

On 7/26/16, 9:37 AM, "Yishay Weiss" <yishayj...@hotmail.com> wrote:

>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.
>
>
>From: Harbs<mailto:harbs.li...@gmail.com>
>Sent: Tuesday, July 26, 2016 5:30 PM
>To: dev<mailto:dev@flex.apache.org>
>Subject: [FlexJS] UIBase z-order
>
>Currently, there’s no way to specify the z-order of FlexJS objects. It’s
>probably possible to use obj.style.zOrder = val, but that would only work
>on the JS side. To work on the Flash side as well, we’d need to use the
>zOrder style attribute as well as the depth property of a Flash Display
>object.
>
>The easiest way to do this would be to add another property to UIBase
>with conditional compiling. It’s not a lot of code, but I know we’re
>trying to keep the size of the base classes down. Is there a more
>“FlexJS-y” way of doing this?
>
>Thanks,
>Harbs

Reply via email to