Hi all !
I'm trying to get a component instance using the following:
var workspace:Workspace = Workspace.getInstance();
var name:String = "com.datasul.framework.custom.view.LoanForm";
var type:Function = ClassUtil.findClass(name);
wkt = Workspace.getInstance();
wkt.createChild(type,name);
Where:
- Workspace: is an object extending mx.containers.Canvas;
I suppose that retriving an Object using ClassUtil I would get an object instance. But it
doesn't work in this fashion. So, I still tried to use wkt.createChild(type.call(),name),
however no success.
Did anybody has an idea to create my object dynamically and add it to a container ?
Regards,
Michel.
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

