Hi

I'm creating an application which use multiples modules (swf files) in flash mx 2004 pro.

Each module (swf) is made in Flash Pro with many forms screens (and a shared library with my personnals components used in screens).

The main application call a method which use the MovieClipLoader object and which check if all forms of the module are correctly loaded (in a setInterval because after the onLoadInit method all screens are not completely loaded, but only the first one).

When all seems ok, I create my module object with it's classes and I load it's model, then it's controller, then an XML language file (with XML.load and setInterval into), then I init each form screen into the module file and I load the main screen of the module.

This works well, but sometimes all the screens appears for the first to the last before my init functions. All is good after due to my init and main screen functions, but when loading I've the display of all the forms (like a double click on le module swf) and the error message "A script in the movie is causing Macromedia Flash to run slowly ...." due to the length for the display of all the screens !

I've this problem with big module which contains many forms and too when memory is used a lot it seems.

Someone to solve this problem ? or have the same experience ?
or solution to "rewrite" my code ?
Thanks :)

Note :
- main application 400 ko (with all classes)
- shared library (used in main application and in all modules) : 190 ko
- language file xml : 30 ko max. each
- module swf file : 80 ko max. each (components are in the shared library)
All classes are put into the main application and modules classes called only when module is loaded.

---------------
Benjamin
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to