3 Replies Latest reply on Mar 14, 2009 9:37 AM by John Hall

    Generic function to load custom components

      Hi All,

      I'm relatively new to flex and have been banging my head against the desk trying to work out how to load components through a single function using a string passed in, casting that as the component and then adding it as a child. (Apologies if all those terms are wrong but there we go).

      So for example I have a menu bar that passes the data out to the handler and then that sends it to a function that adds windows to flexmdi as you can see in the code. However I've tried and tried to get it to reference the components and load them using all sorts of functions but really could do with an example as I'm stuck.

      Thanks in advance, Luke