There is a project type Flex Library Project. So you can create library for each dinamicaly loaded block.
And you can use Loader to load them.
Hi, thanks for the response!
A couple of questions arise:
1) If I use this approach am I correct in my understanding that all classes referenced by my library will be compiled into the final SWF? That will create a lot of duplicated classes since those classes are already being used and loaded in the main SWF. Is there a way to avoid this duplication problem?
2) In trying to play with this approach I ran into a problem. When I create the SWF it fails to find a class Vector ("Type was not found or was not a compile-time constant: Vector"), I think I understand that this is because I am targeting flash player 9, but the code I am using require 10. I can't seem to find an option to change the target in a flex library project as I can in a regular actionscript or MXML project.
1 person found this helpful
Classes will be in one final swf. You can divide them manually without duplicating. You can load many libraries.
Vector is system class. Where are many info about targeting to FP 10 only. Google it.