Yeah, I saw your post in my hours of Googling last night. Seems very promising. The idea is to have a database table that stores a list of classes and their properties, and instantiate them at runtime without having to recompile the app - so that if a new class is added to the db my app can use it on the fly.
Would your method of using Modules solve this? It appears so, but I haven't had a chance to try it out. In your post you say: "This setup is very flexible because I can return both instances and classes from the Module." Can you give me an example of how you would return a Class? --- In [email protected], "ag_rcuren" <robert.vancuren...@...> wrote: > > This might help you, its a little something I wrote a little while ago. > > http://flexinonroids.wordpress.com/2009/05/27/flex-3-dynamically-loading-components-at-runtime/ > > > --- In [email protected], "postwick" <paul@> wrote: > > > > If I compile the class as a module, can I then load it in without having to > > statically reference it in my compiled code? I can predict the package > > name based on data from my database ie com.something.somethingelse etc. > > Then I could compile new classes as needed and load them. > > > > --- In [email protected], Alan Shaw <nodename@> wrote: > > > > > > There are a number of important techniques for manipulating classes (as > > > detailed > > > in my post http://nodename.com/blog/2008/06/15/upon-reflection/ ), but > > > unfortunately > > > creating a class at runtime is not possible in AS3. > > > > > > On Mon, Jul 13, 2009 at 8:23 PM, postwick<paul@> wrote: > > > > > > > > > > > > I want to store descriptions of classes in an external file (such as > > > > XML) or > > > > database, and use them in my Flex application such that I can add, > > > > remove, > > > > or change the classes in the external file with recompling the Flex > > > > application. > > > > > > > > Is there any way to do this? In a nutshell, is there a way to create a > > > > class > > > > through an Actionscript function, with a for loop where the information > > > > that > > > > is looped over contains the definitions of the classes loaded from an > > > > external source? > > > > > > > > > > > > > >

