Ok, I think the way your question is worded can cause problems with the answer 
you get.

If your real question was "Can a class be modified during runtime and how?"  
Would this be the same question you are asking?

I searched the ASDocs and found Dynamic Class, which allows you to add 
variables and functions to an instance of a class.  I created a simple 
application and uses one AS class twice, creating different variables and 
functions in the two instances.

The project I am working on is trying to do something very similar where I 
don't want hundreds of classes to match the hundreds of tables (and would 
require hundreds of java classes on the server).  

And your question made me do some searching, so let me know if this question 
and answer are closer to what you are trying to accomplish in your project and 
I can share my simple code (two files with 70 lines of code, no comments).

--- In [email protected], "postwick" <p...@...> 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?
>


Reply via email to