I have tried to minimize the first panel before I go to next
state but I got the following problem message:
TypeError: Error #1034: Type Coercion failed: cannot convert
"panel1" to mx.core.IUIComponent.
at mx.core::UIComponent/set currentState()
It is seem that I forgot to add kerlly bracket to the target,
but I have got another problem, there is no effect.
When I click the button, the application will move to the
next stage without any effects. Whats the problem ?
I think I have found the answer for my question. Because my
states is based on application component, so any effects will apply
on the main application in total and I want it just for the panel
(I hope I am right about this).
For now everything is fine but I will need to add some
components to the a specific state programmatically. I wonder how
can I do that? I have tried to identify that state by
id property but I did not find any method like addChild
within that state or lets say in state component in general.