I succeeded to get rid of this behaviour by removing the ZOOM efect! Seems that mx:Zoom causes the problem (?).
This is the zoom that I'been used: <mx:Zoom duration="750" zoomHeightFrom="1.0" zoomWidthFrom="1.0" zoomHeightTo="0.0" zoomWidthTo="0.0" /> I use mx:Rotate and mx:Move only. Now it works without glitches... btw my ViewStack contains pretty complex components and is the size of the stage. --- In flexcoders@yahoogroups.com, "Jaime Bermudez" <[EMAIL PROTECTED]> wrote: > > Any help with this? > > On 1/27/07, Jaime Bermudez <[EMAIL PROTECTED]> wrote: > > > > I'd like an explanation of this behavior as well Danko. I perused the > > source code of the ViewStack and it seems like the hideEffect of a > > currently selected child should play out before the selected index is > > actually changed (and the next child is made visible). Seems like this only > > happens every other time. > > > > Anyone from Adobe or anyone who has investigated this further care to > > explain? > > > > Thanks, > > > > Jaime > > > > On 1/17/07, Danko Kozar <[EMAIL PROTECTED]> wrote: > > > > > > Hi, > > > > > > I'm using mx:Move effects on ViewStack as it's items showEffect and > > > hideEffect. HideEffect moves the previous view off-screen; then the > > > next view slides in. > > > > > > (btw these views are complex full-screen displays (containing > > > TabNavigators, DataGrids and TileLists) > > > > > > First time when changing views, the effect plays properly - e.g. when > > > switching from view 0 to view 1, or view 1->view 2 etc. everything > > > works as expected: the first view moves out, the second one moves in. > > > > > > But: I've noticed a strange behaviour when returning to the ViewStack's > > > view that was previously shown (created), for instance view 1 ->view 0: > > > for a blink of a second the object is displayed on it's final position > > > (!); then it dissapears, the effect starts and object moves in as > > > expected. > > > Another thing I noticed is that previously created view's showEffect > > > starts too early: it doesn't wait the hideEffect of the previous view > > > to play it's part - they play at the SAME TIME. > > > > > > I've come to conclusion that this first time the effect plays right > > > because objects aren't created yet (?). > > > > > > I tried to do the same thing with mx:States - nothing was improved, and > > > the performance was drastically degraded -> seems like States have > > > problems (?). > > > > > > The questions are: > > > - what am I supposed to do with Effects. Did I miss something? > > > - do I have to destroy objects previously shown? > > > - how do you destroy objects in Flex? > > > - what's the problem with mx:States and performance? > > > > > > Thanks in advance! > > > > > > Danko > > > > > > > > > > > > -- > > > Flexcoders Mailing List > > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > > > Search Archives: > > > http://www.mail-archive.com/flexcoders%40yahoogroups.com > > > Yahoo! Groups Links > > > > > > > > > > > > > > >