3 Replies Latest reply on Jan 16, 2009 9:01 AM by ntsiii

    Instantiating multiple component instances/generated as3

      Hi all,

      Is there a simple way to generate multiple instances of a component described in .mxml code.

      I don't want to create everything in AS3 since the generated as3 from the .mxml is ~1000 lines of code. Maybe I'm missing something but I can't find a way to say in as3 "create me a new component described by this chunk of mxml". I tried to copypasta the component from the generated as3 (using keep-generated-actionscript flag in mxmlc) but it's a bit of a mess :-)

      It is a fairly typical thing to have to create multiple components with the same description.. and if this is possible only in as3 isn't this a huge hole in the otherwise very nice mxml??