Thanks Arul - I've wrestled with it for about 6 hours now and am going to take a break for the night.
A bunch of different avenues seem to be closed off: - You can't subclass Class - You can't replace the constructor() function of a class - You can't set any static data on the Class instance that you return, because that static data will apply to _all_ objects calling the constructor. - You can't clone a Class (effectively creating a new Class object dynamically) - You can't call new() on a Class and as said before - You can't pass a Function as the constructor as you could in AS2, or replace the constructor as you could in AS2 Ideally what we're looking for is some sort of ClassFactory or ClassProxy that can be passed as a Class. But because you can't subclass Class, that's looking impossible. I've taken a look at the native serialisation but can't see anything obvious there. Ben Stucki actually suggested creating a .swf on-the-fly in memory (as a ByteArray) - and including a new, dynamically created class in it - then loading it as a class library using Loader. That's a possibility, but it's going to be both tricky, asynchronous (I'm guessing!), inelegant and (comparatively) slow. Hopefully some brainwave will come to me overnight. :-) Cheers, Ian On 10/22/07, Arul <[EMAIL PROTECTED]> wrote: > > Dear Ian, > > Thanks for the links > > Right now I'm stuck in the same place as Josh Tynjala . old school style > Function prototypes are not treated as Class. since flex components expect a > class it fails > But I'm going to dig further in the morning (now its 1 am in Singapore) > > Regards, > Arul > > >

