If the loading of the module requires significant initialization time it
could affect smoothness of transition. Make sure your modules are
lightweight as possible. Use the profiler to get better information.
Hi, thanks for the reply.
If you checked my example source code you would see that both of my modules are alike just the rectangle fill has different color:
<?xml version="1.0" encoding="utf-8"?> <mx:Module xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" width="100%" height="100%"> <s:Group width="100%" height="100%"> <s:Rect width="100%" height="100%"> <s:fill> <s:SolidColor color="0x000000" /> </s:fill> </s:Rect> </s:Group> </mx:Module>
How more lightweight the modules can be...
I did some more testing and there is no flickering when the module is unloaded only when loaded. And also if I set a timer to load the module after the transition is over there's no flickering. Also there is no flickering for texts and also there is less but still sometimes flickering if the transition target is not rect but group. And also if I set the transition to be not 200 ms as in my example but 1000 ms or more then there is no flickering again which doesn't make any sense to be, cause the flickering in a slower animation should be way more obvious that in a very fast one but it is in the countrary.. no flickering at all. Any ideas ?
So to fix the problem I have 2 options:
1) setting at least 1000 ms transition where I don't have flickering
2) use a timer for shorter transitions and load the module after it's ended
But this "hacking" doesn't seem very appealing to me so that's why I am asking here if this is a bug or what ?
Message was edited by: FM_Flame
So having in mind my previous post do you think I should report this as a bug?
I'm not sure what you are claiming is a bug. Flash is single-threaded with
deferred rendering. You have to plan accordingly. You can add your vote to
one of the concurrency/threading bugs if you want.
Well does it make sense to you to have flickering when the transition is 200-900 ms (I tested) and not when it's 1000+ ms long?
If it did flicker always at the point of the module being intitialized and displayed I would definitely say ok, that obviously is interupting the transition cause maybe a lot of operations are going on under to load an empty module...
But why does it flicker under 900 ms and not over 1000 ms duration ? Does Flash being single-threaded with deferred rendering explains this, I don't really know how that works, but if you say that it's normal I will accept it as a fact, but If you think it could be a bug I will post a bug report, so what do you think?
I will run some tests to see If I have flickering if I use moduleManager to load the modules instead of moduleLoader and post the results.