flex transition effects works on 2nd and after transition, but not on very first transition

Posted by Rees on Stack Overflow See other posts from Stack Overflow or by Rees
Published on 2010-05-18T23:29:07Z Indexed on 2010/05/18 23:30 UTC
Read the original article Hit count: 512

i have a flex app that transitions between 2 states with the toggle of a button. my issue is that the effect of fading only seems to work on the 2nd transition and after. However, for my first transition... going from State1 to studyState... there is no fade effect whatsoever, in fact the components in state1 disappear completely (the footer fills the empty gap where the "body" use to be) and then the flex recreates the studyState (without any fade refilling the "body" with components only in studyState).

After this first transition however, going between studyState and State1 working COMPLETELY fine.. why does this happen and how can i make it so that crossfade works STARTING FROM THE VERY FIRST TRANSITION? please help!

<s:VGroup id="globalGroup" includeIn="State1" width="100%"></Vgroup>
<s:VGroup id="studyGroup" includeIn="studyState" width="100%"></Vgroup>

© Stack Overflow or respective owner

Related posts about flex

Related posts about flash-builder