dynamic-class

In Flex, how do I know when the properties of a dynamic object change?

I have a dynamic class that serves as a storage container for configuration settings. The settings are variables of that class and it has methods to read from and write to a configuration file, database etc. Now I want to trigger writing to the persistant storage whenever a class variable is changed. As the variables are added dynamicall...

Creating a class dynamically in actionscript

Let me present the problem first. I need to load all images that I have used in my project externally without embedding. The images are present either in skins or as icons for items in trees. I came across the IconUtility class here I was able to modify it and use it for trees but the problem is we cannot use iconutility for the same com...

AS3 Dynamic Class Dynamic Method Names

I'm clearly missing something here. I need to fill methods of dynamic AS3 class from an array (see silly example below). But when I call those methods, all of them appear to be the same method. In the example below, all methods are foobar1. If I create methods by hand, without a loop, everything is fine. Any clues? package foo {...

Reflection IL Code

Hi, I'm new to reflections. I need to create a class which inherits from a parent class. I need to create a readonly property. This property calls an existing function in the parent class by passing an argument 25. Everything works fine, except that I am unable to pass the value 25 to the function being called. Below is the code that ge...

What frameworks/languages support run-time class creation?

Hi. I'm trying to put together a list of frameworks/languages support run-time class creation. For example in .NET you can use the System.Reflection.Emit library to emit new classes at run time. If you could mention other frameworks/languages that support this (or some variation of it), that'd be really helpful. Thanks :) ...

How can I delete or create classes at run time c#?

I made a program that achieve a knowledge representation, its good but I thing it could be better if I can create and destroy classes on the fly. ...