ClassFinder is basically that, but not using eval. You're right, it's
the same. You can just use your own, as I do. I only mentioned
ClassFinder because it was referenced in the thread.
Jim Kremens
On 2/5/06, Tyler Wright <[EMAIL PROTECTED]> wrote:
> > Then you can use classfinder to instantiate them dynamically.
>
>
> I've never seen an mx.utils.ClassFinder ... is it part of the vs. 2
> component set they shipped with MX'04 ?
>
> All packages and classes are defined on the _global scope. Vs. 2 componets'
> EventDispatcher, if included in your swf, can be accessed via
> _global.mx.events.EventDispatcher. Seems funny to have a whole ClassFinder
> when all you need is
>
> var newClass:Function = eval("_global." + classPath);
>
> which is probably what ClassFinder is anyway. It's like the MM remoting
> componets, a dozen classes to replace the handful of lines of conveniently
> undocumented code. This has nothing to do with this thread, but here's a
> freebe for anyone wanting to know how to roll their own remoting.
>
> var nc:NetConnection = new NetConnection();
> nc.onStatus = function() { ... }; // catch the errors
> nc.onResult = function() { ... }; // receive the results
> nc.connect("http://uri.com/gateway.script");
> if (username != undefined && password != undefined) {
> nc.addHeader("Credentials", false, {userid:username,
> password:password});
> }
> // send command to server
> nc.call("ClassName.methodName", nc, param1, param2);
>
> it's pretty simple by itself without the complexities of all the proxies
> making it simple.
>
> uh, that was a bit of a digression.
>
> Tyler
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
--
Jim Kremens
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders