HTML5 DisplayObjectContainer setChildIndex is missing

I get this error:

flash.display.DisplayObjectContainer has no field setChildIndex (Suggestion: getChildIndex)

The DisplayObjectContainer is missing the setChildIndex() method:
Is there something wrong?

OpenFL-Bitfive isn’t actually part of OpenFL but a 3rd party HTML5 backend created by

You should post an issue on their github or contact them for an answer as it looks like they simply haven’t implemented this function. It shouldn’t be too hard to implement the function yourself if you wanted to fork and add it - it could just involve swapping items in the children array. You could then send a pull request and have your changes merged into their repository.

Best of luck whichever path you choose.

Edit: It seems this has already been noted in the issues:

1 Like

You can find the OpenFL implementation here:

If you are using a framework that enables another backend by default, you can also compile using -Dno-custom-backend in order to disable it and try OpenFL standard

1 Like

Thanks for your replies! :slight_smile: