Bender: Dynamic class instantiation and library generation
I've been playing about with the creation of dynamic classes - IE instantiating something you don't have a reference to already in your flex project.
This blog post has a method to achieve it but it suggests putting everything into a swc library. Having thought about this a bit, I'm wondering if it might not be best to have the actionscript generator tool pump out all the classes, then compile them along with the Bender.as class right into a single swc library, then provide instructions on including the library within your flex app.
This way the user just has to run the tool, then incorporate the swc and Bender is available to the project. The only hitch is that to do it I'd need to use cfexecute or something similar within the CF code, so the user will have to provide the location of the relevant compilers. Perhaps if I include the equivalent commandline instructions for doing it by hand also then people who have problems with it can still get it going.
I'd appreciate any comments on this - does the idea of putting it all into a swc seem useful or too much bother for people trying to use Bender?
http://www.tobytremayne.com/trackback.cfm?D44ED435-C4D8-F7A1-10F91356F2A6B0B6


There are no comments for this entry.
[Add Comment]