Pascal FODOR wrote:
Humm, looks like this is getting away from the question ;-)
The problem with:
if ( className != "" ) return false;
instance = new className( valueObject );
return instance;
Is that className is a string not a reference so new className() won't work.
He you tried eval(className) as you suggested?
Nah, I hacked it to together with a switch/case-block. Works fine. I
dropped my Artificial Life idea and just
implementated the A* Path finding algorithm in a isometric game field.
:-) Works nice and easy.
Yours,
Weyert de Boer
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders