On click of the button, call a function. And inside the function, write this:
var comp:MXMLFileName = new MXMLFileName() this.addChild(comp); Please change in the above code, MXMLFileName to the actual name you give to your MXML file. Regards, Venkat www.venkatv.com On Fri, Dec 19, 2008 at 5:51 PM, Nattu M <[email protected]> wrote: > Please be specific about your purpose. What you would like to do ? > > > > On Fri, Dec 19, 2008 at 2:13 PM, balaji k <[email protected]> wrote: > >> but i need to call when i press a button...how to do >> >> >> On Fri, Dec 19, 2008 at 1:55 PM, Shilpa Ch <[email protected]> wrote: >> >>> Hi Balaji, >>> >>> Create a name space in your application and call the mxml file directly >>> >>> >>> where evr needed. >>> >>> for example: >>> >>> <Application xmlns:someName="path.of.the.mxml.file"> >>> >>> <mx:VBox> >>> <someName:mxmlFileName/> >>> </mx:VBox> >>> >>> >>> -- >>> Shilpa Chalasani >>> >>> >>> >>> On Fri, Dec 19, 2008 at 2:12 AM, balaji k <[email protected]> wrote: >>> >>>> hello all, >>>> In my application, i need to call a one mxml file from my main >>>> application file..how to do this.... >>>> >>>> >>>> >>> >>> >>> >> >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---

