[flexcoders] how to create object from string of class name

2008-08-26 Thread morpankhy
how to instaniate an object from the name of a class at runtime: how to reference the class ? To instantiate it (a class) from a string of its name at runtime How to achieve this in Flex - AS 3 This was possible in as 2.0, I write for your reference (E.g. We can do in AS 2.0

[flexcoders] How to Create an object of Custom component dynamically / at Runtime / on-fly

2008-08-25 Thread morpankhy
I have some custom components. I want to make their objects at runtime. How to do that in flex ? Exa. MyLayout001.mxml, MyLayout002.mxml, MyLayout003.mxml, MyLayout004.mxml and MyLayout005.mxml and so on. ( lots of custom classes I have ) Now on click of a button ( as per users' choice ) I