I'm hoping someone might how the best way to do this. I have a custom
spark component, extended from SkinableComponent, which consists of
an .as class and a .mxml skin. The component has several states, and
each state contains different set of composite components depending on
the state. For example, the initial state is a place holder label,
but in a different state, the label is swapped out with a bitmap
object.
The problem I'm having is when I change the state of the component,
then call ValidateNow(), the child components in the next state are
not instantiated.
I suspect that Fluint's addChild() method for the TestCase is adding
my spark component to an mx Container. I'm not sure if mx containers
can support spark skinable components.
Please advise,
Thanks,
David
You are correct about the container. However, mx container can support
skinnable components. Unfortunately, the order in which things are
created and the length of time it takes appears to be a bit different.
Hoping to produce some best practices for spark components within the
week,
Mike
-David