I have a custom MXML Component that extends HSlider. It has been working fine but I am now trying to use it inside a ViewStack and it is failing.
In my ViewStack I have 3 Canvas' each with a VBox in side into which I am placing a load of elements including my custom slider. On the first state of the ViewStack the slider works fine but in subsequent states it is dead and cant be interacted with. Normal HSliders work fine as do all other components.
I assume that this is something to do with the way child objects of a viewstack are initialised but I can't find a fix and I have a deadline looming.
If anyone can offer any insights in to this it would be really, really handy and might save me a late night.
Thanks in advance
in the viewstack you have a creationpolicy property that you set to all, this ensures that everything is instantiated. Normally components are only available after they are displayed.