tags:

views:

9

answers:

0

Hi,

I am facing this problem with my AIR application. In my main application I have a main module loader(mainModuleLoader). In this I'll be loading different modules. At one point in my application this mainModuleLoader will dynamically load another module subModule.swf. This subModule again has a module loader subModuleLoader it will dynamically load subSubModule.swf which has a swfLoader. This can be represented using following structure.

mainApp --(has)--> mainModuleLoader
                          |
                       (loads)
                          |
                          V
                      subModule --(has)--> subModuleLoader
                                                 |
                                              (loads)
                                                 |
                                                 V
                                            subSubModule --(has)--> swfLoader
                                                                        |
                                                                     (loads)
                                                                        |
                                                                        V
                                                                  myAnimation.swf

Now when the animation (myAnimation.swf) is loaded, it runs sluggishly and makes my system slow. Checking the taskmanager shows that it is taking upto 80% of CPU.

Now, if I remove one node from the above tree every thing seems to work fine.

mainApp --(has)--> mainModuleLoader
                          |
                       (loads)
                          |
                          V
                     subSubModule --(has)--> swfLoader
                                                |
                                             (loads)
                                                |
                                                V
                                          myAnimation.swf

I am unable to figure out what could be the problem. Please help!!